summaryrefslogtreecommitdiff
path: root/svtools
AgeCommit message (Collapse)Author
2014-11-23Enable copy-paste of charts/ole as bitmaps.Muthu Subramanian
Cherry-picked from 6296c64fb0ed8bce61eb6303920f952eda65de71 Change-Id: I0e074da34ff1a11c223994dcf373bf60af7cd271 Reviewed-on: https://gerrit.libreoffice.org/11911 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-10-14Resolves: fdo#82270 Grabbing focus can invalidate the entriesCaolán McNamara
Change-Id: Ie9b4f936cebdcf2a37e66abef456c6b0c0e26201 (cherry picked from commit fef9bf4e39b041c7f13e4d1584e3086068e781fc) Reviewed-on: https://gerrit.libreoffice.org/11878 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-09-23SAL_WARN_UNUSED_RESULT for static Reference::query functionStephan Bergmann
...which the recent loplugin:staticcall changes showed was occasionally used apparently under the assumption that it was non-static and changed the object it was called on. (cherry picked from commit 7242fe6e3360843f9ef5ce07b447de729323a3c8) Conflicts: include/com/sun/star/uno/Reference.h svtools/source/uno/treecontrolpeer.cxx Change-Id: I989a2a4ed3886d7f370855c9e8c1867e646c059b
2014-09-05fdo#69162 avoid crashing on Accellerator in poorly initialized contextNorbert Thiebaud
Change-Id: If3446ae33f2c2e737acf56bb523519e7b9d9935e Reviewed-on: https://gerrit.libreoffice.org/11293 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-09-03Treeview may lose focus when left/right arrow is usedNiklas Johansson
In a treeview, for example the hierarchal view of the styles and formatting panel, if your not on a node that is expandable or collapsable when you press the left or right arrow key, the focus will move away from the tree view in a very awkward way. This patch makes the control work more like a native treeview. At this point I don't feel confident about the surrounding code to avoid the code duplication that this patch adds. Reviewed-on: https://gerrit.libreoffice.org/10956 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org> (cherry picked from commit a6f78bf8fd5dc768cc8c37ca717d7bad8fe2dc81) Change-Id: Ibd04cf5329b4d226aac102d214a45e45811982e7 Reviewed-on: https://gerrit.libreoffice.org/11255 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-29Resolves: fdo#83068 ignore spaces in font-size unit detectionCaolán McNamara
Change-Id: Id9a5c2ee576bd533d8b0a2b4356e319354abbbac (cherry picked from commit d54b2bd8dcc393bb168386a5c0ec4ce40bb3c6d4) Reviewed-on: https://gerrit.libreoffice.org/11186 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2014-08-26bnc#719994: We need the proper alpha maskTor Lillqvist
Change-Id: Ic16dceaca431929238fcef6be31ee95e068b91e4 (cherry picked from commit e06014e0db64ec36ec41dee542d2453c945fddd3) Reviewed-on: https://gerrit.libreoffice.org/11126 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-12Related: fdo#82259 not all STIX are symbol fontsKhaled Hosny
The new "STIX" and "STIX Math" are regular fonts, as well as the old "STIXGeneral", so narrow the match a bit. Change-Id: I82341c3e9e5dd4e0323bf76096cba8890a82f0c7 (cherry picked from commit 56dc7aecc3194dac8012ebc252fb893125f64ebc) Reviewed-on: https://gerrit.libreoffice.org/10896 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-12Related: fdo#82259 add Armenian preview textCaolán McNamara
Change-Id: I3698b5cbf8c39e618faaae1321eaa4442f1b2827 (cherry picked from commit 94753833b94dee42ce2e0e7e7f3f354c2a605730) Related: fdo#82259 stmary can render its own name, but unreadably Change-Id: Iedff28d1290efb38eb68f83757a0787d52e28859 (cherry picked from commit 212f745c29c7399fa0d62a53d3836dc1e829e953) Related: fdo#82259 list Apple Color Emoji as a symbol font. Note that this is a blind fix, as I don’t have an OS X machine. Change-Id: I43a98fbbee06117b914eae332d48b2793a266bce Reviewed-on: https://gerrit.libreoffice.org/10812 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 25e81910d1b560c7ef05a907abbf80fb2c647d32) Related: fdo#82259 all the STIX fonts are really for symbols Change-Id: Id032f1b643199a57c6fc08ccf580a54ff2370861 (cherry picked from commit b56bb5dce9a225bb0b8d6c57120da55e4cae7def) Resolves: fdo#82259 use same symbol strategy on all platforms Change-Id: Ia4f0a36c8a95849b7c8551b930873e912b673537 (cherry picked from commit 16076f120340673ad64df1614206f0e13e3539d5) Related: fdo#82259 OpenSymbol doesn't have 0x2706 or 0x2704 so no preview Change-Id: I2164cb2c37c7b13759e47561002024fd2bb577f9 (cherry picked from commit 662af47c3c1628700661a8d5ccfee784f7e2195b) Related: fdo#82259 esint10 can't render its name either Change-Id: Idcb881613900001f237cf343e7bc485c170e4385 (cherry picked from commit 92f3e68cd107b48ca24563e27c36afa963f392e3) Related: fdo#82259 Show same preview for both Symbol variants Change-Id: Iafabbe5068a1817b5be717018536e0d31117c434 (cherry picked from commit 198a775ebccc69e71b97f048d1d6c4b9651662ad) Reviewed-on: https://gerrit.libreoffice.org/10890 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-12fdo#81044 detect UTF-8 BOM tooDavid Tardon
Change-Id: I6fd041780b889e2125b916964ba27d032667dcd6 Reviewed-on: https://gerrit.libreoffice.org/10742 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-12Resolves: #i125386# secured user request and changed some bools to bitfieldArmin Le Grand
(cherry picked from commit 5e3cbe056c19bea5018dbf1fd4b2bc8f8b030ff3) Conflicts: comphelper/inc/comphelper/embeddedobjectcontainer.hxx comphelper/source/container/embeddedobjectcontainer.cxx sfx2/source/appl/linkmgr2.cxx svtools/source/misc/embedhlp.cxx Change-Id: I7e9b20a87ca6afe8cb91c577860a6c6b72368ee9 (cherry picked from commit d005acae3aa315921f2c331612131626c470bd22)
2014-07-30Resolves fdo#79278: not too dark, not too bright background colorAdolfo Jayme Barrientos
This patch is based on Caolán's one at 68075a61c28a5c72429f78776a822ed45fdcb4a7 I've chosen the background color used in Windows program Paint.NET as our default background color. It's a nice compromise that doesn't look out of place anywhere. Change-Id: I5081201043be4a7ad6152d1ce59451daa4ece1ac Reviewed-on: https://gerrit.libreoffice.org/10527 Reviewed-by: Stefan Knorr <heinzlesspam@gmail.com> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2014-07-24fdo#51534 - rulers should have app-background by default (apparently).Michael Meeks
Change-Id: I981febb02074ed323732ef7c19e89f1e946604f1 Reviewed-on: https://gerrit.libreoffice.org/10519 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2014-06-25fdo#51763 - make title of dialog localisableJoren De Cuyper
Following the bug report the title is currently not correctly localisable for Catalan language due format issues. Change-Id: I09107acb3f4acd7acf5a614216265373c59938b2 Reviewed-on: https://gerrit.libreoffice.org/9883 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 6162191b4a258d071382aeaa88aa80852b04ae2a)
2014-06-23fdo#71076, fdo#71767: Preserve number formats when charts are copied.Kohei Yoshida
(cherry picked from commit 1d38cb365543924f9c50014e6b2227e77de1d0c9) Conflicts: sd/source/ui/view/sdview3.cxx xmloff/source/chart/SchXMLExport.cxx Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a Reviewed-on: https://gerrit.libreoffice.org/9836 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-06-19sizeof(bool) is not required to be 1Caolán McNamara
(cherry picked from commit 3daec14fd62a6a1655813d26e470513237129263) Conflicts: svtools/source/contnr/imivctl2.cxx Change-Id: I19ba4e27a4403d2c17d0bbf3f29c42e4745e4c41
2014-06-16Resolve fdo#79913 by checking index boundsArnaud Versini
Change-Id: I023a625d73724332245d612a61cb786acefc4cf2 Reviewed-on: https://gerrit.libreoffice.org/9791 Reviewed-by: Jean-Baptiste Faure <jbfaure@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 7eceffef49c9f498c5758d5e351c0f22126003e5)
2014-06-10avoid problems with poppler's and vcl's FontInfo during runtimeMarkus Mohrhard
Change-Id: I1dbd256812cccae1e6ed0ad8bb34ce427e5e5be8 Conflicts: include/vcl/metric.hxx svtools/source/control/ctrlbox.cxx svtools/source/control/ctrltool.cxx svtools/source/control/stdmenu.cxx svx/source/sidebar/nbdtmg.cxx
2014-06-02add LANGUAGE_USER_FRENCH_TOGO 0x8C0C [fr-TG] French (Togo), fdo#79353Eike Rathke
Change-Id: Id1e127a3652d4bef280327c2a62d95c17c012656 (cherry picked from commit b247e5f77d23e5cc43ea7e176a5dc01e6b30f17d)
2014-06-02add LANGUAGE_USER_FRENCH_NIGER 0x880C [fr-NE] French (Niger), fdo#79352Eike Rathke
Change-Id: I6d793317bc1caef4a95275bad263a5b2feac12e4 (cherry picked from commit 4ffdd43ae43b504fbc920a3cf2685b00f8219580)
2014-06-02add French (Senegal) [fr-SN] to language list, fdo#79350Eike Rathke
Change-Id: I80e149700360eb9240c330e3e3d0c38c3785bfa4 (cherry picked from commit 469f5e51a938de824b72acdecf15df5ef60ed608)
2014-06-02add LANGUAGE_USER_FRENCH_BENIN 0x840C fr-BJ French (Benin), fdo#79351Eike Rathke
Change-Id: Idc54b0fae9283d795b79231214cf14aae43adca2 (cherry picked from commit 3a14b9357f13f777721d7af5539bdb385d09fdc5)
2014-06-02add French (Mali) [fr-ML] to language list, fdo#79349Eike Rathke
Change-Id: Ie37a547403d86906549babe87680be3c1658f603 (cherry picked from commit 1d6ef4f52d4bf187dc249a46469ea236fff930c4)
2014-06-02add French (Côte d'Ivoire) [fr-CI] to language list, fdo#79348Eike Rathke
Change-Id: I4041fe39c1a1186e381526ae5f806efb7e56dce0 (cherry picked from commit aa52f96089a8de1c734d856e41b96f434fce5cf9)
2014-05-23switch the Western language list box to SvxLanguageComboBoxEike Rathke
This allows the user to assign an arbitrary (but valid) BCP 47 language tag to a portion of text, so that customized spell-checkers or other language-dependent tools can be used without the need to wait for LibreOffice to add yet another language to the list in the next release. +bool SvtLanguageTable::HasLanguageType() (cherry picked from commit 2a8eff589a53c8dd65e18d7a9d11cdb98a937e68) + SvxLanguageComboBox EditModifyHdl(), SaveEditedAsEntry() (cherry picked from commit 29c024afbe6a46459e37c5ceec510de1cd0ca7c8) handle SvxLanguageComboBox edit (cherry picked from commit 1aad7628dcd7fd14d48814d00c3d04e4ec0c59d5) finally switch the Western language list box to SvxLanguageComboBox (cherry picked from commit dbe8b3b6d4f2d2cc2e8c702b78034e9013f71e8f) advance start of edit selection on a matching entry ... to allow continuous typing. (cherry picked from commit fe2b8ef18b11b226fddd1cf3fc7f9133426a1b1a) Change-Id: Id57eb51b69e50be78f85d19a7b3623c1acdf6509 Reviewed-on: https://gerrit.libreoffice.org/9447 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-05-20Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part18Julien Nabet
Change-Id: Ibf958dbfbf7cdbe6ad31d390138be8d4d468c225
2014-05-19hrc and src files: squeeze multiple newlinesThomas Arnhold
for i in `find . -name *.src -or -name *.hrc`; do FILE=$(cat -s "$i"); echo "$FILE" > "$i"; done Change-Id: I2bac5ad3e1eb3c566e5c867ccf45893a19e1561e
2014-05-18Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part17Julien Nabet
Change-Id: Ie6dbe87599c9cf53c7b9cc6becb9438e62cdb537
2014-05-17Correct common misspellings, and remove some ASCII art along the way.Chris Laplante
Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c Reviewed-on: https://gerrit.libreoffice.org/9356 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2014-05-16fix memory leak on pasting metafiles into writerCaolán McNamara
copying from mspaint to writer and then deleting the image in a loop will eventually exhaust all memory. regression since 004a29b9ac66f68af5ea12a2303a4b2be77d8145 Change-Id: I381285cda3823de7df0c1725a339943caf9536fe
2014-05-16trivial cleanupsCaolán McNamara
Change-Id: I50bc7ab36690e572825109de9f0b1bb11d26867f
2014-05-15p is for pointers.Kohei Yoshida
Change-Id: I7df56e7549e8ccccdfa9ca1b88f85e8c81e4a946
2014-05-15Actually this empty() check here is redundant.Kohei Yoshida
ResortChildren() does that at the very beginning. Change-Id: I696c9d796cc6631048fb3d9409d6eda1085a7612
2014-05-15Sort ptr_vector using its own sort() method.Kohei Yoshida
This also fixes memory leak via nested calls of release(). Change-Id: I3ba90901366319bb3ee870903130042b375f733c
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-13BrowseBoxCheckInvariants appears to be unused [loplugin:unreffun]Matúš Kukan
Change-Id: Ie6c546ee085b20bd3eb39cdfb7b38394c0a35b67
2014-05-13Revert "remove unused code -SvtLanguageTable::AddLanguageTag"Eike Rathke
This reverts commit d812b784313ed85ae5085d54a3ae50aa064c053c. I added that code in preparation of changes I'm doing.
2014-05-13remove unused code -SvtLanguageTable::AddLanguageTagNoel Grandin
Change-Id: Ibb0dda4b48c711e72574c3f5aec9e3d1186d1526
2014-05-12whitespace cleanupMarkus Mohrhard
Change-Id: I511412f8b6d8ac2fcbac738d1ef5e6d5cd9928bb
2014-05-11remove external header guardsThomas Arnhold
Change-Id: I1c8b193c336d4fcb765e51e059032f84126b270e
2014-05-11fix-includes.pl: svtoolsThomas Arnhold
Change-Id: I509299306ab6cd97c96e9a26d4674f983bbffbec
2014-05-10coverity#708306 Uninitialized pointer fieldCaolán McNamara
Change-Id: Ia249608d5166273bb6be7b52185d48dffbc918d9
2014-05-10coverity#708336 Uninitialized scalar fieldCaolán McNamara
Change-Id: Ie4b6ea734d8ab77060848cd813b44d0727eb47c4
2014-05-10add on-the-fly language tags to the language tableEike Rathke
Change-Id: I5ca9e212374821de425729863c82f7b4699487a7
2014-05-10added SvtLanguageTable::AddLanguageTag()Eike Rathke
Change-Id: Ic8be508bff3767f2f8ab1146447b3fe4bffff3b3
2014-05-09'!= false' is redundant, and confusing - kill it.Jan Holesovsky
Change-Id: I1a52b9ce7b590e8cf274a2daaa1c55cfc1efe48b
2014-05-08WaE: -Werror=maybe-uninitializedCaolán McNamara
Change-Id: I8f63bc51c48d69eaa81bf080b05747c026871f08
2014-05-08use new VCL IsValueChangedFromSaved methodNoel Grandin
follow to commit ff1a7a59434f5f793d4044aad615bcf78148e963 "RFC: add IsValueChangedFromSaved to VCL button and listbox" Change-Id: If2e6d9e7c18590dc4abbc90362d7897ca2557dd6
2014-05-08svtools: sal_Bool->boolNoel Grandin
Change-Id: Idd9a3ccf0eb6d14cec158daa17a6b2da625f7ffa
2014-05-07The opaque PostUserEvent IDs are actually pointersStephan Bergmann
...so declare them as such. This avoids the recurring mistake of storing such IDs as sal_uInt32, truncating in 64 bit environments, causing RemoveUserEvent to potentially not remove the event, it thus firing "too late" and probably causing a crash. While at it, consolidate the trivially unnecessary overloads of both Application::PostUserEvent and Window::PostUserEvent. And in each of them, it looks like deleting the mpLink member was missing from the failure branch. Change-Id: Iab13afbb06e12ac15dec6a6b5b85a7e402a3c654