Commit graph

1670 commits

Author SHA1 Message Date
Michael Meeks
4fea92fe53 cleanup custom perl XML parser, use strict, and tolerate updated XML 2012-07-17 11:51:17 +01:00
Michael Meeks
6eeb0942c3 re-base on ALv2 code. Includes:
retain presence of MPL licensed nssrenam.h symbol renamer.
2012-07-17 11:51:17 +01:00
Daniel Rentz [dr]
cf2d07fe80 dr78: correct include guard 2012-07-17 11:51:16 +01:00
Christophe JAILLET
a767448225 Search for char instead of 1 char long string, when possible.
It is faster and even avoid memory allocation somtimes.

Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445
2012-07-13 16:36:04 +02:00
Muthu Subramanian
752c832588 Crash fix.
Though getTheme() is not supposed to be returning NULL.
It seems like doing that sometimes.
2012-07-10 19:41:42 +05:30
Michael Meeks
ae7534f616 targetted rename xcr -> xmlscript to match includes and module name 2012-07-09 14:23:26 +01:00
David Tardon
711976fbd0 remove forgotten debug printf
Change-Id: Iff5a53735d78a2afcf90299a5f28a47f1376e393
2012-07-05 06:57:06 +02:00
Muthu Subramanian
37f6fc4933 n#768027: Slide notesMaster and notes import. 2012-07-04 20:58:35 +05:30
Caolán McNamara
bccf34c19a ditch String::CreateFromAscii
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
2012-07-03 21:24:35 +01:00
Radek Doulik
fa0e9cf0d1 use master's shape position/size for layout shapes when needed (n#760997)
Change-Id: I2a9d4f6b134817bda84645df3ab6fa217186e1d2
2012-07-02 18:26:04 +02:00
Thomas Arnhold
278000a28b Remove unused defines
Some of them were commented out for documentation purpose.

Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-02 17:46:25 +02:00
Michael Meeks
fdda178d88 targetted improvement of UNO API includes / usage 2012-07-02 14:43:34 +01:00
Miklos Vajna
8a89650769 don't build oox::drawingml::TextListStyle::dump by default
Change-Id: I24a468dbe208afd2a71dd10e7ed5610d8c259aec
2012-07-01 12:26:29 +02:00
Thomas Arnhold
e5c28b86be Remove commented out code (includes)
Change-Id: I0a11d09544c10d78a2036a5c3c94132b17fbfbe8
2012-06-27 13:32:44 +02:00
Markus Mohrhard
3f135598fd add import of axis color for data bars from xlsx
Change-Id: I2a15f8787afceaea1cb8e1c2902c05367d3e5b15
2012-06-27 05:59:51 +02:00
Michael Meeks
69a51d2bb6 re-base on ALv2 code. 2012-06-26 11:33:02 +01:00
Miklos Vajna
a1263c2e16 oox: fix remaining vba doxygen errors
Change-Id: Ic7816065fd5fda640ce85ab25514df76be098b12
2012-06-26 09:46:59 +02:00
Muthu Subramanian
11c5699dad n#759210: Certain smartart drawings weren't imported.
SmartArt info was reset, when there was a chart (e.g.)
in the same slide.
2012-06-25 19:25:52 +05:30
Caolán McNamara
fcda0878e9 merge 3 copy and paste efforts back together as bestFitOpenSymbolToMSFont
Change-Id: Ia830af58a1e2b80e85b2748b4acceb0bfc340afc
2012-06-25 14:19:03 +01:00
Caolán McNamara
4ce70ccc2d TODO: get rid of this in another incompatible build with SW project
Change-Id: Ic3fb0c8eb37317d55bcdc6abc7ff9843ba11fac6
2012-06-25 14:19:02 +01:00
Miklos Vajna
35c2b71785 oox: kill last vml doxygen errors
Change-Id: I955086f0c816d58fe8dfd104fe90367c76ad6568
2012-06-25 09:40:07 +02:00
Julien Nabet
750a9c408f Fix consecutive break
Change-Id: Ifd5dddee6950bcc08dc48c17293e794bf5aeb48e
2012-06-24 10:47:43 +02:00
Michael Stahl
a956deb3ed .pptx files don't need executable bits
Change-Id: I90069f562c61359f9b226b147fe99807ecb3ad8a
2012-06-22 22:39:32 +02:00
Michael Meeks
ecf943247f re-base on ALv2 code.
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-22 09:51:05 +01:00
Michael Meeks
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
Miklos Vajna
f837c4288c n#758883 oox: anchor vml shapes without anchor info as at-character
w10:wrap was originally arrived to
writerfilter::dmapper::WrapHandler::lcl_attribute(), but
writerfilter::dmapper::DomainMapper_Impl::PushShapeContext() was called
already and set the anchor type. Fix this, then we can set a a suitable
anchor type in lcl_SetAnchorType() based on the type model.

