1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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>
21 class SfxStyleSheetBase
;
26 class CommonStylePreviewRenderer final
: public sfx2::StylePreviewRenderer
28 std::unique_ptr
<SvxFont
> m_pFont
;
30 Color maBackgroundColor
;
35 CommonStylePreviewRenderer(const SfxObjectShell
& rShell
, OutputDevice
& rOutputDev
,
36 SfxStyleSheetBase
* pStyle
, long nMaxHeight
);
37 virtual ~CommonStylePreviewRenderer() override
;
39 virtual bool recalculate() override
;
40 virtual bool render(const tools::Rectangle
& aRectangle
,
41 RenderAlign eRenderAlign
= RenderAlign::CENTER
) override
;
44 } // end namespace svx
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */