summaryrefslogtreecommitdiff
path: root/sfx2
AgeCommit message (Collapse)AuthorFilesLines
2012-11-20Fix MinGW build.Jan Holesovsky1-1/+1
Change-Id: I48bad55cc982fba6fb48a921746801de9993bff1 Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
2012-11-05Related: fdo#47250 fdo#56430 catch harderCaolán McNamara1-1/+1
so duden extension doesn't blow us up Change-Id: Ie6b26670a6809fc07b344660111be44cb3e6a011 Reviewed-on: https://gerrit.libreoffice.org/939 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-05n#782597: Allow adding external templatesCédric Bosdonnat2-12/+8
Change-Id: I56d5a716795b7303a77194964a612c550f25eeec
2012-10-07fdo#46071: Do not hide windows based on nil "Visible" propertyStephan Bergmann1-1/+1
This appears to be messy: The /org.openoffice.Office.Views/WindowType configuration group template has both a nilable bool "Visible" property and a UserData/Data string property that encodes various things like geometry---but also visibility---in a string. Now, likely due to the problem that has meanwhile been fixed through f3f79cc9e6c265baf48955d53f7e888205e0b3e0 "Resolves fdo#46074: Fix Partial::contains for paths that go past a leaf node," some registrymodification.xcu files in the wild contain such WindowType entries in "default" state, without a UserData/Data string and with a nil "Visible" property. The way SfxChildWindow::InitializeChildWinFactory_Impl and SvtViewOptions::IsVisible are implemented, they will always lead to an invisible window for such broken registrymodification.xcu data (as IsVisible unhelpfully returns false for a nil value, and InitializeChildWinFactory_Impl uses that value when there is no UserData/Data string). For the Math formula editor window (ID 30378) this means that it can disappear from the UI completely, as there appears to be no UI trigger for the user to show it in case it is hidden. The fix is to introdue SvtViewOptions::HasVisible (which only returns true if the property is not nil) and change InitializeChidlWinFactory_Impl to only use the value of IsVisible() if HasVisible() returns true. This makes the code even more baroque, but this is a rather central, generic piece of code for all sorts of windows, so I do not want to break any other uses by e.g. changing IsVisible to return true for a nil property. Change-Id: Iae40075a7116a8aabd2d25aa9334709522e23d8f (cherry picked from commit 9db74c6133ede2a28af077fd563398176ff0d858) Reviewed-on: https://gerrit.libreoffice.org/773 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2012-09-11missing part of fix for fdo#54721Noel Power1-1/+1
commit id cea414bfe8fe356793778bdf09f5ca3b3a42daa0 for "fix vba not tracking currently selected doc correctly" was missing necessary change in sfx2 Change-Id: I1697c005374b3d26dc63c78702a46c6d9879adaa Signed-off-by: Petr Mladek <pmladek@suse.cz>
2012-08-22fdo#52451: Ensure that the extension for text is .txt from writer.Kohei Yoshida1-3/+13
Added a preferred extension property to the filter which overwrites one(s) given by the default file format type associated with it. Normally this property is not used for the majority of the filters, but for plain text filters, we need to use .txt when saving from writer whereas we do .csv from calc. (cherry picked from commit ba03f2dc817c692fa8709391ec83d8e01a0f8b28) (cherry picked from commit 84d1ff7be178ec3572710e092e85fe548ce3042b) (cherry picked from commit 45b03c888042052a47cb79bc5a2837d04e115c5e) Squashed these 3 commits into 1. Also needed rtl::OUString("*.") instead of OUString("*.") in sfx2/source/bastyp/fltfnc.cxx Change-Id: Ic6d769bc1180f88fd75f40909e5e054d45719178 Signed-off-by: Eike Rathke <erack@redhat.com>
2012-08-16fdo#53280: Reset read-only UI after successful Save AsStephan Bergmann1-0/+5
Change-Id: Ica9214d3655df27bbb259c463a7589a842f01c47 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2012-07-16fdo#52143 use Unicode functions for QuickStarter tooltipAndras Timar1-4/+3
Change-Id: Ic9c7ed84925ea5b4ce324a98a1089102dcda24b8 Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-07-06hide aDateTimeText when editing new version commentAndras Timar1-0/+3
Change-Id: I644adb0292272130587f8a19777c47bf8fd2887c
2012-07-04modernize the default set of Impress templates (masterpages)Alexander Wilms2-200/+21
Merged changes from Alexander Wilms <alexander dot wilms at zoho do com> Bjoern Michaelsen <bjoern dot michaelsen at canonical dot com> and Petr Mladek <pmladek at suse dot cz> Signed-off-by: Petr Mladek <pmladek@suse.cz> Signed-off-by: Bjoern Michaelsen <bjoern.michaelsen@canonical.com> Change-Id: I942f747aadc897b73d97b2047e267d752580aa33
2012-06-25Library_qstart.mk: remove -DDLL_NAMEMichael Stahl1-1/+0
The library is not called sfx2 but sfx, and it should really be using gb_Library_get_runtime_filename, but it turns out DLL_NAME is not actually used, so just remove it. Change-Id: I553318015c3c2a21725860b28574995a8319a44b (cherry picked from commit 7fb922b32b3fa612ebc8b7dfbc7e53ed990b40a0) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-06-22use generic names rather than specific algorithm names when scalingLuboš Luňák1-1/+1
The Lanczos scaling is of very good quality, but it's rather slow, which can be very noticeable with large images, so it's not a very good default for everything. And in general, it's not good to refer to a specific algorithm when all one usually wants is fast/default/best. Some of these changes are a bit of a guess between default/best, but the general logic is that best should be used only for images that won't be large or where the possible waiting does not matter. Conflicts: svtools/source/graphic/grfmgr2.cxx Change-Id: I53765507ecb7ed167890f6dd05e73fe53ffd0231
2012-06-18Give Macro recorder separate option, apart from Experimental featuresCor Nouws1-2/+2
Change-Id: I9dbf5d510ebaff8448a152d75a006a183303bd81 (cherry picked from commit 5ae11320a26a6356dfadeb812e0d6baf5bdc951c) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
2012-06-05fdo#50694: Honor the preferred filter returned by type detection.Kohei Yoshida1-10/+27
Because that filter is more reliable. Change-Id: Ifbab294bf4f344301410cd671a9245bffa03fa11
2012-06-05Use BMP_SCALE_LANCZOS instead of BMP_SCALE_INTERPOLATE.Jan Holesovsky1-1/+1
Where we explicitly ask for better quality, use BMP_SCALE_LANCZOS, instead of BMP_SCALE_INTERPOLATE. Change-Id: I28ddf3290204532a8660e09ee9ab0949b6ce1c73
2012-06-05Fix fdo#50703 clamp ODF1.2 compatibility-mode to use old encryption.Thorsten Behrens1-2/+2
As requested for better interop inside the ODF ecosystem, asking for compatible odf output gets you blowfish/sha1-based encryption unconditionally.
2012-06-04fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin5-51/+38
Update calls to factories to use new ::create methods Change-Id: I01d4417820f52718836c92faf3c2fae0dc96b30d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-04Improve error reportingStephan Bergmann1-0/+1
Change-Id: Ib8017f950f414601676b54c36425a0592b4cc395
2012-06-04CMIS ucp: write documents back to CMIS serverCédric Bosdonnat1-2/+26
This change needs a git repo build of libcmis. Change-Id: I I740d18dbf3c36d9387b867e750fcbe8e114e5362
2012-06-04Bypass scripting in one more place when DISABLE_SCRIPTINGTor Lillqvist1-1/+2
Change-Id: I37ec7fa799e6a8e3162c4dfb2ec92aeccfc57df1
2012-06-03Targeted string rework (ii)Olivier Hallot5-32/+29
Further cleanup on top of 2f1a1c529694c1fec6d3b02930f8226c7b2bccd9 Change-Id: If348a0985ea92e4dafc450402053d43f77a0f58f
2012-06-02targeted string re-workNorbert Thiebaud5-31/+31
Change-Id: Ia43a1ac7e55f3823255d739fb0930fa23ec5ab27
2012-06-02targeted string re-workNorbert Thiebaud5-99/+99
Change-Id: If149857d1f5171ad451c00de55e68b1aa215358b
2012-06-02targeted string re-workNorbert Thiebaud11-66/+66
Change-Id: I27a092628e48b39f7bad2ed895f80aeea0d9ee35
2012-06-02targeted string re-workNorbert Thiebaud7-66/+66
Change-Id: Ica5753180f4c8be4547ba97bbd7221309d1e3157
2012-06-02targeted string re-workNorbert Thiebaud2-31/+31
Change-Id: Id37249ba16f543798324ee2cac566ec56d8e378e
2012-06-02targeted string re-workNorbert Thiebaud4-192/+191
Change-Id: Ib607fc30bf6eaa1c1043eb7e815295b728da3085
2012-06-02targeted string re-workNorbert Thiebaud8-174/+174
Change-Id: I20867f9ef04297f27523b63dc1e18a2e31da5d42
2012-06-02targeted string re-workNorbert Thiebaud10-109/+107
Change-Id: I120b321166bb078b44d8b9894a1f906e9c6a611f
2012-06-02targeted string re-workNorbert Thiebaud2-211/+211
Change-Id: I6a417dbea4a0b00be3f8e4b6dbe1ef0f4bbcbeed
2012-06-02targeted string re-workNorbert Thiebaud7-65/+65
Change-Id: I103e7171a5a523c388af14ec453299990c99c8c1
2012-06-01Allow for editing of read-only documentsStephan Bergmann7-24/+50
When e.g. viewing mail attachments (that have been stored r/o to some download directory by the mail application), it would be nice if the user could easily temporarily modify them (say, play around with a spreadsheet, changing some numbers and triggering recalculation of formulas) by clicking the "Edit File" button and not being asked to create a copy for editing. This patch tries to make editability of a view independent of the r/o status of the medium: * SID_EDITDOC (the "Edit File" button) now only toggles the r/o status of the view. It no longer asks to create a copy for editing if the underlying medium is r/o. * When a modified document is toggled to r/o via SID_EDITDOC, LO still asks the user to save or discard the changes. However, if the underlying medium is physically r/o (see next), saving the document opens the "Save As" dialog, instead of just doing a "Save" operation (which would fail on the r/o file). * A new state of "IsOriginallyReadOnly" needed to be added to the medium, to keep track whether the medium was originally opened r/o (and is thus assumed to be physically r/o), as toggling SID_EDITDOC in the view also changes the open mode of the underlying medium. Instead of trying to fully understand and disentangle that horrible mess, I just added yet another state to the mess... * The title of the document window now contains "(read-only)" if and only if either the view is r/o or the medium is originally r/o (or both). Change-Id: I89d9c6adf0baab411e737a5f4e6f4e770e7a70be
2012-06-01nuke unused namespaceTakeshi Abe1-2/+0
Change-Id: Ic00cdfce4172af0a2f0aa1aa33ef5e386d407976
2012-05-31nuke unused typedefTakeshi Abe1-2/+0
Change-Id: I8848d0e687c3b19be1a8bc1f41c2a0c94e13bbbf
2012-05-29targeted string re-workNorbert Thiebaud1-2/+2
Change-Id: If9a9889fa36bc76c9afed295568ed9a05de4587f
2012-05-29targetted SAL_N_ELEMENTS reversion.Michael Meeks4-5/+7
Change-Id: I30be93ccaeb1f9fd17cbe9e3ed3165e094810b2e
2012-05-28Whatever an inimanager was, it has been dead for a decadeTor Lillqvist3-14/+0
Change-Id: I6efd7877df34af515e61b6b7fcd112fa041f5e61
2012-05-25sfx2: improve READMEMichael Stahl1-1/+13
2012-05-24Delete SfxItemSet before the current shell gets destroyed.Kohei Yoshida1-4/+10
SfxItemSet takes hold of the SfxItemPool instance from the current shell, and accesses it when it gets destroyed. The problem arises when the current shell gets destroyed before the SfxItemSet instnace does, in which case an illegal memory access ensues. This fixes intermittent crashes when opening a document in Writer. Change-Id: Ib5e74b43051f868f22f6efdb311e6c2a75326d9a
2012-05-24Removed unused SfxMedium::bDirectStephan Bergmann10-25/+28
See the TODO comment in sfx2/inc/sfx2/docfile.hxx about a temporary SfxMedium ctor overload to find not yet adapted uses of another overload, to be removed again in due time. Change-Id: Ie22c33c32f8870ce6ebf6d500abc7a4e33d97183
2012-05-23Add mechanism to pass doc service name to the descriptor when opening a file.Kohei Yoshida3-1/+30
This info will be used during type detection for more clever filter selection. Change-Id: I66a52ff6f425e97884afd1c85831c11381fb695d
2012-05-22Renamed writer_web_HTML to generic_HTML.Kohei Yoshida2-2/+2
This should reflect the fact that this type was already used as a generic HTML type. Change-Id: I0a209d51ed229f07aff001075c39bfc82d4c3088
2012-05-22border window: Design by Mirek M. - make the 'shells' more lightweight.Jan Holesovsky1-0/+1
Just a line at the top and the bottom, we do not want the entire 3D effect here, it makes it visually incompatible with the window decorations. Change-Id: I262932fb5def21d5bc4fb347be6d6a07807bb4d2
2012-05-17removed unused const rtl::OUStringTakeshi Abe2-2/+0
Change-Id: I7c3409ac39e690fcf2f7e4085bf6857e6bd182fb
2012-05-17fdo#49921 make sure all tab pages have the same dimensionsDavid Tardon7-8/+53
The reason is that they can be combined arbitrarily in dialogs, so changing, e.g., height of one tab can lead to "interesting" results. Cf. commits 8631dbf85fb5ed56d225e32ea5a9c36c96b0d649 and 29042d096a2c5812ae179e1553367afd21b0f71e that were the cause of the problem described fdo#49921. Change-Id: I9995002a2bd5c3604bdfa06dc817916ce61c558d
2012-05-16reduce static_initialization_and_destruction chainCaolán McNamara1-19/+27
Change-Id: I962aeac0c7feeabb7963016d5afcfeca5a48ccfe
2012-05-15Related: rhbz#790233 Allow styles to be deleted from the template dialogCaolán McNamara1-1/+10
I knew this used to work at some stage, appears to be a regression since cdf8680ed24a56956f257c99c73ff95ff488e2c6 GetIndices_Impl gives the region and index of the entry relative to the immediate parent, so doesn't make sense to use those as indexes into the template array if we're at the style level. backup into the template level if we're below it to get the relevant template index. Change-Id: I37a0bbc38cbb4dd82dd3d2c8309d8be61d83adbd
2012-05-15Cleaned up some OSL_TRACE -> SAL_INFO usesStephan Bergmann1-12/+2
Change-Id: Ie70be4d3e4f086eaa301295df0bc7d25792d2cd2
2012-05-11Looks like CMD_SID_FRAMETITLE can goStephan Bergmann1-1/+0
...now that SID_FRAMETITLE is gone, and it is unused, anyway. Change-Id: I8b6b2641b988763df85d88490dc46484083b7180
2012-05-10Removed unused SID_FRAMETITLEStephan Bergmann9-172/+3
...which was only ever written to, never read. This in turn allowed SfxViewFrame::UpdateTitle to return void instead of String, and made SfxObjectShell::UpdateTitle become unused. (The title appears to be created via SfxBaseModel::getTitle instead these days?) Change-Id: I5e1115a707134058a1f3a0beaa180eb471c817e6