summaryrefslogtreecommitdiff
path: root/xmloff/source/style/impastpl.hxx
AgeCommit message (Collapse)Author
2019-01-22tdf#42949 Fix IWYU warnings in include/xmloff/*Gabor Kelemen
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Id20e0bc42e39f868a7c5d49d756f2ad5e14a86c0 Reviewed-on: https://gerrit.libreoffice.org/66637 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2018-09-13loplugin:constfields in xmloffNoel Grandin
Change-Id: I9623e6b483b28f5b50a2c76016bcc319b375a35a Reviewed-on: https://gerrit.libreoffice.org/60394 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-10tdf#65353 filter fonts when embedding (unused, font script)Tomaž Vajngerl
When embedding, the fonts are gathered and added to the ODF document. This change in addition adds the functionallity to embed used fonts only and filtering out of font scripts. When embedding used fonts only, they are filtered depending on if the style (referencing the font) is in use and in addition if the font is used in direct formatting. Change-Id: I1ba0066b1eb34bdde7247eeb63c1be5a91db984d Reviewed-on: https://gerrit.libreoffice.org/57168 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-07-28loplugin:constparams in xmloffNoel Grandin
Change-Id: I136ee42523a40c576d7cf0b66abbf50ad9be052f Reviewed-on: https://gerrit.libreoffice.org/40517 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08loplugin:checkunusedparams in xmloffNoel Grandin
Change-Id: I59d2cb1f69882b62e6fe732e9d9214feec8a79a2 Reviewed-on: https://gerrit.libreoffice.org/37283 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-27loplugin: unnecessary destructor writerfilter..xmloffNoel Grandin
Change-Id: I511822dc874101ed3b9850b015b746a86d26c3b5 Reviewed-on: https://gerrit.libreoffice.org/33578 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-23ditch some empty dtors which match the default dtorCaolán McNamara
Change-Id: Id2450b03e6c8c5461e92d995ea8c33d5dfd55a45
2016-09-26implement prototype for more stable calc cell style namesMarkus Mohrhard
This should ensure that as long as the style does not change the cell style name is the same after an import export cycle. Each ScPatternAttr stores a unique ID and we store the ID to name mapping during import. During export if we find a ScPatternAttr that has a key that is also stored in the map we write back the style name from the map. To avoid name collisions we block the style names from the import for the export. The missing piece to make this completely awesome is now to make sure that styles are sorted by name during export. That way we can reduce the diff between import and export even more. Change-Id: Ie4fe2aa00f07efec27ea129e314ac0b6b7e0d8c0 Reviewed-on: https://gerrit.libreoffice.org/29255 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-09-14loplugin:countusersofdefaultparams in xmloffNoel Grandin
Change-Id: Ia92a878ac97b3cc668594946e77a718f27a3e3ed Reviewed-on: https://gerrit.libreoffice.org/28890 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-07-27loplugin:countusersofdefaultparams in tools..xmlsecurityNoel Grandin
find methods with default params with only zero or one call site Change-Id: Ie5b30f60e9fe00ba1acf0dfc79b005ded46f05a0 Reviewed-on: https://gerrit.libreoffice.org/27512 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-18Remove needless typedef from xmloff/source/style/impastpl.hxxRyan McCoskrie
Change-Id: I573f7933c6353ae92774517a522fc63f871a09fb Reviewed-on: https://gerrit.libreoffice.org/24178 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-13tdf#94306 replace boost::noncopyable in stoc to xmlsec..Jochen Nitschke
Replace with C++11 delete copy-constructur and copy-assignment. Remove boost/noncopyable.hpp includes. Add missing default ctors. With this commit there should be no users of boost::noncopyable left. Change-Id: I6b1e47824912a6a80cc3f00f34938ebc048d8975 Reviewed-on: https://gerrit.libreoffice.org/24051 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-11-26com::sun::star->css in xmloff/Noel Grandin
Change-Id: Iee6e21e093fb1383f19a0716dbc1c341f446b8c2 Reviewed-on: https://gerrit.libreoffice.org/20192 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-02xmloff: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: Icb51f02ca761d683d926135fcaedc1164cd1ae8d
2015-08-19comphelper: reduce copypasta with UniquePtrValueLess functorMichael Stahl
Change-Id: Ib93b818eeebc2f370535d1b061beabf7e8c65257
2015-08-07stupid warningMichael Stahl
Change-Id: I1ec30be94ebfc7449a1bd946a73a52eafbe67264
2015-08-07xmloff: replace boost::ptr_set with std::set<std::unique_ptr>Michael Stahl
boost::ptr_set was actually quite nice here, pity about the obnoxious warnings... Change-Id: I46973635fd26e4f1db96f2806c211b83436bef5e
2015-08-07xmloff: replace boost::ptr_set with std::set<std::unqiue_ptr>Michael Stahl
Change-Id: Iaacebe5d88ad8b124f0891f5a7763b9868a6022a
2015-05-24cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I8c9e970d5c5931de1a7526cbff3de626ef30bd74
2014-07-02drop UniReference in favour of rtl::ReferenceNoel Grandin
since they're doing the same thing. Change-Id: I76134b6b848db8628f315fe5bd9eb972a6bf0cb6
2014-04-15xmloff: sal_Bool->boolNoel Grandin
Change-Id: I873c80baec8e70e3e8f642644563b92137571a30
2013-12-13Drop duplicate #includeTakeshi Abe
Change-Id: I63612bc5bd4e13fcc5c4e57ac73bd9c7bbf4f0e6
2013-10-23fixincludeguards.sh: xmloffThomas Arnhold
Change-Id: I0e7d9daac1ad88fad8d240373e91ef323966bb47
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-17If it is a set, don't call it a list, that just confuses the readerTor Lillqvist
Change-Id: I1d80c2ee463a0253e7e3a84331106006316c1ea6
2013-09-13Bin unused MAX_CACHE_SIZETor Lillqvist
Change-Id: I00e04ba603da8b07d53a9e23134fa01ea1ab3f0b
2013-08-17No need for elaborate type name for this.Kohei Yoshida
Change-Id: Ia29a5956813c5d71f042f774d00de3bc82b7f1aa
2013-08-17Move static struct to where it's used, and use std::vector for this.Kohei Yoshida
Change-Id: Id68fa488731d3b34213db23bf4d50f73b04c6fe4
2013-08-17This function object is no longer used.Kohei Yoshida
Change-Id: I0aa881bae4c1ee0857bafef78094a3d92bcc0702
2013-08-17Rename SvXMLAutoStylePoolPropertiesP_Impl to XMLAutoStylePoolProperties.Kohei Yoshida
Change-Id: Ib2bd2da3852fdd8110d6d799b5a4091f2a89f0a8
2013-08-17Rename SvXMLAutoStylePoolParentP_Impl to XMLAutoStylePoolParent.Kohei Yoshida
Change-Id: Ia5fe8e386fd363f0b5bb81b3d0e8fd1e15efe430
2013-08-17Rename XMLFamilyData_Impl to XMLAutoStyleFamily.Kohei Yoshida
Change-Id: I9798408dc92a983fecc98c42516482afcb12ae25
2013-08-16Using ptr_vector for this simplifes it a bit...Kohei Yoshida
Change-Id: Id772a260475de7e9c8599616eff189851af6b356
2013-08-16Use ptr_set for auto style parent list. That seems like a natural fit.Kohei Yoshida
Change-Id: I9fc094ec4aa7e4a6d4e637c5940c361639d44c65
2013-08-16This cache data member is never used. Remove it.Kohei Yoshida
Change-Id: I03d55ce8cfe175a75ed22639a06ac22c8783ccd7
2013-08-16Tuck this typedef inside class scope where it's used.Kohei Yoshida
Change-Id: I2b3a0479f9aeecd601b3fea4a262f614ec437945
2013-08-10fdo#62475 removed pointless commentsJelle van der Waa
Change-Id: I176886fbc9f3d9e2b8ad2308ac2b127d9c68d9a6 Reviewed-on: https://gerrit.libreoffice.org/5331 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-07-10initialize member variableDavid Tardon
Change-Id: I213f6534d88240be51d33a62995bf99292b32263
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-14xmloff: native code unit testing harness.Michael Meeks
Change-Id: I5b9133deea2aa7630752128128f1a222bef99eb1
2012-11-15re-base on ALv2 code. Includes:Michael Meeks
Patches contributed by: Armin Le Grand. #118558# Correcting OLE attributes of LO3.4 at load time by loading as OOo3.3, details see task. http://svn.apache.org/viewvc?view=revision&revision=1195906 #118485# - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles http://svn.apache.org/viewvc?view=revision&revision=1293316 #119337# Solves the wrong get/setPropertyValue calls in SvxShapeText (and thus in SvxOle2Shape) http://svn.apache.org/viewvc?view=revision&revision=1344156 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 cws mba34issues01: #i117717#: remove wrong assertion http://svn.apache.org/viewvc?view=revision&revision=1172349 Patch contributed by Herbert Duerr goodbye Registration and License dialogs, don't let the door hit you http://svn.apache.org/viewvc?view=revision&revision=1172613 help gcc 4.6.0 on 32bit ubuntu 11.10" http://svn.apache.org/viewvc?view=revision&revision=1245357 Do not add targets for junit tests when junit is disabled. Patch contributed by Andre Fischer http://svn.apache.org/viewvc?view=revision&revision=1241508 Revert "sb140: #i117082# avoid unncessary static class data members commit 21d97438e2944861e26e4984195f959a0cce1e41. remove obsolete FreeBSD visibility special case. retain consolidated BSD bridge code, remove OS/2 pieces.
2012-08-02STL'ify DECLARE_CONTAINER_SORT_DEL(SvXMLAutoStylePoolParentsP_Impl)Noel Grandin
Change-Id: I54f1595198b65058d3dd7f3304e0acb75cd55291
2012-08-02convert XMLFamilyDataList_Impl to boost::ptr_setCaolán McNamara
Change-Id: I2a23787091828415cf814eb7091f3fa926b5876c
2012-08-01convert SvXMLAutoStylePoolNamesP_Impl to a std::setCaolán McNamara
Change-Id: I839edf8d0e941f78f6f6f9e6a9117f76587a5f39
2012-06-27removed unnecessary forward declarations of classTakeshi Abe
except moving SvXMLStyleContext into xmloff/source/forms/layerimport.hxx Change-Id: I5e16b54f98ccdd54bc0bb373d3fe92ed1bef3c5e
2012-05-22-Werror=unused-parameterStephan Bergmann
Change-Id: I06dc09d57821ac729182764882558fa079b5ed37
2012-05-22make row heights ( incl default row height ) from excel are saved absoluteNoel Power
Currently default row heights imported from Excel are not adjusted Optimally ( AdjustRowHeight() is no longer called ) However to ensure correct round tripping the CR_MANUALSIZE flag *is* still set, this results in the style:use-optimal-row-height="true" being set for default row height(s) when saving as odf. So, for example absolute positions which are calculated on importing the Excel document ( where the row height is *not* optimally adjusted ) are still saved with the 'style:use-optimal-row-height' set. When the row heights are read back into calc the row sizes are changed any absolutely positioned objects are now out of place. This patch ensures *all* row heights are from an imported excel document are saved with style:use-optimal-row-height="false" Change-Id: If898b97ddb0c8b59a401d7b3c133b0eec09cd1db
2012-04-04removed duplicate #includesTakeshi Abe
in vbahelper / writerfilter / writerperfect / xmlhelp / xmloff / xmlscript / xmlsecurity
2011-08-25remove freshly unused methodsCaolán McNamara
2011-03-29drop bogus executable flag from [ch]xx/bas/asm filesFrancisco Saito