Commit graph

2438 commits

Author SHA1 Message Date
Caolán McNamara
b92de73fdd WaE: MacOSX itemZOrder may be unused uninitialized 2012-04-17 20:11:50 +01:00
Luboš Luňák
0a9161263b implement relativeHeight (z-order) in .docx import (part of bnc#747461) 2012-04-17 13:57:05 +02:00
Luboš Luňák
6242b36b78 remove unused variable 2012-04-16 18:44:00 +02:00
Miklos Vajna
5187174cd4 fdo#39053 writerfilter: implement RTF_BIN 2012-04-15 14:40:38 +02:00
Miklos Vajna
3fceaca5d6 rtftok: add back explicit OUString ctors where still needed 2012-04-15 01:23:11 +02:00
Miklos Vajna
ecbea5fac4 implement RTF import of zoom level 2012-04-15 01:19:47 +02:00
Miklos Vajna
93b1c8b4a5 rtftok: RTL_CONSTASCII_USTRINGPARAM removals 2012-04-15 00:34:42 +02:00
Miklos Vajna
8adbd3df42 dmapper: parse NS_ooxml::LN_CT_Zoom_percent token
The VisibleBottom and ZoomType properties are just set as it seems
without that, SwView::ReadUserDataSequence() ignores the ZoomFactor as
well.
2012-04-14 23:36:20 +02:00
Miklos Vajna
9a8c2db542 dmapper: log unhandled attributes in the settings table 2012-04-14 23:36:20 +02:00
Miklos Vajna
fd1bef82a9 dmapper: use PropNameSupplier in SectionPropertyMap::CloseSectionGroup() 2012-04-14 16:52:45 +02:00
Miklos Vajna
0ef7dbcb36 dmapper: fix import of odd/even page breaks 2012-04-14 16:43:04 +02:00
Caolán McNamara
234f150f30 Resolves: fdo#48640 handle various busted rtf docs without hanging 2012-04-14 12:47:23 +01:00
Luboš Luňák
c4fbb03608 implement wp:docPr title and fix descr 2012-04-12 17:11:36 +02:00
Miklos Vajna
b0edaff7e2 fdo#44176 dmapper: fix import of titlepg top/bottom margin 2012-04-11 11:17:35 +02:00
Miklos Vajna
95803f44cf fdo#47802 fix crash on RTF import of shapes inside tables
We already ignore textframes inside tables, the same should be done with
textboxes till they can be handled properly.
2012-04-10 15:51:40 +02:00
Matúš Kukan
0a45deba2b enforce only one possible use of gb_CustomTarget
This brings two changes:
- no more recursive calling of make
- gbuild_simple is now not used => removed
2012-04-09 21:04:39 +02:00
Julien Nabet
39ba666f80 Fix "Same expression..." reported by cppcheck 2012-04-08 22:20:20 +02:00
Szabolcs Dezsi
e4fb171d3a Replaced a few equal calls with == 2012-04-08 19:24:00 +02:00
David Tardon
5fcacd8408 rename gb_CppunitTest_uses_ure 2012-04-08 15:17:45 +02:00
David Tardon
fbbb833dda compile- and run-time use of UNO must be split
There are unit tests that do not use URE, e.g., in cppuhelper.

This reverts commit 33e9f3d3d6.

Conflicts:

	sot/CppunitTest_sot_test_sot.mk
	svl/CppunitTest_svl_urihelper.mk
2012-04-08 15:12:18 +02:00
David Tardon
e3cf2b45f7 simplify use of configuration from unit tests 2012-04-08 14:53:09 +02:00
David Tardon
e5f16b8d3e always use --protector for UNO tests 2012-04-08 14:53:08 +02:00
David Tardon
33e9f3d3d6 drop uses_ure 2012-04-08 14:53:08 +02:00
David Tardon
fe209e78db let use_api handle the use of type rdbs at runtime
Or is there any use case where we would need to use UNO API headers, but
not require the appropriate type database at runtime?
2012-04-08 14:53:07 +02:00
Michael Stahl
c923f7d2c2 gbuild: "use" vs. "add":
Naming convention for gbuild methods:
- "add" is used for stuff that is logically a part of the target
  (i.e. not registered at the Module, but defined in the target's makefile)
- "use" is used for stuff that is logically a different target
  (i.e. it is registered at the Module, has it's own makefile, may be
  in a different module than the target)
2012-04-08 01:05:52 +02:00
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