nss: upgrade to release 3.73
[LibreOffice.git] / include / cui / numberingpreview.hxx
blob8a7883522bf03e9c5d9dbbd0f17122bfed43d98c
1 #ifndef INCLUDED_CUI_NUMBERINGPREVIEW_HXX
2 #define INCLUDED_CUI_NUMBERINGPREVIEW_HXX
4 #include <cui/cuidllapi.h>
5 #include <editeng/numitem.hxx>
6 #include <vcl/customweld.hxx>
8 /// Provides the preview to show how looks bullet or numbering format before the apply.
9 class CUI_DLLPUBLIC SvxNumberingPreview final : public weld::CustomWidgetController
11 const SvxNumRule* pActNum;
12 vcl::Font aStdFont;
13 bool bPosition;
14 sal_uInt16 nActLevel;
16 virtual void Paint(vcl::RenderContext& rRenderContext,
17 const ::tools::Rectangle& rRect) override;
19 public:
20 SvxNumberingPreview();
22 void SetNumRule(const SvxNumRule* pNum)
24 pActNum = pNum;
25 Invalidate();
27 void SetPositionMode() { bPosition = true; }
28 void SetLevel(sal_uInt16 nSet) { nActLevel = nSet; }
31 #endif