[Libreoffice-commits] core.git: include/svtools svtools/source

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 5 12:51:40 UTC 2019


 include/svtools/ruler.hxx        |    2 ++
 svtools/source/control/ruler.cxx |    5 +++++
 2 files changed, 7 insertions(+)

New commits:
commit 891b0c54ead076f0458197233a47d227b1b36f64
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Dec 4 16:18:01 2019 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Dec 5 13:50:21 2019 +0100

    tdf#128468: Add Ruler::GetTabs()
    
    Change-Id: I785f8af1eec54f36721a354c4d3f82d8b86ceb86
    Reviewed-on: https://gerrit.libreoffice.org/84419
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/84519
    Tested-by: Jenkins

diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx
index 7902f307a1a4..80f38d8922db 100644
--- a/include/svtools/ruler.hxx
+++ b/include/svtools/ruler.hxx
@@ -22,6 +22,7 @@
 
 #include <memory>
 #include <map>
+#include <vector>
 #include <svtools/svtdllapi.h>
 #include <rtl/ref.hxx>
 #include <tools/fldunit.hxx>
@@ -778,6 +779,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 d123e7e00ece..cee1ca0e70bb 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2670,6 +2670,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 )


More information about the Libreoffice-commits mailing list