summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorRodolfo Ribeiro Gomes <rodolforg@gmail.com>2013-03-09 14:08:21 -0300
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-03-11 10:08:30 +0100
commite047a967b0db8c61dc977b52f3876fc4e385ad77 (patch)
treeb84aa3aaaa5d85ce829f9f3e468dde058cf85d3f /svx/inc
parent4ec9f68f25f1d75f63e57570eb24f30ebfcfe2b2 (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 'svx/inc')
-rw-r--r--svx/inc/svx/ruler.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/inc/svx/ruler.hxx b/svx/inc/svx/ruler.hxx
index e39ccde703ec..aa18893ec3cc 100644
--- a/svx/inc/svx/ruler.hxx
+++ b/svx/inc/svx/ruler.hxx
@@ -148,7 +148,6 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
long GetLeftIndent() const;
long GetRightIndent() const;
long GetLogicRightIndent() const;
- long GetPageWidth() const;
inline long GetLeftFrameMargin() const;
long GetRightFrameMargin() const;
@@ -184,14 +183,13 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
sal_uInt16 GetNextVisible(sal_uInt16 nColumn);
sal_uInt16 GetPrevVisible(sal_uInt16 nColumn);
- void Update();
-
enum UpdateType {
MOVE_ALL,
MOVE_LEFT,
MOVE_RIGHT
};
void UpdateParaContents_Impl(long lDiff, UpdateType = MOVE_ALL);
+
protected:
virtual void Command( const CommandEvent& rCEvt );
virtual void Click();
@@ -203,6 +201,8 @@ protected:
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+ virtual void Update();
+
// calculation of boundary values for object borders
// values refer to the page
virtual sal_Bool CalcLimits(long &nMax1, long &nMax2, sal_Bool bFirst) const;
@@ -215,6 +215,7 @@ protected:
sal_uInt16 GetActRightColumn (
sal_Bool bForceDontConsiderHidden = sal_False, sal_uInt16 nAct=USHRT_MAX ) const;
long CalcPropMaxRight(sal_uInt16 nCol=USHRT_MAX) const;
+ long GetPageWidth() const;
public:
#define SVXRULER_SUPPORT_TABS 0x0001