1217 Commits

Author SHA1 Message Date
Nikhil Walvekar
3cf58da99e fdo#70942 Preserve original shape type, if shape contains text.
Currently we change shape type to textframe if a shape contains
text. Due to this shape information is not preserved when file
is saved.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7372

Change-Id: I7af3ce29f857d6fa2ceab0350937d91638361e7c
2014-01-13 18:17:42 +01:00
YogeshBharate
b23867abd8 fdo#73247: Code fixed for Shape rotation not preserved in RT
Problem Description:
- When we create the shape with text, rotated it with some angle,
the rotation angle is not preserved after roundtrip.

Implementation:
- Use the FrameInteroGrabBag to preserve  the rotation angle.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7367

Change-Id: I8a44e82d21f08ecb221cdbfef73f02a652f2bad3
2014-01-13 18:03:41 +01:00
Vinaya Mandke
c4ff46485f fdo#65833 Fix to preserve VML Canvas Information
Grab-bagged the "editas" attribute of v:group and added UT for
the same

Please verify this fix on MS Office 2007 as it renders the mc:Fallback VML part

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7335

Change-Id: I4e4456997621089967514009005ee775b71d6d69
2014-01-13 17:48:18 +01:00
YogeshBharate
dbd42432c7 fdo#69613: Code changes for TOC with flag '\x' should get preserved after RT.
Issue :
	TOC field flag '\x' was not getting preserved after RT.

Implementation :
	Provided import & export support for TOC field flag '\x'.

XML file difference :
	In document.xml,

Before:
	‒<w:r w:rsidR="00A9725D">
	‒<w:instrText xml:space="preserve">
	  TOC \o "1-3"
	</w:instrText>
	</w:r>
	‒<w:r w:rsidR="008A34F6">
	‒<w:instrText>
	  \h
	</w:instrText>
	</w:r>
	‒<w:r w:rsidR="00A9725D">
	‒<w:instrText xml:space="preserve">
	  \x
	</w:instrText>
After:
	‒<w:instrText>
	  TOC \x \o "1-3" \h
	</w:instrText>

Conflicts:
	sw/inc/tox.hxx
	sw/inc/unoprnms.hxx
	sw/source/core/unocore/unoidx.cxx
	sw/source/core/unocore/unomap.cxx
	sw/source/filter/ww8/ww8atr.cxx
	sw/source/ui/index/cntex.cxx
	writerfilter/source/dmapper/DomainMapper_Impl.cxx
	writerfilter/source/dmapper/PropertyIds.cxx
	writerfilter/source/dmapper/PropertyIds.hxx
Reviewed on:
	https://gerrit.libreoffice.org/7257

Change-Id: I8f196446a3beb8deea6b7ddde50e16c9cea73cd9
2014-01-13 17:08:01 +01:00
PriyankaGaikwad
5b6a41f446 fdo#69613:Fix for TOC field flag 'b' should preserved after RT.
(This is partial fix for this bug)

Implementation :
 Provided import & export support for TOC field flag '\b'.

XML file difference :
Before :
<w:instrText>
 TOC
</w:instrText>

After :
<w:instrText>
 TOC \b "bookmark111" \o "1-9" \o "1-9" \h
</w:instrText>

Conflicts:
	sw/inc/tox.hxx
	sw/inc/unomap.hxx
	sw/inc/unoprnms.hxx
	sw/source/core/unocore/unomap.cxx
	sw/source/filter/ww8/ww8atr.cxx
	writerfilter/source/dmapper/DomainMapper_Impl.cxx
	writerfilter/source/dmapper/PropertyIds.cxx
	writerfilter/source/dmapper/PropertyIds.hxx
Reviewed on:
	https://gerrit.libreoffice.org/7256

Change-Id: I194ba95ca8f25234c0d2a14570fd47eac518b9c5
2014-01-13 16:21:22 +01:00
YogeshBharate
8e634d0d55 fdo#69613: Code changes for TOC with flag '\w' should get preserved after RT.
Issue :
	TOC field flag '\w' was not getting preserved after RT.

Implementation :
	Provided import & export support for TOC field flag '\w'.

XML file difference :
In document.xml,

Before - <w:instrText>
		TOC \o "1-3" \h \z \w
	</w:instrText>

After - <w:instrText>
		TOC \w \o "1-3" \o "1-3" \h
	</w:instrText>

