From 2f019777fbbd2a1f9821f5d19608cc2a36413d9d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 25 Jan 2020 21:54:52 +0000 Subject: restore fix of tdf#83320 Hide vertical text commands early MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I738776028af90e2711418f922ff6e77a5cce14c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87423 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- include/svx/verttexttbxctrl.hxx | 3 +++ svx/source/tbxctrls/verttexttbxctrl.cxx | 7 +++++++ 2 files changed, 10 insertions(+) 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& 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& 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; -- cgit