summaryrefslogtreecommitdiff
path: root/sw/source/uibase
AgeCommit message (Collapse)AuthorFilesLines
2015-12-18related tdf#96398 pull out more NPAPI-related codeThorsten Behrens1-1/+0
Fixup windows PCH plus pulling out more code now unused due to NPAPI removal. Follow-up to 4c18af27bf95b332ee2006cfc0bbf469fb1a84d4. Change-Id: I8ad42a28139ceeab0cae1f608d55beb28c159db3 Reviewed-on: https://gerrit.libreoffice.org/20783 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-12-17nConfigId is always 0Maxim Monastirsky1-1/+1
Change-Id: Ic314bc04a22ebf23fa7b06dca06e4d2afae096f9
2015-12-17[API CHANGE] Remove NPAPI-related UNO APIThorsten Behrens1-40/+0
Follow-up to 4c18af27bf95b332ee2006cfc0bbf469fb1a84d4, related to tdf#96398, removing more client code. The following published interfaces are removed: com::sun::star::mozilla::XPluginInstance com::sun::star::mozilla::XPluginInstanceNotifySink com::sun::star::mozilla::XPluginInstancePeer com::sun::star::mozilla::XPluginInstanceSyncPeer com::sun::star::mozilla::XPluginWindowPeer com::sun::star::plugin::PluginDescription com::sun::star::plugin::PluginException com::sun::star::plugin::PluginManager com::sun::star::plugin::PluginMode com::sun::star::plugin::PluginVariable com::sun::star::plugin::XPlugin com::sun::star::plugin::XPluginContext com::sun::star::plugin::XPluginManager Change-Id: I3818a23e0f46fd01bfe9be11b57f6a551c013441 Reviewed-on: https://gerrit.libreoffice.org/20780 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-12-17Remove unused ToolPanel (aka TaskPane)Samuel Mehrbrodt1-2/+0
Superseded by the Sidebar Change-Id: I54970d71cd9d42de4f47b223e50dd9474b40632a Reviewed-on: https://gerrit.libreoffice.org/20724 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-12-17sw, sd, sc: clean up no longer necessary isTiledRendering() member functionsMiklos Vajna1-6/+0
Change-Id: I508a29fd261865771d780b1c241841d9abfeb6ed
2015-12-15Bin silly 'STATIC DATA' commentsTor Lillqvist3-4/+0
Change-Id: I50e3772b7b479d2cf1eb644c7334d0f987874ccb
2015-12-14Related: rhbz#1289394 always provide the screen area the tip applies toCaolán McNamara1-8/+9
this will make it easier to implement native help tips Change-Id: I984dfadaf02e9b7bf542ba82cf070911c89cb699
2015-12-14tdf#93837 Convert MN_PPREVIEW_POPUPMENU to xmlMaxim Monastirsky1-2/+1
Change-Id: If490e8523dbedabdf4124b1bd1a5ba08678dc06e
2015-12-13tdf#93837 Convert MN_TAB_POPUPMENU to xmlMaxim Monastirsky2-4/+2
Change-Id: I8bf4557094bc32ad58760e822689c3f1d5f33c8f
2015-12-11tdf#96075 Frame alignment buttons not using correct tooltipsSamuel Mehrbrodt1-9/+17
Tooltips change on state change, and they were taken from another source. Unify this to reuse the existing strings from the uno command. Change-Id: I8ff6fc43bc0469f15c9e930695d950f6d664bfdf Reviewed-on: https://gerrit.libreoffice.org/20629 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-12-11tdf#69977: uno::Sequence is expensiveNoel Grandin9-40/+40
when used as a mutable data-structure. Plain std::vector halves the time taken to display the chart dialog Create a class to represent the std::vector we are going to be passing around, and move some of the utility methods into it to make the code prettier. Also create an optimised append(&&) method for the common case of appending small temporaries. Change-Id: I7f5b43fb4a8a84e40e6a52fcb7e9f974091b4485
2015-12-11sw: clean up no longer needed SwViewShell::isTiledRendering()Miklos Vajna4-13/+13
Change-Id: Icd719c461613f8c59cad81b256678307f69974e1
2015-12-11tdf#34774: enabled double click in input list field dialogOliver Specht1-0/+1
Change-Id: I4a08016859b0afa95d8bf3a42be41bbe72c31570 Reviewed-on: https://gerrit.libreoffice.org/20623 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
2015-12-11tdf#34375: resizing of drawings with shift key fixedOliver Specht1-1/+1
Change-Id: Ibd3b0e76484cf22a8d36f457f4b3c398ed1b85d1 Reviewed-on: https://gerrit.libreoffice.org/20602 Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
2015-12-10writer: Defer update, until post first render to avoid flicker.Michael Meeks2-1/+10
Change-Id: Ib16f5b345901adc7036a8a90d0f46aa3499d66ae
2015-12-10tdf#94816: fixed some problems in the mail merge wizardOliver Specht3-3/+6
Some disposeAndClear have been added as calling dialogs in the wizard like select address list, new address list, match fields crashed in dbg build in shutdown because the dialogs were still alive. The wizard is now deleted on Cancel which didn't work anymore. The timeout of the preview control of page 5 has been changed as the preview didn't even appear on Windows in a debug build The timeout handler was called after the wizard has been closed and lead to a crash. Change-Id: I9cd01f39347744bda31a312f695d27eefa077721 Reviewed-on: https://gerrit.libreoffice.org/20489 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
2015-12-10loplugin:nullptr: More NULL -> nullptr automatic rewriteStephan Bergmann1-1/+1
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
2015-12-09Use unique_ptr out-arg to in SfxBindings::QueryState to avoid mem leaksStephan Bergmann2-13/+7
Change-Id: I35df02de675068478a36ef05266ffc2d3054b07f Reviewed-on: https://gerrit.libreoffice.org/20477 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-12-07Let LIBO_INTERNAL_ONLY imply LOK_USE_UNSTABLE_APIMiklos Vajna2-2/+0
Change-Id: Ifbed5e534ba79d32b7188bb7fb7108338b6e124d
2015-12-05silence vcl release mouse warningCaolán McNamara1-1/+2
Change-Id: I12eb894d88c7b96f92e3d080ac3cf24ff2e025ec
2015-12-03uno:Sequence->std::vector in SmartTagMgrNoel Grandin1-2/+2
Change-Id: I163f7d6c0f30ac2929df1cae202e695d21bb49fc
2015-11-30loplugin:unusedfieldsNoel Grandin1-18/+0
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
2015-11-26loplugin:unusedfields variousNoel Grandin4-7/+2
Change-Id: I18f94269a1172cf195ee402384f7144610e1e82d
2015-11-26tdf#93837 Add UNO-based SmartTag menu controllerMaxim Monastirsky6-327/+26
... and use it for the standalone context menu. The sfx2 controller (SvxSmartTagsControl) is still used for the submenu variation, and is due to be removed after the new context menu implementation is in place. Change-Id: I2f889428eb777149f43d74cf3d081e19ab0ebb4a Reviewed-on: https://gerrit.libreoffice.org/20169 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-11-25coverity#1340229 try and silence Resource leakCaolán McNamara1-12/+9
Change-Id: I5babf6365c50b7c5ad58cdb74729b9a8ac1c4ebc
2015-11-25bin/rename-sw-abbreviations.shlibreoffice-5-1-branch-pointRobinson Tryon114-2180/+2180
This commit renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I77e5134f42f25e3786afa36b7a505c7e3237a9e8
2015-11-24sw lok comments: avoid crash an exit after clicking the scrollbarMiklos Vajna2-0/+6
Without this, vcl::Window::ImplTrackTimerHdl() will be called on a deleted vcl::Window. Can be reproduced with a comment having a scrollbar in a LOK client, then clicking on the down button of the scrollbar a number of times -> crash on exit. Change-Id: I5d67f96e8baa199f65ec5cf39cb5d39c8162ff33
2015-11-24sw lok comments: implement drag of the scrollbarMiklos Vajna3-5/+11
With this, if a comment has a vertical scrollbar, then not only the buttons of the scrollbar can be clicked on, but also the slider of the scrollbar can be dragged. Change-Id: I2e39e18bf60c42a878bb8bfd808f1d47be27eecb
2015-11-24loplugin:unusedfields in include/comphelper,include/editengNoel Grandin2-128/+128
Change-Id: I619c2cf1765df97159fc52ee84e0e9e8d16a22fe
2015-11-24sw lok comments: fix missing invalidations from the scrollbarMiklos Vajna3-1/+117
If a comment had a scrollbar, and the user clicked on the down arrow of it, then the button remained in the "pushed" state, as the scrollbar invalidations were not routed to the LOK client. With this, the button gets back to its non-pushed state after the mouse button is released. Change-Id: Ie4ba5d0ec07229b0cfc08532e8e91ae25f7a4c9e
2015-11-24loplugin:unusedfields in sw/Noel Grandin1-3/+0
Change-Id: I0d9c79d0756ef85260d3b69cb1e879d7665bf356
2015-11-24loplugin:unusedfields in sw/Noel Grandin10-22/+2
Change-Id: I975f35031b1833be376881d534dc6f91fae6072f
2015-11-24loplugin:unusedfields in sw/Noel Grandin5-40/+18
Change-Id: I3e146c4287df70bbf58443caecfa62453c116ecb
2015-11-23loplugin:nullptrStephan Bergmann1-1/+1
Change-Id: Iefd6d4a08a4a5f90f4f2f95889f6425aabe61334
2015-11-23sw lok comments: handle mouse up/down events on the vertical scrollbarMiklos Vajna1-10/+45
Change-Id: Ib1c334825a6629224fe0c8fba564656d53e67410
2015-11-23VirtualDevices either match another device depth, or are 1 bitCaolán McNamara1-1/+1
cairo can therefore always render to a svp virtual device with need for a fallback Change-Id: I5d03ae541820389e26f7448444444be009fb28a4
2015-11-23establish that Virtual Devices either match Physical Device depth or ...Caolán McNamara1-2/+2
are 1 or (rarely) 8 bit and lock that down. Change-Id: I3d946ebef34ffb71c5adea7aa420af50e9584e05
2015-11-23sw lok comments: fix vertical scrollbar with custom zoomMiklos Vajna1-2/+3
With this, if a comment has enough content that it gets a vertical scrollbar, then tiled rendering output looks OK, even with non-100% zoom. Change-Id: I699aadc11b6c34fb0791e70705719fd61169d972
2015-11-20sw lok comments: implement painting of the vertical scrollbarMiklos Vajna1-0/+14
This one is special, as normally its map mode is in pixels, but we need all sub-widgets to work in twips when tiled rendering. With this, the scrollbar widget (both the buttons and the button/background area of the scrollbar itself) is painted at the correct location when Writer comments have enough content so the scrollbar is visible. Change-Id: I4ee9ef8618974b965339078d2262364ec19732ef
2015-11-19sw lok comments: optimize sidebar text control invalidationMiklos Vajna1-15/+19
Instead of invalidating the whole area, invalidate the sub-widget when the whole area of the sub-widget would be invalidated. With this, a test comment with enough comment to have a scrollbar results in 3 paintTile() calls instead of 11 ones (70% save). Change-Id: I2fe317549eefac9a63aaf50f5a9a242e15c4dc86
2015-11-19loplugin:sallogareasStephan Bergmann1-2/+2
Change-Id: I2220ab194384fb397716bf3227d38716ba54f537
2015-11-19sw lok comments: don't paint hidden comment sub-widgetsMiklos Vajna1-5/+3
Change-Id: Ia513821b43729951c7b097fea498f0e22b9d10ea
2015-11-18sw: handle arguments in SwXTextDocument::initializeForTiledRendering()Miklos Vajna1-1/+7
Change-Id: I19efc6050c78162e0889437d4c8285d1a6714e82
2015-11-18vcl::ITiledRenderable::initializeForTiledRendering: support init. argumentsMiklos Vajna1-1/+1
Change-Id: I9a6a75457078dc6383673f4c1a2012b69b5cefdd
2015-11-18Unify menu-based toolbar controllersMaxim Monastirsky1-2/+0
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-17sw lok comments: implement clipboard copyMiklos Vajna1-0/+12
Change-Id: I0f45b1a6ab198a8403073eea05497e76f758250c
2015-11-17sw lok comments: fix meta author/data size with custom zoomMiklos Vajna1-2/+3
Change-Id: I3310813c971aa7abffccc0b7f462e05caa83482e
2015-11-17sw lok comments: fix comment widget width with custom zoomMiklos Vajna2-4/+5
When tiled rendering, then only the render context (or failing that, SwViewShell::GetOut()) has the correct zoom level, so use that when doing pixel-to-logic conversion or scaling pixel values. Change-Id: I265a642b8253c6eced42da2a0e06a2de25c36ca8
2015-11-17An SwMailMergeConfigItem_Impl instance per SwMailMergeConfigItem looks sanerStephan Bergmann2-244/+227
...than fixing the avalanche of loplugin:staticmethods issues caused by b5eaa0f9f00cd62f4769c3e8860d788844ccf557 "use unique_ptr for pImpl in sw/," given that SwMailMergeConfigItem_Impl has mutable state? Change-Id: I342511d0f39086f33e2a8abd2c377341455d54a7
2015-11-17loplugin:unnecessaryvirtualNoel Grandin1-1/+1
update the plugin with lessons learned from the mergeclasses plugin and re-run it Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711 Reviewed-on: https://gerrit.libreoffice.org/20015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>