Conflicts:
	sw/inc/tox.hxx
	sw/inc/unomap.hxx
	sw/inc/unoprnms.hxx
	sw/source/core/unocore/unomap.cxx
	sw/source/filter/ww8/ww8atr.cxx
	sw/source/ui/index/cntex.cxx
	writerfilter/source/dmapper/DomainMapper_Impl.cxx
	writerfilter/source/dmapper/PropertyIds.cxx
	writerfilter/source/dmapper/PropertyIds.hxx
Reviewed on:
	https://gerrit.libreoffice.org/7238

Change-Id: Ia5d602c6db0b59933d325058ce2d8111e4f03df5
2014-01-13 14:46:30 +01:00
Miklos Vajna
9ae3ad2142 DOCX export: fix nested comments
Change-Id: I9e252ab5645de8f88d0d4c6c0023402d86dd2e9e
2014-01-13 09:53:32 +01:00
YogeshBharate
ec5903ddb6 fdo#69613: Code changes for TOC with flag '\z' should get preserved after RT.
Issue :
	TOC field flag '\z' was not getting preserved after RT.

Implementation :
	Provided import & export support for TOC field flag '\z'.

XML file difference :
        In document.xml,
        Before - <w:instrText>
		     TOC
		 </w:instrText>
	After -  <w:instrText>
                     TOC \z \o "1-3" \o "1-3" \h
                 </w:instrText>

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
	writerfilter/source/dmapper/PropertyIds.cxx
	writerfilter/source/dmapper/PropertyIds.hxx
Reviewed on:
	https://gerrit.libreoffice.org/7217

Change-Id: I84f90a722c7afbdf626db2cc60c4e73580891d36
2014-01-10 18:15:54 +01:00
Tushar Bende
9f9c2bb4d5 fdo#69613: Fix for DOCX Export loses Table-of-Contents flags
(This is partial fix for this bug includes flag 'f' processing)

Issue description:
Export logic for all TOC field flags was enclosed inside
if( nsSwTOXElement::TOX_MARK & pTOX->GetCreateType() ) in ww8atr.cxx,
which gets true for 'f' flag, this was the reason if there is 'f' flag
present in original doc then only other flags like \o \h used to come after RoundTrip.

Added Unit test case to verify even if there is no 'f' flag in original doc,other flags
eg. \h is getting preserved after RT.

Conflicts:
	sw/source/filter/ww8/ww8atr.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7203

Change-Id: I29d22b363cc91ae5fabffca959786134bf1ba1cc
2014-01-10 17:18:11 +01:00
PriyankaGaikwad
b4e9e7726f fdo#69613 DOCX export: Fix for '\o' flag field should export once.
(This is partial fix for this bug)
Description:
TOC flag field '\o' exported twice after roundtrip because the export logic for '\o' is repeated in ww8atr.cxx.

XML file difference
In document.xml
Before :
    <w:instrText>
     TOC \o "1-3" \o "1-3" \h
    </w:instrText>

After :
    <w:instrText>
     TOC \o "1-3" \h
    </w:instrText>

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7206

Change-Id: I136744927b8d5a48869a2bfc87278bede697c655
2014-01-10 17:01:29 +01:00
Marcos Paulo de Souza
b1236dd7e8 fdo#70807: Improve unit test using custom styles
As the bug talks about issues in custom styles, now they're tested too.

Change-Id: I5f727718ec3591e29c44c49750a7c7a0841a8c61
Reviewed-on: https://gerrit.libreoffice.org/7373
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-01-10 15:14:19 +00:00
umeshkadam
89a3acbdb5 fdo#71834: Fix for floating table
Issue :
        - When we have overlapping tables the first table gets
          exported as a table and the second table gets exported
          as a DML/VML shape.
        - While exporting, the system starts with the table row &
          the cell, within which it starts exporting the overlapped
          table, while doing so the previous table attributes were
                  being referred since the variable was shared.

    Implementation:
        - Save and reset the table related attributes before
          calling the WriteDMLTextFrame & writeVMLTextFrame
          functions.
        - Restore the table attributes for further processing after
          having written the shape.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7364

