Commit Graph

1215 Commits

Author SHA1 Message Date
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
Tor Lillqvist
f1d9c520a2 Deduplication of NavigationOrderAccess for disable-dynlinking
Change-Id: I70238711222a12cb6bd843ebbc742a21a325810d
2012-10-01 13:23:48 +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
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
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
Stephan Bergmann
fd226710fe -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I4b877ab97259f7e031e34daf7ce93e1b59417a08
2012-08-16 09:46:59 +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
34569eb28f drop bogus eof lines
Change-Id: Idda2852c3e96ce15fde75d5a95369ec50a012410
2012-08-07 13:45:27 +02:00
Radek Doulik
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
Radek Doulik
d8720d4e39 odf: export arcangleto commands in enhanced path (use drawooo namespace)
Change-Id: I43a2c08ee8dfc0abe4d05579b837b5be0944c0fe
2012-07-19 11:09:07 +02:00
Matteo Casalin
739e20ac58 Decrease header files dependencies
Change-Id: I654e71e56d60bf629625df09eb93b21c9ef670e8
2012-07-11 11:12:15 +05:30
Miklos Vajna
a8fb1a123f xmloff: kill RTL_CONSTASCII_USTRINGPARAM in rebased code
Change-Id: I3d5227c299d78d4492c47e29385c2c5ca25cfe49
2012-07-10 11:03:39 +02:00
Takeshi Abe
6013882bdf removed unnecessary forward declarations of class
except moving SvXMLStyleContext into xmloff/source/forms/layerimport.hxx

Change-Id: I5e16b54f98ccdd54bc0bb373d3fe92ed1bef3c5e
2012-06-27 20:05:51 +09:00
Michael Meeks
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
Takeshi Abe
6c7da3e22a removed code commented-out in the first place
Change-Id: Idb109cf767342042f1a2941c30fcf137f468e7df
2012-06-13 16:43:39 +09:00
Thomas Arnhold
3770bbbdba Remove superfluous empty lines on top
More than two lines are removed for readability.

Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-06-09 04:57:58 +02:00
Thorsten Behrens
3fb24e6307 Fix fdo#50704 Default to absolute svg:d paths for ODF1.2 compat-mode
This writes out absolute paths, to side-step buggy odf consumers'
wrong handling of the 'z' statement (i.e. they ignore it for current
positions).
2012-06-05 05:11:42 +02:00
Noel Grandin
b3c76dee6d fdo#46808, Adapt UNO services to new style, Part 7, updating ::create
Update calls to factories to use new ::create methods

Change-Id: I01d4417820f52718836c92faf3c2fae0dc96b30d
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-04 16:57:55 +02:00
Norbert Thiebaud
ed65cd71ed targeted string re-work
Change-Id: I56fe169cb78e8b3d57a5949f90b8d364e95a3917
2012-06-02 09:42:47 -05:00
Takeshi Abe
00f1180c96 removed unused const rtl::OUString
Change-Id: If02be864f958de96ae1c54fe575b1828410390b1
2012-05-18 22:56:54 +09:00
Caolán McNamara
cc92cb54e2 completely nutso merge bustage since 2004
useless unused fat global objects since
146f73bcfa

