summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)Author
2014-05-06oox: unused CustomShapeProviderMiklos Vajna
Change-Id: Ia8b23df9a78385f9129d5cea1195a8ba210113d2
2014-05-06oox: prepare for importing a TextBox property on shapesMiklos Vajna
Writer's SwXShape doesn't have that property yet, though. Change-Id: I997eb188574fab93d35595972fdc2eaebabc015b
2014-05-06oox: preserve camera rotation on shape 3D effects.Jacobo Aragunde Pérez
Camera options in shape 3D effects can have rotation settings like in the following example: <a:camera prst="perspectiveRelaxedModerately" zoom="150000"> <a:rot lat="19490639" lon="0" rev="12900001"/> </a:camera> This patch preserves the a:rot tag and its attributes using the shape grab bag. We created the class Scene3DRotationPropertiesContext to be piled on top of a Scene3DPropertiesContext and process the contents of the child item. It also adds a unit test for this case. Change-Id: Id6bf58ad05fe5b49061619b6750ed0658badc9af
2014-05-06oox: preserve scene3d/camera effects on shapes.Jacobo Aragunde Pérez
Shapes can contain 3D effects like in the following example: <a:scene3d> <a:camera prst="isometricLeftDown" zoom="150000"/> <a:lightRig rig="threePt" dir="t"/> </a:scene3d> This patch preserves the a:camera tag and its attributes using the shape grab bag. It also adds a unit test for this case. Change-Id: Ic6a78031d2e1fb84a2bacd97b5cc9c55d9dbaa95
2014-05-06oox: Integrate Shape3DProperties and Scene3DPropertiesContextJacobo Aragunde Pérez
Code for these two classes was already present but it was commented out or left outside of the build system because it didn't even compile. I've brought it back and made it compile, but it has no use yet. The goal is using it to preserve 3D transformations. At scene3dcontext.cxx I removed the text chunks found in the middle of the source and corrected some mistakes; I also modified the conversion of "fov" attribute. At shape3dproperties.hxx I removed all the struct members because they seemed to have been copied&pasted from another file, and added only those members that made sense. Removed useless function definitions. Change-Id: I2c00ea638e1a4fb1a3820bc4c322488296d3e6d7
2014-05-06oox custom shape preset data: fix typo in parsing awt::SizeMiklos Vajna
Regression from commit f5ccbfdc561c68099872d1abe07ac72fcddedd35 (oox customshapepreset: switch to generated data -> code, 2014-04-17). Change-Id: I2106271e2f43e7936237628e47cd4e01ab34441c
2014-05-05oox: don't try to set Writer-specific properties on non-TextFrames...Miklos Vajna
... during DOCX import of shapes with text, so that we don't crash when the currently always active setServiceName("com.sun.star.text.TextFrame") call is not present. Change-Id: I5b005583ddcee81b9683e3b34e8f0a2e5faa4f95
2014-05-01auto is not a valid value for c:symbol's val attributeMarkus Mohrhard
Change-Id: Idbdab90e100cbd2de83a2255e2554b5024a2f927
2014-05-01early bail outMarkus Mohrhard
Change-Id: I342c49f968a921167c4da8b98e7e17e79b945491
2014-04-30handle brightness+contrast from msoffice (bnc#875713)Luboš Luňák
This is the same like 1139d618b8bc6ab823a96184bd0f0257980aad24, for docx. Change-Id: I1ef4e18444e8c60e9ae8f67249bcef1053f0d62d
2014-04-30oox: Code protection against empty effectsJacobo Aragunde Pérez
This is an extra check against clumsy programmers like me to prevent generating incorrect documents. Change-Id: I22261e3b6123a9a44461683519e33224f08adb5a
2014-04-30ooxml: Preserve blur effect on shapes.Jacobo Aragunde Pérez
Reused the code for other effects just adding the new attribute "grow". I didn't add a unit test for this effect because I found no way to apply it to an object in Word, but it's technically part of the standard. Change-Id: I391aff17f59d49d6bf339a71481dcdb51c537c9e
2014-04-30ooxml: Preserve reflection effect on shapes.Jacobo Aragunde Pérez
Reused most of the code of other effects, but adding some new attributes specific for this effect. Finally, modified an existing unit test to add a check for reflection. Change-Id: Iffd0c1203e9c66a8d7b7f748d98d9c3ef01c7bbf
2014-04-30ooxml: Preserve glow effect on shapes.Jacobo Aragunde Pérez
Reused most of the code of outerShdw and innerShdw effects. Modified an existing unit test to add a check for innerShdw. Change-Id: I7328fe696721d28c35b26ca1b702c7f64c63ab21
2014-04-30ooxml: Preserve soft edge effect on shapes.Jacobo Aragunde Pérez
Reused most of the code of outerShdw and innerShdw effects, but adding a new attribute "rad" and a flag to check if a color definition must be written inside the effect definition. Finally, modified an existing unit test to add a check for softEdge. Change-Id: I0d32714bde9a5b05c726acd47b85b1dea3c6a581
2014-04-30oox: syntax fix: wrong indexJacobo Aragunde Pérez
Change-Id: I8b76da14c75050f60b0af10cdadda821484db4f1
2014-04-29coverity#1210175 Uninitialized scalar fieldCaolán McNamara
Change-Id: Id2c8432aba3268f7ffbe26c13e81025f2e047865
2014-04-29oox: generatePresetsCXX -> generatePresetsDataMiklos Vajna
As it no longer actually generates C++ code, but data. Change-Id: I9b05f139ca4ad2bcfdbbb4b954ed4e0f2a9bcd8b
2014-04-29oox: clean up customshapes README and data generatorMiklos Vajna
Change-Id: Ie7ef8cd247dedb2a6ea0a6de249cb05e9056f726
2014-04-29oox: remove now unused helper methods (generated code used them in the past)Miklos Vajna
Change-Id: I532dc4ec24c635b9889d77c37113a8ece2c9b88b
2014-04-28sal_Bool to bool in previous commitMarkus Mohrhard
Change-Id: I6de50ccd8b99d6d7dbd049fc184c3f6117217318
2014-04-28fdo77216-Charts-Scattered chart: Chart gets distorted on RTSourav
In case there is some text entered in place of X coordinates for scatter chart then x coordinates should be taken as 1,2,3.... MS Word does the same thing Change-Id: I1db0fd64c6ac0f4d5e77a9676812f5e26577ecf6 Reviewed-on: https://gerrit.libreoffice.org/9011 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-04-27Resolves: #i124703# adapt coordinate range from ms relative...Armin Le Grand
control points to our relative control points (cherry picked from commit 8625253da753153838554fef459ae603ca8d3ecc) Conflicts: oox/source/drawingml/customshapeproperties.cxx Change-Id: I356a44fdbdcc22630811467e706bcb60c41dbc2c
2014-04-24fdo#77089 pass shape dimensions to graphicfilter for WMFTomaž Vajngerl
Change-Id: I673a76ef85038b1f304ea85faeed5b4a462cb144
2014-04-23Monkey see, monkey do?Stephan Bergmann
At least, it makes CppunitTest_sw_ooxmlsdrexport succeed again. Change-Id: I05b9de5366b0e3d2007311d00991758b6d6f8dba
2014-04-23Fix start/endElement callsStephan Bergmann
Change-Id: I82525020d148de276ece44406180cc59e759d93f
2014-04-23ooxml: Preserve inner shadow effect on shapes.Jacobo Aragunde Pérez
Reused most of the code of outerShdw effect. Modified an existing unit test to add a check for innerShdw. Change-Id: Ifdd77850bfd3b5fa250594469455b1b66c338611
2014-04-23ooxml: Preserve outer shadow effect on shapes.Jacobo Aragunde Pérez
The goal is preserving the shadow effect with all its attributes using the shape grab bag. This is the relevant piece of XML in the document: <a:effectLst> <a:outerShdw blurRad="50800" dist="38100" dir="2700000" algn="tl" rotWithShape="0"> <a:schemeClr val="accent1"> <a:alpha val="40000" /> </a:schemeClr> </a:outerShdw> </a:effectLst> In first place, we added members to the structure EffectProperties to store the effect name and attributes. Later, when we create the shape, we add them to the shape grab bag together with the shadow color (if it is a theme color we store its name and transformations like in other cases). Finally, we read back all these data from the shape grab bag and write them back to the document. I added a unit test for this shape property. Change-Id: Idda2d5e2970cb8563e2ed13a84b2fa2d4b99aa70
2014-04-23sal_Bool -> boolJacobo Aragunde Pérez
Change-Id: I08f37f3bfe7d14e10fb4383eae3d3469df7e707e
2014-04-23oox: sal_Bool->boolNoel Grandin
Change-Id: Icddec34e91305cfc3f9d852472bb86eab4d8cb26
2014-04-23Fix of run properties of text box in nested group shapeRohit Deshmukh
- Textbox run character properties are change after roundtrip - Italic case was not handled in textcharacter properties Reviewed on: https://gerrit.libreoffice.org/9096 Change-Id: Ia38fcadce489ef0bfffb9bda402d13058cf6129a
2014-04-22fod#77122 DOCX filter: link between textboxes is not being preservedumeshkadam
Added support for linked textboxes for docx interoperability. Reviewed on: https://gerrit.libreoffice.org/9092 Change-Id: I7db4f5a1783afff53c64908d182788b262f5e863
2014-04-21coverity#735765 Unchecked dynamic_castMiklos Vajna
Change-Id: I4a1bf64267d36ff4b3b7cf0ba2cc23c52ec2d36e
2014-04-19coverity#735764 Unchecked dynamic_castMiklos Vajna
Change-Id: Ic7dc70c1052f5ab04a3e1795549ca43e2e0f2587
2014-04-18Remove now unused oox::drawingml::CustomShapeProperties::PresetsMapMiklos Vajna
Change-Id: I25a713094089f4d6df9fbb3ce9e5015ea66eb34a
2014-04-17-Werror,-Wimplicit-exception-spec-mismatchStephan Bergmann
Change-Id: I6e93180cbc980438e47ee24735de1fb9758b7add
2014-04-17coverity#1202900 Uncaught exceptionCaolán McNamara
Change-Id: I53e7bd12701ca4d30fdbf36fe525076d53f86edc
2014-04-17oox customshapepreset: switch to generated data -> codeMiklos Vajna
With this, oox/source/drawingml/customshapepresets*.cxx becomes unused code, while share/filter/oox-drawingml-cs-presets in instdir becomes a requirement. Change-Id: Ia886a47295514bbacd1e522273c59f0656e4cf6b
2014-04-17oox customshapepresetdata: empty is an empty string sequenceMiklos Vajna
In case the data is empty, the data loader still set the proper type for the sequence, while the generated code used a string sequence. Do the same to keep testcases happy, there is no visual difference anyway. Change-Id: I1b9be4486184a2a84c384f1365cc68dd45b8eee0
2014-04-17oox customshapepresetdata: parse SubViewSizeMiklos Vajna
Change-Id: I2feb7054ea2bd699384b01a1d83845cd3c2562b0
2014-04-17oox customshapepresetdata: allow empty equation listMiklos Vajna
Change-Id: Ie18c3e631c266d4281df8b92d08ddeaaef20e8d7
2014-04-17oox customshapepresetdata: handle RadiusRangeMaximum/RadiusRangeMinimumMiklos Vajna
Change-Id: Icc6e96f4cfbf8304933246d43621bf8d2824daf3
2014-04-17oox customshapepresetdata: allow empty handle listMiklos Vajna
Change-Id: I35d1c6aaf94853df844bd226c57003742d3c48be
2014-04-17oox customshapepresetdata: allow empty adjustment listMiklos Vajna
Change-Id: I842a464ddc0403d63698b2f9b52d4362af1e46c3
2014-04-17oox customshapepresetdata: handle multiple definitionsMiklos Vajna
Change-Id: I41b1ff9fa030267ef05fadeb6f77d33a183af8f1
2014-04-17oox customshapepresetdata: handle RangeXMaximum and a few more propertiesMiklos Vajna
Change-Id: I8649866c338055ed7fe7c14f366c69670b538d93
2014-04-17oox: initial customshape preset data loaderMiklos Vajna
CustomShapeProperties::pushToPropSet() still uses the old generated code, though. Change-Id: I02550bdf4ac57ef54992facd7ccd144e798be1e8
2014-04-17oox: add customshapes preset dataMiklos Vajna
This is generated data, meant to replace source/drawingml/customshapepresets*.cxx soon. Just like the code before, let's have it in git, generating it requires an already working Impress, so it's nontrivial to produce it build-time. Change-Id: Iaf8c77fc6ee0402e3e145b131724b7891d6b6b3f
2014-04-17fdo#77219 Image property Z-index [behindDoc] not preserved after RTRavindra Vidhate
Problem description: For the images who has the "Text wrapping" property set as Behind Text is not preserved after saving the file in DOCX format using LO. Reviewed on: https://gerrit.libreoffice.org/9065 Change-Id: Ic8555103909c0f1ed1cb58fba4dc2ef2f84cc9dd
2014-04-17coverity#1202823 Dereference null return valueCaolán McNamara
Change-Id: I72d795203aedf34d32012ecee3c8fdfbc2a8a08f