include/svtools/ruler.hxx | 2 ++ svtools/source/control/ruler.cxx | 5 +++++ 2 files changed, 7 insertions(+)
New commits: commit 76ae1c2076b786a171d5ff0178eaec23c73e2c4e Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Wed Dec 4 16:18:01 2019 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Wed Dec 4 17:49:41 2019 +0100 tdf#128468: Add Ruler::GetTabs() Change-Id: I785f8af1eec54f36721a354c4d3f82d8b86ceb86 Reviewed-on: https://gerrit.libreoffice.org/84419 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tor Lillqvist <t...@collabora.com> Tested-by: Tor Lillqvist <t...@collabora.com> 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 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits