Commit Graph

6772 Commits

Author SHA1 Message Date
Kohei Yoshida
21661ebfbe fdo#60740: Populate auto styles from edit cells without using UNO API.
Not using UNO API here alone made this code fly.

Change-Id: Ib3eff168bbe49e49fb413909b7a14057f808cdf9
2013-08-21 19:24:04 -04:00
Luboš Luňák
64b993e046 finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.

Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00
Caolán McNamara
26dc5f2ee6 Resolves: fdo#67665 font names filtered out on odp/odg export
Change-Id: Ia529992d15152db981379a1e0a4dec63b2dad40c
2013-08-20 11:37:59 +01:00
Kohei Yoshida
5f7ee4b7a3 These can be file local.
Change-Id: I71193951ce7a1d1a63fc6931a12267f22cdb72c3
2013-08-19 15:50:35 -04:00
Jelle van der Waa
fa0e48c5e4 fdo#57950: Remove some chained appends in xmloff
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-19 15:50:01 +00:00
Zolnai Tamás
932901224e fdo#43807: Fix import of drop caps character style
Export works and import has just a little typo.

Change-Id: I570d70423b5a626f21117971fb7eff030eae20af
2013-08-18 09:49:50 +02:00
Zolnai Tamás
47e24bfed8 CharBrd 8.1: ODF filters
Change-Id: Ib1a79678ffce7764638378b4002f5e87ae749d00
2013-08-18 09:49:49 +02:00
Kohei Yoshida
1673502008 No need for elaborate type name for this.
Change-Id: Ia29a5956813c5d71f042f774d00de3bc82b7f1aa
2013-08-17 23:10:59 -04:00
Kohei Yoshida
ed8c8a7173 Move static struct to where it's used, and use std::vector for this.
Change-Id: Id68fa488731d3b34213db23bf4d50f73b04c6fe4
2013-08-17 23:10:59 -04:00
Kohei Yoshida
c19b9679a7 This function object is no longer used.
Change-Id: I0aa881bae4c1ee0857bafef78094a3d92bcc0702
2013-08-17 23:10:59 -04:00
Kohei Yoshida
82e3de5747 Rename SvXMLAutoStylePoolPropertiesP_Impl to XMLAutoStylePoolProperties.
Change-Id: Ib2bd2da3852fdd8110d6d799b5a4091f2a89f0a8
2013-08-17 23:10:58 -04:00
Kohei Yoshida
30dab43c05 Rename SvXMLAutoStylePoolParentP_Impl to XMLAutoStylePoolParent.
Change-Id: Ia5fe8e386fd363f0b5bb81b3d0e8fd1e15efe430
2013-08-17 23:10:58 -04:00
Kohei Yoshida
965f98162d Rename XMLFamilyData_Impl to XMLAutoStyleFamily.
Change-Id: I9798408dc92a983fecc98c42516482afcb12ae25
2013-08-17 23:10:58 -04:00
Kohei Yoshida
defbcb229a Using ptr_vector for this simplifes it a bit...
Change-Id: Id772a260475de7e9c8599616eff189851af6b356
2013-08-16 21:31:45 -04:00
Kohei Yoshida
1b183738ae Use ptr_set for auto style parent list. That seems like a natural fit.
Change-Id: I9fc094ec4aa7e4a6d4e637c5940c361639d44c65
2013-08-16 21:31:44 -04:00
Kohei Yoshida
e4f5586507 This cache data member is never used. Remove it.
Change-Id: I03d55ce8cfe175a75ed22639a06ac22c8783ccd7
2013-08-16 21:31:44 -04:00
Kohei Yoshida
ef60854f7d Tuck this typedef inside class scope where it's used.
Change-Id: I2b3a0479f9aeecd601b3fea4a262f614ec437945
2013-08-16 21:31:44 -04:00
Kohei Yoshida
7c02faf535 Properly hide implementation details.
If we are to hide, let's hide all.

Change-Id: Ic68926ee099ac80d2d477d68e3769a7203dfea6c
2013-08-16 21:31:44 -04:00
Eike Rathke
8f15ae6c3f write *:script* and *:rfc-language-tag* only for ODF >= 1.2
Change-Id: I767edf86f9e4d96da538ec1e32792524b22af11d
2013-08-15 21:47:31 +02:00
Adam Co
643db96e93 add character shading value to ODT filters
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-14 16:03:07 +00:00
Michael Stahl
de9b067bd1 xmloff: add a generic LibreOffice ODF extension namespace
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-14 16:02:07 +00:00
Michael Stahl
9e2351ffd9 XMLTextParagraphExport: not finding auto style means data loss
... so use assert() to get attention for such problems.

