summaryrefslogtreecommitdiff
path: root/svx
AgeCommit message (Collapse)AuthorFilesLines
2015-12-12No need for a separate <vcl/lstbox.h>Tor Lillqvist1-1/+0
Change-Id: Ib8d0e3d240e693c678d575b4791f69ca760919ec
2015-12-11No need for a separate <vcl/graph.h>Tor Lillqvist1-1/+0
Change-Id: I962544005b5d408f7c044a02eefe09b87d8a81fe
2015-12-11No need for a separate <vcl/combobox.h>Tor Lillqvist1-1/+0
Change-Id: Iebf7b44e78fc28c20bdf0cbea84dbfd730b04016
2015-12-11tdf#69977: uno::Sequence is expensiveNoel Grandin129-670/+666
when used as a mutable data-structure. Plain std::vector halves the time taken to display the chart dialog Create a class to represent the std::vector we are going to be passing around, and move some of the utility methods into it to make the code prettier. Also create an optimised append(&&) method for the common case of appending small temporaries. Change-Id: I7f5b43fb4a8a84e40e6a52fcb7e9f974091b4485
2015-12-10loplugin:nullptr: More NULL -> nullptr automatic rewriteStephan Bergmann2-3/+3
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
2015-12-09unnecessary nResId argumentCaolán McNamara1-1/+1
Change-Id: Id7d3df1af42cbe7b4f951c335063d26b59e7bc10
2015-12-09Use unique_ptr out-arg to in SfxBindings::QueryState to avoid mem leaksStephan Bergmann2-10/+7
Change-Id: I35df02de675068478a36ef05266ffc2d3054b07f Reviewed-on: https://gerrit.libreoffice.org/20477 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-12-08Related: tdf#71622 compress more gfx in odf streamsThorsten Behrens1-1/+27
Except for jpeg and png, most natively-stored image fileformats compress rather well with zlib. adding a number of vector and pixel formats. Change-Id: I97407a98f620520b0d11552911d2339bf004dc5b Reviewed-on: https://gerrit.libreoffice.org/20461 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-12-03uno:Sequence->std::vector in SmartTagMgrNoel Grandin1-4/+4
Change-Id: I163f7d6c0f30ac2929df1cae202e695d21bb49fc
2015-11-28Don't leave sdr::table::Cell members implicitly declaredStephan Bergmann1-0/+3
...otherwise, as the class is SVX_DLLPUBLIC and---for better or worse--- SVX_DLLPUBLIC is shared between Library_svxcore and Library_svxcore, all .cxx in Library_svx that happen to include cell.hxx would emit them (as well as those in Library_svxcore, of course), and the copy ctor requires the vtable, which in turn requires an adjustor thunk for Cell::getPropertyStates, which happens to not be emitted into any of the Library_svx .cxx that require it under clang-cl due to <https://llvm.org/bugs/show_bug.cgi?id=25641> "clang-cl: vtordisp thunks not emitted for functions with class template specializations in their signatures." Change-Id: Ib03b7002f9dfe3c2df742640ef7406cf24a7cecd
2015-11-28Non-implicit virtual SvxPageItem dtorStephan Bergmann1-0/+2
...otherwise, as the class is SVX_DLLPUBLIC and---for better or worse--- SVX_DLLPUBLIC is shared between Library_svxcore and Library_svx, all .cxx in Library_svxcore that happen to include svx/pageitem.hxx would emit it (as well as those in Library_svx, of course). But at least clang-cl at /O0 would want to put SvxPageItem's (base-class) vtable in place in the dtor, so would also emit the vtable, so would depend on SvxPageItem::operator==, but that is defined in pageitem.cxx in Library_svx, against which Library_svxcore doesn't link. Change-Id: Ibfc393c1de3e0bd6621c057d88b1b0f272820154
2015-11-27gengal script calling gengal.bin is not needed on MacStephan Bergmann1-1/+2
Change-Id: If965ab126be497a7b2af227a843aeb746901def2
2015-11-26loplugin:unusedfields variousNoel Grandin7-14/+0
Change-Id: I18f94269a1172cf195ee402384f7144610e1e82d
2015-11-26tdf#93837 Add UNO-based SmartTag menu controllerMaxim Monastirsky4-3/+264
... and use it for the standalone context menu. The sfx2 controller (SvxSmartTagsControl) is still used for the submenu variation, and is due to be removed after the new context menu implementation is in place. Change-Id: I2f889428eb777149f43d74cf3d081e19ab0ebb4a Reviewed-on: https://gerrit.libreoffice.org/20169 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-11-25Convert to range based forAndrzej Hunt1-3/+3
(This was also used for testing loplugin:rangedforcopy) Change-Id: I246994feb7bf66d337b76e3f02d7fea2cb13d42a
2015-11-25tdf#96059 Replace imageproducer with CommandInfoProviderSamuel Mehrbrodt1-1/+0
Change-Id: I9508a947e5ae6720516d9f926a59d4287cb15317 Reviewed-on: https://gerrit.libreoffice.org/20166 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-25tdf#76825 Add padding between style render and context buttonYousuf Philips1-1/+2
Change-Id: I2d1185d433be0fbb57a59e0609ab0f505248a348 Reviewed-on: https://gerrit.libreoffice.org/19210 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-25loplugin:unusedfields in include/svxNoel Grandin12-39/+12
Change-Id: I946c64d103f3666e5bbff16d95a5c8e65a3750dc
2015-11-25loplugin:unusedfields in include/sfx2/Noel Grandin2-2/+2
Change-Id: I3eb27ed10e82ee56b33866ac576c1b1f8c9756b9
2015-11-24crashtesting: ooo72999-1.ods NaNs found in light directionCaolán McNamara1-0/+5
and NaN != NaN so busted logic propogates, drop invalid directions on initial read Change-Id: Ic76c714666df14d37a4c68f43b817327675bd0e0
2015-11-24tdf#95970: Don't loose mirroring in SdrTextObj::TRSetBaseGeometryMike Kaganski1-0/+13
Currently, negative scaling (mirroring) is lost in SdrTextObj::NbcSetSnapRect, when rect is justified. This patch cares for this. Possibly it's better to make these changes directly in SdrTextObj::NbcSetSnapRect? Change-Id: I353ff01626e15b398de95e28eae78572991dfdc3 Reviewed-on: https://gerrit.libreoffice.org/20109 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2015-11-23crashtesting: fdo30583-1 hits the Clone ugly tree all the way downCaolán McNamara12-0/+104
Change-Id: I091c3a61a28275e090975016908e3b25c7506fba
2015-11-23VirtualDevices either match another device depth, or are 1 bitCaolán McNamara1-1/+1
cairo can therefore always render to a svp virtual device with need for a fallback Change-Id: I5d03ae541820389e26f7448444444be009fb28a4
2015-11-23establish that Virtual Devices either match Physical Device depth or ...Caolán McNamara2-3/+3
are 1 or (rarely) 8 bit and lock that down. Change-Id: I3d946ebef34ffb71c5adea7aa420af50e9584e05
2015-11-23loplugin:unusedfields in svx/Noel Grandin8-25/+8
Change-Id: Ia6531b1ff8882ad06084f11dd10e2b1fe3c8cf24
2015-11-23SvxSmartTagsControl: Do not leak sub menusMaxim Monastirsky1-6/+4
And while on it, move other things to smart pointers as well. Change-Id: I8b234b8a9fe60e0ca82bb08e48f6b7db94cbcd4d
2015-11-21tdf#95963: Add required Clone functions for ImpressJulien Nabet4-0/+28
See https://bugs.documentfoundation.org/show_bug.cgi?id=95963 for more details Change-Id: Ia3fbf4db8d5b968e86007f7e9d6694d5e096f214 Reviewed-on: https://gerrit.libreoffice.org/20107 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2015-11-20add mapKeysToSequence/mapValuesToSequence methods to comphelperNoel Grandin3-26/+5
and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-19use comphelper::containerToSequenceNoel Grandin4-40/+8
in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
2015-11-18svx: SdrLayerNameItem etc. missing Clone overridesMichael Stahl2-0/+11
Change-Id: I26ca8070d9c9607a475267ef8780f9013dfd4dcf
2015-11-18svx: SdrEdgeNode1HorzDistItem etc. missing Clone overridesMichael Stahl1-0/+29
Change-Id: I2bc2de3c3a71dd54e432905c129a3dbd5395f6ab
2015-11-18Revert "Flip buttons: Make the tooltip an uno command property"Samuel Mehrbrodt1-13/+40
The text should be in the extended tooltips, not in the default ones. This reverts commit 0e41564b2fa5192ef1e8ec5e51ad3c04dfa52afd.
2015-11-17No point to link against pure UNO component library fwkMatúš Kukan1-1/+0
Change-Id: I44d979180e53a7251547cebd60cf05c8322b2b83 Reviewed-on: https://gerrit.libreoffice.org/20028 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-11-17loplugin:unnecessaryvirtualNoel Grandin2-2/+2
update the plugin with lessons learned from the mergeclasses plugin and re-run it Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711 Reviewed-on: https://gerrit.libreoffice.org/20015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-17Don't assume sal_Unicode is unsigned shortStephan Bergmann1-1/+1
Change-Id: I5779c639c480d5a2fbefd47942a662ff7ca4a9f5
2015-11-16use initialiser list for Sequence<OUString>Noel Grandin2-8/+2
Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-16Cleanup: Consolidate the different ways to get command labels/tooltipsSamuel Mehrbrodt1-1/+0
Change-Id: Ieab809a3122c9d592894b84ec2e68195a4e02dde
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian2-982/+700
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin6-13/+6
using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin16-52/+26
replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin4-12/+6
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-14tdf#95403 Add Outline buttonMaxim Monastirsky3-40/+106
Change-Id: I0d5187ed34539a05ab9f2ffdfb89118df0aa3511 Reviewed-on: https://gerrit.libreoffice.org/19964 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-11-15Fix license headerMaxim Monastirsky1-10/+0
This is an original file created by me. Not sure how I missed the wrong header. Change-Id: Ic56d66b1b10aa83dee835925dbf2e9a6d6a130ab
2015-11-13tdf#86886 Shortcut keys missing in undo and redo tooltipsSamuel Mehrbrodt1-3/+3
Change-Id: I8df003bdad4430a174815ce51197b997717ef379
2015-11-13svx: loplugin:badstaticsMichael Stahl2-5/+2
Change-Id: Ief31d8153fdbf91cdd29df5ac7801bd88a98542e
2015-11-13svx: rename static variableMichael Stahl1-5/+5
Change-Id: I98246395bb0de7444864ce35d1cbdd4711b5bfeb
2015-11-13Flip buttons: Make the tooltip an uno command propertySamuel Mehrbrodt1-40/+13
Change-Id: I3d6984b3b51e7eb2affa7fafebf8b745e60b3f20
2015-11-12tdf#95551 - fix image map crash.Michael Meeks1-3/+9
Remove listener we add, and don't crash on callback for disposed dialog. Change-Id: Ia6a1bddd212cb28a0331469e8e87324346d02841
2015-11-12Sidebar: Make the flip buttons available for Images in Writer alsoSamuel Mehrbrodt1-104/+26
And reduce copypasta Change-Id: I140bb8ad68bc35ba41c272cc4eb89b4a2d209a45
2015-11-12tdf#90357 create correct undo actionArmin Le Grand1-0/+8
when merging in pages from another model the already cloned page references a masterpage from the old model. To not create an undo action that falsely reflects that, remove the masterpage from the page first. This reflects better what happens in this state, setting the masterpage for this page the first time. Change-Id: I0288268cb0963ddc2e8446661ffd30a94a0744d2