Commit graph

1712 commits

Author SHA1 Message Date
Radek Doulik
d0014dae70 better pptx custom shape presets import/export
- 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
2012-09-18 18:51:22 +02:00
Norbert Thiebaud
b854de954f deprecate oustringostreaminserter.hxx
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>
2012-09-18 10:10:06 +00:00
Muthu Subramanian
9057689742 Modifying #ifdef to match header file. 2012-09-17 22:13:56 +05:30
Muthu Subramanian
9748670e04 fdo#54750: Handle any kind of exception (ooxml import).
This is very similar to fdo#54609 - so changed it to
throw a generic Exception.
2012-09-13 19:49:53 +05:30
Noel Power
a6c18caef1 targetted container_controls rework. 2012-09-13 12:49:32 +01:00
Noel Power
e27fc9b6c2 disable scrollable Frame ( not working well )
Change-Id: I09dc7b656c7ff19b937936e0b8436022d287cc87
2012-09-11 16:04:12 +01:00
Noel Power
7c7267e886 get scrollbar details actually read for groupbox
<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
2012-09-11 16:04:12 +01:00
Noel Power
67adc64276 fixed the unable to close dialog when vert scrollbars set
Change-Id: If15a2b7312577a8285dc1ab1dea1ccb7c4824ed6
2012-09-11 16:04:11 +01:00
Noel Power
27a19817c6 some more tweaking to import scrollbar data for mso Frame & Userform
also removed printf(s)

Change-Id: If83565dcd97b276e1f6a8488a9f1d23066c2a9ff
2012-09-11 16:04:11 +01:00
Muthu Subramanian
0f0bd022b6 fdo#54609: Exception while importing xlsx.
* 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
2012-09-11 12:44:44 +05:30
Muthu Subramanian
5b75c17f20 n#778859: Non autofit text are imported as autofit.
Push default values if <bodyPr> exists.
2012-09-10 18:33:28 +05:30
Pierre-Eric Pelloux-Prayer
711958d8af Fix docx 'absolute' frame position import
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>
2012-09-07 13:45:03 +00:00
Muthu Subramanian
5ca197ce7a n#771549: Import text offsets in shapes.
* 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.
2012-09-06 12:42:06 +05:30
Noel Grandin
9b07288138 fdo#46808, Adapt xml::dom::DocumentBuilder UNO service to new style
Change-Id: I577fbc7f990be9ec1f7b7eea53218b7daaccb2a1
2012-09-03 15:55:04 +02:00
Stephan Bergmann
65f2d5c9f7 -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: Idea1fd2769c2431906d4898c0ec935f20bddc391
2012-08-31 09:04:16 +02:00
Stephan Bergmann
18f08e53d8 -Werror,-Wunused-value (Clang towards 3.2)
Change-Id: I24bf5a91544269e9284c52aedca1fcd8435a8e4a
2012-08-30 09:36:08 +02:00
Miklos Vajna
7fe05dc95d add SimpleShape::createPictureObject to avoid code duplication
Change-Id: Id4bb0550ab2ce9bbb7edf568a086be18c1576b33
2012-08-29 09:26:14 +02:00
Miklos Vajna
9f6dd9a4cf n#777345 import imagedata of v:rect elements inside OLE objects
Change-Id: I300bb5d3008b839f6ec63a4435f5ce8c1dd0a2c1
2012-08-29 09:26:14 +02:00
Noel Grandin
206c70eef3 fdo#46808, Adapt TempFile UNO service to new style
Change-Id: Ia448d6d74201e2be487c6d8317f94be3745808aa
2012-08-27 15:40:08 +02:00
Markus Mohrhard
c346c0cfc9 support export of databar information to extlst for excel2010
Change-Id: I1aaca6676bdbba1e8f365081e3f427fb67fd873e
2012-08-23 12:21:51 +02:00
Miklos Vajna
0e3510d14e oox: fix doxygen errors in ole headers
Change-Id: Iae78fa7487e2646b1ba61101c5e39d304388a5c6
2012-08-22 13:44:05 +02:00
Felix Zhang
f2b1841ae3 n760019: removing problematic code that disrupts numbering level
Change-Id: Idb997e672e4f997ad324bdb5d49ab7dae4a9e9e9
2012-08-21 21:55:53 +02:00
Muthu Subramanian
309658bd85 Reverting superfluous commit 36233b158b
w.r.t David Tardon's suggestion, table cell now always has
textbody. commit: 772699ac1f
Hence reverting this.
2012-08-21 19:16:25 +05:30
Muthu Subramanian
5ac575ee3e n#773048: PPTX shape margins need to be rotated as well. 2012-08-16 16:59:35 +05:30
Radek Doulik
de77d83c15 use a namespace for xfrm transformation element, fixes part of fdo#41992
Change-Id: I3872028e4204ae5f72942b7345bf881ef3a96752
2012-08-15 13:39:16 +02:00
Radek Doulik
57e8f53e4f call WriteTransformation with namespace id, fixes part of fdo#41992
Change-Id: Ifb4a78bfc3c47788503da5b7d74f356343a7cbf8
2012-08-15 13:33:21 +02:00
Miklos Vajna
05d86fcdd9 fdo#53113 DOCX: export fillBlip shape property
Change-Id: Id23518d0f72d7650f3d875028f83caf9b6581ccd
2012-08-14 16:31:45 +02:00
Muthu Subramanian
b8b054785b n#759180: Override properties with endParaPr.
This is done only for empty textruns.
2012-08-14 17:47:03 +05:30
Muthu Subramanian
ed011e491b n#759180: Push oox default spacing values. 2012-08-14 17:47:03 +05:30
Miklos Vajna
4dd8aa2630 fdo#53113 vml export: handle custom segment types
It seems that EscherPropertyContainer::CreateCustomShapeProperties()
simply sets nSeg to the number of (lineto) point pairs by default.

