Cédric Bosdonnat
e7fc2624a1
n#703032: Fixed an RTF import crash when handling formdata in non-FORM fields
2011-12-13 15:12:24 +01:00
Cédric Bosdonnat
b1a096a7d5
RTF import: default scale for images is 100% not 0%
...
This fixes the import of pictures in n#228839 and n#77738
2011-12-13 10:36:56 +01:00
Miklos Vajna
dc78a1c44c
dmapper: when parsing NS_ooxml::LN_CT_Spacing_lineRule, pTopContext may be nil
2011-12-11 01:13:59 +01:00
Cédric Bosdonnat
1d1f049859
rtf import: Check for the first run even when getting \par
2011-12-09 22:51:00 +01:00
Michael Stahl
1a6853e422
writerfilter: fix build breakers
2011-12-09 16:44:08 +01:00
Cédric Bosdonnat
2075a648ac
Removed useless code due to the move to SAL_INFO
2011-12-09 15:16:09 +01:00
Cédric Bosdonnat
52422457d4
Writerfilter: replace OSL_TRACE(...) by SAL_INFO("writerfilter",...)
2011-12-08 21:43:56 +01:00
Bjoern Michaelsen
2acd8fbac9
in modules, when we have a env we are in stage gbuild
2011-12-07 15:53:06 +01:00
Luboš Luňák
7be8bac42a
make the linear xml processing API more generic
...
I'm pretty sure I'll love to use it in writerfilter instead of the normal
API whenever I get the chance.
2011-12-07 14:47:11 +01:00
Luboš Luňák
cc39235d47
process element in endFastElement(), not in dtor
...
Otherwise with malformed xml the dtor is called in a place where
the processing of the formula apparently corrupts the internal
representation somehow and it is impossible to write the document
back as docx. As a bonus, all UI elements related to saving get
disabled, so the document then cannot be saved at all. Although
this is only with malformed xml, which hopefully should never
happen, it's still better to avoid this. Moreover it seems to be
the proper way of coding the handlers anyway.
2011-12-07 14:47:11 +01:00
Luboš Luňák
a8f46cdc8e
remove needless TODO
2011-12-07 14:47:10 +01:00
Caolán McNamara
c8ef924060
normalize Red Hat, Inc. spellings, and bump to latest template
2011-12-06 21:24:37 +00:00
Cédric Bosdonnat
83560ad42b
RTF import: fixed the handling of frame properties n#417818
...
Change the RTF tokenizer to send the same tokens than the docx tokenizer
for the <w:framePr> element.
2011-12-05 18:09:44 +01:00
Cédric Bosdonnat
88bd22cad0
sw, fixed some missing include in dbglevel>1
2011-12-05 18:09:44 +01:00
Cédric Bosdonnat
91ae8f6c06
docx: actually import the last frame of a section.
...
When there is no paragraph outside the frame before the section end, the
paragraphs weren't transformed to a frame.
2011-12-05 18:09:43 +01:00
Luboš Luňák
0f7fb68680
read m:oMathPara
...
I'm unsure on what the difference to o:Math actually is, so just make
sure the element and its contents are not ignored and each contained
m:oMath will be read in separately.
2011-11-30 16:11:45 +01:00
Bjoern Michaelsen
b1d20f6847
set gb_PARTIALBUILD in CustomTargets
2011-11-29 18:11:51 +01:00
Bjoern Michaelsen
d73e574d8a
move reconfigure into gbuild
2011-11-29 17:25:14 +01:00
Luboš Luňák
9bccb2c69a
I hate sal_Int*. Fix ambiguous overload on windows.
2011-11-29 16:05:39 +01:00
Luboš Luňák
eca8fc7069
EMBEDDED_OBJECT UNO property now works, remove hack
2011-11-29 13:27:44 +01:00
Luboš Luňák
34a98b79da
set properly initial size of starmath component when importing docx
2011-11-29 13:27:43 +01:00
Luboš Luňák
93be239c95
the bit hackish addFormula() shortcut is no longer necessary
2011-11-29 13:27:43 +01:00
Luboš Luňák
86eccc72c5
clean up and format code
2011-11-29 13:27:43 +01:00
Miklos Vajna
61edefc8c8
remove debug printf
2011-11-29 00:54:28 +01:00
Miklos Vajna
4f6d80fbb8
RTF: Avoid importing unicode characters one by one
...
This imprives speed of importing unicode text further. Results of a
sample of chinese text of 5 pages:
- before: 6.692s
- after: 1.388s
2011-11-29 00:52:11 +01:00
Miklos Vajna
9ef6890543
mark these as const
2011-11-29 00:52:11 +01:00
August Sodora
13673b71bc
Remove uses of OUString::setCharAt
2011-11-28 14:56:40 +01:00
Miklos Vajna
75112a0544
RTFDocumentImpl::resolveChars: don't send empty text tokens to dmapper
...
This speeds up importing unicode text a lot. Results of a sample of
chinese text of 5 pages:
- before: 18.351s
- after: 6.692s
2011-11-28 00:59:57 +01:00
Miklos Vajna
53170743c4
RTFSprm: remove unneeded includes
2011-11-27 23:12:16 +01:00
Miklos Vajna
34eea8f1f1
RTFReferenceProperties: remove unneeded includes
2011-11-27 23:12:16 +01:00
Miklos Vajna
10e0c7d1c4
RTFValue: remove unneeded includes
2011-11-27 23:12:16 +01:00
Bjoern Michaelsen
f2f0dbd273
make gbuild makefiles run independant of pwd again
2011-11-25 12:04:40 +01:00
Cédric Bosdonnat
52e6bfeb32
RTF import: fixed the missing paragraph breaks from fdo#43206.
...
"\\\n" is used as an equivalent to \par even though I couldn't find it
in the specs.
2011-11-25 10:04:41 +01:00
Luboš Luňák
a685e8fb72
remove debug output
2011-11-24 18:44:00 +01:00
Luboš Luňák
f8f1ccbaf9
rename and move mathml oox support classes in oox to better places
2011-11-24 18:43:58 +01:00
Luboš Luňák
e443c83aa3
remove debug output
2011-11-24 18:43:57 +01:00
Luboš Luňák
e9462ed2d9
ooxml mathml import - first very basic implementation
...
still needs a number of cleanups (and handling more of course)
2011-11-24 18:43:57 +01:00
Luboš Luňák
1acdbe4dfe
initial (very hacky) work on mathml ooxml import
...
This commit needs to be generally reworked for upstream, but it
more or less works.
2011-11-24 18:43:56 +01:00
Cédric Bosdonnat
f4f4a899f0
RTF import: partly fixed the WMF images scaling.
2011-11-24 16:08:46 +01:00
Cédric Bosdonnat
e846db6448
RTF: OLE object import with graphic result fixed, the file can now be opened
2011-11-23 11:24:06 +01:00
Cédric Bosdonnat
a45c82f930
Show some exception message when getting one in RtfFilter
2011-11-23 11:24:06 +01:00
Miklos Vajna
543d3bf035
writerfilter: add a README explaining subdirs
2011-11-22 20:54:00 +01:00
Cédric Bosdonnat
98f32b2b8e
RTF import: better implement \trrh to import fixed height rows
2011-11-22 15:17:05 +01:00
Cédric Bosdonnat
b03fbe13f3
writerfilter: Fixed crasher when importing docx files with dbglevel>1
2011-11-22 15:17:05 +01:00
Cédric Bosdonnat
07b5fe3b8c
n#417818: empty paragraphs in tables weren't considered in the table.
...
The paragraph properties weren't propagated to the empty paragraphs in
the tables. Called checkNeedPap() to do that job when finding \par.
2011-11-22 15:17:04 +01:00
Miklos Vajna
fcae5e4103
Related: i#86517 avoid crash on invalid LEVELTEXT
2011-11-21 01:24:23 +01:00
Miklos Vajna
8731f25549
Related: i#83069 fix crash in DomainMapper_Impl::FindOrCreateFieldMaster
...
The next line would deference a NULL pointer otherwise, so use UNO_QUERY_THROW.
2011-11-21 00:16:42 +01:00
Miklos Vajna
9b78fe9621
Related: i#60831 fix RTF import of DOCPROPERTY fields
2011-11-21 00:16:41 +01:00
Miklos Vajna
3ece03f3d4
Related: i#93039 fix RTF import of MACROBUTTON fields
2011-11-21 00:16:41 +01:00
Miklos Vajna
51a4292c99
RTFSdrImport: unneeded include
2011-11-19 12:55:31 +01:00