Change-Id: I0052a08c74ffbbebd3eb91a7075a43a4c225b670
2014-01-10 15:52:14 +01:00
Pallavi Jadhav
3a6fdd146a fdo#73227: Fix for corruption after RT
Issue:
	1] Document containing SmartArt inside <wp:anchor>
	   tag gets saved with <wp:inline>, due to which
	   value of attribute "id" of <wp:docPr> gets
           incorrectly written.
           Which was causing the corruption.
	2] LO was exporting SmartArt inside <wp:inline>
           bydefault. Hence "ids" of <wp:inline> and <wp:anchor>
           were same for value 1 and document gets corrupt.

	Implementation:
	1] Added code to export SmartArt inside <wp:anchor>
	   in DocxSdrExport::writeDiagram().
	2] Added export Unit test.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7292

Change-Id: I5b2efcba030d1736203cf4571d8498fd87600d79
2014-01-10 15:30:50 +01:00
Marcos Paulo de Souza
16ae82c772 fdo#70807: UT to verify used styles in document
Change-Id: Ief2eef638bc3f9e44358addf0d1c655a790834a2
Reviewed-on: https://gerrit.libreoffice.org/7351
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-01-10 08:47:52 +00:00
Miklos Vajna
cc0943a5db DOC export of annotation marks
Change-Id: Ib29aef7838b9d31d7956c93e1aa5b896852e4b89
2014-01-09 17:44:23 +01:00
Miklos Vajna
57ded88656 DOC import of annotation marks
Unit test is disabled, let's enable that when the export is working as
well.

Change-Id: I2d93ae38f480974a13cf9907f6cc82815fb3e69a
2014-01-09 16:52:36 +01:00
Miklos Vajna
03eb7ac908 RTF export of annotation marks
Change-Id: I079516ad0f30886d175748fdee19fbd71c2704f8
2014-01-09 14:49:37 +01:00
Miklos Vajna
347d83d1cc RTF import: handle RTF_ATNREF
Otherwise dmapper won't create an annotation mark for us.

Change-Id: I868c3ffd65fbaa9a5115ba7300310fa3585d2d05
2014-01-09 12:21:26 +01:00
Miklos Vajna
cda6438cc2 DOCX export of annotation marks
Change-Id: I1d4fc68458fd50beccf4e149f74ecbdfc78ea77c
2014-01-09 10:56:46 +01:00
Oliver-Rainer Wittmann
0761f81643 123792: complete annotations on text ranges feature
- rely annotations on text ranges on new annotation marks
- support arbitrary text ranges for annotations
- fix undo/redo regarding annotations an text ranges
- support annotations on overlapping text ranges
- fix *.docx import for annotations on overlapping text ranges
- fix ODF import of annotations on text ranges

cherry-picked from branch ooxml-osba

(cherry picked from commit ebd2922ebd3cf2d3899fb80780d38f367197aadf)

