summaryrefslogtreecommitdiff
path: root/svtools
AgeCommit message (Collapse)AuthorFilesLines
2013-07-17n#820077: Import images with duotone filter.suse-4.0-8Muthu Subramanian2-0/+24
Also, contains implementation for a simple duotone filter. (Port from commit: 8b716072410bcfd252739fb953d5ac198e27a895)
2013-05-07fix scrolling performance of listboxes with hundreds of entriesCaolán McNamara2-6/+25
make it approximately infinitely faster a) add a method AdjustEntryHeightAndRecalc that just does AdjustEntryHeight and RecalcViewData and replace all the places that do the two of those together with that utility b) in our SetFont now only call AdjustEntryHeightAndRecalc if the new font is different to the old font, ignoring color which doesn't have a bearing on row size. c) where we originally called SetFont(GetFont()), which would have triggered AdjustEntryHeightAndRecalc, now call the new AdjustEntryHeightAndRecalc explicitly. The performance problem apparently a regression from ac7acb0ab1329913b0cec79790adcde0263960be where we seem to now end up drawing on ourself and calling SetFont on ourself rather than on a pImpl without an overridden SetFont. So when we redraw on scrolling we triggered a cascade of calculations and force text layout of every row. (cherry picked from commit 3b6e61c3968a4aaec0b594803219961f3fcc9232) Conflicts: include/svtools/treelistbox.hxx Change-Id: I3c284c360f06ac383e8c38045fc4c2946f505b35 Reviewed-on: https://gerrit.libreoffice.org/3611 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-05-06Resolves: fdo#47209 and rhbz#927223 syntax highlighter crashCaolán McNamara1-0/+4
when trying to parse empty lines looking for the matching bracket Change-Id: I3961a3d0e804d136de286e21934c6ba5ab0496cf (cherry picked from commit 02917cb57e2c2e9fcab2db8f72960023f3e4edaf) Reviewed-on: https://gerrit.libreoffice.org/3414 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-05-01Merge tag 'libreoffice-4.0.3.2' into suse-4.0Petr Mladek1-0/+3
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-08Resolves: rhbz#949238 div by zero on pagedown in 0 width task paneCaolán McNamara1-0/+3
Change-Id: I2ee5e0b19db724adf94d699ce0af686648fb67e8 (cherry picked from commit 626bac2f5ccec91eb9962c700564381158f826bc) Reviewed-on: https://gerrit.libreoffice.org/3277 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
2013-04-05Added and fixed various vba APINoel Power2-4/+5
Added OLEObject.LinkedCell Added ComboBox.LinkedCell Added Validation.Type provided a 'real' implemenation for AutoSize member ( applicable to various controls ) Change-Id: Id556d4c95a800951803609433e834105a6f20dbe Reviewed-on: https://gerrit.libreoffice.org/3207 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-05Added and fixed various vba APINoel Power2-4/+5
Added OLEObject.LinkedCell Added ComboBox.LinkedCell Added Validation.Type provided a 'real' implemenation for AutoSize member ( applicable to various controls ) Change-Id: Id556d4c95a800951803609433e834105a6f20dbe
2013-04-05Revert "Added and fixed various vba API"Noel Power2-5/+4
This reverts commit 57b8dcc4323f736f51f9ed8334affeb042efbca4.
2013-04-04Added and fixed various vba APINoel Power2-4/+5
Added OLEObject.LinkedCell Added ComboBox.LinkedCell Added Validation.Type provided a 'real' implemenation for AutoSize member ( applicable to various controls ) Change-Id: Id556d4c95a800951803609433e834105a6f20dbe
2013-04-03raise warning when saving macro laden doc as a macro-free format bnc#791777Noel Power1-1/+1
Change-Id: Ic947ceef71c86e31fbf0bce74b064aaf91f47178 (cherry picked from commit ec583253c3d761847c93a77fa10c065fc334fab9)
2013-03-11rhbz#915743: Avoid potentially blocking autocompletion for non file URLsStephan Bergmann1-1/+8
In theory, the logic of how SvtMatchContext_Impl threads are used to obtain autocompletion information could probably be improved so that long-latency scenarios would only block the ultimate closing of the dialog, if anything at all. In practice, this is probably not worth it, as users likely do not expect an autocompletion feature for remote content, anyway. (And previous commits like 260afe56fd6b2f34de8290f3cdb7d1df5b88f8a8 "neon commands cannot be aborted" make it questionable whether any remaining blocking upon closing of the dialog could be bounded in a reasonable manner.) Change-Id: Ie82b9a70285b30fe88cf4c40992710087e86815e (cherry picked from commit c6dfb3825cad9c8f6f87f4afc8fdbc386919e640) Reviewed-on: https://gerrit.libreoffice.org/2669 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz> Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-03-06fdo#61166 text format: correctly chain the formatter->getOutputString callsLionel Elie Mamane1-1/+1
cf commit 271b11a3d56ba0c5f542a142ab859a0819530dba, copy/paste error Change-Id: I9a5391cd9d77d181026abffa3ea2f036c7009ade Reviewed-on: https://gerrit.libreoffice.org/2570 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-25fdo#59405: initialize members of TransferableObjectDescriptorMichael Stahl1-0/+7
The mnViewAspect member is otherwise only initialized if a SOT_FORMATSTR_ID_OBJECTDESCRIPTOR thingy is in the clipboard, which only happens if the clipboard source is OOo/LO. When inserting an OLE object, the value MSOLE_CONTENT apparently results in requesting the current size from the OLE object, which looks much better than the square default. Change-Id: I8c7fb80a8ae88272f1ecaf3a375bef5d917f2a5b (cherry picked from commit 0cf6433117477642897fb2d874a4353eff8a1f35) Reviewed-on: https://gerrit.libreoffice.org/2393 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-02-19fdo#60719 : fix crash on scaling bmp with target/source width/height = 1Norbert Thiebaud1-23/+71
The rendering is quite ugly compared to the same pdf opened with pdf reader. but at least it does not crash anymore. The function ImplCreateRotatedScaled seems quite sub-optimal for one thing it is called even when there is no rotation and still bother with doing a lot of work to 'rotate' things. It was assuming Width and Height > 1 for both the source and the target The patch tries to 'hide' the misery... but I'm not convinced that this is 'right'. Change-Id: I9aec5eb6655ea3678aa018ae5928dabb8058bec6 Reviewed-on: https://gerrit.libreoffice.org/2195 Reviewed-by: Arnaud Versini <arnaud.versini@gmail.com> Tested-by: Arnaud Versini <arnaud.versini@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/2248 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2013-02-11resorted SvTreeLists munged horriblyCaolán McNamara1-0/+1
e.g. tools->options->paths, click the sort icon, reclick it few times and the list doesn't reverse but instead shows the same two entries over and over again. Regression since fb01d8e132ab9097ed30b3bc4c7585622df591ad Change-Id: Ifc151ad72a27f1cdc3141e356ad6d100e6219cc2 (cherry picked from commit dde8e266084c89860a9a91f2a29ac31b730a9c4a) Reviewed-on: https://gerrit.libreoffice.org/2093 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-01-29Resolving crash in wizards fdo#59931 by NULL checkingArnaud Versini1-1/+4
Change-Id: Iccc3f3b2913f21a3831ce55c706aa4dd1da53ad6 Reviewed-on: https://gerrit.libreoffice.org/1909 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com> (cherry picked from commit 78fde59e65bf1fbf8290e60b8cbe4b34e3489b93) Reviewed-on: https://gerrit.libreoffice.org/1912
2013-01-28unify the spelling of 'Kazakh' language nameAndras Timar1-1/+1
While 'Kazakh' can be written as 'Kazak' or 'Qazaq', the 'Kazakh' form is the most widespread according to online sources (Wikipedia, LCID list from Microsoft). Also the 'Kazakh' form is preferred by a Kazakh contributor, see http://listarchives.libreoffice.org/global/l10n/msg05444.html In LibreOffice both 'Kazak' and 'Kazakh' was used at different places. Change-Id: Ief83eb05e92af16cb5b795f2bbb1e3d6f7c9659a Reviewed-on: https://gerrit.libreoffice.org/1876 Tested-by: Eike Rathke <erack@redhat.com> Reviewed-by: Eike Rathke <erack@redhat.com>
2013-01-16Resolves: fdo#37449 apparent access into empty codepage bitsetCaolán McNamara1-3/+12
Change-Id: I2efc3ea10cd4313eaa1894fdfbffd113a125e2ba (cherry picked from commit 5cd7c8906150b94c224ab9bc9f850684198c7f04) Reviewed-on: https://gerrit.libreoffice.org/1702 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-01-15fdo#59158 About dialog Website button link fix for zh-CN and zh-TWAndras Timar1-5/+12
Change-Id: I85007bf689bb6c7119a4971f0bd925beccb8bd30 Reviewed-on: https://gerrit.libreoffice.org/1688 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-01-08Make LO buildable again after the GraphicFilter move.Jan Holesovsky11-49/+15
Conflicts: svtools/Library_svt.mk q# Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c Signed-off-by: Cor Nouws <oolst@nouenoff.nl> Signed-off-by: Olivier Hallot <olivier.hallot@documentfoundation.org> Signed-off-by: Adolfo Jayme Barrientos <fitoschido@ubuntu.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-01-08Move GraphicFilter class to vcl.Jan Holesovsky105-24212/+0
Change-Id: I2318eeda59cee1cfdb074f9a90fd7d8d80aab19f Signed-off-by: Cor Nouws <oolst@nouenoff.nl> Signed-off-by: Olivier Hallot <olivier.hallot@documentfoundation.org> Signed-off-by: Adolfo Jayme Barrientos <fitoschido@ubuntu.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-01-04Minimal fix fdo#58766 Macro Recorder opt not savedLeMoyne Castle1-5/+5
Load of the last Misc. config item is skipped due to its index == # of strings in array in GetPropertyNames. Omission in middle drops last item - loop never gets to the Enable Macro Recorder option. Change-Id: Ic405387248071ac2f5b47601eb1364bf0d7ea5d6 Reviewed-on: https://gerrit.libreoffice.org/1540 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2012-12-20fdo#56970 Fixed insert new sheet button for different directionalityIssa Alkurtass1-2/+6
Fixed position of insert new sheet button (+) when using a sheet with a different directionality than that of the interface. Change-Id: Ifc7020c4eb7a1686c23b4d827c47494b88a236b5 Reviewed-on: https://gerrit.libreoffice.org/1385 Tested-by: Lior Kaplan <kaplanlior@gmail.com> Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 53f23ca68dda1011f97bb28d672c7198e9e12c90)
2012-12-20Partially reverted 786f15e605867668d88ab23d66cabb18f18bdcf9Cédric Bosdonnat10-0/+2045
This dialog is still of some use with some Writer Wizards and templates. Re-added the dialog, but moved the menu entry to Tools menu in Writer. The menu entry has not been added back in the other applications. Change-Id: I1388d955752e99ab6d39dfc81bb41a97b33bdfcd
2012-12-18Removed File > Templates > Address Book Source... menu entry and its codeCédric Bosdonnat10-2045/+0
Change-Id: Iaec660c2d8da109bd644f5c88213fdb0c51a9c0f
2012-12-18File picker: add Path field for CMIS like other protocolsCédric Bosdonnat3-84/+118
Change-Id: I9745831da13646d351858f221b1367374ebf737f
2012-12-17fdo#58196 Viewing: Reenable mirroring for scaled-down imagesWerner Koerner1-2/+12
commit I6feb744712956a92d6140d079dc3a85ee8511930 (Stepwise rebuild bitmap rendering from scratch to avoid rendering bugs) missed horizontal and vertical flipping for images scaled down by more than about 60%. Change-Id: I68241792d2b43edde33f478c998d447debd8fd13 Reviewed-on: https://gerrit.libreoffice.org/1332 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 3d969a60852d505cfa02a6b3410d4461718138ba) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-12-17Resolves: fdo#58373 restore label for font is printer/both or unavailableCaolán McNamara2-4/+104
I removed it because it only refers to the Western font and not the two other categories. But apparently there's demand for it, so better to restore it as misleading as it is for non-Western Change-Id: I84c0cf858c16a9cadcba8d0c3993f0b0b7ad5a45 (cherry picked from commit b53a329a7fef6262e437f8de0a771633a731704b)
2012-12-12Resolves: fdo#57469 allow tab to traverse into custom widgetsCaolán McNamara2-5/+5
The magic WB_TABSTOP bit is the one that allows a widget to be accepted as a candidate for getting focus when pressing tab (cherry picked from commit 166d8257979aac6775319a9e1f305bc94df97e29) Conflicts: svx/source/dialog/fontlb.cxx Change-Id: I7d964bae6b84184ccbc4652d66cf3d2637566405
2012-12-05Bye bye ODMATor Lillqvist2-53/+0
SUSE has no interest in it any longer, and I doubt anybody else has either.
2012-12-04Support added for fine dashing on table borders.Eilidh McAdam2-0/+8
When reading in docx documents, fine dashing provides a better visual match for some border types. Added in this patch: - FINE_DASHED in BorderLineStyle UNO enum and in internals - Import of docx table borders using this border style Change-Id: I39cfa18c915ec94d8e4ecfc6a2ca637076d1e468 Reviewed-on: https://gerrit.libreoffice.org/1123 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2012-12-03fixup numbering in positionBjoern Michaelsen1-2/+2
2012-12-03Clarify need for solar mutexStephan Bergmann1-0/+1
Change-Id: Ica3430e75c91ccf4861fce660c45b90c5584fb9a
2012-12-03move base check for bibliography to sfx2Bjoern Michaelsen3-1/+21
- in the libbiblio component the frame is already created, and a frame that is loading is vetoing a terminate - thus move check to sfx2 - use the fancy svtools::RestartDialog Change-Id: I500aaeac44d52969575f50f6b79d0c07a08c977e Reviewed-on: https://gerrit.libreoffice.org/1207 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2012-11-30add Sidama (sid) languageAndras Timar1-0/+1
Change-Id: I7c7fb38d7df5aecda8e81443aa7045479e0efceb
2012-11-30shake out unused option instancesCaolán McNamara1-1/+1
Change-Id: I2a7ac1ed79455f28f2ba2043b9183a77c63e68ab
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens10-30/+0
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30fdo#46808, use service constructor for i18n::CollatorNoel Grandin1-1/+1
Change-Id: I15a360723e335345aad09e73fcb0f6815ed9e0d4
2012-11-30Fix Windows build with VS2010: forward declaration not enoughFridrich Štrba1-1/+1
Change-Id: Ic1b6673dd85caf5f340974cde09c104a5a13b395
2012-11-29Let's make it so that selected = highlighted + logically selected.Kohei Yoshida3-7/+6
Being selected but not highlighted makes no sense. This way, an entry can be highlighted without being selected, but can never be selected without being highlighted. Change-Id: I6c469a1d2cf0df79c2e5e4ff4120af5efd5f6103
2012-11-29Introduce a 'highlighted' state which differs from a 'selected' state.Kohei Yoshida3-5/+26
And use that to only highlight child entries which should logically be treated as not-selected but should have the same appearance as the selected entries. A 'selected' state is logically registered as 'selected' as well as visually. A 'highlighted' state should only appear as if it's selected but logically it's treated the same way as non-selected entry. Change-Id: Ic4bc6923c7678044cf552194ad9865371465c614
2012-11-29I didn't mean to check this in....Kohei Yoshida1-48/+0
Change-Id: I39738ca7fef022a1c9c728cdcd3fa10429a05564
2012-11-29Use bitfield for better readability.Kohei Yoshida2-30/+27
Change-Id: Iaa254703be5f798e749eaccfa3b7136e26054b65
2012-11-29Remove unused method & remove header include by using forward declaration.Kohei Yoshida8-14/+13
Also, SvViewDataEntry has lost one friend. Change-Id: Icf6d4127de38fed485cd260edae97748b1f78ede
2012-11-29Now we can officially hide these flag values.Kohei Yoshida2-7/+7
Change-Id: Ia203700da59e6962112889404f12041ea8648e19
2012-11-29More on removing direct access to tree entry's view flags.Kohei Yoshida5-21/+22
It turns out that this flag value was used only to check for expanded/ collapsed status, in which case, substituting it with one boolean should suffice. Change-Id: I2071ec83613d2206643db8681bebcfab7d1213a3
2012-11-29Avoid direct use of flag value.Kohei Yoshida3-6/+15
Change-Id: I4279c352a990b2ffda482e9c69b63b18b3c13dc9
2012-11-29Pass pointer to view data entry to Paint() instead of its raw flag value.Kohei Yoshida6-31/+90
We need to hide these flags away. Change-Id: I112003a88a92174f5012b3356ba261a039eeccc1
2012-11-29API CHANGE a11y unpublishing and add/removeListener rename.Thorsten Behrens4-16/+16
The a11y API has never really been picked up by tools vendors, let's not tie ourselves up here for no good reason. This unpublishes all css::accessibility, and dependend API. With that, we can change the rather unfortunately-named add/ removeEventListener to be add/removeAccessibleEventListener, thus not conflicting with the XComponent methods of the same name. Change-Id: I595598c3a8e46415f80b2780f333333174865fe4
2012-11-29button placement consistencyCaolán McNamara1-1/+1
Change-Id: I0f0b5ee875062123e9da4c740e82350f0250cd79