Change-Id: Ib411450b10f29f814bc13d81eaec434971b2e52a
2012-06-21 15:09:26 +02:00
Michael Meeks
b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
Radek Doulik
7279610bbd make sure we don't export shapes with negative size (fixes n#760997)
Change-Id: Id77cbfaa287d15c4af9a91976f3b091e68229223
2012-06-21 13:07:22 +02:00
Miklos Vajna
f3ed8b8b15 oox: mso-wrap-style is about wrapping mode for text in shapes
This commit partially reverts 9e8957de20
(as it interpreted mso-wrap-style as the wrap type of the textbox
itself, not the wrap type of the contained text) and also extends the
effect of commit 0016757efe to the
SimpleShape class as well.

Change-Id: If2bded6ad94f2866e8ea398ff0f2792e8c8e86b0
2012-06-20 15:46:17 +02:00
Luboš Luňák
886e29cff7 rework handling the case of recursive ooxml shapes again
Another attempt, whoever has written this apparently didn't consider
the possibility of recursion at all, and this still feels a bit hackish.

Writerfilter keeps just one oox::shape::ShapeContextHandler object during
the entire time of parsing the document, because e.g. <v:shapetype> needs
to be reachable even across VML block (see sw testcases for bnc#705956).
This however presents a problem when VML contains <w:txbxContent> which
contains another VML, as this code previously just took whatever has been
read and returned it to writerfilter, and it broke with recursion.
So now try to mark recursion entry and returns the right shape.

Related to 36c12c246d886b2d96d7a2d4d0c250db9d925c74 and the previous
commits it reverted.

Change-Id: I949a6b52ec7540aa59b047c7b6e908b10fb3bdc1
2012-06-19 11:52:40 +02:00
Luboš Luňák
831c2d9528 Revert "rework getting shape for the .docx import filter"
Stupid containers with shared_ptr. Trying to remove the object
from it gets it deleted because it's owned by the shared_ptr
and there's no sensible way to wrestle it out of it. This will
need to be redone somehow.

This reverts commit 04d600d4be.
2012-06-19 11:52:39 +02:00
Miklos Vajna
2e4c6b5169 oox: fix all vmlshapecontainer doxygen errors
Change-Id: Ieccd1f5e89c550095cd83a3f11939eec210f789e
2012-06-19 10:07:44 +02:00
Miklos Vajna
2db200e0c6 oox: last vmlshape doxygen mistakes
Change-Id: I1d74aad0280662cd06dcc633072402ba13199898
2012-06-18 10:36:53 +02:00
Luboš Luňák
e5fdaa2591 fix reading two smartart shapes in one document
Change-Id: If693eea8deceec7eebd45ab04de020223dc7f6a7
2012-06-14 09:20:59 +02:00
Miklos Vajna
48da4027d0 oox: fix TextFontModel doxygen comments
Change-Id: I0f869af4fd497461fc06897540d3be0a6703f00e
2012-06-12 14:07:40 +02:00
Caolán McNamara
2106d8e648 callcatcher: update unused code
Change-Id: Id5f730fc447b11000b266954f9e7f5287bad02f4
2012-06-11 14:46:45 +01:00
Luboš Luňák
0016757efe attempt to anchor vml shapes properly as they should be
This is a mess. Shapes from oox/vml are added to Writer by calling
SwXDrawPage::add(), which forces the shapes to be AT_PAGE, because
the pDoc->GetCurrentLayout() there is NULL. After that writerfilter
in DomainMapper_Impl::PushShapeContext() tries to do further
tricks with the anchoring. Such as the fix for bnc#764005
(0a412cc13e) that broke inline shapes
because of the AT_PAGE above.

So try to set the proper anchoring already in oox, although I'm not
entirely sure I got it right. Ideally writerfilter should not touch
it, but when I simply removed it another testcase breaks, so hopefully
this all can be cleaned up somewhen later when we have enough testcases
for all the possibilities.

Change-Id: I7dd95d87bd027ce0f129f76b3377f3d1445c34d1
2012-06-11 13:51:29 +02:00
Luboš Luňák
2f82bf1949 handle f suffix (1/65536ths) when reading VML percentages
Not all percentage attributes actually use this, but better be
safe and no point in checking only the allowed ones use them.

Change-Id: I851f9b19ea85201d70d5e6b2e219bbcd88ae3dea
2012-06-08 16:41:37 +02:00
Luboš Luňák
21eca1c73f shapes with position:static (default) should be anchored inline
Visible with incorrect alignment of the image in the footer
in the doc from bnc#764745.

Change-Id: Ibea9f38f7404981a9a846c23a09f8244c6020797
2012-06-07 17:02:12 +02:00
Miklos Vajna
9e8957de20 n#757905 fix VML import of mso-wrap-style:none
There were two problems here:
1) SimpleShape::implConvertAndInsert() did not set the anchor type
2) DomainMapper_Impl::PushShapeContext() tried to overwrite it

Change-Id: I2c32016c4bb15c891cf287d8208e10817c6291e6
2012-06-07 10:59:51 +02:00
Noel Power
80a31e00c5 import vmlshape 'hidden' style attribute and apply to controls bnc#757609
ensure 'hidden' controls are imported as such.
2012-06-06 18:01:21 +01:00
Noel Grandin
d08578912f fdo#46808, Adapt UNO services to new style, Part 7, updating ::create
Update calls to factories to use new SimpleFileAccess::create method

Change-Id: Ie5b0696fe2228a9033b19969245a53c21a61aa14
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-06 10:01:22 +02:00
Noel Power
afbb2d8f7d fix missing ole and form control(s) on xlsx import
chang the visibility of aMceState in order to access that member to filter out reading and parsing of ./xl/ctrlProps/ctrlProp[N].xml fragments for 'controls' & 'oleObjects' elements nested withing 'mc:AlternateContent' elements

Change-Id: I6892db7e3302b9977f0fdaabbe3ac1444315e011
2012-06-05 16:45:31 +01:00
Miklos Vajna
9dc26ca946 TextParagraphProperties::pushToPropSet: limit effect of failed numrule import
Fixes missing paragraph properties in Writer when importing SmartArt.

Change-Id: I0091d7156b30b7ef99e550d7252a60676c23046e
2012-06-05 16:14:32 +02:00
Miklos Vajna
25d7dffde1 oox::drawingml::TextParagraph: OSL_TRACE -> SAL_INFO
Change-Id: I79af1d624c420dff87751691ff8aa484fd3de2b6
2012-06-05 15:56:41 +02:00
Miklos Vajna
baa591a935 oox: move ShapeDrawingFragmentHandler to its own file
Change-Id: I12b057555e00f3623c45c831f4042747f140ff92
2012-06-05 11:41:47 +02:00
Miklos Vajna
110c8df2d8 oox: import prerendered smartart into writer
Change-Id: I1c76c1bb2098c42727ae4e605e20746d0bb09463
2012-06-05 11:06:40 +02:00
Noel Power
d59a707f6e remove anchor to cell shape (re)position hack
this change manaully reverts c07e9299bb & 4908c16a73

Change-Id: Ia8656631f84709430c8e94e8d9dfa961e81d5746
2012-06-04 18:04:58 +01: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
d5d29accb7 targeted string re-work
Change-Id: I910a508722a309d7916377a7e2df2093070809ad
2012-06-02 14:55:58 -05:00