[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - include/svtools svtools/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Mon May 18 06:40:18 UTC 2020
include/svtools/ruler.hxx | 2 ++
svtools/source/control/ruler.cxx | 5 +++++
2 files changed, 7 insertions(+)
New commits:
commit a6e4f1e18b510d0644802232262174b5e19085c6
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Dec 4 16:18:01 2019 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Mon May 18 08:39:48 2020 +0200
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
Reviewed-on: https://gerrit.libreoffice.org/84759
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94206
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