tdf#137335 calculate paragraph height in RTF/DOCX
[LibreOffice.git] / include / svx / numberingpreview.hxx
blobac2285c1c643b2af9ecef945884348c22f1ca7fb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 */
9 #pragma once
11 #include <svx/svxdllapi.h>
12 #include <editeng/numitem.hxx>
13 #include <vcl/customweld.hxx>
15 /// Provides the preview to show how looks bullet or numbering format before the apply.
16 class SVXCORE_DLLPUBLIC SvxNumberingPreview final : public weld::CustomWidgetController
18 const SvxNumRule* pActNum;
19 vcl::Font aStdFont;
20 bool bPosition;
21 sal_uInt16 nActLevel;
23 virtual void Paint(vcl::RenderContext& rRenderContext,
24 const ::tools::Rectangle& rRect) override;
26 public:
27 SvxNumberingPreview();
29 void SetNumRule(const SvxNumRule* pNum)
31 pActNum = pNum;
32 Invalidate();
34 void SetPositionMode() { bPosition = true; }
35 void SetLevel(sal_uInt16 nSet) { nActLevel = nSet; }
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */