Commit Graph

6475 Commits

Author SHA1 Message Date
Caolán McNamara
4a11a47103 trivial empty-init String::Fill -> comphelper::padToLength
Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e
2012-10-30 00:05:59 +00:00
David Ostrovsky
9e716494a8 fix some VS 2010 specific issues
Change-Id: Iae27a96c1e2ed72d2744fcbe100d6ada7dc41c82
Reviewed-on: https://gerrit.libreoffice.org/914
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2012-10-28 18:09:02 +00:00
Christian Lohmaier
3e79318d5c WaE: 'xChartType$D57056$_pInterface' may be used uninitialized…
… in this function"
declaring those functions static breaks the build on MacPPC / gcc 4.0.1

Change-Id: I3a389530d51ae0ddd38418159ca4234016bf93ba
Reviewed-on: https://gerrit.libreoffice.org/911
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2012-10-25 14:47:12 +00:00
Noel Grandin
5aa2cd1d3f fdo#46808, use service constructor for uri::UriReferenceFactory
Change-Id: I4e72bf5880fa28cb96d93ede7730a63220af7fa6
2012-10-23 11:45:47 +02:00
Noel Grandin
fb741b5e1e fdo#46808, Adapt xml::sax::XWriter UNO service to new style
Create a merged XWriter interface for the service.
The xml.sax.Writer service already existed, it just did not have
an IDL file.

Change-Id: I4e6d3f3c68f9282a55fc7aa19778f97632fd8ad5
2012-10-22 17:01:11 +02:00
Michael Meeks
cfacb2d111 accelerate shape import & export by more sensible XInterface handling.
Instead of converting both XInterfaces (again) to a root XInterface
inside the Reference == operator - we ensure that we have done this on
insertion, and do a fast pointer compare; saves ~40% of load time on
some docs, and more on save.

Change-Id: Ic3c97dd731ffb3854ebc135f416f6032d87b9d15
2012-10-22 13:29:35 +01:00
Caolán McNamara
1f9f8f4f40 loplugin: some log, indent and unused variable warnings
fix up some indents, remove some unused OUStrings and add some log areas

Change-Id: I5c50807aff7a726b03b72522975d9b75e6685b9b
2012-10-13 20:34:54 +01:00
Julien Nabet
dcaf8a871c uninit variable
Change-Id: I94870693fc269ab7a40e9ded482d259921316c38
2012-10-12 23:30:12 +02:00
Luboš Luňák
bd7e427ce5 mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html

Change-Id: I37ab7e25d1a9fcce2009b8e35535fc1d0b02013b
2012-10-12 13:12:04 +02:00
Marcos Paulo de Souza
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
Noel Grandin
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
Caolán McNamara
d92345561c don't blow up on .odt export with !hasValue footers/headers
Change-Id: I2507c23b7b17b9172f720548d32cdfe299d4fa20
2012-10-02 15:08:19 +01:00
Noel Grandin
5d8c2eddea String->OUString in svl::ImpSvNumberformatInfo
Change-Id: Iff00b06a1e4e7c485e70ef0537fdea07ce3d42e5
2012-10-02 14:57:22 +02:00
Caolán McNamara
857a26eb17 XubString->OUString
Change-Id: I49d2d41ad4d5ee4ececf5a57eae070898e33075f
2012-10-02 12:45:13 +01:00
Tor Lillqvist
f1d9c520a2 Deduplication of NavigationOrderAccess for disable-dynlinking
Change-Id: I70238711222a12cb6bd843ebbc742a21a325810d
2012-10-01 13:23:48 +03:00
Stephan Bergmann
c2ca6fabd1 Use comphelper::getComponentContext
...and some further clean up.

Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-29 18:18:28 +02:00
Norbert Thiebaud
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
Tor Lillqvist
fed4ca185b Sprinkle some staticness to avoid duplicate symbols when DISABLE_DYNLOADING
Change-Id: I9c5203400904902238c1f9a8f01338fdcf2904d8
2012-09-20 14:18:17 +03:00
Stephan Bergmann
03a9f139bd ComponentContext::getUnoContext -> getComponentContext simplification
...and some further clean-up.

Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-09-19 13:16:38 +02:00
Norbert Thiebaud
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
Michael Stahl
9316effe51 SvXMLImportPropertyMapper::importXML: fix assertion to be less silly
Change-Id: I009f0519e34900a1b1447de02d99f32dd0e07410
2012-09-14 15:04:16 +02:00
Michael Stahl
9a08148432 fdo#49571: ODF import: ignore "text:enable-numbering" attribute
It has been imported as an alien attribute since CWS impressodf12
5b364c2e8b, and could not be written
to a document created from scratch anyway.

Change-Id: I054fcf71d7ddc3ed19735b8aa898d1b1a12db5b9
2012-09-14 15:04:15 +02:00
Michael Stahl
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
Michael Stahl
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
Michael Stahl
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
Michael Stahl
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 7a1c5e54af)
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
Stephan Bergmann
fe1fd7c40c Improvement on previous commit
Change-Id: I51226f78ca60c32ebb908bcf4f74d38d0750eb00
2012-09-12 10:24:55 +02:00
Noel Grandin
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
Noel Grandin
9b07288138 fdo#46808, Adapt xml::dom::DocumentBuilder UNO service to new style
Change-Id: I577fbc7f990be9ec1f7b7eea53218b7daaccb2a1
2012-09-03 15:55:04 +02:00
Stephan Bergmann
fd226710fe -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I4b877ab97259f7e031e34daf7ce93e1b59417a08
2012-08-16 09:46:59 +02:00
Julien Nabet
9b85b65fb5 Prefer prefix ++/-- operators for non-primitive types
Change-Id: Ic8d149a78b2bc2bf352b7893202d0d0b6730746c
2012-08-10 22:36:26 +02:00
Oliver Günther
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
Thomas Arnhold
49ad17e2b1 remove include comments and boxes
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-08 13:53:53 +02:00
Thomas Arnhold
34569eb28f drop bogus eof lines
Change-Id: Idda2852c3e96ce15fde75d5a95369ec50a012410
2012-08-07 13:45:27 +02:00
Arnaud Versini
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
Michael Stahl
9e74e9f3c0 fdo#38056: fix XMLTextImportPropertyMapper regression:
The invalidation introduced in 7f9928bfa5
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
Noel Power
cc51389c07 support new xml number:fill-character elem for number-style namespace
Change-Id: I7d3ca1f121396dfc017bb1ee73651f9017e58ba3
2012-08-03 14:25:47 +01:00
Caolán McNamara
4e1629ff79 additional const_iterator in const method
Change-Id: I8cad958e1b6ba5eec000244a31e1ee98e0b5d123
2012-08-03 08:32:03 +01:00
Michael Stahl
ad99d4eeb6 SvXMLAutoStylePoolP_Impl: try to make MSVC happy
Change-Id: Ifecfa196923b7fdde51839d74bef46e840bae501
2012-08-02 23:49:21 +02:00
Michael Stahl
e38940a137 cntnrsrt.hxx: remove dead code
Change-Id: I004101e814ac3eb1de7a518c2dd9b1f14683eca8
2012-08-02 23:37:16 +02:00
Noel Grandin
d81c7f47c9 STL'ify DECLARE_CONTAINER_SORT_DEL(SvXMLAutoStylePoolParentsP_Impl)
Change-Id: I54f1595198b65058d3dd7f3304e0acb75cd55291
2012-08-02 23:34:02 +02:00
Noel Grandin
efe1a44e47 STL'ify DECLARE_CONTAINER_SORT(XMLTextListAutoStylePool_Impl)
Change-Id: Ib9aa0e619434acde5b4dd93b43b231ba23adb63e
2012-08-02 22:50:10 +02:00
Noel Grandin
0df18265ef STL'ify DECLARE_CONTAINER_SORT_DEL(XMLFontAutoStylePool_Impl)
Change-Id: Ic02f143a0e0f01a6cbc88c47d20e0c27dca17a74
2012-08-02 22:50:04 +02:00
Caolán McNamara
5cd8770cbe convert XMLFamilyDataList_Impl to boost::ptr_set
Change-Id: I2a23787091828415cf814eb7091f3fa926b5876c
2012-08-02 11:34:02 +01:00
Caolán McNamara
0fc413a327 const SvXMLStyleIndexCmp_Impl up
Change-Id: I5bd75e73f2584364bbb749767529efc75aff3d15
2012-08-01 15:05:04 +01:00
Caolán McNamara
7e579295c8 convert SvXMLAutoStylePoolNamesP_Impl to a std::set
Change-Id: I839edf8d0e941f78f6f6f9e6a9117f76587a5f39
2012-08-01 13:54:51 +01:00
Caolán McNamara
747cb47357 remove unnecessary includes of svl/svarray.hxx
Change-Id: Ifec201efc4e97baf2d36d66c4ae6967eadd6134c
2012-07-30 12:47:50 +01:00
Tor Lillqvist
eb9d49e605 WaE: unused variable
Change-Id: Iad6063f3f064e0d8fa0bf43125ec1d323519389c
2012-07-28 09:07:30 +03:00
Michael Stahl
89f08dce89 sd, sfx2, writerfilter, xmloff: fix some warnings 2012-07-27 17:50:22 +02:00
Michael Stahl
75acbd4b47 delete svl/svstdarr.hxx
Change-Id: Ia3d1d8dbe100443410b80c3881f10ab51b2d0419
2012-07-25 14:13:47 +02:00