[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - svx/source svx/util
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 10 14:01:10 UTC 2021
svx/source/unodraw/SvxXTextColumns.cxx | 9 ++++++++-
svx/util/svxcore.component | 4 ++++
2 files changed, 12 insertions(+), 1 deletion(-)
New commits:
commit 58ccee55e797666c0ac6d4e7602842ced6896395
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Jun 10 12:28:29 2021 +0300
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Jun 10 16:00:35 2021 +0200
svxcore: provide UNO constructor for com.sun.star.text.TextColumns
This allows to create it e.g. in Basic macros using CreateUnoService
Change-Id: I949d3b92c83cd9e763244f70b22f0f367b93cb48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116970
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
(cherry picked from commit 01379acedcdad4fc08c61b73b8500e758b88d5ae)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116903
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
diff --git a/svx/source/unodraw/SvxXTextColumns.cxx b/svx/source/unodraw/SvxXTextColumns.cxx
index d9c9b81cb9a7..3d4732cc9817 100644
--- a/svx/source/unodraw/SvxXTextColumns.cxx
+++ b/svx/source/unodraw/SvxXTextColumns.cxx
@@ -126,7 +126,7 @@ private:
sal_Int16 m_nSepLineStyle = css::text::ColumnSeparatorStyle::NONE;
};
-OUString SvxXTextColumns::getImplementationName() { return "SvxXTextColumns"; }
+OUString SvxXTextColumns::getImplementationName() { return "com.sun.star.comp.svx.TextColumns"; }
sal_Bool SvxXTextColumns::supportsService(const OUString& rServiceName)
{
@@ -324,4 +324,11 @@ css::uno::Reference<css::uno::XInterface> SvxXTextColumns_createInstance() noexc
return static_cast<cppu::OWeakObject*>(new SvxXTextColumns);
}
+extern "C" SVXCORE_DLLPUBLIC css::uno::XInterface*
+com_sun_star_comp_svx_TextColumns_get_implementation(css::uno::XComponentContext*,
+ css::uno::Sequence<css::uno::Any> const&)
+{
+ return cppu::acquire(new SvxXTextColumns);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/svx/util/svxcore.component b/svx/util/svxcore.component
index b36a8d71bcb4..d8989b71f4e9 100644
--- a/svx/util/svxcore.component
+++ b/svx/util/svxcore.component
@@ -92,4 +92,8 @@
constructor="com_sun_star_comp_svx_StylesPreviewToolBoxControl_get_implementation">
<service name="com.sun.star.frame.ToolbarController"/>
</implementation>
+ <implementation name="com.sun.star.comp.svx.TextColumns"
+ constructor="com_sun_star_comp_svx_TextColumns_get_implementation">
+ <service name="com.sun.star.text.TextColumns"/>
+ </implementation>
</component>
More information about the Libreoffice-commits
mailing list