summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-09-10 08:33:24 +0200
committerTomaž Vajngerl <quikee@gmail.com>2013-09-15 15:34:15 +0200
commit47a77d7dbc427e51421e2df8d59695834cb74980 (patch)
tree2c01a8d974bde307b2c1d1754c45716720ac8e7b /include/svx
parentb44a8ddc26aa5010112a5bf1d93fcc99350b37f4 (diff)
Ruler: disable snapping, tooltips
It is now possible to disable snapping of the ruler at dragging with holding the ALT key and coarse snapping with ALT+SHIFT key. Tooltips are shown when hovering over indents and borders. Change-Id: Ib1e9639e1e2824f2a75b5abd35765bbbd02c87f7
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/ruler.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/svx/ruler.hxx b/include/svx/ruler.hxx
index 1044c8922987..55dea876a22e 100644
--- a/include/svx/ruler.hxx
+++ b/include/svx/ruler.hxx
@@ -101,6 +101,9 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
sal_Bool bListening;
sal_Bool bActive;
+ bool mbCoarseSnapping;
+ bool mbSnapping;
+
void StartListening_Impl();
long GetCorrectedDragPos(sal_Bool bLeft = sal_True, sal_Bool bRight = sal_True );
void DrawLine_Impl(long &lTabPos, int, sal_Bool Horizontal=sal_True);
@@ -135,7 +138,7 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
void UpdateObject();
// Convert position to stick to ruler ticks
- long MakePositionSticky(long rValue, bool aSnapToFrameMargin = true) const;
+ long MakePositionSticky(long rValue, long aPointOfReference, bool aSnapToFrameMargin = true) const;
long PixelHAdjust(long lPos, long lPos2) const;
long PixelVAdjust(long lPos, long lPos2) const;
@@ -157,6 +160,8 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
long ConvertPosLogic(long lPos) const;
long ConvertSizeLogic(long lSize) const;
+ long RoundToCurrentMapMode(long lValue) const;
+
long GetFirstLineIndent() const;
long GetLeftIndent() const;
long GetRightIndent() const;