Commit Graph

6466 Commits

Author SHA1 Message Date
d540c322cc Remove more useless code inside "#if 0" blocks
Change-Id: Ifb9f9d2211608b848a5de66e1d19c4815a755907
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/840
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-10-08 21:27:01 +00:00
a20f9a410f fdo#46808, Adapt xml::sax::XParser UNO service to new style
The xml.sax.Parser service already existed, it just did not have
a new-style service to create it.

Change-Id: I6f145a7504ff9e149c802f723991954a2801cbc9
2012-10-04 16:29:53 +02:00
d92345561c don't blow up on .odt export with !hasValue footers/headers
Change-Id: I2507c23b7b17b9172f720548d32cdfe299d4fa20
2012-10-02 15:08:19 +01:00
5d8c2eddea String->OUString in svl::ImpSvNumberformatInfo
Change-Id: Iff00b06a1e4e7c485e70ef0537fdea07ce3d42e5
2012-10-02 14:57:22 +02:00
857a26eb17 XubString->OUString
Change-Id: I49d2d41ad4d5ee4ececf5a57eae070898e33075f
2012-10-02 12:45:13 +01:00
f1d9c520a2 Deduplication of NavigationOrderAccess for disable-dynlinking
Change-Id: I70238711222a12cb6bd843ebbc742a21a325810d
2012-10-01 13:23:48 +03:00
c2ca6fabd1 Use comphelper::getComponentContext
...and some further clean up.

Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-29 18:18:28 +02:00
750fc20611 replace remaining InterlockedCount() with inlined version
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c
Reviewed-on: https://gerrit.libreoffice.org/671
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-25 01:55:38 +00:00
fed4ca185b Sprinkle some staticness to avoid duplicate symbols when DISABLE_DYNLOADING
Change-Id: I9c5203400904902238c1f9a8f01338fdcf2904d8
2012-09-20 14:18:17 +03:00
03a9f139bd ComponentContext::getUnoContext -> getComponentContext simplification
...and some further clean-up.

Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-09-19 13:16:38 +02:00
b854de954f deprecate oustringostreaminserter.hxx
the intent of this header has canged over time. now it is already
systematically included with ustring.hxx and the operator overload it
provide fit nicely there...

Just to be safe, since that include as been added to the api during the
3.5 timeframe and therefore is already in 'production'
the header remain and simply attempt to include ustring.hxx
but a warning is issued indicating that this header should not be used
anymore... in a couple of major release we will thenr emove it completely

All internal users of that header are converted.

Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad
Reviewed-on: https://gerrit.libreoffice.org/634
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-18 10:10:06 +00:00
9316effe51 SvXMLImportPropertyMapper::importXML: fix assertion to be less silly
Change-Id: I009f0519e34900a1b1447de02d99f32dd0e07410
2012-09-14 15:04:16 +02:00
9a08148432 fdo#49571: ODF import: ignore "text:enable-numbering" attribute
It has been imported as an alien attribute since CWS impressodf12
5b364c2e8baf9b1f6bbe611c0fd6895a88056afc, and could not be written
to a document created from scratch anyway.

Change-Id: I054fcf71d7ddc3ed19735b8aa898d1b1a12db5b9
2012-09-14 15:04:15 +02:00
c9699f82ed fdo#49876: ODF export: do not export font-size="0pt"
This is invalid, font size must be positive.

Change-Id: I2425d7c596ca9c7c80c0d24c44cdd9ec1ac1dd80
2012-09-14 15:04:15 +02:00
a2959aba6a fdo#49678: ODF export: add svg:viewBox to draw:connector
This attribute is mandatory; for the given bugdoc various
svg:viewBox="0 0 2500 1" are now written.

Change-Id: I7ea2294e0796546dcbb245993c01c2dd2b2a755a
2012-09-14 15:04:15 +02:00
a27a6b68b7 fdo#49677: ODF export: always add xlink:type attribute
The xlink:type was optional on text:a and draw:a elements in ODF 1.1 but
is mandatory in ODF 1.2

