diff options
author | Aditya Dewan <iit2015097@iiita.ac.in> | 2017-07-15 21:47:14 +0530 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2017-08-17 13:10:30 +0200 |
commit | d64a7f4ba80fa2a0a0ad2bddc6906ab6b78a23c8 (patch) | |
tree | 8269f9ab235c5a4b31ede606bc64b0b474591102 /include/svx/ruler.hxx | |
parent | ea43e0e3ceec30336273da0fb3d47c24073cffd2 (diff) |
implementing callback for ruler invalidation
adding commands to fetch and changee ruler state
'.uno:RulerState' and '.uno:RulerStateChange'
Change-Id: I66107039a7ae5893691feb45c8ab2e4aa476ea76
Reviewed-on: https://gerrit.libreoffice.org/40727
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'include/svx/ruler.hxx')
-rw-r--r-- | include/svx/ruler.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/svx/ruler.hxx b/include/svx/ruler.hxx index 2fef8b7fb7c9..02baa710d2c8 100644 --- a/include/svx/ruler.hxx +++ b/include/svx/ruler.hxx @@ -41,6 +41,12 @@ class SvxObjectItem; class SfxBoolItem; struct SvxRuler_Impl; +enum class RulerChangeType +{ + MARGIN1, + MARGIN2 +}; + enum class SvxRulerDragFlags { NONE = 0x00, @@ -250,7 +256,6 @@ protected: bool bForceDontConsiderHidden = false, sal_uInt16 nAct=USHRT_MAX ) const; long CalcPropMaxRight(sal_uInt16 nCol = USHRT_MAX) const; - long GetPageWidth() const; public: @@ -273,6 +278,8 @@ public: //#i24363# tab stops relative to indent void SetTabsRelativeToIndent( bool bRel ); + void SetValues(RulerChangeType type, long value); + long GetPageWidth() const; }; #endif |