Change-Id: I24bde088f5f2970d53de827e1ca03c5419ac892c
2012-08-14 12:20:10 +02:00
Miklos Vajna
7fd28f4de7 fdo#53113 oox::VMLExport: allow a callback to be registered for shape text
Change-Id: I1df58fa067287a37b0f62b0b05b0567da73d03b0
2012-08-13 17:42:54 +02:00
Julien Nabet
88840a796e Remove unused local vars
Change-Id: I80bd0329e15cb365091ea6f5c7e1ef3559d681fc
2012-08-11 10:25:54 +02:00
Noel Power
56b0b2cbc0 misc comment import/export fixes
a) fix vmldrawing.vml for xlsx export ( changed from frame to textbox, added
support for shadow element with attributes, shadow color, shadow obscured )
b) use proper fillcolor attribute
c) detect whether note/comment is shown on import
d) export state of note ( shown/hidden )

text position still not perfect, we still are missing some attributes to control
that.

Change-Id: I59b446175217479ce7960287aa540df8c6b2b1ea
2012-08-09 11:42:24 +01:00
Muthu Subramanian
36233b158b n#774167: Crash fix. 2012-08-07 16:14:13 +05:30
Stephan Bergmann
e3c2e0fab6 -Werror,-Wformat
Change-Id: Ie6fbcb1a11f47b54d3c697716b03f9891a1dea49
2012-08-01 16:51:39 +02:00
Miklos Vajna
12a35ec890 fdo#45724 improve WW8 textbox export
If there is no default value, but there is a current one, export that
instead.

Change-Id: I01af5cfa641b061b0aeb959e579bca66340781e9
2012-08-01 10:57:09 +02:00
Miklos Vajna
684539e19e fdo#45724 fix WW8 export of textbox default background color
regression from 5609c512cd

Change-Id: I5f3ce73943b2805b7de1ae41699e605af9086b15
2012-08-01 10:57:09 +02:00
Miklos Vajna
d216c9fcbb SmRtfExport: get current encoding from Writer instead of assuming the default
Change-Id: Ia8bdf83f36d986ca45ddad985aca827224c194f4
2012-07-27 16:00:12 +02:00
David Tardon
772699ac1f rhbz#842552 always create text content
The following line in oox::drawingml::table::TableCell::pushToXCell
suggests that it is assumed that the cell always contains text:

Reference< text::XText > xText( rxCell, UNO_QUERY_THROW );

So TableCell should always hold a valid TextBody too.

Change-Id: Ic2db7b535c98dd5f2b18941846709a781df4585c
2012-07-26 15:53:05 +02:00
Miklos Vajna
73e7cef672 export RTF_M{OMATH,R,F,FPR,TYPE,NUM,DEN,MATH}
Change-Id: If717d5d3b2179210516eec61959af0afa8b38319
2012-07-25 14:12:05 +02:00
Miklos Vajna
4a62512086 oox::formulaimport::XmlStream: allow avoiding XFastAttributeList
Change-Id: Iba0ad5ae72920f27e8a443a043c5891b102aee98
2012-07-23 17:18:36 +02:00
Stephan Bergmann
6aff971742 Bogus warning C4701: potentially uninitialized local variable
Change-Id: I51caaca911f71788940260bd63d3854526d7473f
2012-07-23 10:28:03 +02:00
Michael Meeks
4fea92fe53 cleanup custom perl XML parser, use strict, and tolerate updated XML 2012-07-17 11:51:17 +01:00
Michael Meeks
6eeb0942c3 re-base on ALv2 code. Includes:
retain presence of MPL licensed nssrenam.h symbol renamer.
2012-07-17 11:51:17 +01:00
Daniel Rentz [dr]
cf2d07fe80 dr78: correct include guard 2012-07-17 11:51:16 +01:00
Christophe JAILLET
a767448225 Search for char instead of 1 char long string, when possible.
It is faster and even avoid memory allocation somtimes.

Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445
2012-07-13 16:36:04 +02:00
Muthu Subramanian
752c832588 Crash fix.
Though getTheme() is not supposed to be returning NULL.
It seems like doing that sometimes.
2012-07-10 19:41:42 +05:30
Michael Meeks
ae7534f616 targetted rename xcr -> xmlscript to match includes and module name 2012-07-09 14:23:26 +01:00
David Tardon
711976fbd0 remove forgotten debug printf
Change-Id: Iff5a53735d78a2afcf90299a5f28a47f1376e393
2012-07-05 06:57:06 +02:00
Muthu Subramanian
37f6fc4933 n#768027: Slide notesMaster and notes import. 2012-07-04 20:58:35 +05:30