Change-Id: Ifc7301ed1b0120d31a156751888dea1a55e952fe
2012-09-14 15:04:15 +02:00
22b615a7a5 fdo#30711: ODF export: "text:name" is mandatory on bookmarks:
XMLTextParagraphExport: Add a mapping that generates names for those
field marks that don't have a name so validators don't complain.
(regression from 7a1c5e54afe4e4ef7e17c2e9c969cd41221edc28)
There is still the problem that we cannot easily guarantee that the
names (generated or from some field param) do not clash with the names
of actual bookmarks...

Change-Id: I9ed65b94b3e8f725db4354222f2565176b32be52
2012-09-14 15:04:15 +02:00
fe1fd7c40c Improvement on previous commit
Change-Id: I51226f78ca60c32ebb908bcf4f74d38d0750eb00
2012-09-12 10:24:55 +02:00
372f980168 fdo#46808, Adapt xml::dom::SAXDocumentBuilderr UNO service to new style
Create a merged XSAXDocumentBuilder2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: Iaa96031a0b7c27e957d2edb0394e5eeaaa84cdca
2012-09-12 10:24:55 +02:00
9b07288138 fdo#46808, Adapt xml::dom::DocumentBuilder UNO service to new style
Change-Id: I577fbc7f990be9ec1f7b7eea53218b7daaccb2a1
2012-09-03 15:55:04 +02:00
fd226710fe -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I4b877ab97259f7e031e34daf7ce93e1b59417a08
2012-08-16 09:46:59 +02:00
9b85b65fb5 Prefer prefix ++/-- operators for non-primitive types
Change-Id: Ic8d149a78b2bc2bf352b7893202d0d0b6730746c
2012-08-10 22:36:26 +02:00
be88027c32 fdo#39468: Translate German comments in toolkit,unotools, & xmloff
Also checked the following with bin/find-german-comments (all
false positives):
- sysui
- xml2cmp
- udm
- ucb

Change-Id: I2c72f973f5cecf56d70b5419e56338170dd55a2e
2012-08-10 21:57:26 +02:00
49ad17e2b1 remove include comments and boxes
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-08 13:53:53 +02:00
34569eb28f drop bogus eof lines
Change-Id: Idda2852c3e96ce15fde75d5a95369ec50a012410
2012-08-07 13:45:27 +02:00
7378c5cb16 Replace usage of rtl/memory.h in xmloff with equivalent from string.h
Change-Id: Ie4747a424bb688263dd578905b44c849e3cac08d
2012-08-04 17:46:59 +02:00
9e74e9f3c0 fdo#38056: fix XMLTextImportPropertyMapper regression:
The invalidation introduced in 7f9928bfa561ccb6ed4e2baacc7d6960bc1ce231
is unfortunately in the wrong place; the pAllFoo actually point at
vector elements, and so they must not be dereferenced after new elements
are added to the vector, so move the invalidation up a bit.

