summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unostyle.cxx
AgeCommit message (Collapse)AuthorFilesLines
2015-11-29use constexprs and static_assert()Bjoern Michaelsen1-47/+25
Change-Id: Ie0ede65560b7d8f5e8b5f0085bc54485de4b37ef
2015-11-29use constexprs and static_assert()Bjoern Michaelsen1-8/+8
Change-Id: Ia7abeed325d8bc845e35bb9e7667cec6b83ac11f
2015-11-29remove hugely scoped superficial AnyBjoern Michaelsen1-3/+1
Change-Id: Icba8dfb466afb085b52ac55d5eb95b3f94d7c116
2015-11-29clean up and reduce indent levelsBjoern Michaelsen1-125/+112
Change-Id: I8b1492d1c5162cc174c6fedcf7b7253f7ffc5d93
2015-11-29formattingBjoern Michaelsen1-31/+14
Change-Id: Ifa2276e8ded10832af8ddb7c3e54b2ec630d92bc
2015-11-29clean up and reduce indent levelsBjoern Michaelsen1-16/+12
Change-Id: I85fe89e9ef9a6afe79e7e31a3d3d9be85936394d
2015-11-29clean up and reduce indent levelsBjoern Michaelsen1-16/+12
Change-Id: Ib1e2a6295c7cbf64156906c424249bcde0009bed
2015-11-29clean up and reduce indent levelsBjoern Michaelsen1-22/+18
Change-Id: I35b66d310d411683c70687b762eadfeecb016275
2015-11-29clean up and reduce indent levelsBjoern Michaelsen1-23/+18
Change-Id: I291d5500b2bda1a9986a72cba8513a2897233689
2015-11-29reduce scope with template specializationBjoern Michaelsen1-110/+151
Change-Id: I7bfbaa3898f34e1ed931f5865b493aae66e28c0f
2015-11-29use enum right awayBjoern Michaelsen1-2/+2
Change-Id: I6a9469e9fde9a22c7a1c83c7e98e047a2db583bf
2015-11-27MSVC fixStephan Bergmann1-4/+4
Change-Id: I41902dbeac80f73f7991c835b66e2bbc7421d3b5
2015-11-27loplugin:passstuffbyrefStephan Bergmann1-1/+1
Change-Id: I10353a94ca12cf4af18f498464610d48477f11f4
2015-11-27simplify options hereBjoern Michaelsen1-41/+25
Change-Id: I9faa4ea8aec6ecd439751323b76bf2d8b071e4ac
2015-11-27reorder as we are touching this alreadyBjoern Michaelsen1-34/+28
Change-Id: Ie00f27203a28a139de073102428fe9b99db507ea
2015-11-27keep containers in a map to simplify thingsBjoern Michaelsen1-65/+8
Change-Id: I20db506fb232c408b7b96e3b1a54da44f342d8bd
2015-11-27make ResId another member of entries tableBjoern Michaelsen1-22/+13
Change-Id: I80e1047e43e6871520f004ec0f68f96d5a742115
2015-11-27remove boilerplateBjoern Michaelsen1-7/+2
Change-Id: Id06e8bfdff74a9cfecd74bcae4daa70782e684e0
2015-11-27reduce boilerplateBjoern Michaelsen1-7/+2
Change-Id: I726d824d6b6c42e7e395a99a6b3b6019d91e764d
2015-11-27use one styles vector instead of multiple tablesBjoern Michaelsen1-66/+50
Change-Id: I276f2fae8083f3131fa3ff92fc7633c0f88a3ed6
2015-11-25bin/rename-sw-abbreviations.shlibreoffice-5-1-branch-pointRobinson Tryon1-8/+8
This commit renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I77e5134f42f25e3786afa36b7a505c7e3237a9e8
2015-11-16use initialiser list for Sequence<OUString>Noel Grandin1-6/+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-15use initialiser for Sequence<OUString>Noel Grandin1-6/+2
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-115th step to remove tools/rtti.hxxOliver Specht1-1/+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-11new loplugin: memoryvarNoel Grandin1-15/+12
detect when we can convert a new/delete sequence on a local variable to use std::unique_ptr Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc Reviewed-on: https://gerrit.libreoffice.org/19884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-47/+47
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
2015-11-09fix a set of race conditions in the writer uno wrappersBjoern Michaelsen1-0/+2
- whenever SwClients are added or removed, the SolarMutex should be locked - locking the mutex there would be a performance killer - thus only DBG_TESTSOLARMUTEX() and fixing the fallout on DBG_UTL builds Change-Id: I3b10b9a01c40fbe68d15ce6e9c5c74db34eb1eb6 Reviewed-on: https://gerrit.libreoffice.org/19856
2015-11-01crashtesting: failure on tdf89191-1.odtCaolán McNamara1-12/+13
crash since commit 664197d95becd516c3dac25a50439078ba61e051 Author: Justin Luth <justin_luth@sil.org> Date: Thu Sep 10 11:41:11 2015 +0300 tdf#36117 .docx preserve page vertical alignment after RT Change-Id: I225fa4dc0a7ea2eab6ef748f7c72bfad361257dd
2015-10-27don't allocate uno::Reference on the heapNoel Grandin1-30/+20
There is no point, since it's the size of a pointer anyway (found by temporarily making the new operator in uno::Reference deleted). Change-Id: I62a8b957fef9184f65d705600acfdab4116dcb34 Reviewed-on: https://gerrit.libreoffice.org/19603 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-22sw: prefix members of SwXAutoStyleFamilyMiklos Vajna1-14/+14
Change-Id: Ic2865ff81a79b0d96b950b310723262959d080b5
2015-10-20sw: prefix members of SwXAutoStylesEnumeratorMiklos Vajna1-11/+11
Change-Id: I9302aeb9f6ac6003e546e5a96e595dcad161187b Reviewed-on: https://gerrit.libreoffice.org/19490 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-10-19sw: prefix members of SwXAutoStylesMiklos Vajna1-10/+10
Change-Id: Ie6c05a9e63c18275eaf01952add9068c2b46d4e7
2015-10-19sw: prefix members of SwXStyleMiklos Vajna1-106/+106
Change-Id: I0f80f52c31c68521b89faf123e45ce458883d76b
2015-10-19tdf#36117 .docx preserve page vertical alignment after RTJustin Luth1-0/+15
Change-Id: I90174f7a98e9bd01f45ee668f127356ff3e0e4ed Reviewed-on: https://gerrit.libreoffice.org/18481 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org>
2015-10-16sw: prefix members of SwXStyleFamilyMiklos Vajna1-58/+58
Change-Id: Ifa56b2ea81798d8a5e347bfbabc304bd83b8ac66
2015-10-07sw: prefix members of SwXStyleFamiliesMiklos Vajna1-32/+32
Change-Id: I073d3c741ea055b673d7720508b4729d28f7e49c
2015-10-01Fix typosAndrea Gelmini1-1/+1
Change-Id: I85e0c180df952c51b537b5408653160aad8b9a32 Reviewed-on: https://gerrit.libreoffice.org/18986 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-08-26tdf#92379: sw: ODF import: fix fo:background-color="transparent"Michael Stahl1-1/+5
The problem is that if the FillStyle is NONE, setting only ParaBackTransparent but not ParaBackColor does absolutely nothing. This means that if a parent style sets a background color, then a derived style cannot override it to be transparent. Cause is that getSvxBrushItemFromSourceSet() defaults to setting a 0xFF transparency on the SvxBrushItem. There is still a problem that getSvxBrushItemFromSourceSet() sets the pool default item's color and that is also exported to ODF again as draw:fill-color, but together with draw:fill="none" it should not cause harm, at least for consumers that prefer draw:fill attributes like LO >= 4.4. (regression from 7d9bb549d498d6beed2c4050c402d09643febdfa) Change-Id: I5312901166a0e6f0cf02369b173dc8498e4113ed
2015-08-22tdf#92379: svx: don't overwrite fo:background-color on ODF importMichael Stahl1-2/+2
getSvxBrushItemFromSourceSet() is called once for each property of a frame style that is set, and the "solid" fill-style is set by first applying the BackColorRGB and then BackTransparency property. So there is an intermediate state that has fill-style NONE but a XFillColorItem set - don't reset the color to white in that case! Apparently writerfilter generally relies on the current reset-to-AUTO implementation (loads of test failures), so for now limit the fix for when we know that a frame style is imported from ODF. (regression from 3d399b0e45720354fc64dc3d121ee486e01eff89) Change-Id: Ia987fe586ec819a1f3cd85acdbfb03c74ca0ec2c
2015-08-20loplugin: defaultparamsNoel Grandin1-13/+13
Change-Id: I463bbaf86b4a44e8bdf5388404730ab3dcd9b9fe
2015-07-20WaE: maybe-uninitializedCaolán McNamara1-2/+2
Change-Id: Idbe9f52b0c4b6eeb2fb7b5d934727bd74e96e6d3
2015-07-08Fix typosAndrea Gelmini1-2/+2
Change-Id: I020c7ce4d9aa93cb0292378a410cdb9f7788e920 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-07-02some other coverity thingsCaolán McNamara1-1/+1
Change-Id: I89ffd2b918f8707cde1b1d015c1ad35ef484b69c
2015-06-28coverity#1308492 Uncaught exceptionCaolán McNamara1-1/+2
Change-Id: I80543ac6f26c4d078e9dd1ef384b03c54121239c
2015-06-27coverity#1308478 Uncaught exceptionCaolán McNamara1-1/+1
Change-Id: Ifce0dccd4bb93dd1d8ed2a551d35ff0fd89d3e6c
2015-06-02loplugin: loopvartoosmallKatarina Behrens1-1/+1
Change-Id: Icb30dac9cdcba493752623ccafff5f06ccafc31f
2015-05-26cppcheck: noExplicitConstructorCaolán McNamara1-1/+1
Change-Id: I955b04396d27e88ce228f180275955071da83ec6
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1-124/+124
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-05-18tdf#89783: Allow more than 64k PageDescsKatarina Behrens1-5/+5
+ adjust related code using the functionality Change-Id: I6fa4ad04137643009ee39522c36d6c9e6f3d2502
2015-05-05Use more proper integer typesMatteo Casalin1-11/+12
Change-Id: If1515df57cd90451f2c912bf5c268fec8688c063