LibreOffice Module framework (master) 1
|
#include <uielement/toolbarsmenucontroller.hxx>
#include <algorithm>
#include <string_view>
#include <unordered_map>
#include <services.h>
#include <strings.hrc>
#include <classes/fwkresid.hxx>
#include <framework/sfxhelperfunctions.hxx>
#include <uiconfiguration/windowstateproperties.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/awt/MenuItemStyle.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/ui/theModuleUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/ui/UIElementType.hpp>
#include <com/sun/star/ui/theWindowStateConfiguration.hpp>
#include <comphelper/propertyvalue.hxx>
#include <officecfg/Office/Common.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <rtl/ustrbuf.hxx>
#include <toolkit/awt/vclxmenu.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/window.hxx>
#include <unotools/cmdoptions.hxx>
#include <unotools/collatorwrapper.hxx>
#include <unotools/syslocale.hxx>
#include <cppuhelper/supportsservice.hxx>
Go to the source code of this file.
Namespaces | |
namespace | framework |
Typedefs | |
typedef std::unordered_map< OUString, OUString > | framework::ToolbarHashMap |
Functions | |
static bool | framework::CompareToolBarEntry (const ToolBarEntry &aOne, const ToolBarEntry &aTwo) |
static Reference< XLayoutManager > | framework::getLayoutManagerFromFrame (const Reference< XFrame > &rFrame) |
constexpr OUStringLiteral | framework::g_aPropUIName (u"UIName") |
constexpr OUStringLiteral | framework::g_aPropResourceURL (u"ResourceURL") |
static void | framework::fillHashMap (const Sequence< Sequence< css::beans::PropertyValue > > &rSeqToolBars, ToolbarHashMap &rHashMap) |
framework::IMPL_STATIC_LINK (ToolbarsMenuController, ExecuteHdl_Impl, void *, p, void) | |
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * | framework_ToolbarsMenuController_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &) |
Variables | |
constexpr OUStringLiteral | CMD_RESTOREVISIBILITY = u".cmd:RestoreVisibility" |
constexpr OUStringLiteral | CMD_LOCKTOOLBARS = u".uno:ToolbarLock" |
constexpr OUStringLiteral | STATIC_CMD_PART = u".uno:AvailableToolbars?Toolbar:string=" |
const char | STATIC_INTERNAL_CMD_PART [] = ".cmd:" |
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * framework_ToolbarsMenuController_get_implementation | ( | css::uno::XComponentContext * | context, |
css::uno::Sequence< css::uno::Any > const & | |||
) |
Definition at line 785 of file toolbarsmenucontroller.cxx.
OUString aCommand |
Definition at line 85 of file toolbarsmenucontroller.cxx.
Referenced by framework::MacrosMenuController::addScriptItems(), framework::ToolbarLayoutManager::childWindowEvent(), framework::NewMenuController::determineAndSetNewDocAccel(), framework::ConfigurationAccess_ControllerFactory::elementInserted(), framework::ConfigurationAccess_ControllerFactory::elementRemoved(), framework::MenuBarManager::FillMenuManager(), framework::MacrosMenuController::fillPopupMenu(), framework::HeaderMenuController::fillPopupMenu(), framework::FontSizeMenuController::fillPopupMenu(), framework::ToolbarsMenuController::fillPopupMenu(), framework::FindMenuId(), framework::ToolBarWrapper::functionExecute(), framework::ComplexToolbarController::getDispatchFromCommand(), framework::ImageButtonToolbarController::ImageButtonToolbarController(), framework::ConfigurationAccess_ControllerFactory::impl_getElementProps(), framework::IMPL_LINK(), framework::LayoutManager::implts_createMSCompatibleMenuBar(), framework::ToolBarManager::notifyRegisteredControllers(), framework::Desktop::queryDispatch(), framework::ImageOrientationController::statusChanged(), and framework::ConfigurationAccess_ControllerFactory::updateConfigurationDataImpl().
OUString aToolBarResName |
Definition at line 119 of file toolbarsmenucontroller.cxx.
Referenced by framework::ToolbarsMenuController::getLayoutManagerToolbars(), and framework::ToolbarsMenuController::itemSelected().
OUString aToolBarUIName |
Definition at line 120 of file toolbarsmenucontroller.cxx.
Referenced by framework::ToolbarsMenuController::getLayoutManagerToolbars().
OUString aUIName |
Definition at line 84 of file toolbarsmenucontroller.cxx.
Referenced by framework::ToolbarLayoutManager::elementInserted(), framework::fillHashMap(), framework::ToolbarsMenuController::fillPopupMenu(), framework::ToolBarManager::FillToolbar(), framework::OReadToolBoxDocumentHandler::startElement(), and framework::OWriteToolBoxDocumentHandler::WriteToolBoxDocument().
bool bVisible |
Definition at line 86 of file toolbarsmenucontroller.cxx.
Referenced by framework::ToolbarLayoutManager::createToolbar(), framework::ToolbarsMenuController::fillPopupMenu(), framework::impl_setDockingWindowVisibility(), framework::LayoutManager::implts_getStatusBarSize(), framework::ToolbarLayoutManager::implts_isParentWindowVisible(), framework::LayoutManager::implts_showProgressBar(), framework::ToolbarsMenuController::itemSelected(), framework::ToolbarLayoutManager::setFloatingToolbarsVisibility(), framework::ToolbarLayoutManager::setVisible(), framework::LayoutManager::setVisible(), framework::StatusbarItem::setVisible(), framework::OReadToolBoxDocumentHandler::startElement(), framework::ToolBarManager::ToggleButton(), framework::ToolbarLayoutManager::windowResized(), framework::OWriteToolBoxDocumentHandler::WriteToolBoxDocument(), and framework::OWriteToolBoxDocumentHandler::WriteToolBoxItem().
|
constexpr |
Definition at line 70 of file toolbarsmenucontroller.cxx.
Referenced by framework::ToolbarsMenuController::fillPopupMenu().
|
constexpr |
Definition at line 69 of file toolbarsmenucontroller.cxx.
Referenced by framework::ToolbarsMenuController::fillPopupMenu(), and framework::ToolbarsMenuController::itemActivated().
const CollatorWrapper* pCollatorWrapper |
Definition at line 87 of file toolbarsmenucontroller.cxx.
|
constexpr |
Definition at line 72 of file toolbarsmenucontroller.cxx.
Referenced by framework::ToolbarsMenuController::fillPopupMenu(), and framework::ToolbarsMenuController::itemSelected().
const char STATIC_INTERNAL_CMD_PART[] = ".cmd:" |
Definition at line 73 of file toolbarsmenucontroller.cxx.
Referenced by framework::ToolbarsMenuController::addCommand(), framework::ToolbarsMenuController::itemActivated(), and framework::ToolbarsMenuController::itemSelected().