summaryrefslogtreecommitdiff
path: root/include/cui/numberingpreview.hxx
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2019-04-17 20:00:18 +0300
committerMiklos Vajna <vmiklos@collabora.com>2019-05-23 10:16:30 +0200
commite3015d7021e689c71c2ed8e5dd01a74d832c84f0 (patch)
tree5fe68d52d35d9f2df506f1cf61e2bcc020469766 /include/cui/numberingpreview.hxx
parent237a656db82951e06f8a34e6ca2c1e50f24eb508 (diff)
Add new customize and position merged dialog
Change-Id: I898fb0830a9f53da4a7917cb5900f082e3a9d6b7 Reviewed-on: https://gerrit.libreoffice.org/71944 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include/cui/numberingpreview.hxx')
-rw-r--r--include/cui/numberingpreview.hxx31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/cui/numberingpreview.hxx b/include/cui/numberingpreview.hxx
new file mode 100644
index 000000000000..0d6d01dc2a02
--- /dev/null
+++ b/include/cui/numberingpreview.hxx
@@ -0,0 +1,31 @@
+#ifndef INCLUDED_CUI_NUMBERINGPREVIEW_HXX
+#define INCLUDED_CUI_NUMBERINGPREVIEW_HXX
+
+#include <cui/cuidllapi.h>
+#include <editeng/numitem.hxx>
+#include <vcl/customweld.hxx>
+
+class CUI_DLLPUBLIC SvxNumberingPreview : public weld::CustomWidgetController
+{
+ const SvxNumRule* pActNum;
+ vcl::Font aStdFont;
+ bool bPosition;
+ sal_uInt16 nActLevel;
+
+protected:
+ virtual void Paint(vcl::RenderContext& rRenderContext,
+ const ::tools::Rectangle& rRect) override;
+
+public:
+ SvxNumberingPreview();
+
+ void SetNumRule(const SvxNumRule* pNum)
+ {
+ pActNum = pNum;
+ Invalidate();
+ };
+ void SetPositionMode() { bPosition = true; }
+ void SetLevel(sal_uInt16 nSet) { nActLevel = nSet; }
+};
+
+#endif