diff options
author | Rodolfo Ribeiro Gomes <rodolforg@gmail.com> | 2013-03-09 14:08:21 -0300 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-03-11 10:08:30 +0100 |
commit | e047a967b0db8c61dc977b52f3876fc4e385ad77 (patch) | |
tree | b84aa3aaaa5d85ce829f9f3e468dde058cf85d3f /svtools | |
parent | 4ec9f68f25f1d75f63e57570eb24f30ebfcfe2b2 (diff) |
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 <rodolforg@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/ruler.hxx | 4 | ||||
-rw-r--r-- | svtools/source/control/ruler.cxx | 8 |
2 files changed, 9 insertions, 3 deletions
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; } diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index fcc203759157..5e19a661dff1 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -2775,9 +2775,11 @@ void Ruler::SetTextRTL(sal_Bool bRTL) } long Ruler::GetPageOffset() const { return mpData->nPageOff; } -long Ruler::GetNullOffset() const { return mpData->nNullOff; } -long Ruler::GetMargin1() const { return mpData->nMargin1; } -long Ruler::GetMargin2() const { return mpData->nMargin2; } +long Ruler::GetPageWidth() const { return mpData->nPageWidth; } +long Ruler::GetNullOffset() const { return mpData->nNullOff; } +long Ruler::GetMargin1() const { return mpData->nMargin1; } +long Ruler::GetMargin2() const { return mpData->nMargin2; } +long Ruler::GetRulerVirHeight() const { return mnVirHeight; } void Ruler::DrawTicks() { |