summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-25 21:54:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-26 17:08:58 +0100
commit2f019777fbbd2a1f9821f5d19608cc2a36413d9d (patch)
treeea8cae2736cf7c43100d9b58a8f784008d8f0e61
parentd990c0e4bea625f3f8874d964fe183125f38b757 (diff)
restore fix of tdf#83320 Hide vertical text commands early
Change-Id: I738776028af90e2711418f922ff6e77a5cce14c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87423 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/svx/verttexttbxctrl.hxx3
-rw-r--r--svx/source/tbxctrls/verttexttbxctrl.cxx7
2 files changed, 10 insertions, 0 deletions
diff --git a/include/svx/verttexttbxctrl.hxx b/include/svx/verttexttbxctrl.hxx
index 12498068c467..77471310707a 100644
--- a/include/svx/verttexttbxctrl.hxx
+++ b/include/svx/verttexttbxctrl.hxx
@@ -43,6 +43,9 @@ public:
virtual ~SvxVertCTLTextTbxCtrl() override;
+ // XInitialization
+ virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArguments) override;
+
// XServiceInfo
virtual OUString SAL_CALL getImplementationName() override = 0;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
diff --git a/svx/source/tbxctrls/verttexttbxctrl.cxx b/svx/source/tbxctrls/verttexttbxctrl.cxx
index 7fbb87c245d7..2176ae8b6362 100644
--- a/svx/source/tbxctrls/verttexttbxctrl.cxx
+++ b/svx/source/tbxctrls/verttexttbxctrl.cxx
@@ -74,6 +74,13 @@ SvxVertCTLTextTbxCtrl::~SvxVertCTLTextTbxCtrl( )
{
}
+void SAL_CALL SvxVertCTLTextTbxCtrl::initialize(const css::uno::Sequence<css::uno::Any>& rArguments)
+{
+ SvxVertCTLTextTbxCtrl_Base::initialize(rArguments);
+ // fdo#83320 Hide vertical text commands early
+ setFastPropertyValue_NoBroadcast(1, css::uno::makeAny(true));
+}
+
void SAL_CALL SvxVertCTLTextTbxCtrl::statusChanged(const css::frame::FeatureStateEvent& rEvent)
{
ToolBox* pToolBox = nullptr;