d618ea6b86
xmloff: import/export loext:rel-width/height-rel for Writer shapes
...
Change-Id: Ie6e4367a235038479287530bd08b0a89c6bb498b
2014-02-25 12:43:32 +01:00
a13622923a
Here the line made sense, bring it back.
...
Change-Id: Iba1c798edfe1b0eb5edcba904ceacec9174cacc6
2014-02-24 10:56:56 +01:00
0ce0c369aa
Remove unneccessary comments
...
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-02-23 03:38:49 +00:00
e28cbd9084
coverity#708711 Uninitialized scalar field
...
Change-Id: I3f67e5609d0c25837b56d65ade364fc29c87d057
2014-02-21 12:40:34 +00:00
861c92c7c0
coverity#708712 Uninitialized scalar field
...
Change-Id: I11ac81246cba518763a9af759fa4b08880c90ae8
2014-02-21 12:40:34 +00:00
d44b788e7a
coverity#708713 Uninitialized scalar field
...
Change-Id: Ia7a75985df0ad80e7cf0006b63a3f2a25c93bab1
2014-02-21 12:40:33 +00:00
fec7d941d0
coverity#708715 unused member variable
...
Change-Id: Idc7c58ec1f2646276e16177dcb748daea8f85849
2014-02-21 12:40:33 +00:00
b3e31cb9a6
coverity#708718 Uninitialized scalar field
...
Change-Id: I77c96d2b070f5c4735de000d7513d0867626bd5c
2014-02-21 12:40:33 +00:00
79941154fe
coverity#708719 Uninitialized scalar field
...
Change-Id: I8188b0c1ac443938e645c41b9e3cd6eb340732aa
2014-02-21 12:40:32 +00:00
537a6be2a8
coverity#708720 Uninitialized scalar field
...
Change-Id: I62a103fb6c194f7e5cf88495be39759e349366f7
2014-02-21 12:40:32 +00:00
cf26d76143
fdo#74524: ODF import: fix unhandled exception in annotation import
...
Crash with unhandled UnknownPropertyException when trying to get "Name"
property from a PageNumber field.
Change-Id: I501cc138caba034c85630519014b94d783ab8f39
2014-02-15 00:25:55 +01:00
8b34d05cb1
sal_Bool->bool
...
Change-Id: Iab0165ef642dfee5bd315fc1f42f4bad8e86aa47
2014-02-14 14:15:15 +02:00
f44024d1a0
sal_Bool->bool
...
Change-Id: Iadc9f9ef444fe36d58304c2d6219021173385118
2014-02-14 14:15:15 +02:00
fd3c9e16e1
sal_Bool->bool
...
Change-Id: Ia453c7868e030e3f10a7f69c1e2d28244758fdef
2014-02-14 14:15:14 +02:00
4eee115824
coverity#708722 Uninitialized scalar field
...
Change-Id: I553f573914a60c77184403cdf0478cb5b442475a
2014-02-11 14:33:35 +00:00
5d2d9092ea
coverity#708721 Uninitialized scalar field
...
Change-Id: Ief6411d08837fc7b50bdca71bd33503f8eed16b9
2014-02-11 14:33:35 +00:00
feae30c4ce
ODF export/import: text vertical adjustment attribute of text frames
...
ODF standard handle 'textarea-vertical-align' as a
'graphic-property' which "specifies formatting
properties for chart, draw, graphic, and frame elements".
So this change fit to the standard.
Change-Id: I956f512953380983c2c882e943178335fd4dbfeb
2014-02-08 02:59:50 +01:00
ac6e8ac7e4
typo fixes in comments
...
Change-Id: Idd49478d59cd062118fbf8e99d1c8bc5250013fc
2014-02-06 23:22:30 +01:00
b9fbf2b3a5
Remove needless SAL_DLLPRIVATE annotations
...
Change-Id: I6a85d226bd9f61eb4e348ed34ec556762de7b023
2014-02-03 16:05:13 +01:00
0b20f01a88
swpagerelsize: implement ODF import/export
...
Export rel-height-rel / rel-width-rel only in case rel-height /
rel-width is non-zero, though.
Change-Id: I36120cbd8679ac4fc072d1e7cf4dfc024836b5ac
2014-01-30 11:52:11 +01:00
fa189d7447
bool improvements
...
Change-Id: I238ab0ebe54cc804c85356a3de9fbdcc396057d3
2014-01-28 20:26:18 +01:00
b663316e83
Resolves: fdo#73355 reconcile legacy path bug detection
...
reconcile
"223f6b631c1b087754c0f9051fb55f029f2503ce
Resolves: #i123433# Detect pseudo-vertices at svg import..."
with
"7a19798c73fd39d8d69ff6364f0696e68cdd1381"
Compatibility option for incorrect relative moves after closePath (fdo#47406)
and
"a2ee8055e9c136923f0244fe289cac6377933c31"
Fix fdo#47406 incorrect relative moves after closePath
Change-Id: I1221099a40500aeb4165a3350d8ae2df1fd3111b
2014-01-24 12:56:09 +00:00
bbd9668d5f
bool improvements (related to mixing bool/sal_Bool in &=, |=, ^=)
...
Change-Id: I9869d9709f28b68ef7b518527175589d80644668
2014-01-22 15:00:54 +01:00
5f9d7ab963
Resolves: #i123457# suppress import and export of hyperlinks without an URL
...
(cherry picked from commit 71d322a8ce0f5f5cbfd66fd689ff10b3490c1ee4)
Conflicts:
include/xmloff/xmlexp.hxx
xmloff/source/core/xmlexp.cxx
xmloff/source/text/txtparae.cxx
xmloff/source/text/txtparai.cxx
Change-Id: Ie8291c93c86815cab68482b35a5e88a3bd9b731e
2014-01-16 10:53:05 +00:00
6af2caab72
Resolves: #i123792# correction for comments/annotations on table cell ranges
...
(cherry picked from commit c25523dd3a302d1bd36297a817a869afb3605d1f)
Conflicts:
sw/inc/IDocumentMarkAccess.hxx
sw/inc/doc.hxx
sw/source/core/doc/docbm.cxx
sw/source/core/undo/undobj.cxx
sw/source/ui/shells/textfld.cxx
xmloff/source/text/txtfldi.cxx
Change-Id: Ic2e12f47e7775ee16f31bedf89d5644b18734d7a
2014-01-09 16:21:44 +00:00
6e12fb3be3
Consolidate XServiceInfo for classes derived from SvXMLImport
...
Change-Id: I5a269d8b7e95049c67ae14b06a79b417bc91a474
2014-01-09 10:12:19 +01:00
0761f81643
123792: complete annotations on text ranges feature
...
- rely annotations on text ranges on new annotation marks
- support arbitrary text ranges for annotations
- fix undo/redo regarding annotations an text ranges
- support annotations on overlapping text ranges
- fix *.docx import for annotations on overlapping text ranges
- fix ODF import of annotations on text ranges
cherry-picked from branch ooxml-osba
(cherry picked from commit ebd2922ebd3cf2d3899fb80780d38f367197aadf)
Conflicts:
sw/Library_sw.mk
sw/inc/IDocumentMarkAccess.hxx
sw/inc/SidebarWin.hxx
sw/inc/doc.hxx
sw/inc/docufld.hxx
sw/inc/hintids.hxx
sw/inc/ndhints.hxx
sw/inc/txatbase.hxx
sw/inc/unobookmark.hxx
sw/inc/unofield.hxx
sw/inc/unoport.hxx
sw/source/core/access/accpara.cxx
sw/source/core/bastyp/init.cxx
sw/source/core/crsr/bookmrk.cxx
sw/source/core/crsr/findtxt.cxx
sw/source/core/doc/dbgoutsw.cxx
sw/source/core/doc/docbm.cxx
sw/source/core/doc/doccorr.cxx
sw/source/core/doc/docdde.cxx
sw/source/core/doc/docedt.cxx
sw/source/core/doc/docfld.cxx
sw/source/core/doc/doclay.cxx
sw/source/core/doc/tblrwcl.cxx
sw/source/core/docnode/ndcopy.cxx
sw/source/core/docnode/nodes.cxx
sw/source/core/docnode/section.cxx
sw/source/core/edit/edfld.cxx
sw/source/core/fields/docufld.cxx
sw/source/core/fields/postithelper.cxx
sw/source/core/fields/reffld.cxx
sw/source/core/inc/MarkManager.hxx
sw/source/core/inc/crossrefbookmark.hxx
sw/source/core/text/inftxt.cxx
sw/source/core/text/itratr.cxx
sw/source/core/text/txtfrm.cxx
sw/source/core/txtnode/atrfld.cxx
sw/source/core/txtnode/ndtxt.cxx
sw/source/core/txtnode/thints.cxx
sw/source/core/undo/undel.cxx
sw/source/core/undo/undobj.cxx
sw/source/core/unocore/unofield.cxx
sw/source/core/unocore/unoport.cxx
sw/source/core/unocore/unoportenum.cxx
sw/source/filter/html/htmlatr.cxx
sw/source/filter/html/htmlgrin.cxx
sw/source/filter/html/wrthtml.cxx
sw/source/filter/writer/writer.cxx
sw/source/filter/ww1/fltshell.cxx
sw/source/filter/ww8/wrtw8nds.cxx
sw/source/filter/ww8/ww8par.cxx
sw/source/ui/dialog/uiregionsw.cxx
sw/source/ui/dochdl/swdtflvr.cxx
sw/source/ui/docvw/PostItMgr.cxx
sw/source/ui/docvw/SidebarWin.cxx
sw/source/ui/fldui/fldmgr.cxx
sw/source/ui/fldui/fldref.cxx
sw/source/ui/inc/fldmgr.hxx
sw/source/ui/inc/wrtsh.hxx
sw/source/ui/shells/textfld.cxx
sw/source/ui/uiview/view2.cxx
sw/source/ui/utlui/navipi.cxx
sw/source/ui/wrtsh/wrtsh2.cxx
writerfilter/source/dmapper/DomainMapper_Impl.cxx
writerfilter/source/dmapper/DomainMapper_Impl.hxx
writerfilter/source/dmapper/PropertyMap.cxx
xmloff/inc/txtfldi.hxx
xmloff/source/text/txtfldi.cxx
xmloff/source/text/txtparae.cxx
Change-Id: Ie4cc467dbb837054c73742262ee20f35c151ff3f
2014-01-08 15:58:35 +01:00
31911b3cdc
Consolidate XServiceInfo for classes derived from SvXMLExport
...
Change-Id: Ia3e2b5e682a64844bb6c713912c50c7681393d52
2014-01-08 14:11:58 +01:00
82625bb98e
remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
...
Convert code like:
buf.append( static_cast<sal_Unicode>('!') );
to:
buf.append( '!' );
Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2014-01-07 09:43:37 +02:00
d1ae39e484
fdo#58112 write loext:contextual-spacing accept style:contextual-spacing
...
Change-Id: I3e6698d9d9399dd5a13658641847df8a5f34f6ae
2013-12-20 22:15:04 +01:00
ef5e7b6944
prepare to accept loext:contextual-spacing, fdo#58112
...
Change-Id: I58e151743bf910b8b51f1b453e0bfcb4ed767d9d
2013-12-20 21:43:52 +01:00
b55259eeb5
typo fixes
...
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
ebc1b2fe50
added bool bForExport parameter to XMLPropertySetMapper ctor
...
Set to true for export, false for import. If export true, an
XMLPropertyMapEntry with mbImportOnly==true is not added to the
mappings. This to be able to have more than one mappings for import
(for example a current extension namespace and the future namespace
proposed to the ODF-TC, or corrected typos in element or attribute
names), but map only to one entry on export, of course.
Change-Id: Ia01ea949c88eda2f8a6c10f51c59e35e7abdcaf3
2013-12-20 03:26:57 +01:00
9dd7ee88bd
prepared XMLPropertyMapEntry with mbImportOnly flag
...
Change-Id: Id5a54a591a42c836884af1fd09dc055f2fce6db5
2013-12-20 03:26:56 +01:00
8f73c7615e
fdo#72850: ODF export: don't export spurious style:display="false"
...
... on style:header-left, style:header-first, style:footer-left,
style:footer-first.
(regression from d92345561c998f7382cf9ef0fdcd29096f978435)
Change-Id: I48c51fcd2b07ae8b0e3ec2c1087a388c6900b366
2013-12-18 23:47:27 +01:00
49f9694e34
fdo#72697 actually write this only in ODF 1.2 extended
...
Change-Id: I32097cc4b8a67615b0b6d6172cafd0edad7469b6
2013-12-13 23:31:17 +01:00
5f8476c00f
fdo#72697 write <loext:sender-initials>
...
Change-Id: I032bd79aa3ab73889a3ca723fba56ec371a28231
2013-12-13 23:22:35 +01:00
1379294741
fdo#72697 accept future <loext:sender-initials>
...
... of to-be <text:sender-initials>
Change-Id: Ia601c0debc5d66682aa92e14fb063395f9f48ab5
2013-12-13 23:07:12 +01:00
f6f2ee5bdd
xmloff: remove unused XMLTimeFieldImportContext::fTimeValue
...
Change-Id: I0ed6f24d4aae0f62cb63c682322e39e635e49ec8
2013-12-10 21:07:05 +01:00
cc407e50e8
sax, xmloff: fix ODF import/export of text:time/text:time-value
...
The value written for an Impress time field is something like
text:time-value="0000-00-00T23:28:07" (in LO 3.5+) or
text:time-value="0-00-00T23:28:07" (in OOo 3.3) which contains an
invalid all-zero date. Such values are actually rejected by the
ODF import since commit ae3e2f170045a1525f67e9f3e9b7e03d94f2b56b.
Actually there was no real support to read the RelaxNG type
timeOrDateTime before.
So fix that by:
- adding convertTimeOrDateTime/parseTimeOrDateTime functions to
sax::Converter
- recognizing and ignoring the 2 invalid all-zero values written by
LO 3.5 and historic OOo respectively
- writing a bare "time" in text:time-value if the DateTime struct
contains zero Date members
(Older OOo versions and AOO cannot actually read that, but everything
they _can_ read is invalid ODF...)
Change-Id: I754076caee74a5163ed3f972af0f23796aa14f9f
2013-12-10 15:28:53 +01:00
c5b7a5fd19
fix equalsAscii conversion. Noticed in fdo#72391
...
In commit 363cc397172f2b0a94d9c4dc44fc8d95072795a3
"convert equalsAsciiL calls to startWith calls where possible"
I incorrectly converted equalsAsciiL calls to startsWith calls.
This commit fixes those places to use the == OUString operator.
Change-Id: If76993baf73e3d8fb3bbcf6e8314e59fdc1207b6
2013-12-09 12:53:18 +02:00
8248a32f49
this assert is wrong
...
In calc it seems that shapes can have no autostyle.
e.g. exporting fdo60469-74405.xlsx to ods
Change-Id: Ie0b2888094ba40a89748a070ca2d14f4078da619
2013-12-08 00:40:11 +01:00
895e6e7bb7
Get rid of comphelper::UStringLess
...
...default std::less<OUString> is just fine.
Change-Id: Ib9d3c10f2817d757f3c19eb3d4607095883af91a
2013-12-05 18:36:22 +01:00
8171e713e7
fdo#71450 fdo#71698: ODF import: fix frame name corner cases
...
Trying to set a name that is already in use will throw an exception (and
set a different, generated name); if there is actually no name in the
file then there's no point trying to set anything.
(regression from b69d152cfa1da868ba960345d72ba78f9f8e1b35)
Change-Id: Ie54d4a830cc23e2853a6efeb81f77dcc788192ea
2013-12-02 23:37:12 +01:00
fc87d57f04
replace OUString::reverseCompareTo("xxx") with operator==
...
operator== with OUString and literal internally does a reverse-compare
(via OUString::equalsAsciiL) anyway, so no need to keep explicit calls
to OUString::reverseCompareTo with literal argument
Change-Id: I799d9bcd0d5c308a9547ce7cacb2db6042fdb643
2013-11-22 11:23:05 +02:00
363cc39717
convert equalsAsciiL calls to startWith calls where possible
...
Simplify code like:
aStr.equalsAsciiL( "%", 1 )
to
aStr.startsWith( "%" )
Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
2013-11-19 12:49:29 +02:00
610b2b94b3
remove unnecessary use of OUString constructor when assigning
...
change code like
aStr = OUString("xxxx");
to
aStr = "xxxx";
Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19 10:29:31 +02:00
306a39ec0d
Resolves: fdo#62461 put preferred image first
...
with fallback after.
"Each child element of a frame is a different representation of the same
content. The order of content elements reflects the document author's
preference for rendering, with the first child element being preferred. That
means that consumers should render the first child element that they support. A
frame may contain multiple content elements, but shall contain at least one
content element."
Change-Id: If50062cad58f5b8561ad6bd8dc1a06956d2f444b
2013-11-15 16:04:34 +00:00
ab5d1fbfb4
SAL_WARN_UNUSED com::sun: ⭐ :uno::Any
...
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14 21:02:40 +01:00
39c8da8c86
remove unnecessary sal_Unicode casts in XMLOFF module
...
Change-Id: I836c7a28d5ec9039c0b185e8db2aa6d01ac62566
Reviewed-on: https://gerrit.libreoffice.org/6665
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2013-11-14 06:16:12 +00:00