summaryrefslogtreecommitdiff
path: root/sw/source/uibase/misc
AgeCommit message (Collapse)AuthorFilesLines
2016-09-08loplugin:constantparam in swNoel Grandin1-1/+1
Change-Id: Ic49d1c3c7b57fb213964ddc21b0f774c762aad94
2016-08-30Let OUStringLiteral1 take its arg as ctor arg, not template argStephan Bergmann1-5/+5
...which makes it more flexible, can now also be used on non-const arguments. The drawback of the argument no longer being a compile-time constant is remedied by making the ctor constexpr. Change-Id: Ia4903a2cc86791fece92eac0cb8406b6659dd19d
2016-07-13tdf#84635 - Slow layout of large tablesNoel Grandin1-3/+7
Based on suggestion from Aron Budea. And do something similar to most other places keeping vectors of weak references where the code looks like it will hold more than a few entries. Measurements: the 26 page file file takes 51s without my path 15s with this patch the 69 page file file takes 5m28 without my path 51s with this patch the 84 page file file takes 8m28 without my path 58s with this patch Change-Id: I8da94c525fc73ebd969e0343c6f074be4f0063b1 Reviewed-on: https://gerrit.libreoffice.org/27093 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-27loplugin:singlevalfields in sw(part1)Noel Grandin1-5/+3
Change-Id: I0c6f545a8818da1f226c3958580abeeff0dc87b7 Reviewed-on: https://gerrit.libreoffice.org/26664 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-23tdf#97527 - vcl: reference-count MenuNoel Grandin1-4/+4
some places are marked with "dodgy"- need to check those to see what is going on, because they are leaving dangling pointers behind in the Menu class Change-Id: I41d5c7c0fec2f70ce9e3ffdc48cd03d26c0a869b Reviewed-on: https://gerrit.libreoffice.org/26516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-14the __RSC hack is only needed in src files and things included from src filesCaolán McNamara1-2/+0
Change-Id: I50c122426030ba5b508dcd6ac33464ecab154981
2016-05-30Convert SelectionMode to scoped enumNoel Grandin1-1/+1
Change-Id: I86c435de3918540cb54a0cb24568e58456c2f9d1 Reviewed-on: https://gerrit.libreoffice.org/25611 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-18clang-tidy performance-unnecessary-copy-initializationNoel Grandin2-4/+3
probably not much performance benefit, but it sure is good at identifying leftover intermediate variables from previous refactorings. Change-Id: I3ce16fe496ac2733c1cb0a35f74c0fc9193cc657 Reviewed-on: https://gerrit.libreoffice.org/24026 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-31tdf#84938 convert INSERT_NUM_ constants to scoped enumNoel Grandin1-8/+8
Change-Id: If5880558bb04a71ebc4ef76aa4f5aac3d10040f9
2016-03-31sfx2: make SfxDispatcher::Execute() less variadic ...Michael Stahl1-2/+3
... and less overloaded; C++11 initializer_list should make undefined behavior as fixed in ba0a866b83f016fd460320e7d057dd107e019f19 less likely. Change-Id: I15cc0804451b6a4fcbfaa623f9a30db222207865 Reviewed-on: https://gerrit.libreoffice.org/23666 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-03-22loplugin:constantparam in swNoel Grandin1-4/+4
Change-Id: I56925a8fd776b3ee787cc26adbaa08c58dd022c0
2015-12-21loplugin:unusedfields in swNoel Grandin1-2/+1
Change-Id: I4d987718bf27766c8cd7f3654db6645e5a7f554a
2015-11-25bin/rename-sw-abbreviations.shlibreoffice-5-1-branch-pointRobinson Tryon1-3/+3
This commit renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I77e5134f42f25e3786afa36b7a505c7e3237a9e8
2015-11-115th step to remove tools/rtti.hxxOliver Specht1-2/+0
tools/rtti.hxx removed completed the interface of some Sdr.* Items and removed pseudo items Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a Reviewed-on: https://gerrit.libreoffice.org/19837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-11sw: prefix members of SwRedlineAcceptDlgMiklos Vajna1-186/+186
Change-Id: I88954e88dce974a657575a23706d7ee9542ab530
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann4-31/+31
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
2015-11-09formatting improvements in sw/Noel Grandin1-1/+1
after my recent "com::sun::star->css in sw" commit Change-Id: I2545648fc6f14ea0ebcabbe012e91546cf392b16
2015-11-06com::sun::star->css in sw/source/coreNoel Grandin1-1/+1
Change-Id: I30016977f1be8fb53dd239367d043de92a9467d9
2015-11-05use uno::Reference::set method instead of assignmenNoel Grandin1-1/+1
Change-Id: I76671a74150791e1a74ece3d5bcf40fd6c727ac7
2015-10-28tdf#91270 fix crash on exit (Windows)Andras Timar1-8/+8
dynamic atexit destructor and const static variables reportedly cause crash, let's avoid this. Change-Id: I24234084f810854606dde9914bee1c98ebc2e3dd Reviewed-on: https://gerrit.libreoffice.org/19656 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-10-21refactor out some com::sun::star typedefsNoel Grandin1-2/+2
which mostly serve to make the code harder to read Change-Id: Ia2a83fee9f850ab6f0bea6305ce8600d6b785fe8
2015-10-20loplugin:defaultparamsStephan Bergmann1-2/+2
Change-Id: I11ff551955c1ac291ab576f2f18c2dd410427eda
2015-10-06loplugin:loopvartoosmallNoel Grandin1-1/+1
Change-Id: I502a7b8b2d18c9bd5c82e8abd8e3d98f21e8c446
2015-10-05sw: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl1-10/+14
Change-Id: Iac4d1dcab229c3236d09af4e63d9e33bc038f23d
2015-10-05sw: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl1-20/+20
Change-Id: I44f3ff3779ea9c35fadc02ae6f2970d33aeb2f25
2015-10-01remove old standalone Sun bug numbersNoel Grandin1-2/+0
Sun bug numbers without any accompanying text are completely useless. Fixed with git grep -lP '//\s*#\d+#\s*$' | xargs perl -i -ne'/\/\/\s*#\d+#\s*$/d or print' And then hand-checking the result to restore places where it deleted code. And then some more grepping and hand-editing to kill the others. Change-Id: Ia96ce4466db8bb8da363ebf41f0ae7f45f28bf29 Reviewed-on: https://gerrit.libreoffice.org/19023 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-17boost->stdCaolán McNamara3-7/+7
Change-Id: Idfbcfa1e5ba7bff92e98693c33c4b33a6beda08f
2015-09-08convert Link<> to typedNoel Grandin1-11/+5
Change-Id: I7c7a4bbaa4670e873599ad2533a1c2de713cf53f
2015-09-08convert Link<> to typedNoel Grandin1-3/+1
Change-Id: Ia7bdaa3a02af8f81884d81d60c0f135af2f8aeae
2015-09-08convert Link<> to typedNoel Grandin1-5/+2
Change-Id: I365a81a0a960f5da736c9a97aa056da16c99452f
2015-08-31convert Link<> to typedNoel Grandin1-3/+1
Change-Id: I22f995b905e7abf1451a0636083bf19b3f2d9bc4
2015-08-25make pWindow private in SfxChildWindowNoel Grandin1-2/+2
Change-Id: I585d4e8f0a53f46b6fbcef9e4d26f88b57569684
2015-08-21loplugin: defaultparamsNoel Grandin2-3/+3
Change-Id: I2315996f0fa147615554baf8607882eb32af2f34
2015-08-03sw: inline use-once typedefsNoel Grandin1-1/+1
Change-Id: Id0e54c92769e6c82690fe6f1eab488fcabe6c655
2015-07-06improve the returnbyref lopluginNoel Grandin1-2/+2
Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb Reviewed-on: https://gerrit.libreoffice.org/16731 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-30remove some unnecessary typedefs to pointerNoel Grandin1-3/+3
that were really not helping make the code any clearer. Found with a search git grep -P 'typedef\s+\w+\s*\*\s*\w+\;' and manual inspection Change-Id: I6a5c031e9e060ad3623a7586ec8a8cc4fe6252e9
2015-06-24Get rid of comphelper::string::is*Ascii functionsStephan Bergmann1-2/+1
Change-Id: I99912112e5b009d7a143f9816d757cdf6ebb1783
2015-06-02loplugin: loopvartoosmallKatarina Behrens1-1/+1
Change-Id: Icb30dac9cdcba493752623ccafff5f06ccafc31f
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1-19/+19
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-05-17loplugin:staticmethodsStephan Bergmann1-20/+31
Change-Id: I441cafcd641477626eb8de9d4b35212fd29af248
2015-05-15refactor swruler to use RenderContextTomaž Vajngerl1-23/+23
Change-Id: I16e1888900478c000c4437299357276e20c197c0
2015-05-12Switch VclBuilder constructors to use VclPtr.Michael Meeks1-2/+2
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
2015-05-11Revert "Switch VclBuilder constructors to use VclPtr."Michael Meeks1-1/+1
Behaves oddly; not ready yet. This reverts commit 9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c. Change-Id: I30d746eac29d1dbe78d3072b10d2e22c051e3f4e
2015-05-11Switch VclBuilder constructors to use VclPtr.Michael Meeks1-1/+1
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
2015-05-11tdf#91052 - more macros for 'make' constructors.Michael Meeks1-1/+3
Change-Id: Iece86485c52041b66cde91d7fbc772db16d90a93
2015-05-11convert COMMAND_ constants to scoped enumNoel Grandin1-1/+2
Change-Id: I88e67f89dbbab0646e8f106dfeb32c6ee1bb0b95 Reviewed-on: https://gerrit.libreoffice.org/15671 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-05Use typed Timer::SetTimeoutHdl LinkStephan Bergmann2-9/+10
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-05-02redline dialog handle post-dispose event bits.Michael Meeks1-3/+2
Change-Id: I5739c0ac6529b1c51866d81c30df4a185ffa6ecd
2015-04-29Protect against event emission during dispose.Michael Meeks1-0/+3
Change-Id: I8c97fdb637a8ea4d50bef5815ef3716a4be03688
2015-04-29convert SVXRULER_SUPPORT constants to scoped enumNoel Grandin1-1/+1
Change-Id: Id6c2571b5a060530437509a8dc203dc1a346f773