summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)AuthorFilesLines
2013-08-10fdo#62475 removed pointless commentsJelle van der Waa242-3313/+12
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 Mamane2-24/+29
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 Mamane1-3/+5
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 Nabet1-1/+1
Change-Id: If1bd91f28a96bd0eb53e4057e51db900f8b2c52b
2013-07-29fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFOJelle van der Waa13-25/+5
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 Lillqvist1-2/+2
Change-Id: I1f3ef8611a82e2981f470c9a98e8d98085ed2002
2013-07-28surely this is a typoLionel Elie Mamane1-2/+2
Change-Id: Ic7a6b330094c597aaed09377cde55c2e7be1b08f
2013-07-28More details in debug outputLionel Elie Mamane3-5/+20
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 Co2-9/+12
Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: I14b0ce9ae096eae4759793a49865eefe16ec1afd Reviewed-on: https://gerrit.libreoffice.org/4818
2013-07-21Remove unused getRegressionCurveJulien Nabet2-39/+0
Change-Id: I141182634e446745be6180702c703a85dac26552
2013-07-18Mark as static and/or constTakeshi Abe21-133/+133
Change-Id: I45a890bb793a6d92546c05bd75738d4dd753a01e
2013-07-15i#108348: support DateTimeWithTimezone in user defined Document PropertiesMichael Stahl14-19/+19
- 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 Stahl1-1/+1
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 Rathke1-2/+2
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 Rathke1-2/+5
Change-Id: Idc3bf2aabb7df4e57deb13251a1f6631c579268c
2013-07-12write bcp47 to dc:languageEike Rathke1-8/+2
Change-Id: Ia62ef327cd07070c2e48f4140c58f3309581b562
2013-07-10fix reading fonts from .odp using style::font-name (fdo#65338)Luboš Luňák4-44/+13
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 Rathke2-12/+15
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 Rathke1-0/+10
Change-Id: I774a4a8a283828d81fdab93e33fb3b2aa0cf680b
2013-07-10drop useless conditionDavid Tardon1-5/+2
Change-Id: I31368921a7a398f55731081848f4df58663e3136
2013-07-10initialize member variableDavid Tardon1-1/+2
Change-Id: I213f6534d88240be51d33a62995bf99292b32263
2013-07-09read/write ODF *:script* and *:rfc-language-tag*Eike Rathke15-61/+482
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 Rathke1-0/+5
Change-Id: Ifef5ebf638863f4b0fa6f985ad2e84359b75b708
2013-07-04FIXME-BCP47Eike Rathke2-0/+9
Change-Id: Ic5f227e86a85c297223d1b496cfc8c0f4a9488b7
2013-07-03Fixes to compiler errors, setRegressionProperties description.Tomaž Vajngerl1-2/+3
Change-Id: I40ef93746e5f2a43ce58f0080db0b643e22404a1
2013-07-03Added new regression curve properties as ODT 1.2 extended.Tomaž Vajngerl4-9/+29
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ž Vajngerl2-24/+14
Change-Id: Ie6cdfec1295e08cd5141056eeac39f248ee97766
2013-07-03ODT regression curves export refactored to use chart2 APITomaž Vajngerl9-220/+211
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ž Vajngerl16-217/+525
Additionally support more regression curves per one series and add polynomial an moving average tokens. Conflicts: xmloff/source/chart/SchXMLPlotAreaContext.cxx Change-Id: I9dfebb1f47942c88ab0ccff48ec7632136fb1bc9
2013-07-03 fdo#66282 - MathML export: improve ExportBraceFrédéric Wang1-0/+1
Change-Id: If15038f8942c649703659e05868162c31785c762 Reviewed-on: https://gerrit.libreoffice.org/4632 Reviewed-by: Khaled Hosny <khaledhosny@eglug.org> Tested-by: Khaled Hosny <khaledhosny@eglug.org>
2013-07-02remove unnecessary commentsMarkus Mohrhard1-7/+1
Change-Id: Iff6c1c59d0300f868972c2abf88fee5cf7e5372a
2013-07-02fix indentationMarkus Mohrhard1-3/+3
Change-Id: I1bdd8980109b340765c0600f897ff14e75fb0bae
2013-07-01 #fdo66277 - Add support for alignment in MathML export.Frédéric Wang1-0/+3
Change-Id: I78352ff93da5b4e912040c4019fcea924f7b0c20 Reviewed-on: https://gerrit.libreoffice.org/4625 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-06-30remove all my debug codeMarkus Mohrhard1-118/+0
This should never have been pushed. Change-Id: Ida67b0716a916cb7c3b9af7430abc51800414f18
2013-06-30transpose "data in rows" ranges for internal data provider, fdo#62057Markus Mohrhard3-6/+37
This is an ugly hack but it at least works. This regression has been introduced by the merge from the AOO code. The order of calls during import is totally screwed and I have no idea how to properly fix all these problems without introducing new regressions. The best solution would be to move the import/export code into chart2 where we could manipulate tese properties directly and would not need to transform the same information N times until it is written into the chart code. Change-Id: Id53c49441c683b19a973a48884135a3f4e89de03
2013-06-29remove OUString wrap for string literalsThomas Arnhold35-427/+427
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29reduce some spacingThomas Arnhold1-4/+2
Change-Id: I72d494b1c0ff5ed3c52ae6a078815f497e4dd647
2013-06-29String to OUString and cleanupThomas Arnhold4-34/+33
Change-Id: Idc18c1a6a64edea3399c8747ec0f096a2f964b68
2013-06-29add option to debug chart odf internal data provider importMarkus Mohrhard1-0/+118
Change-Id: Ife9a2d7d5f6e47a16b0572b43f20d3010d60f277
2013-06-28remove pointless external guards for standard headersMichael Stahl1-2/+0
Change-Id: I509984a6029b6a86fd1ee3f947394af9cdf71c6a
2013-06-28fdo#66086 - MathML export: wideslash, widebslash and overstrikeFrédéric Wang1-0/+4
Change-Id: I1e8da340ffdacab133b0cff6d6344fe56da34bf8 Reviewed-on: https://gerrit.libreoffice.org/4465 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-27fdo#66171 ListBox correctly save empty or zero BoundColumnLionel Elie Mamane3-6/+12
Change-Id: I05fa923f962191081ea3318837d3e181c183b466
2013-06-27Resolves: #i121162# ImageScaleMode constants should be in UPPERCASEAriel Constenla-Haile1-5/+5
(cherry picked from commit 734b532fb77d2d5be7eb7becb6720dbd7b3d8978) Conflicts: offapi/com/sun/star/awt/ImageScaleMode.idl oox/source/ole/axcontrol.cxx reportdesign/source/filter/xml/xmlHelper.cxx wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java Change-Id: Ib5fa7b82edddb809129a4e5619a20ca7a7b2e38a
2013-06-23Resolves: rhbz#976304 gallery elements may not support document.SettingsCaolán McNamara1-8/+9
so the createInstance throws, so the element doesn't get inserted into the documents. regression since f0cd6fe9075cd0aa00162474784ad804a07ed138 Change-Id: Ie6cef7a4f0d5ac8a34d41139c3439fc04e9c7f20
2013-06-19fdo#43460 xmloff: use isEmpty()Jelle van der Waa15-28/+27
Change-Id: I298767cc0ec03c22d3ae687939f0f9d5ce1963c1 Reviewed-on: https://gerrit.libreoffice.org/4348 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-16use the implicit conversionMarkus Mohrhard1-2/+2
Change-Id: I1d4739721c297e6d5605d93b6e86e114ea12db85
2013-06-15use proper offset for additional locale data formats, fdo#64947 relatedEike Rathke1-1/+1
Old number formats had predefined formats from 0..49, locale data could define additional formats from index 50 on. Internal (fractional) formats were added to the number formatter, shifting the number of predefined entries NF_INDEX_TABLE_ENTRIES by two that was also used as an offset to determine whether a format needed to be added additionally. As a consequece, formats defined with index values 50 and 51 in locale data were ignored and not available in the dialog. Introduced a new enum constant NF_INDEX_TABLE_LOCALE_DATA_DEFAULTS to use as the old offset value for not having to change all locale data definitions everytime an internally generated format is added. Change-Id: I94bdaabf360f7b9c253b1e3f5b73087f0c45fb44
2013-06-13Introduce O[U]String::toUInt32Stephan Bergmann1-2/+5
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39 "Handle oveflow in O(U)String::toInt() functions" reduces values in the range (SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied on getting a correct (unsigned) value for the whole input range ["0" .. "FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3 "Revert overflow checks in O[U]String::toInt{32,64} again"). Audited all uses of toInt32/64 with non-decimal radix. (There is still a TODO comment in oox/source/helper/attributelist.cxx, and stoc/source/typeconv/convert.cxx will still need some love and test code.) Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-13remove method without definitionMarkus Mohrhard1-5/+0
Change-Id: Ia41f28ed31fc254a6785c6444a78822eb969f2f9
2013-06-08Resolves: #i121455# Adapted from NonPrimitive to non-primitive...Armin Le Grand1-1/+1
as used in the spec Patch by: Regina Review by: alg (cherry picked from commit af6ada82a4634e4b64faf811eaf527c167c334bf) Conflicts: xmloff/source/draw/shapeexport4.cxx Change-Id: I2fe339ba35cf589a9d4034446c671d4f09b0c0f0