Commit graph

2413 commits

Author SHA1 Message Date
Szabolcs Dezsi
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
Szabolcs Dezsi
743f22045c Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 15:07:41 +02:00
Szabolcs Dezsi
8a01ee6243 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 14:30:05 +02:00
Miklos Vajna
1a3ab52289 rtftok: drop m_bIsSubstream, we already have a m_pSuperstream
Originally there was m_bIsSubstream (true for footnotes, headers, etc.),
then we needed a pointer to the original stream, now the boolean value
is redundant, so remove it.
2012-04-06 10:09:55 +02:00
Miklos Vajna
1cb2730981 n#751017 dmapper: fix handling of GetExpression and SetExpression fields 2012-04-05 12:08:57 +02:00
Matúš Kukan
8aab8292fe writerfilter: use CustomTarget makefile 2012-04-04 11:31:57 +02:00
Takeshi Abe
643a582793 removed duplicate #includes
in vbahelper / writerfilter / writerperfect / xmlhelp / xmloff / xmlscript / xmlsecurity
2012-04-04 01:39:08 +09:00
Miklos Vajna
f4e0cbaa15 fdo#45182 fix RTF import of character encoding in footnotes
There were two problems here:

1) \plain reset the character properties, but did not touch the current encoding
2) the default properties were not passed to substreams
2012-04-03 17:56:44 +02:00
Miklos Vajna
ea04bbd697 fdo#47107 rtftok: support bullet points in paragraph numberings 2012-04-03 15:25:34 +02:00
Miklos Vajna
eeafdc5602 fdo#47107 rtftok: initial PN (legacy numbering syntax) support 2012-04-03 15:25:29 +02:00
Brennan Vincent
290654cc23 Fix RTF levelfollow import and export 2012-04-03 09:17:48 +02:00
Miklos Vajna
7b58fc3daf fdo#48104 fix RTF import of \page in inner groups
If we have a postponed page break and it's sent to dmapper during a new
inner group, we'll still have the page break request after the parser
state is popped, leading to duplicated page breaks. Instead of the
earlier workaround, just send the proper token to the domain mapper, and
it'll handle it properly.
2012-04-02 14:27:05 +02:00
Miklos Vajna
6b7942f5ac fdo#45394 fix RTF import of custom fonts in substreams
Substreams (headers, footers, etc.) are parsed separately, so their font
table is empty by default. Fix handling of custom fonts (and thus
encodings) there by passing a pointer to the superstream.
2012-03-29 15:53:55 +02:00
Miklos Vajna
b475bc459d fdo#45394 fix RTF import of tables with empty first row
Additionally the table should be at the start of the document to trigger
this bug.
2012-03-29 15:53:55 +02:00
Miklos Vajna
3a68ecc47f rtftok: OSL_FAIL() -> SAL_WARN() 2012-03-29 12:15:58 +02:00
Miklos Vajna
b4f5c3fea2 n#751117 writerfilter: include all oox tokens in gperffasttoken.hxx
Without that, the following happens:

1) ShapeTypeContext::onCreateContext() in oox calls rAttribs.getToken()
2) FastAttributeList::getOptionalValueToken() in sax calls mxTokenHandler->getTokenFromUTF8()
3) OOXMLFastTokenHandler::getTokenFromUTF8() won't find the oox token and return OOXML_FAST_TOKENS_END

I verified that the new gperf input just adds tokens to the hash,
doesn't remove any.
2012-03-28 10:27:45 +02:00
Miklos Vajna
894406e640 RTFFrame::getSprms: Id is a number, not an instance 2012-03-27 11:33:07 +02:00
Caolán McNamara
8a539e49c4 ditch some UniStrings and intermediate temporaries 2012-03-26 12:18:08 +01:00
Miklos Vajna
04cae9ec1e fdo#46955 fix RTF import of all capitals char prop 2012-03-24 17:29:49 +01:00
Miklos Vajna
5e994d528c fdo#47036 fix RTF import of multi-paragraph exact height textboxes 2012-03-24 16:49:28 +01:00
Miklos Vajna
0d9132c504 fdo#47036 fix RTF import of shapes inside text frames at the start of the doc 2012-03-24 16:38:39 +01:00
Miklos Vajna
de0f33126d rtftok: various refactoring
To allow frame keywords at the start of the document, we need to:
- a single setter method for all frame properties
- make the parser state know about its document
- make the frame know about its parser state
2012-03-24 16:38:35 +01:00
Miklos Vajna
f84e0e6b1b fdo#47326 fix RTF import of mixed super/nonsuper text
In most cases \super has its own group, but it's valid to have mixed
super and non-super text in a single group, as long as \super and
\nosupersub keywords are used: handle this.
2012-03-23 14:30:45 +01:00
Miklos Vajna
51cfbf0cfa n#751054 fix VML import of absolutely positioned pictures
There were multiple issues here:

- convertEmuToHmm() not handling negative values
- position:absolute style property being ignored
- mso-position-vertical-relative is not converted to
  text::RelOrientation
- SwAnchoredDrawObject::_SetPositioningAttr() re-positioning already
  positioned objects