Conflicts:
	sw/Library_sw.mk
	sw/inc/IDocumentMarkAccess.hxx
	sw/inc/SidebarWin.hxx
	sw/inc/doc.hxx
	sw/inc/docufld.hxx
	sw/inc/hintids.hxx
	sw/inc/ndhints.hxx
	sw/inc/txatbase.hxx
	sw/inc/unobookmark.hxx
	sw/inc/unofield.hxx
	sw/inc/unoport.hxx
	sw/source/core/access/accpara.cxx
	sw/source/core/bastyp/init.cxx
	sw/source/core/crsr/bookmrk.cxx
	sw/source/core/crsr/findtxt.cxx
	sw/source/core/doc/dbgoutsw.cxx
	sw/source/core/doc/docbm.cxx
	sw/source/core/doc/doccorr.cxx
	sw/source/core/doc/docdde.cxx
	sw/source/core/doc/docedt.cxx
	sw/source/core/doc/docfld.cxx
	sw/source/core/doc/doclay.cxx
	sw/source/core/doc/tblrwcl.cxx
	sw/source/core/docnode/ndcopy.cxx
	sw/source/core/docnode/nodes.cxx
	sw/source/core/docnode/section.cxx
	sw/source/core/edit/edfld.cxx
	sw/source/core/fields/docufld.cxx
	sw/source/core/fields/postithelper.cxx
	sw/source/core/fields/reffld.cxx
	sw/source/core/inc/MarkManager.hxx
	sw/source/core/inc/crossrefbookmark.hxx
	sw/source/core/text/inftxt.cxx
	sw/source/core/text/itratr.cxx
	sw/source/core/text/txtfrm.cxx
	sw/source/core/txtnode/atrfld.cxx
	sw/source/core/txtnode/ndtxt.cxx
	sw/source/core/txtnode/thints.cxx
	sw/source/core/undo/undel.cxx
	sw/source/core/undo/undobj.cxx
	sw/source/core/unocore/unofield.cxx
	sw/source/core/unocore/unoport.cxx
	sw/source/core/unocore/unoportenum.cxx
	sw/source/filter/html/htmlatr.cxx
	sw/source/filter/html/htmlgrin.cxx
	sw/source/filter/html/wrthtml.cxx
	sw/source/filter/writer/writer.cxx
	sw/source/filter/ww1/fltshell.cxx
	sw/source/filter/ww8/wrtw8nds.cxx
	sw/source/filter/ww8/ww8par.cxx
	sw/source/ui/dialog/uiregionsw.cxx
	sw/source/ui/dochdl/swdtflvr.cxx
	sw/source/ui/docvw/PostItMgr.cxx
	sw/source/ui/docvw/SidebarWin.cxx
	sw/source/ui/fldui/fldmgr.cxx
	sw/source/ui/fldui/fldref.cxx
	sw/source/ui/inc/fldmgr.hxx
	sw/source/ui/inc/wrtsh.hxx
	sw/source/ui/shells/textfld.cxx
	sw/source/ui/uiview/view2.cxx
	sw/source/ui/utlui/navipi.cxx
	sw/source/ui/wrtsh/wrtsh2.cxx
	writerfilter/source/dmapper/DomainMapper_Impl.cxx
	writerfilter/source/dmapper/DomainMapper_Impl.hxx
	writerfilter/source/dmapper/PropertyMap.cxx
	xmloff/inc/txtfldi.hxx
	xmloff/source/text/txtfldi.cxx
	xmloff/source/text/txtparae.cxx

Change-Id: Ie4cc467dbb837054c73742262ee20f35c151ff3f
2014-01-08 15:58:35 +01:00
Rohit Deshmukh
5201aa5481 fdo#73034: Fix for Extra spacing in document.
Cause:
 - Extra space gets added in document due to default <rPr>
   is getting removed from <pPr>.
Implementation:
 - The 'rPr' inside 'pPr' means the properties of the 'paragraph marker'.
 - In that case - the paragraph marker will have different formatting then
   the rest of the runs in the paragraph.
 - Added default rpr tag in pPr.

Reviewed on:
	https://gerrit.libreoffice.org/7216

Change-Id: I5a1a1f251ccc5b555ea6bf3bac3e69af8b2b69b5
2014-01-08 10:17:10 +01:00
Miklos Vajna
52263eb4ee DOCX export: implement drawingML export of TextFrame AutoSize
Change-Id: I180158bfa0bd36ed1360d10788e7921c2fa945a7
2014-01-06 16:37:26 +01:00
Zolnai Tamás
2927ae7ac8 cp#2013101510000026: fix file coruption caused by comments' doc export
Plcfbkl contains only character positions. The Plcfbkf is that one
which contains additional informations.

Change-Id: I9bd8eec5c8e64d9d757764dae51bcb866456cdc9
2014-01-06 16:10:13 +01:00
sushil_shinde
854d7a1cc7 fdo#73217 : Textbox with picture fill are rendered and saved properly.
- Bitmap url was not stored propertly for textframes.
   - Exported background image fill for text box properly.
   - Added unit test.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7259

Change-Id: I1fbab24b2a83b22be04fd6950c80ddf274436738
2014-01-06 11:25:09 +01:00
Miklos Vajna
430246ef14 oox: handle pic:pic in WPG groupshape import
Change-Id: I7de11251bc4e1b58f9cb308e8b698d4c8c1a58d3
2014-01-06 10:16:28 +01:00
Miklos Vajna
f4db3ac593 RTF export: write RTF_FTNSEP and RTF_CHFTNSEP if necessary
Change-Id: Ie680436df68ea6287437f792d97259ee0a840ee1
2014-01-05 14:26:51 +01:00
Miklos Vajna
e1afe43187 RTF import: handle RTF_FTNSEP and RTF_CHFTNSEP
Commit 330b860205c7ba69dd6603f65324d0f89ad9cd5f (fdo#68787 DOCX import:
handle when w:separator is missing for footnotes, 2013-09-04) disabled
footnote separator by default in dmapper, as the OOXML tokenizer always
provided a uFtnEdnSep in case a separator was wanted.

