summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)Author
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
2013-07-03 fdo#66282 - MathML export: improve ExportBraceFrédéric Wang
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 Mohrhard
Change-Id: Iff6c1c59d0300f868972c2abf88fee5cf7e5372a
2013-07-02fix indentationMarkus Mohrhard
Change-Id: I1bdd8980109b340765c0600f897ff14e75fb0bae
2013-07-01 #fdo66277 - Add support for alignment in MathML export.Frédéric Wang
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 Mohrhard
This should never have been pushed. Change-Id: Ida67b0716a916cb7c3b9af7430abc51800414f18
2013-06-30transpose "data in rows" ranges for internal data provider, fdo#62057Markus Mohrhard
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 Arnhold
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 Arnhold
Change-Id: I72d494b1c0ff5ed3c52ae6a078815f497e4dd647
2013-06-29String to OUString and cleanupThomas Arnhold
Change-Id: Idc18c1a6a64edea3399c8747ec0f096a2f964b68
2013-06-29add option to debug chart odf internal data provider importMarkus Mohrhard
Change-Id: Ife9a2d7d5f6e47a16b0572b43f20d3010d60f277
2013-06-28remove pointless external guards for standard headersMichael Stahl
Change-Id: I509984a6029b6a86fd1ee3f947394af9cdf71c6a
2013-06-28fdo#66086 - MathML export: wideslash, widebslash and overstrikeFrédéric Wang
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 Mamane
Change-Id: I05fa923f962191081ea3318837d3e181c183b466
2013-06-27Resolves: #i121162# ImageScaleMode constants should be in UPPERCASEAriel Constenla-Haile
(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 McNamara
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 Waa
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 Mohrhard
Change-Id: I1d4739721c297e6d5605d93b6e86e114ea12db85
2013-06-15use proper offset for additional locale data formats, fdo#64947 relatedEike Rathke
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 Bergmann
...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 Mohrhard
Change-Id: Ia41f28ed31fc254a6785c6444a78822eb969f2f9
2013-06-08Resolves: #i121455# Adapted from NonPrimitive to non-primitive...Armin Le Grand
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
2013-06-07For backward compatibility take mirrorings in setTransformation into accountArmin Le Grand
Also found an error in SdrObjCustomShape::TRGetBaseGeometry when MirrorY was used (cherry picked from commit 4116c33b12d3787c406f0348f89efcb1cf409507) Conflicts: xmloff/source/draw/ximpshap.cxx xmloff/source/draw/ximpshap.hxx Change-Id: Id85ae4c4f5e26d53d501c72b84fc0e1b5cfe23b2
2013-06-07Resolves: #i49853# comment the DTD to emphasize that this DTD is...Dennis E. Hamilton
for OpenOffice.org 1.x XML Documents and is not a DTD for any ODF document. (cherry picked from commit 7061d6dbf8d446e96d0ad13ea308f421ea6a424b) Conflicts: xmloff/dtd/office.dtd Change-Id: If2a084e86f935c9dddfbd3a4aa5e2d76473b7d9d
2013-06-05remove unused componentcontext.hxx includesNoel Grandin
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-03fix for unused return value.Noel Grandin
This code was introduced by: commit d09dd8986436f17717443823ef18bd8552fdf408 Author: Frank Schoenheit [fs] <frank.schoenheit@sun.com> Date: Wed Sep 15 13:55:34 2010 +0200 dba34a: export/import min-/max-/default-/value for date/time as XML-Schema conformant strings It looks like it intended to use determineDefaultServiceName(), but neglected to store the return value. Change-Id: I1607f39cf771b594389492785c7e72478d44843a Reviewed-on: https://gerrit.libreoffice.org/4140 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-05-30Resolves: #i121507# Added comma to whitespace listArmin Le Grand
(cherry picked from commit c9e446d6f79908ed4af06e7940788e91b924b793) Change-Id: I790bfada597e276f9f9e1d07f7208db6d1059f0f
2013-05-24WaE: implicit conversion of NULL constant to nullptr_tTor Lillqvist
Change-Id: I2eefbca1ef986219f04504cba4ca09a22972e8cb
2013-05-23prevent invalid files if file contains currency formatsMarkus Mohrhard
A regression from writing error cell information into the file. Change-Id: Idb55646094fcd76912bdcd2102370681bcc8703d
2013-05-22WaE: function will cause runtime stack overflowTor Lillqvist
Revert misguided changes from 6a043e9c0acff20e1618ca8ec15c21d5d0fd0d37 that obviously would cause endless recursion if these functions were ever entered. Thanks to MSVC2012 for the nice warning. Change-Id: I8504aa8ac141164ec6e026cc4fa873f8273f92bd