summaryrefslogtreecommitdiff
path: root/sfx2
AgeCommit message (Collapse)Author
2013-05-30bnc#805901: Lock WebDAV document that is opened for potential modificationTor Lillqvist
Really horrible fix, breaking all rules of proper abstraction etc. Basically, two parts: 1) When opening a document over WebDAV, in Content::execute(), lock it too. This is simple. With just this change, the WebDAV resource gets locked but it stays locked for the rest of the soffice.bin lifetime, even if the document is closed much earlier. This also means you can't re-open it without re-starting LibreOffice... The NeonLockStore (which is effectively a singleton, as the only object of this type that exists is the static NeonSession::m_aNeonLockStore field) destructor takes care of blowing awway the locks when the process exists. So obviously that is not good enough. Thus a second part is needed: 2) Then closing a document, over in SfxObjectShell::Close(), do a horrible trick: look up the ucpdav1 module, and if it is loaded, look up the NeonSessionUnlockByUri() function in it, and call it, passing the document's URI. That function, in NeonSession.cxx, looks up the NeonLock for the URI, and if it exists, unlocks it, and removs the lock from the NeonLockStore.
2013-05-09fdo#64211 replace "%2F" to "/" in online (wiki) help URLsAndras Timar
It is not possible to create wiki pages with URLs that have %2F in them. Help URLs contain %2F, when invoked from dialogs that are based on .ui files, it seems this is the new HID syntax. For example for Zoom dialog LibreOffice used to call http://help.libreoffice.org/simpress/cui%2Fui%2Fzoomdialog%2Fzoomsb and it did not work. Now it calls http://help.libreoffice.org/simpress/cui/ui/zoomdialog/zoomsb and it works. Signed-off-by: Miklos Vajna <vmiklos@suse.cz> Conflicts: sfx2/source/appl/sfxhelp.cxx Change-Id: I163cf8ec3b69f31eadbbd9085d2180839fe91e07
2013-05-07fdo#63659 <sigh> fix brain lapse, missing breakNoel Power
Change-Id: I02ab972cfad577423585d25587b925b5b1153506 (cherry picked from commit ad57664323e3ddf04ae99dba14ddaa22da2aacba) Reviewed-on: https://gerrit.libreoffice.org/3551 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-07fix fdo#63659 restore handling of ZOOM MID, MID_VALUESET & MID_TYPE sub parmasNoel Power
Change-Id: I01eff3bb8b194e1437a263e527cb8e6d2defa4de Reviewed-on: https://gerrit.libreoffice.org/3458 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-01Merge tag 'libreoffice-4.0.3.2' into suse-4.0Petr Mladek
Tag libreoffice-4.0.3.2 Conflicts: basic/qa/cppunit/test_vba.cxx basic/source/runtime/step2.cxx dictionaries helpcontent2 instsetoo_native/util/openoffice.lst libvisio/UnpackedTarball_visio.mk sc/source/ui/vba/vbaapplication.cxx sc/source/ui/vba/vbavalidation.cxx solenv/inc/minor.mk sw/qa/extras/ooxmlimport/ooxmlimport.cxx translations Change-Id: Ic1f06489175f3db92d6bbcebb9732fadc1c61fed
2013-04-30MSVC: member of dll interface class may not be declared with dll interfaceTor Lillqvist
Change-Id: I751832d8725354cebd892738fa80fd7bc5e43925
2013-04-30bnc#816516: Implement easy access to the recent documents.Jan Holesovsky
This adds a dropdown to the 'Open' toolbar tool. Change-Id: I5b4aa99476e721c1479152b46bbc79cc0b095318
2013-04-30Kill unused SfxHistoryToolBoxControl_Impl.Jan Holesovsky
Change-Id: I03655bb502d6480d8f7f3f1adef17d8f635b8ed9
2013-04-15Remove thumbnail from local view if we erase it throught the search view.Rafael Dominguez
Change-Id: I3ec486313bedcc633b020a2feea3d30730da98f0 Reviewed-on: https://gerrit.libreoffice.org/3354 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-15Set Template Manager dialog minimum size.Rafael Dominguez
Change-Id: I2d30bf2c3fb33b8297477f80704aa057911a2bba Reviewed-on: https://gerrit.libreoffice.org/3353 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-13Initialize nFilterJulien Nabet
Change-Id: I9a8606a0d6ca36fd6f51267ea385f7fbe874d6d5 (cherry picked from commit 9f27436b84a1ae0ce2689ef27f81698ab9f3642e) Signed-off-by: Eike Rathke <erack@redhat.com>
2013-04-10fdo#61389 - Display Properties, Set as default actions in save mode.Rafael Dominguez
It dosent make sense to display delete action since we are saving a template same for edit. Change-Id: I83368f80a29f60c8d24b47fe3682ca93a2373a98 Reviewed-on: https://gerrit.libreoffice.org/3301 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-10Display correct region name in error messages.Rafael Dominguez
Change-Id: Icf4149272f67df6681bdad711362dd7d3802d04a Reviewed-on: https://gerrit.libreoffice.org/3300 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-10Fetch thumbnails position and id from filter array instead."Rafael Dominguez
Change-Id: I35bd8b47eeba3e2f8e2ea74afbf1fe8e48390bab Reviewed-on: https://gerrit.libreoffice.org/3299 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-10Update template item path when moving it to another folder.Rafael Dominguez
Change-Id: I4de701e32dfe1244ba29704633d7d15f829a9e7a Reviewed-on: https://gerrit.libreoffice.org/3298 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-10Mark thumbnailview item as unselected when updating filter.Rafael Dominguez
Change-Id: Ifc98603045364419a6f76316fea96c2e668c333e Reviewed-on: https://gerrit.libreoffice.org/3297 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08fdo#61390 - Thumbnail navigation by shift-click and shift-keyboard.Rafael Dominguez
Change-Id: I0b107d0918e1914709de31fd52cd11480e7fd419 Reviewed-on: https://gerrit.libreoffice.org/3260 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Avoid generating filter list several times.Rafael Dominguez
- Only generate the list after applying a new filter function. - Append item directly to the filtered list if its allowed when appending a new item to the thumbnailview. Change-Id: I408785507ef94908d31e4373b407e9d443f72895 Reviewed-on: https://gerrit.libreoffice.org/3259 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Dont show import action while in save mode.Rafael Dominguez
Change-Id: Iafe814382ed1b52c9119893851c98bd15812fa60 Reviewed-on: https://gerrit.libreoffice.org/3258 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08fdo#60844 Remember last open folder and filter in Template Manager.Rafael Dominguez
Change-Id: I4513428e10aad9b8b5c0d739bd763fb2a1f0bf81 Reviewed-on: https://gerrit.libreoffice.org/3257 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Position view below toolbox and search bar when resizing Template dialog.Rafael Dominguez
Change-Id: I94806487f4cebde965652997a595c7263d710338 Reviewed-on: https://gerrit.libreoffice.org/3256 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Dont reload template information after saving.Rafael Dominguez
Change-Id: Ib75bd4561581254f690e6dd4a2b83343c99d65af Reviewed-on: https://gerrit.libreoffice.org/3255 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Display empty folders in Template Manager.Rafael Dominguez
Change-Id: I1cab8c78dc6dc3f1969cd2e4e8bcda0b684a4caa Reviewed-on: https://gerrit.libreoffice.org/3254 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Make template thumbnail sizes appropiate to the content in them.Rafael Dominguez
Change-Id: I785a351a5a936a42b56081a868c01d97e0a6105f Reviewed-on: https://gerrit.libreoffice.org/3253 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Calculate template thumbnail subtitle position to fit drawing area.Rafael Dominguez
Change-Id: Ieaf067f5182c9dc690d028cdc6ba5bc28ac8436f Reviewed-on: https://gerrit.libreoffice.org/3252 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Deselect items when searching for templates to reset toolbars.Rafael Dominguez
Change-Id: I762762f5684287d06a046aca6d7160bce10e3653 Reviewed-on: https://gerrit.libreoffice.org/3251 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Deselect templates when closing the search view.Rafael Dominguez
Change-Id: If187b154a023a9364b6775270ce4c24377a98524 Reviewed-on: https://gerrit.libreoffice.org/3250 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Show search and extra buttons when a template is selected.Rafael Dominguez
Change-Id: Ia3e97f3f540ab07725ae3871251aefe4ba3d5e2d Reviewed-on: https://gerrit.libreoffice.org/3249 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08fdo#60581 Import templates into current directory.Rafael Dominguez
Change-Id: I3dfec069c606e61fc49b44e36602804054ca1bca Reviewed-on: https://gerrit.libreoffice.org/3248 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08fdo#60581 Display import templates only when its allowed.Rafael Dominguez
Change-Id: Iefe4fdd1484389d0bbbccecdca49e4c0061ec81e Reviewed-on: https://gerrit.libreoffice.org/3247 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Display create template folder only when its allowed.Rafael Dominguez
Change-Id: I892cfd88907ac4588e882e3a89c4feb200ce6744 Reviewed-on: https://gerrit.libreoffice.org/3246 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Update search results when changing template type in Template Manager.Rafael Dominguez
Change-Id: I52f79b5963e331332f02974dc739d631b9c359eb Reviewed-on: https://gerrit.libreoffice.org/3245 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Filter search results by type and keyword in Template Manager.Rafael Dominguez
Change-Id: I612b0b87340a50f0e5ec69ec4e8b2beba13cab36 Reviewed-on: https://gerrit.libreoffice.org/3244 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Get the correct region id view when saving a template.Rafael Dominguez
Change-Id: If3a75fa2d64dd1c912bfa9a7f3ea96e5fd80e594 Reviewed-on: https://gerrit.libreoffice.org/3243 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Fix moving selected search results in Template Manager.Rafael Dominguez
Change-Id: I577f7cc9f56f5309cd6ebccdc73b4072a4ee91a3 Reviewed-on: https://gerrit.libreoffice.org/3242 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Fix exporting selected search results in Template Manager.Rafael Dominguez
Change-Id: I60e517807fec797a99d2f182e41731d515d30dcc Reviewed-on: https://gerrit.libreoffice.org/3241 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Delete the correct template from the selected search results.Rafael Dominguez
Change-Id: I4a594e3c35d4c68da51421c92247b6687d163fe5 Reviewed-on: https://gerrit.libreoffice.org/3240 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Fix deleting templates through Template Manager.Rafael Dominguez
Change-Id: I79c16eb264d957b510a8bf8ee2009e1f55190a0b Reviewed-on: https://gerrit.libreoffice.org/3239 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-08Separate template region ids from thumbnail ids.Rafael Dominguez
- Update all actions to use the new system. Change-Id: I8aa09a3317eff4cb083c8fc151ea2f93a5a971fe Reviewed-on: https://gerrit.libreoffice.org/3238 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-03raise warning when saving macro laden doc as a macro-free format bnc#791777Noel Power
Change-Id: Ic947ceef71c86e31fbf0bce74b064aaf91f47178 (cherry picked from commit ec583253c3d761847c93a77fa10c065fc334fab9)
2013-04-02coverity#441020 Dereference after null checkJulien Nabet
Change-Id: I39c301a98854d19e849a9e06ffac0657408456fe (cherry picked from commit cab7f6476f7d0f17bf2f1400bf93fb1b7fbd1625)
2013-03-28quickfixStephan Bergmann
Change-Id: Ida36d96982d869553452c8240da7dec363cee4b4 Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
2013-03-28Syncronize thumbnails ids with SfxDocumentTemplates when moving.Rafael Dominguez
Change-Id: I9ee17e00f769ca16f566b1397d09b76a09273912 (cherry picked from commit dda5fe60ff6dfd61f5f262c61e1d538d20e9c978) Reviewed-on: https://gerrit.libreoffice.org/3091 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-03-28Fix template manager item selection behaviour with mouse.Rafael Dominguez
Change-Id: Icf63454973b4044443eea1cc583fce3a78c5594d (cherry picked from commit 28d5ced7f9982257d263ffc3e550bd479a9542f8) Reviewed-on: https://gerrit.libreoffice.org/3090 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-03-28Deselect thumbnailview items when clearing the view.Rafael Dominguez
Change-Id: I8aa3f61d3ec7a8bf6195c5480b82d1dc1ecabc34 (cherry picked from commit 1c9f13f921cb5bf955b8568ffb5d14047738eef9) Reviewed-on: https://gerrit.libreoffice.org/3089 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-03-28Merge TemplateView into TemplateAbstractView class.Rafael Dominguez
Refactor TemplateView class into TemplateAbstractView so we only have one class that display template thumbnails and not a separate for folders and another for files. This will let us in the future be able to display file system hierarchies in case of the remote repositories and simplify the view handing logic. (cherry picked from commit 448cc5e851acf5136bba01974e570fa0554d0371) Conflicts: sfx2/Library_sfx.mk sfx2/inc/sfx2/templateabstractview.hxx sfx2/inc/sfx2/templateview.hxx sfx2/inc/templatedlg.hxx sfx2/source/control/templateabstractview.cxx Change-Id: Iafc246eeff4c50c12ac9ebec9fe95dcc84991e9e Reviewed-on: https://gerrit.libreoffice.org/3088 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-03-28Templates Manager: merged the Double Click Handling into TemplateAbstractViewCédric Bosdonnat
(cherry picked from commit 8a2bfe697bf71c8a2ca3c6ba1ef5e6324d4163aa) Conflicts: sfx2/inc/sfx2/templateview.hxx sfx2/source/control/templateabstractview.cxx sfx2/source/control/templatelocalview.cxx sfx2/source/control/templateview.cxx Change-Id: Iafc1650d57d29fbc24921498f18da6c0e510b37a Reviewed-on: https://gerrit.libreoffice.org/3087 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-03-27fdo#61429: Stylist: save selection of "Hierarchical" entryMichael Stahl
This is unfortunately rather ugly because that one is "very special". (cherry picked from commit 44dd8b838b8dfa74b895a870a68200cf4f3574e0) Conflicts: sfx2/source/dialog/templdlg.cxx Change-Id: Ie2bc9ce2690fbc742b4510e453ca1ef310614256 Reviewed-on: https://gerrit.libreoffice.org/3056 Reviewed-by: Christoph Brill <egore911@gmail.com> Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-03-26fdo#62659: only select items in ThumbnailView on TabStopCédric Bosdonnat
Change-Id: I024df8520f0daf2cc2e9e5f041e1ff18cb3689ec (cherry picked from commit f8a3582d4cbcf6a705f724b921e370c739ecee35) Reviewed-on: https://gerrit.libreoffice.org/3034 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-03-26fdo#61390: allow arrow keys to show hidden thumbnail itemsCédric Bosdonnat
Change-Id: I70924b4c9578122a1c5a5b6c8a67889d6d003a2e (cherry picked from commit cc599e914e7ade9f10da460fc1c77ea07454d7ff) Reviewed-on: https://gerrit.libreoffice.org/3033 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>