Let the RTF tokenizer do the same, this way we're in sync with Word
again: if RTF_CHFTNSEP is in RTF_FTNSEP, then we show the separator,
otherwise we don't.

Change-Id: I74b46c5d71227682e093695336dc9eb6fde22121
2014-01-05 13:04:35 +01:00
Miklos Vajna
eb2b7d243d oox: fix handling of noop parent transformation from DOCX
It seems that in Word, a zero parent transformation, like:

<a:chOff x="0" y="0"/>
<a:chExt cx="0" cy="0"/>

means the child shapes will have an absolute position / size. We
actually use this feature in the exporter, but so far the importer
didn't handle this.

Change-Id: I250784a3dddd23649e391b548fc128dfdf153614
2014-01-03 17:22:00 +01:00
Zolnai Tamás
f2945255df cp#2013101510000026: doc import of comments affecting more text nodes
Change-Id: I3932d82cb4cd640b19957b93cc7e59711af1b564
2014-01-03 16:43:03 +01:00
Zolnai Tamás
5969eec0e9 cp#2013101510000026: doc export of commented text ranges
Change-Id: I2d31da5d659edcbebc682d5604d2db24b5e341fb
2014-01-03 16:43:03 +01:00
Zolnai Tamás
12e287220e cp#2013101510000026: wrong highlight of commented text range imported from doc
When makeFieldBookmark() method is called with
ODF_COMMENTRANGE it will ignore the added field name and
generate an own one. We have to set the name of the
SwPostItField to this generated name so these two names will match.

Note: lTagBkmk is only an identifier but not the exported name
of the fieldmark so we don't need to stick to use it as
a name.

Change-Id: I499abdcce1be0563c308bcf9f5c0a959a07f858b
2014-01-03 16:43:02 +01:00
Miklos Vajna
92518d513f drawingML import: fix default character height of WPG rectangles
The problem was that due to setting it to 18 in oox, the rectangle
didn't inherit the default 11 from the document.

Change-Id: I05c3b9c1d64eec58695e2039651a5f015df1f9e4
2014-01-03 12:39:26 +01:00
Vinaya Mandke
9679e9c232 fdo#69649 Fix for pre-rendered Table Of Contents
Added Import and Export Uts for the same

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7207

Change-Id: I966b3d268dd407aa05823e29fe1da4d097091265
2014-01-03 09:37:58 +01:00
Miklos Vajna
33227dbf27 fdo#73215 oox: don't assume single adjustment is adj during export
So far adjustment names were either taken from the document model, or in
case there the name was empty, either "adj" was used (in case of a
single adjustment) or "adj1", "adj2", etc.

The problem is that there is no consistency here, e.g. this behavior was
correct for "cube" (single adjustment is called "adj"), but not for
"bentConnector3", where the single argument is called "adj1".

Instead of trying to guess or build a long list manually, use the new
ooxDrawingMLGetAdjNames() to write the correct names.

Change-Id: I3d609975d89c7c79f4a70c7a739cab8e01f9667f
2014-01-02 19:03:10 +01:00
Miklos Vajna
096ea63090 fdo#73215 filter: don't try to handle pictureFrame in GetOOXMLPresetGeometry()
"pictureFrame" is not a valid drawingML shape type, VML export used to
write just "rect", by removing an explicit entry for
ESCHER_ShpInst_PictureFrame we now do the same.

Change-Id: I57683b7f5f80bfef8c3b6fb9ae9f33e4599a7eb2
2014-01-02 16:20:26 +01:00
Miklos Vajna
3a45a4e802 oox: fix export of TextShapes in DOCX
This was the last shape type that unconditionally wrote XML_sp for the
shape element, which is invalid for DOCX.

Change-Id: I3a6f8e6fd8ebbe663dce9ed4453396c3ec91c38a
2014-01-02 12:09:22 +01:00
Adam Co
1b66c17b7f Add unit-test for 'track changes - inserted paragraph mark' preservation
This is a unit-test added to complement the patch that added support
for the preservation of 'Track Changes - Inserted Paragraph Mark' from
a DOCX file.

