summaryrefslogtreecommitdiffstats
path: root/sfx2
Commit message (Collapse)AuthorAgeFilesLines
* tdf#85767: Make also sidebar toolbox item order RTL-sensitiveKatarina Behrens2015-11-031-2/+28
| | | | | | | | | | | | | | do more-less the same as 2fd93f19cf6c1ce808214c does for main app toolbars Change-Id: If271bbb049915f4201fbce2ea587b753940a8de7 Reviewed-on: https://gerrit.libreoffice.org/19451 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com> (cherry picked from commit 07f75f6e645eca4825541f57e9d5e9479a17c559) Reviewed-on: https://gerrit.libreoffice.org/19728 Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 5a5963b2f1b108db4f0089f41db74b673ba038af)
* LOK: font/back color callback - use sal_Int32 instead of longMihai Varga2015-10-291-1/+1
| | | | Change-Id: I2e2ebc5a12794e9641a6195f07fa4b2d1a7369a9
* LOK: font/back color feedbackMihai Varga2015-10-291-0/+7
| | | | | | This is used to know the current font/back color Change-Id: Ic524fcb5c26e1c15ec9c50b2879465152ac8ee34
* tdf#95095: Rename "AvoidRecentDocs" to "PickListEntry" for consistency.Jan Holesovsky2015-10-212-3/+3
| | | | | | | | | | It turns out that Base already has a similar property called "PickListEntry". Let's make it consistent then, and rename "AvoidRecentDocs", so that it works in all the apps the same way. So instead of setting "AvoidRecentDocs" to true, set "PickListEntry" to false. Change-Id: Idf0dd8e8892218f387944f0ad43b292c4b052be6
* lok: Avoid adding to recent documents completely.Jan Holesovsky2015-10-211-5/+5
| | | | Change-Id: I292281e300e8976bf5ae286262a6a3e20de41858
* tdf#95095: Implement "AvoidRecentDocs" property for loadComponentFromURL().Jan Holesovsky2015-10-214-51/+32
| | | | | | | | | | | | | When "AvoidRecentDocs" is set to true, the loaded document is not added to the recent documents list, avoiding the (a bit expensive) thumbnail creation. Useful when loadComponentFromURL() is called from macros, or when LibreOffice is controlled via UNO. See the bug for an example. Conflicts: sfx2/source/doc/objxtor.cxx Change-Id: I99d516cae8b278199a01276686465f716b9b4cec
* START CENTER: Set new open remote file icon and labelYousuf Philips2015-10-191-3/+7
| | | | | | | | | | | | Reviewed-on: https://gerrit.libreoffice.org/19178 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com> (cherry picked from commit e495bf390cc8cef5ec7c66febac92f1477e3b92d) Conflicts: sfx2/uiconfig/ui/startcenter.ui Change-Id: I7bede0cb520f446582d01bc0e5f583ddf4655ce0
* RemoteFilesDialogSzymon Kłos2015-10-1811-26/+208
| | | | | Change-Id: I296ce6233287dac5447462faa4b7404c25297f8b (cherry picked from commit 87297284782adbf1fcb73663ad2d2a38b5ae1872)
* tdf#92217: The infobar text should have a transparent background...Jan Holesovsky2015-10-171-4/+2
| | | | | | | | | | ...instead of setting background at various places. Change-Id: Idfa6a36bcb2aefbb33a7647725098f4eea0f93c4 Reviewed-on: https://gerrit.libreoffice.org/19347 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 73b38e45d1c81ee533f8c6a800079486e57e4fcd)
* sfx2: add SfxViewShell::libreOfficeKitViewCallback()Miklos Vajna2015-10-062-0/+17
| | | | | | | | | | | | | | | | | | | | This is similar to the existing LOK callback, the difference is that the existing one assumes there is only one SfxViewShell instance at the same time. This newer callback is precisely per-view, so model notifications can invoke all view callbacks, while view notifications can invoke only the callback of the relevant view. This is just the framework, all actual client code has to be still ported over (and then the existing callback can be removed). (cherry picked from commit c74ccac7cd94eba052d21cf74e03e214d58942e4) Conflicts: sfx2/source/view/viewimp.hxx Change-Id: I3d8f27740c69fcf6ffbbdce12db2ea088321493d
* SfxLokHelper::setView: check if view is already currentMiklos Vajna2015-10-061-0/+3
| | | | | Change-Id: I9cf3a4887774657e0e205114688b088fc11c6822 (cherry picked from commit 714257af17f74f8bcb5acceaebb0d0f4b3be3231)
* LOK: make getViews() be a member function of DocumentMiklos Vajna2015-10-061-2/+11
| | | | | | | | | | | Just to be consistent, as all other view-related member functions are there, too. No real impact, as only the unit test uses this so far, and it always works with a single document. Change-Id: I46f1ed8265ab95017986ab45c1b510e961192241 (cherry picked from commit a04b31c9facb08a8e38b79480b9a73bd2693cb9e)
* gtktiledviewer: use setView() before postKeyEvent()Miklos Vajna2015-10-061-1/+1
| | | | | | | | | | | | | | | Also in SfxLokHelper::setView() set the current view shell directly, GetFocus() in VCL may be a NOP for hidden windows. With this, the Writer layout dump shows that two Gtk windows can have different cursor positions correctly. (cherry picked from commit f2e55ea10676d14c6564696a0648c0edbe4bd36d) Conflicts: libreofficekit/source/gtk/lokdocview.cxx Change-Id: I81890c1d8ad7972f1194db3d5f2e9d8a39fc2f87
* Use SfxViewFrame::Current()Miklos Vajna2015-10-061-2/+2
| | | | | | | | Allows getting rid of vcl::ITiledRenderable::getCurrentViewShell(), which would do the same, just not implemented outside Writer. Change-Id: Id26ceca560fb9002dc2d5c740c411b9c4a149523 (cherry picked from commit 8cb6094447041b7fbe29bd5584b5daf9babb5cad)
* lok::Document: add get/setView()Miklos Vajna2015-10-061-0/+24
| | | | | Change-Id: Ic3bce8f01d7e048e853c063c4bce1255845c60d0 (cherry picked from commit 46588c42a546d4517b773853856b9c8f8c2e5ece)
* lok::Document: add destroyView()Miklos Vajna2015-10-061-0/+12
| | | | | Change-Id: Id9e92593217541b4123e95279019cec3c958056c (cherry picked from commit 10a0cad9d6990abac507899a34fbcdeb466187f7)
* lok::Office: add getViews()Miklos Vajna2015-10-061-0/+6
| | | | | Change-Id: Iabfb0f2a19106dc4a6bdae45f9e85d76c68a973e (cherry picked from commit 2e523afe61f76d9b065a771e558683afb701b93b)
* sfx2: add SfxLokHelperMiklos Vajna2015-10-062-0/+30
| | | | | | | | This is meant to be a class that is visible outside sfx2 (so e.g. desktop can use it later), but has access to various sfx2 internals. Change-Id: I83204963492b11c1c4a621e86528a64fba27acf3 (cherry picked from commit 58b5c13b00cd4d881e1d6313316cc621198a4b04)
* tdf#91554 OK button should be disabled initiallyMaxim Monastirsky2015-09-181-0/+1
| | | | | | | | | | Regression of eb505c259d0d7bd05d1bb5be5a14ad8613c2a9c7. Change-Id: I4623c41617d92a808513f18154a7531e6dfd5463 (cherry picked from commit fdbad6761f5634982bb7b837bb145b3bd580832b) Reviewed-on: https://gerrit.libreoffice.org/18370 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
* tdf#83546 Expand the sidebar if it's hiddenMaxim Monastirsky2015-09-181-12/+11
| | | | | | | | | Change-Id: I92620cb1439bd13efcdbafcdc584abd8d7bb4345 (cherry picked from commit e38c4105077b396b0b53e0296ae9cf142f51dd52) Reviewed-on: https://gerrit.libreoffice.org/18245 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* get feedback for style / font / font size in tiledrenderingMihai Varga2015-09-151-7/+38
| | | | Change-Id: I92fd5022a4a5736a6323732141e9ea7bafec2a44
* it's no use to check for stream status after a seekCaolán McNamara2015-08-311-7/+10
| | | | | | | | | | | seek resets failures, need to check after a read and before a seek Change-Id: Ia249e258c51af5efc838f92c4ead6237b403c701 (cherry picked from commit 170ff56b1b99ec451e9adbc9ae9c2a94dd47a692) Reviewed-on: https://gerrit.libreoffice.org/17866 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* tdf#91495 don't change tree entry height when preview is disabledTomaž Vajngerl2015-08-061-2/+5
| | | | | | | | Change-Id: Ic707f4407bb3aef5f2a7b9d13a0340c6d9afb3fe (cherry picked from commit 9f75bad228ca1f410b7a450084b02ad13745110e) Reviewed-on: https://gerrit.libreoffice.org/17178 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
* tdf#91495 add property to turn off stlye previewsTomaž Vajngerl2015-08-061-7/+16
| | | | | | | | | | | | Newly added property Office::Common::StylesAndFormatting::Preview can now be used to turn off "Style And Formatting" style preview. Change-Id: I2e01de2a74e2d295557c87022a7b745ce23b4800 (cherry picked from commit 210f42a318cbac62de835ccacbc1fc0e36f713f6) Reviewed-on: https://gerrit.libreoffice.org/17177 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
* New branding for the 5.0.Jan Holesovsky2015-08-061-3/+3
| | | | | | | Change-Id: Ifc9c0db1763f89fb7e3865f80021f57b29f47705 Reviewed-on: https://gerrit.libreoffice.org/16897 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
* Related: tdf#92392 clear workwins that point to pWindowCaolán McNamara2015-08-061-6/+11
| | | | | | | | | | before trying to destroy pWindow Change-Id: I7257096e8da2a5d6753ad2091287d63ea9ae244b (cherry picked from commit 3c6eec0d99a2bb84bd6719ad498d5de54dc959fe) Reviewed-on: https://gerrit.libreoffice.org/16832 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
* tdf#92431 Keep thumbnail for modified but unsaved docMaxim Monastirsky2015-08-062-15/+22
| | | | | | | | | | | | | | | | | | | | | | | | A regression of 1166966eb4112fdf332c656eae5082d82a3ec2f2. We need to consider 2 use-cases: 1. Protecting an existing document with a password (by overwriting the original file). In this case we don't want to generate a thumbnail from the now encrypted file, but we do want to erase the stored thumbnail and show a generic icon instead. 2. Closing a modified document without saving the changes. Here we don't want to generate a thumbnail either, because it may contain the unsaved changes, but either we don't want to replace the stored thumbnail, because most likely it correctly represents the last saved state of the document. Change-Id: Ia7b1f3dbc9fbbc2ef1d87442c1dee25306f65826 Reviewed-on: https://gerrit.libreoffice.org/16659 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> (cherry picked from commit d9c476bfbb4a8f1858c072d2fba33aa9e8e0ae92) Signed-off-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
* tdf#91362: Make "printer was modified" status persistentKatarina Behrens2015-08-062-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | To test: Scenario 1: * go to Writer -> Format -> Page * select page format and orientation, if possible a different one than the default in your env. * File -> Print -> Properties should now show those values (and not the default values from the printer) Scenario 2 (aka Scenario 2 from tdf#61186) * now go to File -> Printer settings * change page format and orientation, if possible to yet a different one than the printer default and a page one * File -> Print -> Properties should now show what was selected in Printer settings and not the format of the page Change-Id: Ibc84540f428b79dbec2587c50eefe526a62751b3 Reviewed-on: https://gerrit.libreoffice.org/16716 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit 0251e61640b94094918406b33ee7b05564409feb) Reviewed-on: https://gerrit.libreoffice.org/16808 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* tdf#90452: Templates should adhere to the recent docs colors too.Jan Holesovsky2015-08-067-20/+36
| | | | | | | Change-Id: I5df89581796eca4e48e0a305d4319e4674f8dd87 Reviewed-on: https://gerrit.libreoffice.org/16625 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#90452: The correct color for the message when there's no recent file yet.Jan Holesovsky2015-08-061-1/+2
| | | | | | | | Change-Id: I5a990643903946ea339136fbc514ca8cb90fa34e Reviewed-on: https://gerrit.libreoffice.org/16624 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#90452: Remove the frame around the Help and Extension buttons.Jan Holesovsky2015-08-063-93/+29
| | | | | | | Change-Id: I86d2daec6dcbd6af3a8da1b8329417bae46c8079 Reviewed-on: https://gerrit.libreoffice.org/16623 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#90452: Implement the new design of the startcenter.Jan Holesovsky2015-08-065-63/+48
| | | | | | | | | | See the comment 45 in the bug for the agreed design. Change-Id: I428f339df48f530f606525434a4a2be8a79acaab Reviewed-on: https://gerrit.libreoffice.org/16622 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#92528: Saving of usage info can happen very late in the tear down.Jan Holesovsky2015-08-061-3/+11
| | | | | | | Change-Id: Id545f3447472a8e6ee137a6630ee14b45a45d673 Reviewed-on: https://gerrit.libreoffice.org/16746 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#83089 : Cannot select location in properties dialogueSzymon Kłos2015-08-061-2/+5
| | | | | | Change-Id: I008622cb8178cb1c83f72e5919ebc1be0dd9a2d5 (cherry picked from commit 7976422efedb973c17d7af3f6fa69325c632a0d2) Signed-off-by: Michael Stahl <mstahl@redhat.com>
* Resolves: tdf#92047 fix wrong merge conflict resolutionCaolán McNamara2015-08-061-1/+1
| | | | | | | | | | | | | | | since commit e8b97a52c96df9c8e8055407b1e40ed7cb9cfc67 Merge: 2b0be6c 0cde74f Date: Tue Apr 28 11:41:31 2015 +0100 - bWaterDisabled = !(pTreeBox || aFmtLb.GetSelectionCount() <= 1); - bWaterDisabled = (pTreeBox || aFmtLb->GetSelectionCount() <= 1) ? sal_False : sal_True; ++ bWaterDisabled = pTreeBox || aFmtLb->GetSelectionCount() <= 1; Change-Id: I14d848b4527adf05eb05110b93369791134cbe6c (cherry picked from commit 76837070c7c3eae1da50ff0de5e508be285e22c7)
* fix style preview renderingLászló Németh2015-08-061-28/+30
| | | | | | | | | (cherry-picked from 1ebe3004d6e9372ef5419d456b3c29059b539bc9) Change-Id: I9ea9cf895f3d608bd3289c1847eea2f6d47a910c Reviewed-on: https://gerrit.libreoffice.org/16521 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
* rendercontext: Mass fix of using the wrong size.Jan Holesovsky2015-08-063-6/+5
| | | | | | | | | | | | | In the paints, we must use the size of the Window for the computations, not of the RenderContext - the RenderContext can be much bigger than the Window in the double-buffering case. Fixes for example the list boxes, and many others. Change-Id: I4c7607569f88b2d097587140858d0862e54b5ea6 Reviewed-on: https://gerrit.libreoffice.org/16421 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
* tdf#91971: Add the menubar size to the height computation too.Jan Holesovsky2015-08-061-1/+11
| | | | | | | Change-Id: Ic03dc9e811df624ca492cd2688a30a1e07fe6496 Reviewed-on: https://gerrit.libreoffice.org/16414 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
* rendercontext: Fix crash with double-buffering in the Styles combo box.Jan Holesovsky2015-08-062-3/+3
| | | | | | Decouple the actual window from rendercontext in UserDrawEvent. Change-Id: Ic440c4e7f59fcffb7800c578146e8eb528cbb7b4
* fix start center rendering (removing selection)László Németh2015-08-061-1/+1
| | | | | | | Change-Id: I3f09808e43d379f473360f3746302a5d65fb8b38 Reviewed-on: https://gerrit.libreoffice.org/16356 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
* Make 'Show License' button work on OS XAndras Timar2015-08-061-0/+5
| | | | | Change-Id: I947033790476f982efd6a275831d2439b2859d8f (cherry picked from commit ed4fe167a9705e714970ab5725aaae8854b1125b)
* fix start center renderingLászló Németh2015-08-062-15/+13
| | | | | | | Change-Id: Ib32b299806851fd2df1fbe8a824c1fe49a4efd99 Reviewed-on: https://gerrit.libreoffice.org/16350 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
* crash on use of 'echo hello' as dde command in insert sectionCaolán McNamara2015-08-061-1/+1
| | | | | Change-Id: Ic46be8ac6da04663096e682d17faa214b324e8bf (cherry picked from commit ff2dd7942e42476432c2db08da71d85be7a14075)
* Resolves: tdf#88911 Crash when dragging unsupported url to navigator paneCaolán McNamara2015-08-061-3/+7
| | | | | Change-Id: I9d4fc8e3edac699c8543ab9dce8d0e35bbf40e5b (cherry picked from commit 9ef671364ff9fbb552a5433053af9283d12d90c7)
* tdf#91721: fix crash during listbox control editing in database formLászló Németh2015-08-061-2/+2
| | | | | | | | | (cherry-picked from d505f1600d9aeb095405b9f62eaf444d5d399860) Change-Id: I415ccb6132b802f62c93367a050242aee3c128b1 Reviewed-on: https://gerrit.libreoffice.org/16286 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* not necessary to open read/write to extract document metadataAndras Timar2015-08-061-0/+1
| | | | | | | | Change-Id: Idf1bfbac1adc083f6d697d19ca41110f765955e9 Reviewed-on: https://gerrit.libreoffice.org/16171 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 30c4467d6afe9bb0c720860613df934ed89a400b)
* Resolves: tdf#79780 use SelectHdl instead of ClickHdlCaolán McNamara2015-08-061-3/+3
| | | | | | | | | | ClickHdl happens on the "down" of the click, not the "up" of the click, so the up gets lost and control isn't returned to the parent widget, so extra clicks are needed to give control back to it Change-Id: I79023d2959377ff70aa890690dde5ce852c9549e (cherry picked from commit 6aee70ec9075b19fdbaccd10522552e3d1d4aeb0)
* tdf#91911 Start Center: Use a different icon for Recent FilesAdolfo Jayme Barrientos2015-08-061-1/+1
| | | | | | | Icon imported from Adwaita (32x32/emblems/emblem-documents.png) Change-Id: I4889644c5d253e1c9b722789336d911b7cdd8af9 (cherry picked from commit a37ed6710db041144f99df23d6229f2f156f87ff)
* gcc4.6: remove trigraph sequences '<::'Thorsten Behrens2015-08-061-1/+1
| | | | Change-Id: Iaea3121fbc4e826b5d1f76b052c21b4dcf18df70
* Apply new VclPtr clang plugin to catch potential problems.Noel Grandin2015-08-064-8/+8
| | | | | | | | | | Omit the plugin, and sw's FrameControlsManager for now. Change-Id: Ifb98a2e6e03a9d099efc1668305b96bd9142ca5f Reviewed-on: https://gerrit.libreoffice.org/16117 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>