diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-05-07 19:24:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-07 22:15:41 +0200 |
commit | 5152841ad0c9e3307285b809b7432bee3df78471 (patch) | |
tree | c0dd42c7ed02fb3dfd39f05374f65274e0ec0dc3 | |
parent | 059892da740e4272477ad0d69183b0e9b77129d7 (diff) |
framework/taskcreator: declare ARGUMENT_HIDDENFORCONVERSION and use it
Change-Id: Ie4e8c24bf776d0ba0e1b7f986fd506521816d2e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151477
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | framework/inc/taskcreatordefs.hxx | 5 | ||||
-rw-r--r-- | framework/source/classes/taskcreator.cxx | 2 | ||||
-rw-r--r-- | framework/source/services/taskcreatorsrv.cxx | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/framework/inc/taskcreatordefs.hxx b/framework/inc/taskcreatordefs.hxx index d4cdcb13189c..c4036e08dc19 100644 --- a/framework/inc/taskcreatordefs.hxx +++ b/framework/inc/taskcreatordefs.hxx @@ -55,4 +55,9 @@ inline constexpr OUStringLiteral ARGUMENT_SUPPORTPERSISTENTWINDOWSTATE */ inline constexpr OUStringLiteral ARGUMENT_ENABLE_TITLEBARUPDATE = u"EnableTitleBarUpdate"; // bool +/** [bool] enable/disable if the frame is explicitly requested to be hidden + Default = OFF ! + */ +inline constexpr OUStringLiteral ARGUMENT_HIDDENFORCONVERSION = u"HiddenForConversion"; // bool + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/framework/source/classes/taskcreator.cxx b/framework/source/classes/taskcreator.cxx index 1372dfeb7c1b..f84bcb711467 100644 --- a/framework/source/classes/taskcreator.cxx +++ b/framework/source/classes/taskcreator.cxx @@ -78,7 +78,7 @@ css::uno::Reference< css::frame::XFrame > TaskCreator::createTask( const OUStrin css::uno::Any(css::beans::NamedValue(ARGUMENT_MAKEVISIBLE, css::uno::Any(false))), css::uno::Any(css::beans::NamedValue(ARGUMENT_SUPPORTPERSISTENTWINDOWSTATE, css::uno::Any(true))), css::uno::Any(css::beans::NamedValue(ARGUMENT_FRAMENAME, css::uno::Any(sName))), - css::uno::Any(css::beans::NamedValue("HiddenForConversion", css::uno::Any(rDescriptor.getUnpackedValueOrDefault("HiddenForConversion", false)))) + css::uno::Any(css::beans::NamedValue(ARGUMENT_HIDDENFORCONVERSION, css::uno::Any(rDescriptor.getUnpackedValueOrDefault(ARGUMENT_HIDDENFORCONVERSION, false)))) }; css::uno::Reference< css::frame::XFrame > xTask(xCreator->createInstanceWithArguments(lArgs), css::uno::UNO_QUERY_THROW); return xTask; diff --git a/framework/source/services/taskcreatorsrv.cxx b/framework/source/services/taskcreatorsrv.cxx index 0d09e30cf572..a4db7856d30a 100644 --- a/framework/source/services/taskcreatorsrv.cxx +++ b/framework/source/services/taskcreatorsrv.cxx @@ -128,7 +128,7 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL TaskCreatorService::createI bool bSupportPersistentWindowState = lArgs.getUnpackedValueOrDefault(ARGUMENT_SUPPORTPERSISTENTWINDOWSTATE , false ); bool bEnableTitleBarUpdate = lArgs.getUnpackedValueOrDefault(ARGUMENT_ENABLE_TITLEBARUPDATE , true ); // If the frame is explicitly requested to be hidden. - bool bHidden = lArgs.getUnpackedValueOrDefault("HiddenForConversion", false); + bool bHidden = lArgs.getUnpackedValueOrDefault(ARGUMENT_HIDDENFORCONVERSION, false); // We use FrameName property to set it as API name of the new created frame later. // But those frame names must be different from the set of special target names as e.g. _blank, _self etcpp ! |