summaryrefslogtreecommitdiffstats
path: root/oox
Commit message (Collapse)AuthorAgeFilesLines
* fix some VS 2010 specific issuesDavid Ostrovsky2012-10-281-0/+1
| | | | | | | Change-Id: Iae27a96c1e2ed72d2744fcbe100d6ada7dc41c82 Reviewed-on: https://gerrit.libreoffice.org/914 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* WaE: 'xChartType$D57056$_pInterface' may be used uninitialized…Christian Lohmaier2012-10-251-1/+3
| | | | | | | | | | … in this function" declaring those functions static breaks the build on MacPPC / gcc 4.0.1 Change-Id: I3a389530d51ae0ddd38418159ca4234016bf93ba Reviewed-on: https://gerrit.libreoffice.org/911 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* n#773048: Adjust rotate in relation to fix for n#783433Muthu Subramanian2012-10-251-1/+1
|
* fdo#46808, convert comphelper::ConfigurationHelper to XComponentContextNoel Grandin2012-10-241-2/+1
| | | | | | | Convert the helper methods to take an XComponentContext parameter, instead of XMultiServiceFactory. Change-Id: I9f0098af37b91f107d8799f14caa04756eac82b1
* Improve vml path parsing to handle repeated commandsPierre-Eric Pelloux-Prayer2012-10-181-17/+28
| | | | | | | | | | | | | | | Previously commands were executed only when the parser found a new command in the stream. Some vml path commands can handle repeated set of parameters, like this : lx1,y1,x2,y2,x3,y3,x1,y1 This patch adds support for this by executing commands when required parameters count has been met. Change-Id: Iab31fd267842755b81a3e228e45a8de63505fbd0 Reviewed-on: https://gerrit.libreoffice.org/774 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
* vml import: only apply width-percent attribute if it's != 0Pierre-Eric Pelloux-Prayer2012-10-161-2/+6
| | | | | | | | | | | | This fixes an issue with a shape defined with these attributes: mso-width-percent:0;mso-height-percent:0 and mso-width-relative:page;mso-height-relative:page; where all points were then located in (0,0) Change-Id: I51070ad2b2e4e05ab64f16813472ca1d7099fb09 Reviewed-on: https://gerrit.libreoffice.org/775 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
* oox: fix loplugin warningsMiklos Vajna2012-10-135-9/+9
| | | | Change-Id: I73375f46d31ef7446b7c059aa2a23024e677021c
* Prefer prefix ++/-- operators for non-primitive typesJulien Nabet2012-10-131-2/+2
| | | | | | + replace "<" by "!=" for end iterator comparison with current it Change-Id: I6e90caa8752c7057cca8c74fca12c0a050544dbb
* mark lcl_ functions static or rename them if they are not local at allLuboš Luňák2012-10-121-1/+1
| | | | | | http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html Change-Id: I1a0e436051d48e7f6224d6f0fc602347df2d4df1
* we love you 32bit sal_Int32 as longCaolán McNamara2012-10-111-1/+1
| | | | Change-Id: I006bceae3d05d2c014beae2127ad8a57c9bee353
* n#778854: Fixes quite some issues with bullet points.Muthu Subramanian2012-10-112-5/+21
| | | | | | | | | * Properties needs to be combined before applyed. Rather than applying them separately twice. * ParaMargins set to zero wrongly rather than boost::none This caused its own set of problems. * Hack: Push default zero to tabstops. This makes impress calculate proper values for tabstops using leftmargin.
* callcatcher: update unused code listCaolán McNamara2012-10-112-15/+0
| | | | Change-Id: Ie903e37cccf98f1b91c05e87f067f2986b746590
* fix text rotation for txXfrm element, fixes n#783433Radek Doulik2012-10-101-1/+1
| | | | Change-Id: I82a14170ce8d58184b1a86f7fc0f9e9d93238c92
* added safety checkRadek Doulik2012-10-091-1/+1
| | | | Change-Id: I05ca3e5b176202d26c2f2e45cc674ea54934a30b
* implement a:overrideClrMapping (fixes n#783202)Radek Doulik2012-10-081-1/+2
| | | | Change-Id: Ib6c0fd6d9b64f2bff446f919c58027fea76a00cb
* Remove 3 oox::ole elements:Julien Nabet2012-10-062-148/+0
| | | | | | | | oox::ole::AxFormPageModel::AxFormPageModel() oox::ole::AxMultiPageModel::AxMultiPageModel() oox::ole::AxTabStripModel::AxTabStripModel() Change-Id: I09c0993c2b6e98eed5536ac1c2a8b5559a3dcac6
* fix for fdo#55565 regression, failure to export vertical text in shapeNoel Power2012-10-031-0/+21
| | | | Change-Id: If3d6413b1fb9e02dc26f930634f84712d7d08ca3
* Use prefixTor Lillqvist2012-10-022-2/+2
| | | | Change-Id: Id1ac9a800b58595771be22097d77d3a7c5a8862c
* Use comphelper::getComponentContextStephan Bergmann2012-09-292-46/+8
| | | | | | ...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
* gbuild: invert handling of standard system libraries:Michael Stahl2012-09-281-2/+0
| | | | | | | Always link in gb_STDLIBS, except when the library explicitly opts out with gb_LinkTarget_disable_standard_system_libs. Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
* gbuild: replace direct gb_STDLIBS use with ...Michael Stahl2012-09-281-1/+2
| | | | | | ... new gb_LinkTarget_add_standard_system_libs Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
* gbuild: split uwinapi out of gb_STDLIBSMichael Stahl2012-09-281-0/+1
| | | | Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
* Bin some newly unused methodsJulien Nabet2012-09-276-52/+0
| | | | Change-Id: I1bbbdbb68f073d19b7d99b5ccb4985efd5bde80c
* sw: implement page-relative size for drawing objects and import them from docxCédric Bosdonnat2012-09-274-0/+36
| | | | Change-Id: I98b5c53d4860278e3646324ca045114e37b4cf61
* n#779627: VML: import mso-position-vertical:center and friendsCédric Bosdonnat2012-09-274-9/+25
| | | | | | | This allows to properly position objects that are vertically and/or horizontally centered relatively to the page. Change-Id: I1f7e78c5b828679817cdfc72e4d90a0850b242fa
* Import shadow effect properties for shapes in docx.Eilidh McAdam2012-09-2611-0/+234
| | | | | | | Change-Id: I0cfd6b45be268d688b7389c79c5e9ad7f48eb12d Reviewed-on: https://gerrit.libreoffice.org/702 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
* sal_Bool -> boolNoel Grandin2012-09-262-4/+4
| | | | Change-Id: I6356c71e236e89c54081a852b3b55eb87b95bce8
* n#780853 fix DOCX import of w:sdtContent in table cellMiklos Vajna2012-09-251-0/+1
| | | | | | | The problem was that the framePr token made the table import fail. Given that frames inside w:sdtContent are invisible anway, just ignore them. Change-Id: I88ab9d5dd6cf362c629de74bc079c3108725f0a1
* Revert "fdo#54609: Exception while importing xlsx."Fridrich Štrba2012-09-241-14/+7
| | | | | | | | | | | We fixed a root cause of that exception. This reverts commit 0f0bd022b6f8ae89655a6e47964842086a9beb80. Conflicts: oox/source/docprop/ooxmldocpropimport.cxx Change-Id: Ica3691e967a30722516420997e6e49fbf38f20d2
* n#779627: support for arcsize value in VMLCédric Bosdonnat2012-09-204-1/+23
| | | | Change-Id: If03f36d30a7861f5d14ed3142e339d52da0bdce0
* n#779834 fix VML import of absolutely positioned image with no left marginMiklos Vajna2012-09-201-1/+6
| | | | | | | Given that we talk about mm100, changing 0 to 1 is not that harmful, and it seems later core would crash without at least a small margin. Change-Id: I913e4a5eeaba2e36b55f2d7d7fb5bdfbad8eae94
* write only non NaN chart series values (fixes part of n#760997Radek Doulik2012-09-201-1/+2
| | | | Change-Id: I7c5bc8b9375a325d4ea78f033f577eff44cfd6e9
* oox: include vector hereMatúš Kukan2012-09-191-0/+2
| | | | Change-Id: I3e6b7ac2e4883125098d5e97ee61f35efb96a5e3
* Import bezier curves from .docx.Eilidh McAdam2012-09-195-2/+138
| | | | | | | | | | | | | | | | | A shape element with a path attribute is interpreted as a bezier. We can support both curve and line commands by using the correct co-ordinate flags when using the UNO interface (omit control points for lines). Alternatively, curves may be specified using the to, from, control1 and control2 attributes of a curve element. Note that when setting the PolyPolygonBezier property of the xshape, the shape size and position are set too large somehow. The workaround for now is manually forcing the pre-calculated shape size and position. Change-Id: If3563474df357d161a2ed2e7a20856d5aed80a94 Reviewed-on: https://gerrit.libreoffice.org/649 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
* vml import: WaE (unused variable, unhandled enum value)Miklos Vajna2012-09-191-2/+3
| | | | Change-Id: Ic59b4a68499bb68619cf72fdc17f5a77186274ae
* Add VML path parsing to .docx import filter.Eilidh McAdam2012-09-192-0/+142
| | | | | | | Change-Id: Ibb90ff437f6de1cab98b64deeccfa38e0e30756b Reviewed-on: https://gerrit.libreoffice.org/648 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
* ComponentContext::getUnoContext -> getComponentContext simplificationStephan Bergmann2012-09-191-12/+2
| | | | | | ...and some further clean-up. Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
* better pptx custom shape presets import/exportRadek Doulik2012-09-189-1/+306
| | | | | | | | | | | | | - sometimes we produced unreadable pptx document with custom shape presets - fixes part of n#760997 - before we rely on simple rule that adjustments were named adj1, adj2, ... in case of multiple adjustments and named adj in case there was only one. there are few exceptions though, so now we use exact adjustment names defined in presetShapeDefinitions.xml - TODO: there still might be problem when exporting custom shapes, which didn't originated in pptx import Change-Id: Ic9517a69145a295ba6f680ddc3cc30fc771db3fd
* deprecate oustringostreaminserter.hxxNorbert Thiebaud2012-09-183-4/+2
| | | | | | | | | | | | | | | | | | | the intent of this header has canged over time. now it is already systematically included with ustring.hxx and the operator overload it provide fit nicely there... Just to be safe, since that include as been added to the api during the 3.5 timeframe and therefore is already in 'production' the header remain and simply attempt to include ustring.hxx but a warning is issued indicating that this header should not be used anymore... in a couple of major release we will thenr emove it completely All internal users of that header are converted. Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad Reviewed-on: https://gerrit.libreoffice.org/634 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* Modifying #ifdef to match header file.Muthu Subramanian2012-09-171-1/+1
|
* fdo#54750: Handle any kind of exception (ooxml import).Muthu Subramanian2012-09-131-1/+1
| | | | | This is very similar to fdo#54609 - so changed it to throw a generic Exception.
* targetted container_controls rework.Noel Power2012-09-136-191/+152
|
* disable scrollable Frame ( not working well )Noel Power2012-09-111-2/+2
| | | | Change-Id: I09dc7b656c7ff19b937936e0b8436022d287cc87
* get scrollbar details actually read for groupboxNoel Power2012-09-111-1/+0
| | | | | | <sigh> the display with groupbox is disappointing, there are many artifacts and the size of the area you actually need to scroll wrong, perhaps we actuall really need a proper groupbox Change-Id: Iba6ff62718728324a461806cef61ee6a6a438ddf
* fixed the unable to close dialog when vert scrollbars setNoel Power2012-09-111-0/+3
| | | | Change-Id: If15a2b7312577a8285dc1ab1dea1ccb7c4824ed6
* some more tweaking to import scrollbar data for mso Frame & UserformNoel Power2012-09-113-0/+26
| | | | | | also removed printf(s) Change-Id: If83565dcd97b276e1f6a8488a9f1d23066c2a9ff
* fdo#54609: Exception while importing xlsx.Muthu Subramanian2012-09-111-7/+14
| | | | | | | * Handle any exception thrown during document properties import. This is not so critical so as to stop the import. We anyways check for hasElements(). * Also lclGetRelatedStreams might throw IllegalArgumentException
* n#778859: Non autofit text are imported as autofit.Muthu Subramanian2012-09-101-0/+4
| | | | Push default values if <bodyPr> exists.
* Fix docx 'absolute' frame position importPierre-Eric Pelloux-Prayer2012-09-071-0/+4
| | | | | | | | | | Frames with absolute position style must be vertically placed relative to 'Margin', otherwise parent paragraph style may modify their Y coord. Change-Id: Ifae8f73ad9c6aa98b67283663cfc37dd847ff095 Reviewed-on: https://gerrit.libreoffice.org/561 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* n#771549: Import text offsets in shapes.Muthu Subramanian2012-09-065-7/+52
| | | | | | | * Also fixed a bug where the (offset) increment was conditional. * Reusing Transform2D for <txXfrm> as well. * This is a kind of hack where the margins are adjusted for the give offset values.