Change-Id: I2a5f54d34b498a64b658f158f98269f16e2e71f8
2012-05-16 15:16:53 +01:00
Takeshi Abe
a6b68f4682 removed unused static rtl::OUString
Change-Id: I5a097beaaeb30214ed6071bba1297e551291922b
2012-05-14 23:43:54 +09:00
Szabolcs Dezsi
e4fb171d3a Replaced a few equal calls with == 2012-04-08 19:24:00 +02:00
Szabolcs Dezsi
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
Szabolcs Dezsi
743f22045c Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 15:07:41 +02:00
Szabolcs Dezsi
8a01ee6243 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 14:30:05 +02:00
Szabolcs Dezsi
f770c5d6bc Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)return \([^()]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *);/\1return \2 == \3;/' \{\} \;
2012-04-06 12:48:32 +02:00
Takeshi Abe
643a582793 removed duplicate #includes
in vbahelper / writerfilter / writerperfect / xmlhelp / xmloff / xmlscript / xmlsecurity
2012-04-04 01:39:08 +09:00
Caolán McNamara
8a539e49c4 ditch some UniStrings and intermediate temporaries 2012-03-26 12:18:08 +01:00
Fridrich Štrba
7a19798c73 Compatibility option for incorrect relative moves after closePath (fdo#47406) 2012-03-26 12:55:59 +02:00
Thorsten Behrens
a2ee8055e9 Fix fdo#47406 incorrect relative moves after closePath
I missed the fact that odf export still uses the old exporter in
xmloff/source/draw/xexptran.cxx, which was not fixed wrt. the update
of current position in basegfx/source/polygon/b2dsvgpolypolygon.cxx
2012-03-26 12:15:32 +02:00
Caolán McNamara
bbc6d8506d remove various unused methods and source files 2012-03-07 11:06:45 +00:00
Takeshi Abe
3006397439 Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
2012-02-21 01:07:21 +09:00
Caolán McNamara
5416316840 catched -> caught 2012-02-13 14:04:42 +00:00
Michael Stahl
6c15b85624 fdo#45534: ODF export: fix draw:fit-to-size
In ODF 1.1 and 1.2 this attribute is of type boolean, so only write the
new values if the extended format is selected.
(regression introduced with e479f47f7d)
2012-02-02 14:36:18 +01:00
Caolán McNamara
e216078272 reduce unnecessary includes 2012-01-30 13:18:36 +00:00
Olivier Hallot
4228c5542b Fix for fdo43460 Part XLVII getLength() to isEmpty()
Part XLVII
Modules
xmloff (part 1)
2012-01-25 19:30:07 -02:00
Takeshi Abe
b35c0ae4ff catch exception by constant reference 2012-01-09 03:17:20 +09:00
Marcel Metz
d59211357a Removed unnecessary tools/debug.hxx includes. 2012-01-06 23:55:51 +01:00
Marcel Metz
53d27eb207 Removed unnecessary tools includes. 2012-01-05 15:38:51 +01:00
Marcel Metz
571ad11bc0 Removed unnecessary tools includes. 2012-01-05 15:36:41 +01:00
Marcel Metz
79646372a0 Removed unnecessary tools includes.
Hello lo-devs,

this patch series removes a lot of unnecessary includes for the various
tools header. The patches without suffix should be applied to the core
repository, the .binfilter.patch suffix should be applied to the
binfilter repository. I've tested the build with the configuration
--enable-binfilter --enable-dbgutil --enable-debug, is this sufficient
or did I miss another important configuration, that enables some
conditional compiled code? I've only build this on linux-x86_64, but the
patch also touches some of the mac specific code like
fpicker/source/aqua/SalAquaFilePicker.mm so it would be maybe a good
idea to test this patch.

regards Marcel Metz
2012-01-05 15:31:29 +01:00
Caolán McNamara
9cdb0ca46b there's no point to OUStringsSort_Impl 2011-12-14 09:52:49 +00:00
Michael T. Whiteley
dcfd4beb21 childs -> children 2011-12-08 11:32:41 +02:00
Michael Stahl
431604f9fa refactor media embedding completely:
Do the tempfile handling in SdrMediaObj, not in the window;
this has the advantage that it works even in the presence of clipboard
documents without SfxBaseModels and thus without storage (sc, sw).

The SdrMediaObj instances share ownership of a temp file.
2011-12-06 04:36:22 +01:00
Michael Stahl
116ad02ae8 xmloff: load and store embedded media 2011-12-03 00:48:15 +01:00
Norbert Thiebaud
2f27c67db3 remove include of pch header from xmloff 2011-11-27 13:27:50 -06:00
Michael Stahl
8666469d7b #i108468#: clean up xmluconv code duplication, measured approach:
modify sax::Converter::convertMeasure to use sal_Int64 instead of BigInt:
  should be sufficient, since the largest number is SAL_INT32_MAX * 10^7.
 remove duplicate methods from SvXMLUnitConverter:
  convertMeasurePx, convertMeasure (static variants)
 remove entirely duplicative class SvXMLExportHelper:
  GetConversionFactor, GetUnitFromString, AddLength
 change SvXMLUnitConverter interface from MapUnit to css::util::MeasureUnit.
 change SvXMLExport constructor params from MapUnit to css::util::MeasureUnit.
 rename some methods to turn compiler into merge conflict detector :)
2011-10-11 17:57:01 +02:00