summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)Author
2013-11-15fdo#71581: Use pictureFrame for images.Muthu Subramanian
Which would be a simple rect instead of the complicated shape.
2013-11-14fdo#65295 - fix gradient focus issueAdam Co
There was a wrong 'if' statement, that checked if the focus was over 75% and also if the angle was less than 180. If so - it compensated for that by adding 180 degrees to the angle (and losing the 'focus' attribute). But it should do that even if the angle is more than 180 degrees, so this was fixed. Reviewed on: https://gerrit.libreoffice.org/6647 Change-Id: Ib2dc8a61359e656721c5c6c99587d4d547eed835
2013-11-14fdo#70457: Preserve rotation of embedded bitmaps from docxJacobo Aragunde Pérez
When importing bitmaps coming from VML code, we were mistakenly ignoring rotation information: we have just added it to the existing XShape object. In the case of bitmaps expressed in DrawingML, the code was transforming them into SwXTextGraphicObjects which don't have rotation information. We are now preventing that transformation when rotation value differs from zero, leaving the XShape object that was built in the first pass through the document. Added a unit test. Conflicts: sw/qa/extras/ooxmlimport/ooxmlimport.cxx Reviewed on: https://gerrit.libreoffice.org/6484 Change-Id: I40100f8919894e48c005f8ed445bb5cad4f58d8b
2013-11-14fdo#70838: Fix size issue when exporting shapes to docx.Jacobo Aragunde Pérez
We were saving the size of the rotated shape bounding box in the docx file but that size was being interpreted as the size of the original, unrotated shape. Now VMLExport::Commit will use the dimensions of the rectangle received as a parameter to save to the file instead of those returned by SdrAttrObject ->GetSnapRect Change-Id: I53670db77f5e5320a87579dcd56617d5ccf1851a Reviewed-on: https://gerrit.libreoffice.org/6432 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-11-14Move MediaDescriptor from comphelper to unotoolsStephan Bergmann
...so it will be able to use SvtSecurityOptions internally. Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14Make requestAndVerifyDocPassword var with MediaDescriptor a mem fn of latterStephan Bergmann
Change-Id: I645d554c7ce592d93ca0696fa7e6068ce40c9058
2013-11-14remove unnecessary sal_Unicode casts in OOX moduleNoel Grandin
Change-Id: I2b9f26cb500a9e56f5860bd1b483ed284b84f50d
2013-11-13n#828390: Export subscript text.Muthu Subramanian
2013-11-13oox: initial import of wps:wspMiklos Vajna
We import something that's visible, but the shape is always inline, even when it has to be anchored. Change-Id: I6e20aa1a208f06731098ad21bb51c1ca840213d0
2013-11-13oox: add support for the wps namespaceMiklos Vajna
The plan is that once these are here, the writerfilter ooxml tokenizer can refer to them. And then the writerfilter will call back to oox to do the real drawingml import. Change-Id: I1f860d1ade21cde767ad259d46b8d38ff167662f
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-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11convert OUString !compareToAscii to equalsAsciiNoel Grandin
Convert code like if( ! aStr.compareToAscii("XXX") ) to if( aStr.equalsAscii("XXX") ) which is both clearer and faster. Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-05update pchThomas Arnhold
Change-Id: I10f3dbd9513052b3bbe30ddc6523cd231f26ded3
2013-11-04oox: use proper integer type when calling PK11_DigestFinalMichael Stahl
Change-Id: I5ff79c55446bd9f3e350fb128793ffef51be843f
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-29cppcheck: duplicate break or break which follows a returnJulien Nabet
Change-Id: I0985d28289e31969cb9b048b221abfae1572025d
2013-10-23fixincludeguards.sh: ooxThomas Arnhold
Change-Id: Ibc1fb5c149461d6030749a974c6d37aa11ad0e16
2013-10-23mark as copy and pasteThomas Arnhold
Change-Id: I315e6d2d75ec15655f0c926339b5af0e50a1190f
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22n#839727: Crash fix.Muthu Subramanian
2013-10-22n#839727: Chart missing dataset.Muthu Subramanian
This was because there is no explicit category in the chart - while libreoffice expects it.
2013-10-20wrong comparisonCaolán McNamara
regression since ed338bc212725f422f0def21aafc82f05e350646 Change-Id: Ia5dfe7a551abe244c313d3bdb2b90196fc0c6ba2
2013-10-20drop unnecessary tools/string includesCaolán McNamara
Change-Id: I4278999b9b7d184c26036bbe9e3b98420f461e8c
2013-10-17oox: special-case single-character a-z token mapping.Michael Meeks
Change-Id: I58a810cc6062d5b42558dd5c0f37426a8a210f40
2013-10-17fdo#54938: Adapt svtools and comphelper module ...Marcos Paulo de Souza
to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-16-Werror,-Wlogical-not-parenthesesStephan Bergmann
"logical not is only applied to the left hand side of this comparison" Change-Id: I015befe47ea9f40f83217b259e07eb01edb7d820
2013-10-16oox: added methods to lock Smart-Art editionAndres Gomez
Added the possibility of rendering the basic shapes generated for a Smart-Art into a bitmap and replacing them with it in order to not letting to edit the Smart-Art. This possibility is controlled using a configuration parameter located at Options -> Load/Save -> MS Office -> SmartArt to LibreOffice shapes or reverse. Made the "oox" library to depend on the "drawinglayer" and "svx" libraries. Made the "ooxmlexport" C++ unit tests in the "sw" module to depend on the "drawinglayer" and "svx" components. Fixed to set to diagram type a new "oox::drawingml::Shape" representing a Smart-Art in the "getShape" method of the "oox::shape::ShapeContextHandler" class. Added the "keepDiagramCompatibilityInfo" and "renderDiagramToGraphic" protected methods to the "oox::drawingml::Shape" class. "keepDiagramCompatibilityInfo" is now called after an instance of type "FRAMETYPE_DIAGRAM" has added all its children in the "addShape" method and the proper setting is in place. "keepDiagramCompatibilityInfo" substitutes previous similar code in the "createAndInsert" method and also calls "renderDiagramToGraphic". The "renderDiagramToGraphic" renders the basic shapes in a Smart-Art into a PNG image and replaces these basic shapes with a new "GraphicObjectShape" filled with the new PNG image. It also sets the "MoveProtect" and "SizeProtect" properties of the "GraphicObjectShape". Change-Id: Ie4002238ff5fae758a5881b03735bf1f0721ed5b Reviewed-on: https://gerrit.libreoffice.org/6059 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-10-15update pchThomas Arnhold
Change-Id: I475bee35ca5d24903d85e7f2427fab0e47d8db4d
2013-10-12Fix for Corruption of chart due to Data Lables in Writer, Impress and CalcRohit Deshmukh
Chart file gets corrupted, if we save file in Libreoffice and open in MS office. MS Office gives error, file is Corrupt. Following charts get fixed 1. Radar chart 2. Area chart without data labels 3. Line chart 4. Bubble chart Area chart with data label file gets courrputed after roundtrip in Libreoffice. Change-Id: Ib03ad49aae268b53aa18bdc21c723e2a7777eb45
2013-10-11-Werror,-Wunused-variableStephan Bergmann
Change-Id: I7f4f232475339d524eed7ba578e22b53991bd123
2013-10-11CID#1103719 leak on default: pathCaolán McNamara
Change-Id: I74a17da384499fb18f13d5caa04c356dfee71eff
2013-10-10Partially revert alpha handling.Muthu Subramanian
Spec talks about x% while documents seem to contain x*1000
2013-10-10n#812793: clrChange applying for EMFsMuthu Subramanian
Also fixed alpha clrChanges.
2013-10-10n#819614: Lines running off the screens.Muthu Subramanian
Also fixed the test cases.
2013-10-07fix build: use rAttribs :)Thomas Arnhold
Change-Id: I383bd331090603aa9a159e41ef26be8d8e1c5ff3
2013-10-07Fix fdo#70220 Superscript not imported from pptx.Thorsten Behrens
Import works now, though EditEngine still fscks up font scaling - seems for CharEscapementHeight to work, there has to be reference, non-scaled text in the same portion ... Change-Id: I5505ae83bd6b700ebe8c3465beec40a4df2efb78
2013-10-02-Werror,-Wunused-variableStephan Bergmann
Change-Id: Ic0801e224750cccee3d91c742fcb67cb0472124f
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I41ec28c39c395b8eb2eaf72f91440f3ae2c3aa99
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I7422272a7103bacd36c5d7234b6eb76477f5a2b9
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Id941d9a9f5fc020e2e5bd11b419461f60b9b4626
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I6c028561f0aa2eb4b1a14ed5646f1c10541512d1
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I4e0f9b935171b65b20a40c4dec8d769d202cf4b8
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Ia8f7c1bbf18bbe3dbd84df5a05c450361b7c8578
2013-10-01convert remnants of String to OUString to OOX moduleNoel Grandin
Change-Id: I55a620063a1021830802c5bc41b425fd134b449f
2013-09-27oox: fix off-by-one error in SimpleShape::implConvertAndInsert()Miklos Vajna
Change-Id: I52741c344fc04b82db650927e4223dc325afabdf
2013-09-26fdo#69636 VML import: handle mso-layout-flow-alt shape prop for sw framesMiklos Vajna
Writer core doesn't support this, and this has been a problem for table cells as well. There the workaround we're using for quite a while is to do the rotation at a text portion level instead, which results in reasonable layout for simple cases. Do the same here. One additional complexity is that the API between oox and writerfilter is a single UNO shape, we get this property in oox, and we have to handle it in writerfilter, when the text frame is already attached to some text. Kill this problem by adding a FrameInteropGrabBag for sw text frames: it's useful anyway, and then we can pass around this property inside the grab bag. Change-Id: Idb5ec83b5cbdde8f29d15b2cebfad24226bb6507
2013-09-26typo fixes in commentsAndras Timar
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-09-23Show errorsJulien Nabet
Change-Id: Iff3b8e523f5d326586115c4ff61835c15b8b7f01
2013-09-20fdo#40594 Fix for chart missing issue in Writer (for docx)Vinaya Mandke
1. Enabled parsing of chart in writer module. 2. While parsing chart is read as ole2shape. Then converted into TextEmbedded object for chart. 3. While exporting postponed chart writing after rpr tag. 4. Generated unique id for each chart. 5. Corrected content type of chart in export. Change-Id: I6a1ca0c34e03e17cc3dd8a183580132ea7af5c48 Reviewed-on: https://gerrit.libreoffice.org/5976 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>