Change-Id: I4aea1a1cb5ad497583024b326f27fb73e5be9bb7
2013-08-13 18:46:46 +02:00
Jelle van der Waa
4f360266cd fdo#62475 removed pointless comments
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-10 14:55:06 +00:00
Lionel Elie Mamane
8ee69b0ba1 fdo#67235 adapt form control code to time nanosecond API change, step 3
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-04 06:51:31 +00:00
Lionel Elie Mamane
ed904af866 fdo#67235 adapt form control code to time nanosecond API change
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-08-02 11:35:57 +00:00
Julien Nabet
30eb11ea79 cppcheck: Prefer prefix ++/-- operators for non-primitive types
Change-Id: If1bd91f28a96bd0eb53e4057e51db900f8b2c52b
2013-07-29 22:04:52 +02:00
Jelle van der Waa
15dc66c81a fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
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-29 12:53:11 +00:00
Tor Lillqvist
81df97ca2f WaE: unreferenced local variable
Change-Id: I1f3ef8611a82e2981f470c9a98e8d98085ed2002
2013-07-29 10:32:22 +03:00
Lionel Elie Mamane
e39a959429 surely this is a typo
Change-Id: Ic7a6b330094c597aaed09377cde55c2e7be1b08f
2013-07-28 16:14:59 +02:00
Lionel Elie Mamane
5bdc7103be More details in debug output
In particular, give type and message of exception
when unexpectedly caught.

Also miscellaneous other details.

Change-Id: I87d71028dbc902e1770fee4c3643c85e75b7646d
2013-07-28 16:14:58 +02:00
Adam Co
71e1927c78 fdo#66781 : fix bullets with level 0
Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx

Change-Id: I14b0ce9ae096eae4759793a49865eefe16ec1afd
Reviewed-on: https://gerrit.libreoffice.org/4818
2013-07-24 15:08:03 +02:00
Julien Nabet
c9321851a4 Remove unused getRegressionCurve
Change-Id: I141182634e446745be6180702c703a85dac26552
2013-07-21 15:45:58 +02:00
Takeshi Abe
a2e599f16b Mark as static and/or const
Change-Id: I45a890bb793a6d92546c05bd75738d4dd753a01e
2013-07-18 22:18:25 +09:00
Michael Stahl
20cbf5bd30 i#108348: support DateTimeWithTimezone in user defined Document Properties
- 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-15 15:23:25 +02:00
Michael Stahl
652ccbdf31 i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.
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-15 11:46:41 +00:00
Eike Rathke
358d1a9948 use static LanguageTag::convertTo...() for standalone conversions
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-13 11:55:16 +02:00
Eike Rathke
76d36d5bba write ISO codes for native number transliteration
Change-Id: Idc3bf2aabb7df4e57deb13251a1f6631c579268c
2013-07-12 12:32:34 +02:00
Eike Rathke
2c5548a6fb write bcp47 to dc:language
Change-Id: Ia62ef327cd07070c2e48f4140c58f3309581b562
2013-07-12 12:32:34 +02:00
Luboš Luňák
a1190c9d2e fix reading fonts from .odp using style::font-name (fdo#65338)
b40bcde076 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-10 17:35:27 +02:00
Eike Rathke
1e744d5d9d changed getIsoLanguageCountry() to getIsoLanguageScriptCountry()
And don't write ODF *:script if *:language is not written either.

Change-Id: If6d49cc6fbb8d566cc59edf35ed7991d57d941c0
2013-07-10 15:59:19 +02:00
Eike Rathke
8a4307e4bb do not write attributes with 'none' for non-ISO language/country
Change-Id: I774a4a8a283828d81fdab93e33fb3b2aa0cf680b
2013-07-10 14:20:03 +02:00
David Tardon
575f789f93 drop useless condition
Change-Id: I31368921a7a398f55731081848f4df58663e3136
2013-07-10 06:41:34 +02:00
David Tardon
2285177c03 initialize member variable
Change-Id: I213f6534d88240be51d33a62995bf99292b32263
2013-07-10 06:41:33 +02:00
Eike Rathke
4935422b41 read/write ODF *:script* and *:rfc-language-tag*
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-09 15:52:21 +02:00
Eike Rathke
9f1c9edb7a added rfc-language-tag* tokens
Change-Id: Ifef5ebf638863f4b0fa6f985ad2e84359b75b708
2013-07-05 12:46:47 +02:00
Eike Rathke
b832a7a78a FIXME-BCP47
Change-Id: Ic5f227e86a85c297223d1b496cfc8c0f4a9488b7
2013-07-04 22:49:49 +02:00
Tomaž Vajngerl
27a4d5597c Fixes to compiler errors, setRegressionProperties description.
Change-Id: I40ef93746e5f2a43ce58f0080db0b643e22404a1
2013-07-03 22:44:22 +02:00
Tomaž Vajngerl
dd5c0b2db4 Added new regression curve properties as ODT 1.2 extended.
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-03 21:46:42 +02:00
Tomaž Vajngerl
2ca5e7b46f Little cleanup in ODT regression lines import/export
Change-Id: Ie6cdfec1295e08cd5141056eeac39f248ee97766
2013-07-03 21:46:42 +02:00
Tomaž Vajngerl
4b50558fec ODT regression curves export refactored to use chart2 API
Additionally fix import when regression-type is defined on series style.

Conflicts:
	xmloff/source/chart/SchXMLExport.cxx

Change-Id: I194780619dc7b8a2b428867d4b5906180ee1fac1
2013-07-03 21:46:42 +02:00