Change CaseMappingExtra commented hex offsets to four digits and uppercase
[LibreOffice.git] / svx / inc / CommonStylePreviewRenderer.hxx
blob1c21db99b3785906c11a56cb68c911d60ec876f6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <memory>
14 #include <sfx2/objsh.hxx>
15 #include <sfx2/StylePreviewRenderer.hxx>
16 #include <rtl/ustring.hxx>
17 #include <tools/color.hxx>
18 #include <tools/gen.hxx>
20 class OutputDevice;
21 class SfxStyleSheetBase;
22 class SvxFont;
24 namespace svx
26 class CommonStylePreviewRenderer final : public sfx2::StylePreviewRenderer
28 std::unique_ptr<SvxFont> m_pFont;
29 Color maFontColor;
30 Color maHighlightColor;
31 Color maBackgroundColor;
32 Size maPixelSize;
33 OUString maStyleName;
35 Size getRenderSize() const;
37 public:
38 CommonStylePreviewRenderer(const SfxObjectShell& rShell, OutputDevice& rOutputDev,
39 SfxStyleSheetBase* pStyle, tools::Long nMaxHeight);
40 virtual ~CommonStylePreviewRenderer() override;
42 virtual bool recalculate() override;
43 virtual bool render(const tools::Rectangle& aRectangle,
44 RenderAlign eRenderAlign = RenderAlign::CENTER) override;
47 } // end namespace svx
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */