summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)Author
2013-08-20Resolves: fdo#67665 font names filtered out on odp/odg exportCaolán McNamara
Change-Id: Ia529992d15152db981379a1e0a4dec63b2dad40c
2013-08-19These can be file local.Kohei Yoshida
Change-Id: I71193951ce7a1d1a63fc6931a12267f22cdb72c3
2013-08-19fdo#57950: Remove some chained appends in xmloffJelle van der Waa
Change-Id: Iff0c43d190e6afa26c23416db4da9843cf7f41a5 Reviewed-on: https://gerrit.libreoffice.org/5327 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2013-08-18Further work on the "Mac-like app structure" optionTor Lillqvist
Lots of stuff still either ended up in the wrong place, or was looked up from the wrong place, or both. Fix most cases. Change-Id: I06ebbce207c219f3cd82b4387dd9b3fdb83420d4
2013-08-18fdo#43807: Fix import of drop caps character styleZolnai Tamás
Export works and import has just a little typo. Change-Id: I570d70423b5a626f21117971fb7eff030eae20af
2013-08-18CharBrd 8.1: ODF filtersZolnai Tamás
Change-Id: Ib1a79678ffce7764638378b4002f5e87ae749d00
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-16Properly hide implementation details.Kohei Yoshida
If we are to hide, let's hide all. Change-Id: Ic68926ee099ac80d2d477d68e3769a7203dfea6c
2013-08-15write *:script* and *:rfc-language-tag* only for ODF >= 1.2Eike Rathke
Change-Id: I767edf86f9e4d96da538ec1e32792524b22af11d
2013-08-14add character shading value to ODT filtersAdam Co
The attribute is only exported for ODF versions > 1.2; use the new loext (LO_EXT) namespace. Change-Id: Ie44e4b851c4adf52d8cc4fc2cbe37d6c3a9941d8 Reviewed-on: https://gerrit.libreoffice.org/4830 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-08-14xmloff: add a generic LibreOffice ODF extension namespaceMichael Stahl
XML_NAMESPACE_LO_EXT can be used for elements and attributes that are not yet specified by OpenDocument. Change-Id: Id29392533d46f6592d964ce79c05ffefa4d69ebc Reviewed-on: https://gerrit.libreoffice.org/5419 Tested-by: Thorsten Behrens <tbehrens@suse.com> Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
2013-08-13XMLTextParagraphExport: not finding auto style means data lossMichael Stahl
... so use assert() to get attention for such problems. Change-Id: I4aea1a1cb5ad497583024b326f27fb73e5be9bb7
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-08-04fdo#67235 adapt form control code to time nanosecond API change, step 3Lionel Elie Mamane
Change-Id: I4899c89ee5b2a54c9c05b531ab284365f1558e3d Reviewed-on: https://gerrit.libreoffice.org/5270 Tested-by: Lionel Elie Mamane <lionel@mamane.lu> Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-08-02fdo#67235 adapt form control code to time nanosecond API changeLionel Elie Mamane
Conflicts: offapi/type_reference/offapi.rdb Change-Id: If68ecf0691919d71d06d7b97d46db115013f9805 Reviewed-on: https://gerrit.libreoffice.org/5149 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-07-29cppcheck: Prefer prefix ++/-- operators for non-primitive typesJulien Nabet
Change-Id: If1bd91f28a96bd0eb53e4057e51db900f8b2c52b
2013-07-29fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFOJelle van der Waa
Change-Id: I377902007445b0bce91491060f05fb8a9dbe3cd0 Reviewed-on: https://gerrit.libreoffice.org/5133 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-07-29WaE: unreferenced local variableTor Lillqvist
Change-Id: I1f3ef8611a82e2981f470c9a98e8d98085ed2002
2013-07-28surely this is a typoLionel Elie Mamane
Change-Id: Ic7a6b330094c597aaed09377cde55c2e7be1b08f
2013-07-28More details in debug outputLionel Elie Mamane
In particular, give type and message of exception when unexpectedly caught. Also miscellaneous other details. Change-Id: I87d71028dbc902e1770fee4c3643c85e75b7646d
2013-07-24fdo#66781 : fix bullets with level 0Adam Co
Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: I14b0ce9ae096eae4759793a49865eefe16ec1afd Reviewed-on: https://gerrit.libreoffice.org/4818
2013-07-21Remove unused getRegressionCurveJulien Nabet
Change-Id: I141182634e446745be6180702c703a85dac26552
2013-07-18Mark as static and/or constTakeshi Abe
Change-Id: I45a890bb793a6d92546c05bd75738d4dd753a01e
2013-07-15i#108348: support DateTimeWithTimezone in user defined Document PropertiesMichael Stahl
- fix interface of sax::Converter to allow passing time zones (rename the parsing methods while at it to reduce pointless overloading) - SfxDocumentMetaData supports DateWithTimezone and DateTimeWithTimezone in user-defined properties - add some ugly hacks to SfxCustomPropertiesPage to preserve existing time zones (which are not displayed in UI currently) Change-Id: Ice94112b9d79c285f80b5beda15f0ace91db97f3
2013-07-15i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.Michael Stahl
Add IsUTC member to: com.sun.star.util.DateTime com.sun.star.util.DateTimeRange com.sun.star.util.Time Add new stucts with explicit time zones: com.sun.star.util.DateTimeWithTimezone com.sun.star.util.DateWithTimezone com.sun.star.util.TimeWithTimezone Adapt the sax::Converter to read/write timezones, and fix the unit test. Everything else just uses default (no time zone), this commit is just to fix the API. STRUCT: /UCR/com/sun/star/util/DateTime nFields1 = 7 != nFields2 = 8 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/DateTimeRange nFields1 = 14 != nFields2 = 15 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/Time nFields1 = 4 != nFields2 = 5 Registry2 contains 1 more fields Conflicts: sc/source/filter/oox/unitconverter.cxx Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18 Reviewed-on: https://gerrit.libreoffice.org/4833 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-07-13use static LanguageTag::convertTo...() for standalone conversionsEike Rathke
If no LanguageTag instance is at hand use the static methods to convert between BCP 47 string, Locale and MS-LangID instead of creating temporary instances. Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
2013-07-12write ISO codes for native number transliterationEike Rathke
Change-Id: Idc3bf2aabb7df4e57deb13251a1f6631c579268c
2013-07-12write bcp47 to dc:languageEike Rathke
Change-Id: Ia62ef327cd07070c2e48f4140c58f3309581b562
2013-07-10fix reading fonts from .odp using style::font-name (fdo#65338)Luboš Luňák
b40bcde076f9fabf24810d2520e878d604d99637 made writing .odp use style:font-name and office:font-face-decls, instead of using fo:font-family . But the reading back was broken, as xFontDecls is not set in XMLTextImportPropertyMapper::handleSpecialItem(), so the font data was ignored. And xFontDecls was not set because it's set while reading office:font-face-decls, which is at the top of the xml document, but even before the xml is parsed, the call to SdXMLImport::setTargetDocument() calls GetShapeImport(), which creates XMLShapeImportHelper instance, which calls XMLTextImportHelper::CreateParaExtPropMapper(), and XMLTextImportPropertyMapper is created with rImport.GetFontDecls() still being NULL at that point. And it actually doesn't seem to make any sense to just pass around all the pointers to XMLFontStylesContext, as eventually it's always just the one from SvXMLImport. So simply dump all that and make the one single place that actually uses it (i.e. XMLTextImportPropertyMapper::handleSpecialItem()) refer directly to SvXMLImport::GetFontDecls(). Change-Id: Ib1b3e4b1bcaf87ca3e4703d1cc1563ad6b3f9ce7
2013-07-10changed getIsoLanguageCountry() to getIsoLanguageScriptCountry()Eike Rathke
And don't write ODF *:script if *:language is not written either. Change-Id: If6d49cc6fbb8d566cc59edf35ed7991d57d941c0
2013-07-10do not write attributes with 'none' for non-ISO language/countryEike Rathke
Change-Id: I774a4a8a283828d81fdab93e33fb3b2aa0cf680b
2013-07-10drop useless conditionDavid Tardon
Change-Id: I31368921a7a398f55731081848f4df58663e3136
2013-07-10initialize member variableDavid Tardon
Change-Id: I213f6534d88240be51d33a62995bf99292b32263
2013-07-09read/write ODF *:script* and *:rfc-language-tag*Eike Rathke
This prepares to be able to read/write the attributes, it does not enable proper handling of unknown language tags yet. An unknown tag usually falls back to SYSTEM locale. Change-Id: I4a78e8fd37deae188c69570157bc4589a712bc7a
2013-07-05added rfc-language-tag* tokensEike Rathke
Change-Id: Ifef5ebf638863f4b0fa6f985ad2e84359b75b708
2013-07-04FIXME-BCP47Eike Rathke
Change-Id: Ic5f227e86a85c297223d1b496cfc8c0f4a9488b7
2013-07-03Fixes to compiler errors, setRegressionProperties description.Tomaž Vajngerl
Change-Id: I40ef93746e5f2a43ce58f0080db0b643e22404a1
2013-07-03Added new regression curve properties as ODT 1.2 extended.Tomaž Vajngerl
Added: - regression-extrapolate-forward - regression-extrapolate-backward - regression-max-degree - regression-min-degree - regression-moving-type - regression-period - regression-force-intercept - regression-intercept-value Not all of these are yet filled as they are not yet implemented. Change-Id: I7ac39c0df5b8b7fb7be6b32d301e33a7f49f2960
2013-07-03Little cleanup in ODT regression lines import/exportTomaž Vajngerl
Change-Id: Ie6cdfec1295e08cd5141056eeac39f248ee97766
2013-07-03ODT regression curves export refactored to use chart2 APITomaž Vajngerl
Additionally fix import when regression-type is defined on series style. Conflicts: xmloff/source/chart/SchXMLExport.cxx Change-Id: I194780619dc7b8a2b428867d4b5906180ee1fac1
2013-07-03Refactor regression curve handling in xmloff import to use chart2.Tomaž Vajngerl
Additionally support more regression curves per one series and add polynomial an moving average tokens. Conflicts: xmloff/source/chart/SchXMLPlotAreaContext.cxx Change-Id: I9dfebb1f47942c88ab0ccff48ec7632136fb1bc9