Change-Id: I21e67b3ed8c98e8aba2c633dc6a549786ae44322
Reviewed-on: https://gerrit.libreoffice.org/7241
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-01-02 08:36:32 +00:00
Adam Co
53745911a7 Add unit-test for 'track changes - deleted paragraph mark' preservation
This is a unit-test added to complement the patch that added support
for the preservation of 'Track Changes - Deleted Paragraph Mark' from
a DOCX file.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7240

Change-Id: I161bcd90ec891fad60dfd5b7c77edddfd90b7fa8
2014-01-02 09:33:02 +01:00
Miklos Vajna
e8d10f215e fdo#41109 RTF shape import: handle fBehindDocument property
Change-Id: I9bf24eb2d3087e855d54c0ee7aba4e98dc856cc2
2013-12-29 16:28:59 +01:00
Miklos Vajna
ff7ac1a9b8 fdo#41109 RTF shape import: shpz has priority over dhgt
And not the other way around, how
24ee3df385cf2aa95cd888581c84fdf90cc682dc (RTF import: fix priority
handling of shpz vs dhgt, 2012-04-10) did, this time with a reproducer.

Change-Id: I9412341c6b35ca2760e4490a18f11bc6a0e0b78a
2013-12-29 16:07:44 +01:00
Miklos Vajna
6eb02ac8a7 fdo#65090 RTF filter: import RTF_CLMGF and RTF_CLMRG
These describe an explicit horizontal merge, that is not something Word
itself creates, but it turns out the Calc RTF export does.

Change-Id: I1b6ec10bb8e8bd40e24791ccc96f2f066dd0d5d5
2013-12-28 10:00:49 +01:00
Miklos Vajna
97dcf77841 Related: fdo#65090 DOCX import: handle w:hMerge cell property
Change-Id: I82f334426715fd1a1f0105b86f763d41e66f32da
2013-12-27 21:35:06 +01:00
Zolnai Tamás
75e7d6f12e DOCX import: close rPrChange properly.
Call endtrackchanges when rPrChange ends so the
corresponding redline will be removed.

Change-Id: I4091d7b54e0a74f3158cc979f210577a2dc29783
2013-12-24 08:07:51 +01:00
Miklos Vajna
4e49887bee DOCX export: fix relativeFrom=page, align=right handling
This is the export part of 51a61bd4aca15c860d301b687d582a39193089e2.

Change-Id: I9f7459e99ada8f5f73e9075d249c4e508c941d44
2013-12-23 18:26:28 +01:00
Miklos Vajna
41927dce42 sw: enable drawingml export of textframes by default
This was only available in experimental mode previously. Also note that
export of shapes (including group shapes) was already enabled
previously, this commit just enables the same for Writer Text Frames.

Change-Id: I53e7f3fac84328cea316a9811ecd5eecec79b23d
2013-12-23 15:06:54 +01:00
Miklos Vajna
4663b9e494 sw: chmod -x docx, doc and rtf testcases
Change-Id: I6f6726dd99a3f894ae86de279c74270e19b49d0e
2013-12-23 11:32:29 +01:00
Jacobo Aragunde Pérez
128aeab30e ooxml: Preserve paragraph theme fill attribute
The theme fill attribute and the original fill color are saved to the
paragraph grab bag during the import.

On export, the original fill color and the current one are compared
to know if the user has changed the fill color during the edition. In
that case, the theme fill attribute and the original color are
dropped.

Some methods related to the grab bag management were added to
CellColorHandler for convenience.

Added a unit test for this attribute.

Change-Id: Ic0514ce1d2f290fb0aef5ed86327c1f03f31f20c
2013-12-22 19:02:23 +01:00
Andras Timar
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
Miklos Vajna
377ec698af CppunitTest_sw_ooxmlexport: register wps, wp and a namespaces
This are all required to be able to assert the drawingML equivalent of
VML XPath expressions.

Change-Id: I79460d6ae7448120f8b9c27acdba52d33ff52a5a
2013-12-20 15:29:18 +01:00
Miklos Vajna
d0f8b02627 SwFiltersTest::filter: detect import filter on export test
This allows e.g. crash-testing the RTF export, even if the input source
is not RTF but ODT.

Change-Id: I3cf6afd1bc44bb475f1bd8da622d10dac0d3baa6
2013-12-18 19:21:06 +01:00