summaryrefslogtreecommitdiff
path: root/sfx2
AgeCommit message (Collapse)Author
2016-01-11PCH support on LinuxAshod Nakashian
Fixes and improvements to support Precompiled Headers on Linux. Change-Id: I8145c146b0dba56c7a4d0fdf9c330164b67ada53 Reviewed-on: https://gerrit.libreoffice.org/21307 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-10tdf#95505 Dump usage stats to text fileAybuke Ozdemir
1de031c94b2ef9c4ae45a8906b250a95d3c47c47 Change-Id: I1de031c94b2ef9c4ae45a8906b250a95d3c47c47 Reviewed-on: https://gerrit.libreoffice.org/20413 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org> Tested-by: Jenkins <ci@libreoffice.org>
2016-01-08SfxTemplatePanelControl doesn't have to be a DockingWindow anymoreCaolán McNamara
so we can drop one more DockingWindow from .src files leaving just one left Change-Id: I2e12398ce7682193aace966ebb8d153ec9acea2e
2016-01-08Float is never a SfxDockingWindow anymoreCaolán McNamara
Change-Id: I22ddb6416c48ab72bf3ee4a7e7d664bfd0dd51f1
2016-01-08implement the style pane right toolbar the same as the left toolbarCaolán McNamara
Change-Id: I1a031facad52afbc84b06610f9bdd0a9f118ebeb
2016-01-08Bump copyright year to 2016Adolfo Jayme Barrientos
Change-Id: Ifbd88aa55d5aa32a7b8dc11d7ac0310d0ef1e5d1
2016-01-06tdf#96926 Restore still used stringsMaxim Monastirsky
Regression of 7dd77a12713c0557c5826d3541e97ef6120e1d00 Change-Id: I7f4bb251b831c9f5ee9e3c6ae2f9b1b8f7c34686
2016-01-05Make SotFactory private to sot/ and clean a bitMatúš Kukan
Change-Id: Ia683280a3e95eee995e036db6bde5d28852f92ff
2016-01-05tdf#91065 Support localization of Properties dialog titleArul
Having a place holder for substituting the file name instead of concatenating it in Properties dialogue title. Change-Id: I8b3bafbc95c857fa5957bfdafbded5dde94e0e64 Reviewed-on: https://gerrit.libreoffice.org/21107 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-05tdf#94205: Use o3tl::make_unique insted of new+std::move.Sheikha AL-Hinai
Change-Id: I9ff14760479d2ac882546e2e5b74ab750ba2fa4b Reviewed-on: https://gerrit.libreoffice.org/20984 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-01-04Remove two pointless DBG_ASSERTs "There is no Dde-Service"Tor Lillqvist
Avoid hundreds of presumably pointless warning messages in some unit tests at least. The code explicitly checks and handles the asserted condition not being true right after the DBG_ASSERTs. Change-Id: I5482c56aeeadb8f85dfdd03e12960abd7e769c56
2015-12-27sal_uLong/sal_uIntPtr/sal_uInt16 to sal_uInt32Matteo Casalin
also avoid some explicit temporaries and group some checks. Change-Id: I7795b208dde53fd383b8c75f72dd9f56429aea2b
2015-12-24loplugin:unnecessaryvirtualNoel Grandin
and unwind some apparently now unused VCL OpenGL and GlyphCachePeer stuff. Change-Id: Ic85302d4e1ad4056dabc49c97a608891052e3167 Reviewed-on: https://gerrit.libreoffice.org/20920 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-23loplugin:unreffunMaxim Monastirsky
Change-Id: If2ad0e252d2cfa204564b86cb2c6d0886d5fa107
2015-12-23New saving behaviorMaxim Monastirsky
Changes in this commit: - AlwaysAllowSave config is gone. Saving is always permitted, unless in a read only document. Also changed the behavior in dbaccess to match sfx2. - The toolbar save button is always enabled, to always give access to the dropdown. That's the case even in a read only document, except that it changes to DROPDOWNONLY, and the save as command icon+tooltip. In table/query designers we still disable the button in read only state. - When the document is modified, the toolbar button gets a special icon to indicate that. TODO: - Icons for the document modified state are still missing. I added some fake links to Tango's links.txt in order to test the new behavior. These links shouldn't stay as-is in a production version! Change-Id: I56c169bf48b78faaf53c2989ce8624f8297ffb6e Reviewed-on: https://gerrit.libreoffice.org/20839 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-12-23loplugin:unusedfields in /includeNoel Grandin
Change-Id: Ia406e727890a365cc89831c96140cad8240f9b61
2015-12-21loplugin:unusedfields in sfx2,slideshow,starmath,stocNoel Grandin
Change-Id: If3622b23c45dd3a2a4e9869452142d1f6b47919e
2015-12-21loplugin:unusedmethodsNoel Grandin
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
2015-12-20sfx2: SAL_WARN on the early error returnMichael Stahl
Change-Id: I77269323a54309658d959adc3076f0d7af0353ce
2015-12-18LOK: get feedback for all of the font/back color commandsMihai Varga
Change-Id: Id4aac707666420752b985bcfd03b5b9bb99f79f1
2015-12-18tdf#93837 sfx2: Allow loading xml menus by resource nameMaxim Monastirsky
Change-Id: Ibaeeb0f891017862578440ad874f2ceb91d11874
2015-12-18related tdf#96398 pull out more NPAPI-related codeThorsten Behrens
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 Monastirsky
Change-Id: Ic314bc04a22ebf23fa7b06dca06e4d2afae096f9
2015-12-17[API CHANGE] Remove NPAPI-related UNO APIThorsten Behrens
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-17Fix creation of infobarSamuel Mehrbrodt
Fallout from 7dd77a12713c0557c5826d3541e97ef6120e1d00
2015-12-17gtk3+wayland: start floating windows hiddenCaolán McNamara
once they are visible we can't move them under wayland, so start then hidden, move them and then show these floating windows are very delicate. Change-Id: Ia233c23f25cec453df79ef70cab6210dbdd280a0
2015-12-17Remove unused ToolPanel (aka TaskPane)Samuel Mehrbrodt
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-16sfx2: clean up no longer needed SfxObjectShell::isTiledRendering()Miklos Vajna
Change-Id: Ia4fb0b489509364c641f8e1e695353bbdb036b59
2015-12-15fix missing BaseURL when loading embedded objectsMichael Stahl
When the object is edited in the UI, the m_xClient is set to a SfxInPlaceClient and the DocumentBaseURL is retrieved from it. But if the object is not edited, it will be loaded during export via the API and without a m_xClient; in this case the DocumentBaseURL must have been set previously to be available during import. There appears to be no way to get the URL of the document via the API while it is being imported; SfxBaseModel's m_sURL is unfortunately only initialized from SfxObjectShell::FinishedLoading(). During ODF import, the SvXMLEmbeddedObjectHelper creates the embedded object, so let's make it pass in the parent's BaseURL. The "DefaultParentBaseURL" parameter already exists but was unused previously. Change-Id: I3d1ed29b3a2c0e77ec606a1d09f7bc07e7860733
2015-12-15sfx2: fix valgrind warningMichael Stahl
==7727== Conditional jump or move depends on uninitialised value(s) ==7727== at 0x9121E24: SfxDockingWindow::Resize() (dockwin.cxx:451) ==7727== by 0x3CADFAC3: SmElementsDockingWindow::Resize() (ElementsDockingWindow.cxx:753) Change-Id: Ie6e8a61f6c295373e5ccad409e2557e7c2dd6c1a
2015-12-15tdf#95792: fix saving file the first time on some WebDAV servers.Giuseppe Castagno
Some WebDAV servers don't implement section 7.3 of RFC4918: <http://tools.ietf.org/html/rfc4918#section-7.3> This lack of implementation breaks 'Save As...' functionality when the target is a WebDAV server, by not locking the URL ('reserve the name for use', in RFC4918 parlance). The server not implementing this usually answers with one of '405 Method Not Allowed', '501 Not Implemented' or '412 Precondition Failed' http error codes. The fix should manage this lack of implementation. Change-Id: Ie4689a076aafa365106d02b3ea16459a28fcde65 Reviewed-on: https://gerrit.libreoffice.org/20600 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-12-15Bin silly 'STATIC DATA' commentsTor Lillqvist
Change-Id: I50e3772b7b479d2cf1eb644c7334d0f987874ccb
2015-12-14Related: rhbz#1289394 always provide the screen area the tip applies toCaolán McNamara
this will make it easier to implement native help tips Change-Id: I984dfadaf02e9b7bf542ba82cf070911c89cb699
2015-12-13tdf#93837 Adapt sfx2 to use xml based context menusMaxim Monastirsky
Change-Id: I71aaa98e9cf022b53cc094418bc09fb385af55ce
2015-12-11Return std::unique_ptr from svt::AcceleratorExecute::createAcceleratorHelperStephan Bergmann
...to prevent errors like 5ac6e00274e732435b55c2908db9cea658fe549b "Memory leak" Change-Id: I3e20393af628849d8a387b491b75e1aacdea982a
2015-12-11tdf#69977: uno::Sequence is expensiveNoel Grandin
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-10Memory leakStephan Bergmann
Change-Id: Ica40750d628946678019376d91db67ba3f9ed67e
2015-12-10loplugin:nullptr: More NULL -> nullptr automatic rewriteStephan Bergmann
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
2015-12-09Use unique_ptr out-arg to in SfxBindings::QueryState to avoid mem leaksStephan Bergmann
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-08Missing deleteStephan Bergmann
Change-Id: I8ba75fcd2f98a49fe9d620af6b248f32911d7fe8
2015-12-07tdf#74834 Expert Configuration option to disable thumbnails in StartCenterPierre Sauter
If Office::Common::History::RecentDocsThumbnail is set to false, no new thumbnails will be created and stored to registrymodifications.xcu. Existing thumbnails in registrymodifications.xcu or the documents will not be read and displayed. Change-Id: If9527aa0d336a6b77b4c9bb0cc09143ffa1725d8 Reviewed-on: https://gerrit.libreoffice.org/20338 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-12-04sfx2: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
Change-Id: Ic5aed60d40d0e1cd4c227032bc4cf9adbd7be00a
2015-12-03Resolves: tdf#95960 displaced field value in user-defined propertiesCaolán McNamara
Change-Id: Idc9e8fd0c35de48a2366dca3850bcc4e69ef997f
2015-12-02tdf#96162: sfx2: avoid re-creating existing sidebar PanelsMichael Stahl
Writer's naviagtor crashes when you click on a frame to select it, because the SwContent* that is passed to SwContentTree::GotoContent() is deleted because SidebarController::CreatePanels() re-creates every single panel and then ResetPanels() disposes the existing ones, which deletes the naviagtor's SwContent instances. (regression from 536c259cb9644971d0eb0cdfb7d823c5383a5481) Change-Id: I8f875df816a2d5948026a1d3f30b86bb2418acda
2015-11-30LOK: get state change feedback for more uno commandsMihai Varga
I've also ordered them alphabetically so we can read them easier. Change-Id: Ia332f1662a91de4a4068f0056a3d969fe978a744
2015-11-26vcl: reduce pointless timer / scheduler / idle includes.Michael Meeks
Change-Id: I8bf7f8d6ba1a54f2969e055956fadc52ff6c8673
2015-11-26mark UNO structs as SAL_WARN_UNUSED, where possibleNoel Grandin
Change-Id: Ie3de518f60c9f1313c68df54dbdc1fb2804f1f0d
2015-11-26tdf#93837 Add UNO-based SmartTag menu controllerMaxim Monastirsky
... 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-25tdf#96059 Replace imageproducer with CommandInfoProviderSamuel Mehrbrodt
Change-Id: I9508a947e5ae6720516d9f926a59d4287cb15317 Reviewed-on: https://gerrit.libreoffice.org/20166 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>