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 protected:
17  virtual void Paint(vcl::RenderContext& rRenderContext,
18  const ::tools::Rectangle& rRect) override;
19 
20 public:
22 
23  void SetNumRule(const SvxNumRule* pNum)
24  {
25  pActNum = pNum;
26  Invalidate();
27  };
28  void SetPositionMode() { bPosition = true; }
29  void SetLevel(sal_uInt16 nSet) { nActLevel = nSet; }
30 };
31 
32 #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