Change-Id: I244d1d5cfd40469ff6d2c081e057355460d34cf4
2012-08-03 23:27:12 +02:00
cc51389c07 support new xml number:fill-character elem for number-style namespace
Change-Id: I7d3ca1f121396dfc017bb1ee73651f9017e58ba3
2012-08-03 14:25:47 +01:00
4e1629ff79 additional const_iterator in const method
Change-Id: I8cad958e1b6ba5eec000244a31e1ee98e0b5d123
2012-08-03 08:32:03 +01:00
ad99d4eeb6 SvXMLAutoStylePoolP_Impl: try to make MSVC happy
Change-Id: Ifecfa196923b7fdde51839d74bef46e840bae501
2012-08-02 23:49:21 +02:00
e38940a137 cntnrsrt.hxx: remove dead code
Change-Id: I004101e814ac3eb1de7a518c2dd9b1f14683eca8
2012-08-02 23:37:16 +02:00
d81c7f47c9 STL'ify DECLARE_CONTAINER_SORT_DEL(SvXMLAutoStylePoolParentsP_Impl)
Change-Id: I54f1595198b65058d3dd7f3304e0acb75cd55291
2012-08-02 23:34:02 +02:00
efe1a44e47 STL'ify DECLARE_CONTAINER_SORT(XMLTextListAutoStylePool_Impl)
Change-Id: Ib9aa0e619434acde5b4dd93b43b231ba23adb63e
2012-08-02 22:50:10 +02:00
0df18265ef STL'ify DECLARE_CONTAINER_SORT_DEL(XMLFontAutoStylePool_Impl)
Change-Id: Ic02f143a0e0f01a6cbc88c47d20e0c27dca17a74
2012-08-02 22:50:04 +02:00
5cd8770cbe convert XMLFamilyDataList_Impl to boost::ptr_set
Change-Id: I2a23787091828415cf814eb7091f3fa926b5876c
2012-08-02 11:34:02 +01:00
0fc413a327 const SvXMLStyleIndexCmp_Impl up
Change-Id: I5bd75e73f2584364bbb749767529efc75aff3d15
2012-08-01 15:05:04 +01:00
7e579295c8 convert SvXMLAutoStylePoolNamesP_Impl to a std::set
Change-Id: I839edf8d0e941f78f6f6f9e6a9117f76587a5f39
2012-08-01 13:54:51 +01:00
747cb47357 remove unnecessary includes of svl/svarray.hxx
Change-Id: Ifec201efc4e97baf2d36d66c4ae6967eadd6134c
2012-07-30 12:47:50 +01:00
eb9d49e605 WaE: unused variable
Change-Id: Iad6063f3f064e0d8fa0bf43125ec1d323519389c
2012-07-28 09:07:30 +03:00
89f08dce89 sd, sfx2, writerfilter, xmloff: fix some warnings 2012-07-27 17:50:22 +02:00
75acbd4b47 delete svl/svstdarr.hxx
Change-Id: Ia3d1d8dbe100443410b80c3881f10ab51b2d0419
2012-07-25 14:13:47 +02:00
d4b473dd9b office:annotation-end import
Change-Id: I8d1475b5bc9a36dade5ce28e74139834c69f8e14
2012-07-20 15:20:51 +02:00
672ca6077f office:annotation-end export
Change-Id: Idd815f2d10e67ae9cf91f06b6b4c92a0ebe2e856
2012-07-20 15:20:50 +02:00
6928759a89 odf: export old path without unsupported commands in draw namespace as well
- to preserve at least some data for older versions of Libre Office

Change-Id: I2a33706c2a2344e45b57a00469a7387072f8602b
2012-07-19 16:08:39 +02:00
7f9928bfa5 fdo#38056: ODF import: fix page style attributes:
PageMasterImportPropMapper: in the case of a single "fo:border"
and "style:border-line-width" attribute, it is possible that the border
is imported wrongly, like this:

1. pAllBorderProperty is set from the imported value, with name "TopBorder"
2. individual pNewBorder[i] are created as copies from pAllBorderProperty,
   one of which also with name "TopBorder"
3. pNewBorder[i] is updated with widths from pBorderWidths[i]
4. the individual pNewBorder[i] are added to the property vector
5. the property vector is sorted by property name
6. the properites are applied in order; if the pNewBorder[TOP]
   happens to precede the pAllBorderProperty (which is indeterminate
   as they both have name "TopBorder"), then the pAllBorderProperty
   will overwrite the border widths computed in step 3.

Thus, nerf the various pAllFoo properties so they do not override
the individual Foo properties later on.

Change-Id: I87755f1184d59da2aa72ac053e6f77d7295d6958
2012-07-19 12:26:47 +02:00
d8720d4e39 odf: export arcangleto commands in enhanced path (use drawooo namespace)
Change-Id: I43a2c08ee8dfc0abe4d05579b837b5be0944c0fe
2012-07-19 11:09:07 +02:00
e0f7e213af the unknwon typo is surprisingly popular
Change-Id: Iffe25051c8357019521196f9a27065d6108ede47
2012-07-16 19:40:58 +02:00
df645a2bd8 There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString.

Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
2012-07-16 11:33:05 +01:00
c2a73a4780 xmloff: implement import/export of SwPostItField::aInitials
Change-Id: Ie28e8e4c2e80d9234cf1ec2ca43dd200cf1d56cb
2012-07-16 09:52:05 +02:00
fc508908f5 fix a crash with empty string
If it's named nLast, then it's supposed to point to the last character,
which, with an empty string, logically means it should point before
the start of the string.

Change-Id: I248fbe80c1c4b1c2c8d39f0bcf772f9b85415e4a
2012-07-13 15:18:41 +02:00