summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-12-04 16:18:01 +0200
committerTor Lillqvist <tml@collabora.com>2019-12-04 17:49:41 +0100
commit76ae1c2076b786a171d5ff0178eaec23c73e2c4e (patch)
tree08cebf377f4eecd04da7a8aeaaf2f59a5cfd1975
parent5b6d23dcd0f2f779b4bbffe7f427a7c397f41c95 (diff)
tdf#128468: Add Ruler::GetTabs()
Change-Id: I785f8af1eec54f36721a354c4d3f82d8b86ceb86 Reviewed-on: https://gerrit.libreoffice.org/84419 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--include/svtools/ruler.hxx2
-rw-r--r--svtools/source/control/ruler.cxx5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx
index 23aac6fc2fcc..6cd0dc8dd63f 100644
--- a/include/svtools/ruler.hxx
+++ b/include/svtools/ruler.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SVTOOLS_RULER_HXX
#include <memory>
+#include <vector>
#include <svtools/svtdllapi.h>
#include <rtl/ref.hxx>
#include <tools/link.hxx>
@@ -781,6 +782,7 @@ public:
void SetIndents( sal_uInt32 n = 0, const RulerIndent* pIndentAry = nullptr );
void SetTabs( sal_uInt32 n = 0, const RulerTab* pTabAry = nullptr );
+ const std::vector<RulerTab>& GetTabs() const;
static void DrawTab(vcl::RenderContext& rRenderContext, const Color &rFillColor,
const Point& rPos, sal_uInt16 nStyle);
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index d106f472bb94..e9ae3685d16f 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2646,6 +2646,11 @@ void Ruler::SetTabs( sal_uInt32 aTabArraySize, const RulerTab* pTabArray )
ImplUpdate();
}
+const std::vector<RulerTab>& Ruler::GetTabs() const
+{
+ return mpData->pTabs;
+}
+
void Ruler::SetStyle( WinBits nStyle )
{
if ( mnWinStyle != nStyle )