summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-06-10 12:28:29 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-06-10 15:21:11 +0200
commit01379acedcdad4fc08c61b73b8500e758b88d5ae (patch)
treeab2a93f2f49151574bf9b807faaf37a3efc07a9e /svx
parentd693223b84b518701d308678801ccc50877490dc (diff)
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@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/SvxXTextColumns.cxx9
-rw-r--r--svx/util/svxcore.component4
2 files changed, 12 insertions, 1 deletions
diff --git a/svx/source/unodraw/SvxXTextColumns.cxx b/svx/source/unodraw/SvxXTextColumns.cxx
index 2ddaebc9f269..a98e0f9cf8a0 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>