From e047a967b0db8c61dc977b52f3876fc4e385ad77 Mon Sep 17 00:00:00 2001 From: Rodolfo Ribeiro Gomes Date: Sat, 9 Mar 2013 14:08:21 -0300 Subject: fdo#38246 Comment control on Writer ruler feature It follows the directions from design team available at https://wiki.documentfoundation.org/Design/Whiteboards/Comments_Ruler_Control. It misses some fancy stuff though (like animated/delayed highlight and fading border). Some work should be done with (svtools) Ruler also for a cleaner implementation. Change-Id: Ib065043d05fe56fbfe6d00e0bb654966f046129b Signed-off-by: Rodolfo Ribeiro Gomes --- svtools/inc/svtools/ruler.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'svtools/inc') diff --git a/svtools/inc/svtools/ruler.hxx b/svtools/inc/svtools/ruler.hxx index 864ebf9c6ef2..a06109bca6a0 100644 --- a/svtools/inc/svtools/ruler.hxx +++ b/svtools/inc/svtools/ruler.hxx @@ -681,6 +681,9 @@ private: Ruler (const Ruler &); Ruler & operator= (const Ruler &); +protected: + long GetRulerVirHeight() const; + public: Ruler( Window* pParent, WinBits nWinStyle = WB_STDRULER ); virtual ~Ruler(); @@ -709,6 +712,7 @@ public: long GetWinWidth() const { return mnWinWidth; } void SetPagePos( long nOff = 0, long nWidth = 0 ); long GetPageOffset() const; + long GetPageWidth() const; void SetBorderPos( long nOff = 0 ); long GetBorderOffset() const { return mnBorderOff; } Rectangle GetExtraRect() const { return maExtraRect; } -- cgit