Commit Graph

6538 Commits

Author SHA1 Message Date
eb70a6e126 Revert "temporarily disable the xmloff/vcl dependency"
This reverts commit 7bce8c2e491562873705e3e451ba66d005b22646.
2013-02-01 18:18:29 +01:00
7bce8c2e49 temporarily disable the xmloff/vcl dependency
As far as I can tell, there is not circular dependency, but make
complains, and only when invoked from toplevel, not from tail_build.
Looks like gbuild problem, but do a hackish change to make
unbreak clean compilation, for now.

Change-Id: I445ba343f9eaa988c60c288bf5fc1c5d1c7b67a5
2013-02-01 16:14:31 +01:00
c2d14df725 move implementation class to a non-public header
Change-Id: I61731f472405e46828204ffb1cacf1c9e6a9b5bf
2013-02-01 15:04:59 +01:00
f337125b41 rename a class to something that gives at least some idea of what it does
Change-Id: I574c523d37d54a05aa79d2ccf52e0727e1a1d744
2013-02-01 14:40:16 +01:00
989d0953a4 basic support for embedded fonts in odt (fdo#42195)
There are still places that should be improved a bit, but this works.

Change-Id: Ieb7947a294ec95b6fd8cec2e8c4bc731e2594c42
2013-02-01 14:26:36 +01:00
d28f0bfda5 move class definition to a header file
Change-Id: Id41200667089d4f42f7999060fd97545bb069788
2013-02-01 14:20:33 +01:00
143ecebc73 export darken/darkeless/lighten/lightenless commands
Change-Id: I4531ab82a52e3da41f12409185f7c0730381aa23
2013-02-01 12:25:23 +01:00
dc173b7f2a export subpath sizes (these are for example in pptx custom shape presets)
Change-Id: Iab21d0845d0cb6e4dadeffb5f7b9ebab1e4b955a
2013-01-31 12:08:54 +01:00
bb00150ef6 xmloff: export Wrtier's RES_FILL_STYLE and RES_FILL_GRADIENT
Change-Id: Id0adf3733ac4c2c08ded659c2d621ddbbbb434c5
2013-01-29 15:20:59 +01:00
81a46fc86a SvXMLExport::_ExportStyles: also try to export text gradients
They are not exported automatically, as SvxUnoNameItemTable needs a
Which ID, and it's different for drawinglayer and Writer gradients.

Change-Id: I5dd7d828b1f0e577e26510e3c5ca74386d000f16
2013-01-29 15:20:59 +01:00
c4770788cb xmloff: no longer necessary OUTSTRING() macro
Change-Id: I60f588efb35d5968c21b7b0e0fc29bcbbd2dd50d
2013-01-29 09:45:02 +01:00
77856e81ce fdo#46808, Adapt document::*PropertyValues UNO service to new style
The services are:
   document::NamedPropertyValues
   document::IndexedPropertyValues
The services already existed, they just did not have IDL files

Change-Id: Ibafe9b5afb9b30785df4f66aa923f4b96ceabeed
2013-01-28 08:25:24 +02:00
ce1b932bba fdo#46808, don't cache the result of comphelper::getProcessComponentContext
Change-Id: I7eb3ce6794b5896ebc56d6f28f7e37b6929a6217
2013-01-28 08:25:24 +02:00
f95a7c2c6d fdo#46808, Convert SvNumberFormatter to use XComponentContext
Change-Id: If4e8312dae6bc5eb8bb7655cf250f06ab37b7e5c
2013-01-28 08:25:24 +02:00
e820c249a4 implement conditional date format import/export for ODF
Change-Id: I11d5583c994d84fe1163c6158c0794ea1d879f2e
2013-01-27 20:45:04 +01:00
c1760a241b WaE: 'bVal' may be used uninitialized in this function
Seen in the MacOSX-Intel_1-built_no-moz_on_10.6.8 tinderbox build log,
not in an own build.

Change-Id: I1b5c87d3c1876821981d8f8a7b089b81659e5c7b
2013-01-24 13:29:02 +02:00
043e30baed fdo#58562: Ensure internal data is always used when pasting to another doc.
Without this, pasting a chart object from one Calc doc to another may
occasionally incorrectly switch to range references *if* the destination
document contains the "right" set of sheet names.  With this fix, pasted
chart objects always switch to internal cached data source when pasting
to another document, while retaining range references when pasting within
the same document.

Change-Id: If1dbc854c5faae62f06ece155fad470b229ca0c7
2013-01-23 22:23:02 -05:00
63bcb139b9 Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
Reviewed-on: https://gerrit.libreoffice.org/1784
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-21 15:04:17 +00:00
bea63709d0 xmloff: refactor Generator version handling:
Since there are now 2 forks of OpenOffice.org, we cannot rely on a
simple total ordering of versions any more; add a new function
SvXMLImport::isGeneratorVersionOlderThan(), taking 2 reference versions.

Also extract the LibreOffice version number from the generator string,
and extend the BuildId property to store this as a third number.

This also allows removal of the "fake LibreOffice3 as OpenOffice.org
3.3 release" hack, which is not future-proof.

Change-Id: I44d8105eb537ac43fb9529a8b1b661ae0f2bba30
2013-01-18 23:46:33 +01:00
0669d78ea7 fdo#59517: fix detection of ancient OOo ODF generator strings:
SvXMLMetaDocumentContext::setBuildId: check only the prefix of the
generator string, not all of it.

(regression from 17ff7b41d15ab9928e2e2706faa26234a09802cd)

Change-Id: I0cdd958d67cd13fd2368cc6958893ce3528a9e94
2013-01-18 23:46:33 +01:00
23c099a023 Resolves: fdo#58730 workaround [UL|LR]Space 100% problem
If all paragraph margins are 100% on import, ignore that as being the implicit
default. That avoids explicit 100% being set onto the awesome [UL|LR]Space
which takes a relative propsize of 100% as a flag that its value field is
absolute and so rejected by SwTxtFmtColl::Modify as a candidate for getting its
true value initialized relative to its parent, so it ends up as an absolute 0

Always elide the property on export because writing individual
margin-foos provides better backward compatibility with older versions
anyway.

Trigged by 3c5facfce42a0dbe362d6b9fa5ac374fd76f51a1

Change-Id: I55f6ceeae287b7d8e99befa4bd3cc06738a21299
2013-01-18 00:38:23 +01:00
f6c759a6e5 fdo#46808, Adapt chart2::data::LabeledDataSequence UNO service to new style
Change-Id: I98bfbc8e143b9ad9d486f97380186fde9b4423ec
2013-01-15 09:56:01 +02:00
066bdb31f7 support saving/loading hyperlink cell attribute in extended odf
style:table-cell-properties has new child element style:hyperlink which
will store the hyperlink info in attributes xlink:href & xlink:type

Change-Id: I184310d124c4242cd62fdabb45f9773094cfc229
2013-01-11 10:31:56 +00:00
d5b628720d move some OSL_* macros to SAL_WARN
Change-Id: I8a5e158eabdbb92eec27a5753004e4f5e826c412
2013-01-09 05:01:32 +01:00
eda0cec9ac Revert "dummy commit (WIP)"
This reverts commit 6eb0522395c236ae6930a300992ad092449f9592.
It does not compile and the message and contents suggest it probably wasn't
meant to be pushed.
2013-01-07 22:27:41 +01:00
6eb0522395 dummy commit (WIP)
Change-Id: Ibeee6553312323b75b2403ad6832595f228e0e3c
2013-01-07 19:39:46 +01:00
f1043aaed0 added token for handling of svg:linearGradient and svg:radialGradient
Change-Id: I38014a8d9e21359cb943f813484478293360a2e6
2013-01-07 19:39:46 +01:00
5693934456 limit the number of imported digits, fdo#58539
This should fix the crash with gnome#627420.

Change-Id: Ibfff498282dc1c6fe9124ced645392107ef8829f
2013-01-03 02:21:28 +01:00
4fd5136cbd xmloff: mostly kill CONSTASCII_STRINGPARAM usage 2012-12-28 13:37:02 +01:00
9e41982ac1 text:p is not allowed for chart objects, fdo#58571
Change-Id: I24c485d31ea3f0540164ff65074b392be1e557e6
2012-12-26 20:01:00 +01:00
5198c4a41f Replace chained O(U)StringBuffer::append() with operator+
Change-Id: I0fcd70cff092c7d90b57b9af9dcec99f23750f1c
Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
2012-12-18 17:26:54 +01:00
34b7826f98 added some FIXME-BCP47 markers
Change-Id: I085ca72b6c2dc1e73f4af7233017895bf92b2ef8
2012-12-13 23:54:57 +01:00
f2d96655e0 use PCH for LO headers in xmloff too
Interestingly this makes it slower with Clang than less headers.

Change-Id: Ia28d27ca9c8154c907dae1629ca893fc4765f075
2012-12-10 14:46:46 +01:00
ac893720de PCH for xmloff, including LO headers
Change-Id: I50e8eb58ef9b764cfb847b36b4e42f95bc437233
2012-12-10 14:46:45 +01:00
649c6b3891 RTL_CONSTASCII_USTRINGPARAM clean up
Change-Id: I4d57a449c2bd61be0cb7b7ed9016b3ee71825b57
2012-12-08 15:16:06 +01:00
da8af42a2d Removed RTL_CONSTASCII_USTRINGPARAM
Change-Id: Ifb14257ef20c14f8e1551a1470d0dbea1dc0759b
2012-12-08 15:09:17 +01:00
eafb828213 OUStringBuffer::remove( int ) -> truncate( int )
Although this may seem consistent with remove( int, int ), it is
in fact rather misleading API. The biggest offender is most probably
buffer.remove( 'a' ) , which definitely does not do what it suggests
to do.

Change-Id: I287619cd4b953228b93fa68fb381d66c344c3865
Reviewed-on: https://gerrit.libreoffice.org/1256
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-12-06 20:40:54 +00:00
773ad75b0d fdo#46808, Adapt util::NumberFormatsSupplier UNO service to new style
Change-Id: I58436d9eea0c38d14cde2dc01aa463d5d71912e9
2012-12-06 13:20:31 +02:00
d9ef61fb54 API CHANGE: roll back the XStyle changes to add a new Hidden property on Style
Change-Id: If6d23925567fb184cd8fc4e00fc72fe4d216e756
2012-12-03 17:58:48 +01:00
a0dcf96187 Hidden styles: ODF import/export
Change-Id: I1138314eba33dc8cf8d1f60e77ac419b4550bbcc
2012-11-30 22:15:38 +01:00
9ebc1ab138 OUString::trim() does not modify in-place
Change-Id: I68227dcf77b9082708503d2c0d9bf829d78a442e
2012-11-28 21:26:01 +02:00
5f82ec1178 OUString::trim() does not modify in-place
Change-Id: I9efc0ef7e8fa433352dcbc3d3173b95fdf838e20
2012-11-28 21:13:46 +02:00
1a8ac8b2df String and OUString cleaning in xmloff
Change-Id: I85d7fd7733814c60a048a7f87d43fbcbb83b0eb0
2012-11-27 22:59:29 -06:00
621cdc7a44 migrate user of InsertBlanks to OUString
Change-Id: Idc7379daf25a226622e5599124df2ab68b98902a
2012-11-27 22:59:28 -06:00
af60316514 some i18n wrappers with LanguageTag
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
2012-11-23 23:09:16 +01:00
1599fc9e54 svl: OUString conversion of most of zforscan
Change-Id: I02ca7f7770e2d53371e7c597c087c4a370ce8d3f
2012-11-18 19:57:23 -06:00
566adca89e xmloff: simplify the use of AddToCode
most use of that API is to add a single sal_Unicode, it is
silly to manufacture a full OUString just to pass that via
AddToCode to then append it to a OUStringBuffer

adding AddToCode(sal_Unicode c) to simplify these case

also remove a silly iteration over a OUString's character to
re-add each character one by one via AddToCode()

Change-Id: Ia8a58551a1c24312baaa250b8d36fe21c46127e7
2012-11-18 19:57:21 -06:00
d35ce2d9be xmloff: convert lcl_FindSymbol to OUString
Change-Id: I6d93cb64126d60c35fda58039989d57b18a44773
2012-11-18 19:57:21 -06:00
c77cebdf33 svl: convert GetQuoteEnd to OUString
Change-Id: I79bd0aecb98b7b47ee892ed4ce1b53abcd09ff44
2012-11-18 19:57:21 -06:00
ec2e175384 use LanguageTag
Change-Id: I568af42912ce1ec7701dc0043dfbd9d69243d533
2012-11-16 19:02:46 +01:00