summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/docxattributeoutput.cxx
AgeCommit message (Collapse)Author
2013-11-15LibreOffice Corrupts DOCX files containing Footnotes after RoundtripPallavi Jadhav
Issue : 1] Extra data was getting written into document.xml after </w:document> This includes : 1) <sectPr> tag 2) Paragraph tag of <w:footnote w:id="2"> from footnotes.xml 2] This is leading to document corruption Implementation : 1] Enabled a flag inside DocxAttributeOutput::FootnotesEndnotes 2] Check value of flag to decide whehter to write section properties or not Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx sw/source/filter/ww8/docxattributeoutput.cxx Reviewed on: https://gerrit.libreoffice.org/6644 Change-Id: Iae53fd6bf12bcbac84846bd36823bc08f21f9edf
2013-11-15Save Image-Crop information for GIF in docxPallavi Jadhav
Issue:- 1] When MS Office docx file containing cropped image is round tripped with LibreOffice 4.2, image looses its cropping effect. Implementation:- 1] Converted MAP unit, MAP_PIXEL to MAP_100TH_MM using PixelToLogic function. As for calculating EMU values for XML, we need Original Height and Width of an image in 100thMM(HMM) format. 2] Written Export Unit Test (GIF) to verify cropping parameters. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/6595 Change-Id: I54d7b08c96608a0cfca3c2f8833684c09848351c
2013-11-15DOCX export: fixes for para auto spacing roundtripMiklos Vajna
- m_bParaBeforeAutoSpacing / m_bParaBeforeAutoSpacing was never set to false - m_iParaBeforeSpacing / m_iParaAfterSpacing was uninitialized Change-Id: I5c8ebd8e4f4c151059916397bc45e0c0ebcf5040
2013-11-15Resolved: Preservation of para before and after auto spacing.Nikhil Walvekar
During import a flag and fixed value is stored in InteropGrabBag and during export we check for fixed value and value available in para spacing object. Write autospacing only if para spacing values are not modified during edit. Reviewed on: https://gerrit.libreoffice.org/6575 Change-Id: If34c5b61c3180b01e68dfe83862784c3d6f33981
2013-11-15DOCX:fdo#71646 fix wrong direction when save the file.Faisal M. Al-Otaibi
Change-Id: I6f3dcf1007e91551e1f3335f4c40424add1c45c3
2013-11-14fdo#65295 - add export of text-box gradient fill angleAdam Co
Currently - the angle of the gradient fill of a text-box was not being exported. This resulted in the gradient always being a horizontal gradient. This patch fixes that and exports the angle. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/6653 Change-Id: I1da60a8e82705097e9e699549d3828375967e744
2013-11-14fdo#65295 : swap gradient text-box colors only in case of axisAdam Co
This commit changes the behavior of the export process of text-box gradient color. Currently it exports the colors inverted, but it should do so only when it is an 'axis' gradient. Change-Id: I8841982c1dbc57616d6e1640d73bc8aa823ae056 Reviewed-on: https://gerrit.libreoffice.org/6646 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-11-14Fixed missing hyperlink end tagYogeshBharate
Problem Description : The <w:hyperlink> tag is not terminated properly due to that the file get corrupted. Also unit test is added for export. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Revewied on: https://gerrit.libreoffice.org/6619 Change-Id: I2480ab624ab572e411bd1511030c0da1b7f5d183
2013-11-14Save Image-Crop information in docx for PNGPallavi Jadhav
Issue:- 1] When MS Office docx file containing cropped image is round tripped with LibreOffice 4.2, image looses its cropping effect. Implementation:- 1] Function WriteSrcRect() is implemented inside docxattributeoutput.cxx 2] It writes out xml tag <a:srcRect> which is responsible for storing cropping parameters Change-Id: I8814df40f9907512779b42c9ad2405953c70626b Reviewed-on: https://gerrit.libreoffice.org/6507 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-11-14Save Image-Crop information in docxPallavi Jadhav
Issue:- 1] When MS Office docx file containing cropped image is round tripped with LibreOffice 4.2, image looses its cropping effect. Implentation:- 1] Function WriteSrcRect() is implemnted inside docxattributeoutput.cxx 2] It writes out xml tag <a:srcRect> which is responsible for storing cropping parameters 3] Written Unit Test to verify cropping parameters Conflicts: sw/qa/extras/ooxmlimport/ooxmlimport.cxx Reviewed on: https://gerrit.libreoffice.org/6240 Change-Id: I6ab30305bae44ca1bfef73b0df2967d943ee60fe
2013-11-14remove unnecessary sal_Unicode casts in SW moduleNoel Grandin
Change-Id: I9e67d4f5e680a29718c4e7be7292913602cd9311
2013-11-12 #65836- Fix for exporting image inside vml data was corrupting file.sushil_shinde
- Handled exporting of image for all type of format in vmlexport. - fixed issue - .rels file was not getting exported for vmlexport. - Not handled for .wmf image (will work on it) Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/6369 Change-Id: I9ccf7a36ae316a658f06d1074caa4e4b2f5d271f
2013-11-11w:pict element was wrongly exported as child of w:rPr element.sushil_shinde
-added postpone method for vml export in docxattributeoutput Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/6366 Change-Id: I37586447547e2e09028f7ae5009bcfaa87a35678
2013-11-08DOCX filter: handle numbering style's qFormat, rsid and friendsMiklos Vajna
Change-Id: Ia261995b98e2108ab673c7b240a1aa822d3db96e
2013-11-08DOCX filter: handle char style's qFormat, rsid and friendsMiklos Vajna
Change-Id: Ie0bc9aff722d87fcd246d0cf1971ad6f34f0996a
2013-11-07DOCX export: handle semiHidden para styleMiklos Vajna
Change-Id: Icde4d5af2398a241c628f16225f1d427a2f27cfc
2013-11-07DOCX filter: roundtrip paragraph customStyleMiklos Vajna
Change-Id: I7fec154ff3b39845e91301b4fb607381e80e13f7
2013-11-07DOCX filter: roundtrip paragraph style defaultMiklos Vajna
Change-Id: I93495b4a2f85fe9729f8e1c810532717783756e4
2013-11-07DOCX filter: roundtrip paragraph style lockMiklos Vajna
Change-Id: Id656e48c1600bb7b04e8566d5c0f3297f80a89d9
2013-11-07DOCX filter: roundtrip paragraph style linkMiklos Vajna
Change-Id: Ide29e98b73410d8917742f2eeb15bdcbd9de87cc
2013-11-06cp#1000015 DOCX export: fix not-well-formed XML on redline end + hyperlinkMiklos Vajna
Change-Id: I3a87a0277952ba0a422df8988151f8b14e166e06
2013-11-06DOCX export of para style's qFormat, rsid and friendsMiklos Vajna
Change-Id: I4ed35f2b497fec96d012303001d4861768daef6a
2013-11-05fdo#69644 - fix docx export of wrong number and width of columnsAdam Co
When the DOCX exporter exported a table, it filled the table column definitions with the column sizes of the FIRST row only. This was ok for tables that have the same columns on all rows, but for more complex tables with different cell widths - the filter exported the wrong number of columns and the wrong width. A followup fix would fix the rounding problems there still are with the column widths that are exported in the table definition. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: Ie95dfe60b1c1811776433e457ca04e728623e01e Reviewed-on: https://gerrit.libreoffice.org/6290
2013-11-05convert xub_StrLen to sal_Int32Noel Grandin
Convert code like: xub_StrLen nLen = aStr.getLength(); into sal_Int32 nLen = aStr.getLength(); Change-Id: Ib0af6b747068257478918fd1cc93e4925f32ac47
2013-11-05convert xub_StrLen to sal_Int32Noel Grandin
Converts code that calls comphelper::string::getTokenCount() to use sal_Int32 to store the return value. Change-Id: I439605a39d29b1309649e30f3ff40dfa412efcde
2013-10-30Factor out DocxTableStyleExport from DocxAttributeOutputMiklos Vajna
Also add a docxhelper, that contains stuff that was local to DocxAttributeOutput till now, but required by DocxTableStyleExport. Change-Id: I24dcc62d11862078202244c214b317e3bc600567
2013-10-30DOCX export: initial w:tblStylePr handlingMiklos Vajna
Change-Id: Ib368d558913149d7489ed320b459b66d3b1279a0
2013-10-29DOCX export: handle table style's pPr / rPr from InteropGrabBagMiklos Vajna
Change-Id: I6dfb29db030212e55a207f39e79a1cf01d482e85
2013-10-28DOCX filter: roundtrip semiHidden and unhideWhenUsed for table stylesMiklos Vajna
Change-Id: Ie7073a6346553650741a1631096342318d650890
2013-10-25move OOXML_COLOR_AUTO from writerfilter to msfilter, we need it from swMiklos Vajna
Change-Id: I145c08d17ccb36bfbf734306cd9d27e8423debdd
2013-10-25DOCX export: table style export: initial cell hanglingMiklos Vajna
Change-Id: I83ca33d87a016f8634ca6a87b81df20f6b4e0e30
2013-10-25DOCX export: table style export: handle tblStyleRowBandSize, etc.Miklos Vajna
Read these from InteropGrabBag, as the importer already put them there. Change-Id: I10745628c61841c168daa64bf46c51228cb38374
2013-10-24DOCX filter: initial table style export based on InteropGrabBagMiklos Vajna
Change-Id: I7b31322b50c8c924e5df3c32e3c2da8093709938
2013-10-22DocxAttributeOutput: comment wanted to refer to boost::noneMiklos Vajna
Change-Id: Ia3ecac669f35c57467e62c777e18d176753fdb0e
2013-10-22fdo#44689: fix for specific case of page restart-value 0Adam Co
This bug fix is for roundtripping a DOCX that has a specific 'start value' for the page numbers. In most cases LO imports it ok. However - until now - Word allowed you to start page number from 0, while LO only allowed starting page numbers from 1. This was because the 'start value' was stored in an 'unsigned int', and the value '0' was used to mark 'there is no start value'. This patch changes the way the 'start value' is stored from 'unsigned int' to 'optional unsigned int'. This way - if there is no value applied - the variable will hold NULL. However - if a value is set - it can be 0 or more. This meant also tweaking all the places that used to get this value, so that now they handle an 'optional uint', instead of a 'uint'. Conflicts: sw/source/ui/inc/break.hxx sw/source/ui/inc/wrtsh.hxx sw/source/ui/shells/textsh1.cxx sw/source/ui/utlui/uitool.cxx sw/source/ui/wrtsh/wrtsh1.cxx Change-Id: I6ad9d90e03b42c58eed2271477df43c20ad6f20a Reviewed-on: https://gerrit.libreoffice.org/5681
2013-10-17MSWordStyles: initial DOCX export of list stylesMiklos Vajna
Change-Id: I96522b72de1e0322229105c24913ed011b28d170
2013-10-17sw: bool -> enum for style type in AttributeOutputBaseMiklos Vajna
For now just use what we have already: paragraph and character styles. But it enum should contain numbering styles as well in the future. Change-Id: Ifd2f918446537e04cb5ba2cd8df822c5a1f9099c
2013-10-16Code changes & unit tests for fixing multicolumn section separator line issueYogeshBharate
Problem Description: In case of multicolumn sections, separator line was getting added during export to docx. Unit test cases added to verify the code changes. Change-Id: Id65ac4d3878eed298882c85082cec9575f914d83 Reviewed-on: https://gerrit.libreoffice.org/6211 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-10-15convert sw/source/filter/ww8/*.cxx from String to OUStringNoel Grandin
Change-Id: Ibdd454008244b9a6db5037f511ac2da723648d89
2013-10-14Related: fdo#38838 remove UniString::AppendAsciiCaolán McNamara
Change-Id: I0f929843d73eb445c8b1aa56d59cbbce844b9008
2013-10-10convert sw/source/filter/ww8/*.hxx from String to OUStringNoel Grandin
Change-Id: I8b26dcc671771f3a26c1270b94ef7e342074fa3c
2013-10-09DOCX export: Write contextualSpacing only if it takes place.Jan Holesovsky
Change-Id: Ibc5783aeea8bcdc05c14054fa10c43a0c98c2159
2013-10-09DOCX export: Output the paragraph properties in docDefaults too.Jan Holesovsky
Change-Id: Ie5fc89d24cfff021e362811f3d2eed8608107767
2013-10-09Improve readability.Jan Holesovsky
Change-Id: I7527acd4b99b3b2a911532adb85b2a082c6569b7
2013-10-09Fix for C++03, and const-improveStephan Bergmann
Change-Id: I9d7c9bf832863c4b4776c7881ab7e44ab5df9607
2013-10-09DOCX export of CT_LatentStyles and CT_LsdExceptionMiklos Vajna
Change-Id: I32a594464c71215ee7557823aadaa72b8b72b4e2
2013-10-08DOCX export: ParaScriptSpace() should not contain handling of more items.Jan Holesovsky
They are not really related, so no reason to have one method for them. Change-Id: Id633c2a9e8d46c3a64dc9d5abe508a4da5ab2410
2013-10-08Related: fdo#38838 remove UniString::SearchAndReplaceAllCaolán McNamara
Change-Id: I093c95b8700b628375d69293022f7d4b8da2af9c
2013-10-08DOCX export: Export run properties defaults in docDefaults.Jan Holesovsky
The paragraph properties still need some work, so that part is disabled in order not to break the unit tests. Change-Id: I06e55a5345d4fe08b14b8a260ab774b38770bf7b
2013-10-08DOCX export: Fix potential crash.Jan Holesovsky
Change-Id: I8a7fb3ba70676c4574bc493c5e0ea9eea5267608