LibreOffice Module cui (master)  1
numberingpreview.hxx
Go to the documentation of this file.
1 #ifndef INCLUDED_CUI_NUMBERINGPREVIEW_HXX
2 #define INCLUDED_CUI_NUMBERINGPREVIEW_HXX
3 
4 #include <cui/cuidllapi.h>
5 #include <editeng/numitem.hxx>
6 #include <vcl/customweld.hxx>
7 
10 {
13  bool bPosition;
14  sal_uInt16 nActLevel;
15 
16  virtual void Paint(vcl::RenderContext& rRenderContext,
17  const ::tools::Rectangle& rRect) override;
18 
19 public:
21 
22  void SetNumRule(const SvxNumRule* pNum)
23  {
24  pActNum = pNum;
25  Invalidate();
26  };
27  void SetPositionMode() { bPosition = true; }
28  void SetLevel(sal_uInt16 nSet) { nActLevel = nSet; }
29 };
30 
31 #endif
void SetNumRule(const SvxNumRule *pNum)
void SetLevel(sal_uInt16 nSet)
#define CUI_DLLPUBLIC
Definition: cuidllapi.h:18
Provides the preview to show how looks bullet or numbering format before the apply.
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0
const SvxNumRule * pActNum