summaryrefslogtreecommitdiff
path: root/xmloff/source
AgeCommit message (Collapse)Author
2013-10-02-Werror,-Wunused-variableStephan Bergmann
Change-Id: I5e70926bba93045528d6bea319ea31ed4d72ecf4
2013-10-02Use std::auto_ptr::reset where applicableStephan Bergmann
(avoids warnings about std::auto_ptr ctor being deprecated) Change-Id: I39d2d155c0bc62ca77a30c02428ea39102213f42
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Ibb7988e0b9a63dc952ebf99463b11a3a5ba42162
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I348b73fec1823379a1bf49e9d645627ccdb76a47
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Id76f56ca86ef22fbee59387cda0832984dda5358
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Iec2cf62c1d691b3229a37bcb952553b3424b081e
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Ief9d3dc339df3f22d4774d0fc27a128d4519ab27
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Ifbc7fb710397c4f5a365e2a78775c417e352ff98
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I977c092248bdbfab33ff4d0c3a748a61d29ff745
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Idc6f30e7331a5b7621b45c4242406e3cbe3c5d75
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Ib7be15303ebaedbfe68f68fa1fe032e39e1eb32a
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I87429f4d03d89599faae6276e173707b464eae6b
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I141d1a6ea99132309dbe77f542055d6c6db31d7c
2013-10-01std::vector elements are default-initialized in constructorMatteo Casalin
Change-Id: I593c6c3236172f33b3e58fb44a41e079c3c8b0c4
2013-10-01fix Mac OSX buildMarkus Mohrhard
2013-09-30Include <algorithm> for std::sort()Tor Lillqvist
Hopefully helps a Gentoo tinderbox. Change-Id: I2e83b867113ba04a708c9fbb46c728368c4328c0
2013-09-30Add hack to optionally get stable ODF output from the same inputTor Lillqvist
To be used in regression testing and similar scenarios, where the output ODF is *not* intended to be further manipulated in LibreOffice. An environment variable LIBO_ONEWAY_STABLE_ODF_EXPORT is used to toggle this behaviour. I am not 100% sure whether the generated ODF with the hack toggled on is even fully correct, but correctness is not the purpose of the hack anyway. Two classes of issues handled: 1) Automatic style names and 2) use of randomness. For class 1), when the hack toggle is in effect, we generate the names at first as strings based on all the properties of the style, and sort them based on those, and then rename them (for brevity in the output) to the "normal" form of a short prefix plus a number (like "P12"). Sure, it would have been better to just figure out *why* the automatic style naming currently is not stable in the first place, but outputs the styles in different order (with some styles being assigned different numbers) in separate invokations of LibreOffice), but I was unable to understand that. Possibly this code could be used in all cases, except that it does break some unit test (can't recall which right now). I don't know whether that is simply because the unit test assumes too much knowledge of the internal workings of the automatic style name generation, or whether the generated ODF is actually invalid. For 2), I found a handful of places where randomness was used to generated various kinds of identifiers in ODF output. I changed those to just use large (64-bit) non-overlapping integers instead. I assume there *is* a point in the original code in each case that explains why randomness is needed, so the hack definitely needs to be optional and used only for the above mentioned scenarios. Change-Id: I17b657197e38bcf24abdfe61ad4a277f4339eeae
2013-09-29Mark as const / staticTakeshi Abe
Change-Id: Ib88b9e5533e56bb8b0b05c4e668299b033f17ffb
2013-09-26typo fixes in commentsAndras Timar
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-09-25sal_Bool to boolTakeshi Abe
Change-Id: I390b6b0d8e1c143a0d2e8f4f0a1ec80c2924942c
2013-09-25Mark as const / staticTakeshi Abe
Change-Id: I4a70ed8b527096e35fa717b87efc4b6990f29121
2013-09-25pXML_DrawAspect_Enum is no longer usedTakeshi Abe
since bc1b9d2dc0428f6a23f9284ea4a058ee55f6c3e4 Change-Id: I7e6bccc451f086093086578775e1446afe0babb6
2013-09-18Still WaE: unsafe mix of type 'sal_Bool' and type 'const bool'Tor Lillqvist
Change-Id: I16cc5dc16f16d7718dcbda8cc279ae98a89cb751
2013-09-18WaE: unsafe mix of type 'sal_Bool' and type 'const bool'Tor Lillqvist
Change-Id: I220868988af814c80c47fad9f8d43c30601d397b
2013-09-17Resolves: fdo#68431 style:font-name unknown in non autostyles in impress/drawCaolán McNamara
Change-Id: Ib904af4fac5659821ba3b5dbbf62370df8243001 Reviewed-on: https://gerrit.libreoffice.org/5810 Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com> Tested-by: Pierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-17If it is a set, don't call it a list, that just confuses the readerTor Lillqvist
Change-Id: I1d80c2ee463a0253e7e3a84331106006316c1ea6
2013-09-17sal_Bool to boolTakeshi Abe
Change-Id: I81767fda35b52e73bc78c07b660244a6808a0409
2013-09-16Insert impastp4.cxx into impastpl.cxxTor Lillqvist
Change-Id: Iccd059e2d09666775f8391a1ac2a074518a5c111
2013-09-16Insert impastp3.cxx into impastpl.cxxTor Lillqvist
Change-Id: I8038a724d79a81ac5502f926f8b8f19e2a277e74
2013-09-16Insert impastp2.cxx into impastpl.cxxTor Lillqvist
I guess "impastp" could stand for "IMPort AutoSTyle Pool" but no idea what the "l" means, I chose the name "impastpl.cxx" just to match "impastpl.hxx" Change-Id: I6e03df47f4782bfe5bd959d9b52f1fb666a3086f
2013-09-16Start of collecting the impastp*.cxx files into oneTor Lillqvist
Change-Id: Ibb4e2475efc7f70c08035184cddedfaf40b7ec25
2013-09-16sal_Bool to boolEike Rathke
Change-Id: Id32780e5cb565e85f0366a91282ce085ed7d2f3c
2013-09-15CharBrd 10: Some documentationZolnai Tamás
Change-Id: I4c6c2cd4acf8ae4a759a662f92066ad63df74b3c
2013-09-13conditional SAL_WARNEike Rathke
An attempt to import a language from fo:language is fine even if *:rfc-language-tag was already imported, just ignore this case instead of warning, warn only if Language!="qlt". Change-Id: I0f7ebc6964fe079c9f86ca19e98cfa56ec56398a
2013-09-13Bin unused MAX_CACHE_SIZETor Lillqvist
Change-Id: I00e04ba603da8b07d53a9e23134fa01ea1ab3f0b
2013-09-12Resolves: fdo#34987 skip autoheight reset if it will be set to the same valueCaolán McNamara
Triggered by aa9af08b389a106fcfb53842ac7669b208a27205 which explicitly sets rSet.Put( SdrTextAutoGrowHeightItem(FALSE) ); so there is something set on the style which is being overwritten. The code here resets the style to the default of "true" before going on to set it to the explicit "false" again. In that window of time the master shapes listen to the property change, on being set to autoheight they resize and on being unset, they remain stuck on their autoheight calculated size. Change-Id: I567a791b2bbbcb3a1a111633fabf509142984645 Reviewed-on: https://gerrit.libreoffice.org/5887 Reviewed-by: mhofmann <borim7@web.de> Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-09-12xmloff: fix Apple g++ 4.2.1 warningMichael Stahl
Change-Id: I7ded25661e7d3343afc783e804ab5f3cf0207641
2013-09-12sal_Bool to boolTakeshi Abe
Change-Id: I826911bdf06b8047ca8e3bd256687e10fb51962d
2013-09-12Mark as constTakeshi Abe
Change-Id: I1d62c66bd89ec5a813eb7b211042e392903c8baf
2013-09-10sal_Bool to boolTakeshi Abe
Change-Id: If6d39259c29e9abcb693c9b0bdfb89b94001f928
2013-09-10Mark as const / staticTakeshi Abe
Change-Id: I9bcf02b270200fd146d2bfee6f15ff1f9ad8888b
2013-09-03fdo#68839: ODF import: fix name of multi-image frameMichael Stahl
When multiple image child elements are inside a frame, each one is imported and gets unique name via SwDoc::SetFlyName(). But the retained one is not necessarily the first one, which is the only one that may have the original name. Also the solveMultipleImages needs to return a smart pointer, as nothing else keeps the image contexts alive. (regression from 44cfc7cb6533d827fd2d6e586d92c61d7d7f7a70) Change-Id: I28a8a752f3eed176cc2ebb4c9af11a0dd4d18ea6
2013-08-31cppcheck: fix redundant assignmentJulien Nabet
Change-Id: If9768751a50f302b8ad036f345ddcbcc29366b7c
2013-08-30-Werror=unused-but-set-variable second tryJulien Nabet
Change-Id: Ia8a9f60831d089ec04127213bb9ded31aa754bf7
2013-08-30Revert "-Werror=unused-but-set-variable bCategoriesApplied"Julien Nabet
This reverts commit 72e019c4e301ef93bd1be985edd037d1e2b10e28.
2013-08-30-Werror=unused-but-set-variable bCategoriesAppliedJulien Nabet
Change-Id: I43c1f866847e2029bc1547dff3be3c1ed454d281
2013-08-30fdo#68663 don't blindly force categories when there are noneLionel Elie Mamane
Change-Id: If52ea471ee3ca10e2f69d2fcd7b3ae0d5772bfc3
2013-08-24ODF filter: handle draw:shadow-opacity for Writer framesMiklos Vajna
Change-Id: I3ad39e5de5b6999d6c2182c1ec622ae7f873cafe
2013-08-23ODF export/import of fine dashed border styleZolnai Tamás
Change-Id: Ia81385dd9952e90cd5ebb3d1bba38aff6f84d079
2013-08-23CharBrd 7: Border shadowZolnai Tamás
1, New character attribute - Add the three shadow members to font (width, color, location) 2, Painting - Extract the shadow painting to a local function and use that for character shadow (paintfrm.cxx) - Reduce the painting rectangle of background (shadow doesn't inherites the background of content) 3, Border merge - Use text portion join members to skip shadow when neccessary. 4, Vertical text - Get shadow space dependant from oritentation and border merge. 5, UNO API and ODF filter Paragraph: ParaShadowFormat -> Character: CharShadowFormat Change-Id: Ief4669990d238016c3ffc18a2609a3df7d9dddbf