- DomainMapper_Impl::PushShapeContext() inserting positioned objects as
  character
2012-03-22 11:03:26 +01:00
Michael Stahl
cc99bb9f38 writerfilter: PropertyMap: speed this up a bit
Using XMultiPropertySet reduces the number of SwTxtNodes created for the
bugdoc from rhbz#789022 from ~5k to ~3k.
2012-03-21 12:08:33 +01:00
Miklos Vajna
066d9b9741 cleanup: use lcl_getParagraphBorder() while parsing RTF_BOX 2012-03-20 09:58:54 +01:00
Miklos Vajna
dac6b79381 fdo#43965 fix RTF import of \up and \dn with custom parameters 2012-03-19 09:09:02 +01:00
Miklos Vajna
bb34b73730 fdo#43965 dmapper: fix line width default
Writer's default is 0, but Word's default is 26 (15 in 1/8 pt)
2012-03-19 09:08:52 +01:00
Julien Nabet
0fa12e0b11 Prefer prefix ++/-- operators for non-primitive types 2012-03-18 17:31:51 +01:00
Luboš Luňák
d46e382034 use SAL_DLLPUBLIC_TEMPLATE for an exported template 2012-03-17 17:11:31 +01:00
Miklos Vajna
ae62f61a5c implement RTF import of linked styles 2012-03-14 18:02:03 +01:00
Miklos Vajna
8ba44dd1ab n#751020 implement DOCX import of linked styles
This is just initial support: the default template and paragraph
properties are included.
2012-03-14 18:02:03 +01:00
Stephan Bergmann
6e67c03dc0 Enable -Wnon-virtual-dtor for GCC 4.6
...which has the necessary features to support it.

Change a lot of classes to either contain a protected non-virtual dtor
(which is backwards compatible, so even works for cppumaker-generated
UNO headers) or a public virtual one.

cppuhelper/propertysetmixin.hxx still needs to disable the warning, as
the relevant class has a non-virtual dtor but friends, which would still
cause GCC to warn.

Includes a patch for libcmis, intended to be upstreamed.
2012-03-14 13:32:02 +01:00
Arnaud Versini
b81955ffe0 Adding virtual destructor to WW8ResourceModel.hxx classes 2012-03-13 23:19:52 +01:00
Miklos Vajna
2352ed8a8c writerfilter: catch UnknownPropertyExcetion early 2012-03-13 16:35:10 +01:00
Miklos Vajna
2ff3ce4b7e writerfilter: log exception message in ModelEventListener 2012-03-13 16:35:10 +01:00
Miklos Vajna
9f5dfe0779 Related: fdo#45563 RTF import of \r should be the same as \par 2012-03-13 10:06:40 +01:00
Christina Rossmanith
f8c9ed1663 Bug 45563 - incorrect IMPORT of Zotero RTF, regression 2012-03-13 10:06:37 +01:00
Miklos Vajna
f722299e13 implement RTF support of contextual spacing
Import, export and testcase.
2012-03-12 21:09:45 +01:00
Miklos Vajna
0662778b0b dmapper: implement contextual spacing 2012-03-12 18:42:32 +01:00
Tor Lillqvist
b68f06287d Fix crash with document from bnc#693238 2012-03-12 15:30:09 +02:00
Arnaud Versini
f32fe9f501 Add a virtual destrcutor to value to prevent memory leak in RTFValue 2012-03-11 21:44:27 +01:00
Matúš Kukan
6c1c06f1c2 gbuild: remove some more realpaths
Where necessary, replace with wildcard, what does not change path.
2012-03-10 21:23:21 +01:00
Matúš Kukan
84b3f7b345 gbuild: get rid of realpath in gb_Foo_set_include 2012-03-10 21:23:20 +01:00
Miklos Vajna
401a834e0b writerfilter: ifdef + fprintf -> SAL_INFO 2012-03-09 09:26:05 +01:00
Caolán McNamara
80b0a3a7b6 fold i18npaper into i18nutil
It's too small to justify standalone existence.

We can accumulate i18n things we link to directly into
i18nutil and rework i18npool uno implementions in terms
of thin wrappers over i18nutil and prefer linking to
i18nutil internally and leave the uno forwarders for
use by external components and scripting
2012-03-08 12:02:38 +00:00
Miklos Vajna
879325fcf7 rtftok: get rid of unnecessary lcl_getNumPr()
The more generic lcl_putNestedSprm() can be used instead.
2012-03-08 11:12:18 +01:00
Caolán McNamara
23f59fe823 use a consistent naming scheme 2012-03-06 16:36:08 +00:00
Miklos Vajna
c779054865 get rid of these numbering bools in RTFDocumentImpl::popState() 2012-03-06 10:53:54 +01:00
Cédric Bosdonnat
d4fd86e3a4 n#693238, n#747471: create TableManager for inside shapes
When a texbox is contained inside a table cell... we were running into
some troubles when creating the table: the reference to the paragraphs
inside the textbox were passed to the TableManager. This was leading to
missing references when converting to a table because the paragraph
references within the textbox were dropped.
2012-03-05 17:28:54 +01:00