summaryrefslogtreecommitdiff
path: root/framework/util
AgeCommit message (Collapse)Author
2016-08-22GSoC: tdf#101249 Toolbar Mode switchingSzymon Kłos
+ added registry entry for storing current toolbar mode for each application + registry entries to store toolbar mode configuration, remember additional visible toolbars activated by user + changing toolbar mode hides and shows suitable toolbars + added menu controller for toolbar mode + notebookbar implementation entries are disabled when notebookbar mode is not active + each mode can open/collapse the sidebar Change-Id: I2b03f87c6dce53190d12102892d9ad30fbfd3bf6 Reviewed-on: https://gerrit.libreoffice.org/27991 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2016-08-16GSoC notebookbar: multiple .ui implementationsSzymon Kłos
+ added menu controller for .uno:Notebookbar showing all implementations + switching between .ui files + officecfg stores implementation description + added second implementation file notebookbar_groups.ui Change-Id: I9f406daced7a111793f61a2e9f939cba27d92184 Reviewed-on: https://gerrit.libreoffice.org/28067 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2016-05-12framework: register DispatchDisabler serviceMiklos Vajna
Change-Id: I72d9f8b00ba8b2e4e5dc70d7fd77e13ccf9d3bcc Reviewed-on: https://gerrit.libreoffice.org/24940 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-04-07[API CHANGE] Remove undocumented TabContainerWindow serviceStephan Bergmann
It originally got introduced with b1da5a57d93e8e9b43b9bba9fabc3b7e61289edc "CWS-TOOLING: integrate CWS alf01" but appears to have never been used. Curiously, there were two commits to its code (f565a4b3d9b47ca3336df4f8d8d56d4e2dcceec5 "#i107087# TabWindowService must set member pointer to zero on VCLEVENT_OBJECT_DYING. The window life time is controlled by the docking window! Adding missing RemoveEventListener call" and 84c0ebe7d3e7dbc3796967d52f9535fecc9e6947 "#i107087# Remove event listener from tab window on TabWindowService dtor") that mention <https://bz.apache.org/ooo/show_bug.cgi?id=107087> "button merged in standard toolbar + own UI caused office crash", but the description of which ("when i merge a toolbar button in a standard toolbar and provide own UI (via the toolkit) the office crashed sometimes") doesn't give a hint how this service would have been used. (Maybe it was intended to be used by extensions, but never got documented neither in offapi's UNOIDL nor in <https://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide>.) Change-Id: I86746f73ee99ebe7f5afbc902204a9353e5ccb7b
2016-02-17tdf#91013 Convert freezepanes menu to xmlMaxim Monastirsky
Change-Id: Iedab5e5be5358f7716a2b33de3f0db582a401155
2016-02-17tdf#91013 Add new uno commands to freeze one row and column.Gulsah Kose
Added freezepanesfirstcolumn and freezepanesfirstrow commands. FreezePanes button became a split button that includes this two new uno commands. And this new commands added to menu. Change-Id: Ic6958067cc98b3df50bcd06a1eac220bd9a61473 Reviewed-on: https://gerrit.libreoffice.org/21604 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
2015-12-13tdf#93837 Add helper code to load popup menus from xmlMaxim Monastirsky
Using internally MenuBarManager to manage this kind of menus. Implemented as a popup menu controller to be able to use in menubar/toolbar, not only as a context menu. Change-Id: I46719d66c569db83edd04faf977e0b2b3df0c5fa
2015-11-28New controller to show toolbar contents as menuMaxim Monastirsky
Change-Id: I75911a251b0a38874068b95f496496eccc4d05fb Reviewed-on: https://gerrit.libreoffice.org/20224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-11-20Change the bits of the save button dynamicallyMaxim Monastirsky
When the save slot is disabled, we want it to become a dropdown only instead of disabling it. Change-Id: I22fb04c8a0c9afc0a1af8f031a584cdaa99484f9 Reviewed-on: https://gerrit.libreoffice.org/20079 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-18Unify menu-based toolbar controllersMaxim Monastirsky
The new GenericPopupToolbarController takes by default the popup menu controller that registered for the same .uno:Something command, and sets ToolBoxItemBits to ToolBoxItemBits::DROPDOWNONLY. If a different command specified using the "Value" property - takes the popup menu controller that registered for this command, and sets bits to ToolBoxItemBits::DROPDOWN. Change-Id: I75c5300bd27fcc9f618f2ee0df2aa6aefd088239 Reviewed-on: https://gerrit.libreoffice.org/20040 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-11-11tdf#93837 Create Thesaurus popup menu controllerMaxim Monastirsky
The old context menu implementation adds the thesaurus sub-menu by manipulating the menu at runtime, which isn't a good idea in general. Since it's a sub-menu anyway, better to have it as a separate controller, so it can be added to the xml, and users could decide if they want it, and where. Most of the code adapted from sfx2 (menu/mnumgr.cxx, menu/thessubmenu.cxx), hence the Apache-based license header. Change-Id: I4f533fcdd5d6480fae8ebcf53ec7c69675025adb
2015-07-16'Save As' popup menu in the Writer's toolbarSzymon Kłos
Change-Id: I1b1cb7fcd2ae0e0f50e4d8e3900bc416435e60bf
2015-07-13Introduce generic sub toolbar controllerMaxim Monastirsky
Currently many toolbar controllers are basically doing the same thing - show some docked toolbar. So the idea here is to have one generic controller that will handle all these cases in a unified way. It will get the name of the toolbar that it's supposed to show from the configuration, based on the command it was registered for. Right now it can handle both simple (i.e. with DROPDOWNONLY bits) and split (i.e. with DROPDOWN bits) scenarios, where for split kind it replaces the function (and the image) of the main part of the button, with the last selected function, for easy reusing. A button is considered to be a split one, if the name of the initial default command was passed along with the sub toolbar name, otherwise it will be a simple button. The core change is in framework/. Other parts are a usage example, in form of converting the custom shapes buttons to this new controller. Change-Id: I087cc58c3db1889ca69a26546d4f00fe07e2a58d Reviewed-on: https://gerrit.libreoffice.org/16967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2014-03-14remove com.sun.star.comp.framework.LicenseCaolán McNamara
its unused and removing it allows us to remove the associated dialog and resources Change-Id: If2796ca67428f3ba9b12e92728194967a1ab124a
2014-02-13remove now empty fwk_component_getFactoryMatúš Kukan
Change-Id: I5f2f5fc9ccc75b145572aa0bb88b00b0d7a5872d
2014-02-13fwk: Constructor feature for single-instance framework::Desktop.Matúš Kukan
Change-Id: Id582e672c0b41a35d25361f7dfe970a767880b2a
2014-02-13Introduce com.sun.star.frame.theDesktop singleton.Matúš Kukan
Change-Id: I3d269609119149e289652f6bc106e6bd9061672d
2014-02-11fwk: Constructor feature for one instance ContextChangeEventMultiplexer.Matúš Kukan
Change-Id: Ibb89e4dd46fc5d1f8a85f96b7e4677fa764bb112
2014-02-11fwk: Constructor feature for one instance SessionListener.Matúš Kukan
Converted as usual service implementation. Change-Id: I37c2f25e8a463abb236753c1299cc0aeb3007cd9
2014-02-06fwk: Constructor feature for single-instance WindowStateConfiguration.Matúš Kukan
Change-Id: I0537d7a30b6c6807bf746a52dbd2c7fc66607ae2
2014-02-06Introduce com.sun.star.ui.theWindowStateConfiguration singleton.Matúš Kukan
Change-Id: I50861ac8952d54cb1a45846ea72a2ecac4f83409
2014-02-06fwk: Constructor feature for single-instance FooBarFactories.Matúš Kukan
Converted them as usual service implementations. Otherwise - if static singletons are used - it does not show menu for some reason. Change-Id: I0673d0bfbba268728a3fa676f2af95aa6c74bbb2
2014-02-06Introduce com.sun.star.util.thePathSettings singleton.Matúš Kukan
To replace single-instance com.sun.star.util.PathSettings service, incorrectly converted in 89b0017b22889af6a8afe28b94c06e7095dc8c6f Keeping util::PathSettings::create in sc/source/ui/vba/vbaapplication.cxx because for some reason util::thePathSettings::get does not work in sc_macros_test while testing sc/qa/extras/testdocuments/Ranges.xls. Change-Id: I75b68ae56ac5b58f72416070dba100ab3ab70fe8
2014-01-30fwk: Ctor feature for single-instance ModuleUIConfigurationManagerSupplier.Matúš Kukan
Change-Id: I4674ed6852807e08ff8319515b0ab4e9535b668a
2014-01-30Introduce com.sun.star.ui.theModuleUIConfigurationManagerSupplier singleton.Matúš Kukan
Change-Id: I7b503e5d49865c9ff287bf72eaff1995ce871790
2014-01-30fwk: Constructor feature for single-instance TaskCreatorService.Matúš Kukan
Change-Id: I9e994ebb4822458039709690aa5dd0a7f75735ac
2014-01-30fwk: Constructor feature for single-instance SubstitutePathVariables.Matúš Kukan
Change-Id: Ibd626f00bb844ae8ec1cab773093b8c94bf8d936
2014-01-30fwk: Constructor feature for single-instance WindowContentFactoryManager.Matúš Kukan
Change-Id: I6786bc1d76fd57edc8dfacb667b53deab792bd20
2014-01-30Introduce com.sun.star.ui.theWindowContentFactoryManager singleton.Matúš Kukan
Change-Id: If979db945b2f5e50e146fdadafd1559530c50122
2014-01-29fwk: Constructor feature for single-instance UIElementFactoryManager.Matúš Kukan
Change-Id: Iaa6b6bf8f132e2f8efb9ae71e9302e6be19347c9
2014-01-29Introduce com.sun.star.ui.theUIElementFactoryManager singleton.Matúš Kukan
To replace single-instance com.sun.star.ui.UIElementFactoryManager service. Change-Id: I4262909c4396e3907d271a56696a06903168a58d
2014-01-29fwk: Constructor feature for single-instance UIControllerFactories.Matúš Kukan
Change-Id: I0867404f7e4aa7b9caafe4f0568bd2c20190867f
2014-01-29Introduce com.sun.star.frame.ControllerFactory singletons:Matúš Kukan
com.sun.star.frame.thePopupMenuControllerFactory com.sun.star.frame.theStatusbarControllerFactory com.sun.star.frame.theToolbarControllerFactory To replace their single-instance service variants. Change-Id: I00586d0d61e63f9482cb659071e88aa9cf02d5b5
2014-01-28fwk: Constructor feature for one instance UICommandDescription.Matúš Kukan
Change-Id: I3b772ce36492e89451597b3c7dadc5e5b5b22de7
2014-01-28Introduce com.sun.star.frame.theUICommandDescription singleton.Matúš Kukan
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
2014-01-28fwk: Constructor feature for one instance UICategoryDescription.Matúš Kukan
Change-Id: I56c906c9eeafb625dee65eec9fe39ea3aee66251
2014-01-28Introduce com.sun.star.ui.theUICategoryDescription singleton.Matúš Kukan
Change-Id: I79a78f208b2aa5eaacbd2e349b2b5066afa1ad23
2014-01-28Introduce com.sun.star.frame.theAutoRecovery singleton.Matúš Kukan
To replace com.sun.star.frame.AutoRecovery single-instance service, incorrectly converted in 279859fdbc40f68d8f1649fa5b928d9de49e8d9e Unfortunately needs a lot of changes in autorecovery.cxx. Change-Id: Iba5188dffea3e03803236f23e0b3f343746ace90
2014-01-24Introduce com.sun.star.task.theJobExecutor singleton.Matúš Kukan
To replace com.sun.star.task.JobExecutor single-instance service, incorrectly converted in 748aa84e9808ad31c6ff6b71459525c82de10e58 [including changes by Stephan Bergmann <sbergman@redhat.com>] Change-Id: I4cea2c63a20b5b22f6e1f822fb35fcc4d0397687 Reviewed-on: https://gerrit.libreoffice.org/7609 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-01-23fwk: Use constructor feature for one instance PathSettings.Matúš Kukan
Change-Id: Iaa01abc9f604d8f9e6f762e3340f9468e19f4848
2014-01-20fwk: Use constructor feature for AutoRecovery.Matúš Kukan
Change-Id: I87a6c1c1c6dc92670dccee3f56302e7f234b281d
2014-01-20fwk: Use constructor feature for JobExecutor.Matúš Kukan
Change-Id: I5087320137dc17f27a382d564a59cec68f1a4f95
2014-01-18fwk: Use constructor feature for ModuleAcceleratorConfiguration.Matúš Kukan
And avoid css::uno::XInitialization protocol. Change-Id: If4a7987778e2880502bdc7ef2c30792de9377364
2014-01-18fwk: Use constructor feature for DocumentAcceleratorConfiguration.Matúš Kukan
And avoid css::uno::XInitialization protocol. Change-Id: I14daf6409bf0d651d7b23246ba3855f647b3d1ef
2014-01-18fwk: Use constructor feature for ModuleUIConfigurationManager.Matúš Kukan
And avoid css::uno::XInitialization protocol.
2014-01-17fwk: Constructor feature for ControlMenuController.Matúš Kukan
Change-Id: I789205c1bc9ceefda003d9887ac4409625539537
2014-01-17fwk: Constructor feature for RecentFilesMenuController.Matúš Kukan
Change-Id: I7bb943a6fe7526264e8465faeb7e86adbf3cb737
2014-01-17fwk: Use constructor feature for Frame.Matúš Kukan
Change-Id: I5f7ee46671b22d17c5cb060f96342727d566fa21
2014-01-17fwk: Use constructor feature for GlobalAcceleratorConfiguration.Matúš Kukan
Change-Id: Ic0268e9841c78e5de646074755e99706adac8d7d
2014-01-17fwk: Use constructor feature for ImageManager.Matúš Kukan
Change-Id: I3f231980b1908495b1f5ec17f95c39c464d40ff8