Commit graph

2389 commits

Author SHA1 Message Date
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
Cédric Bosdonnat
4a0e2d6dc8 n#747471, n#693238: Textboxes import is a mess with OLE objects inside 2012-03-05 17:28:54 +01:00
Julien Nabet
39c2a52d19 Avoid temporary rtl::OUString 2012-03-03 14:57:01 +01:00
Tor Lillqvist
944abe0d9f WaE: non-virtual destructor 2012-03-01 15:28:22 +02:00
Miklos Vajna
456a59b24d fix RTF import of drawing objects when there is no shape to send 2012-03-01 11:56:58 +01:00
Miklos Vajna
44f7c5ddf9 Related: fdo#46662 fix RTF import of leveltext destination
After leveltext is imported, the levelnumbers group modifies the
contents of the previous group, but this modification was lost when the
stack was popped.
2012-02-29 16:41:56 +01:00
Miklos Vajna
0085902674 fdo#46662 fix RTF import of numbering levelnumbers
To handle stateful encodings, we process hex characters in one go for a
run. Levelnumbers of numberings should be an exception, since there the
special characters (here: 0x7, which is table cell end) have no special
meaning.
2012-02-29 12:21:48 +01:00
Miklos Vajna
f31548f70c RTFFrame::getSprms: use SAL_N_ELEMENTS() 2012-02-28 10:07:37 +01:00
Caolán McNamara
db088d3238 clarify ambiguities 2012-02-27 09:45:56 +00:00
Miklos Vajna
b538f6a0f4 fdo#45187 revert "writerfilter import, fixed the shapes import"
This reverts commit 0e26bd2097. Sadly
without a test document for the original issue there is no better fix
for this one.

Acked-by: Luboš Luňák <l.lunak@suse.cz>
Acked-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
2012-02-24 15:43:24 +01:00
Cédric Bosdonnat
f0a0b8fb67 removed remaining #if DEBUG 2012-02-23 13:56:24 +01:00
Miklos Vajna
0915f1b3d7 fdo#42465 fix RTF import of unicode characters with backwards compatibility 2012-02-22 17:13:22 +01:00
Miklos Vajna
fe4cea3e8b RTF: clean up border property handling 2012-02-22 12:06:32 +01:00
Miklos Vajna
343b52ee76 implement RTF import of non-box paragraph borders 2012-02-22 12:06:22 +01:00
Miklos Vajna
fa9e867a34 implement import of RTF_DOB{X,Y}{MARGIN,PAGE} 2012-02-21 17:28:40 +01:00
Miklos Vajna
bbef8b4a93 implement import of RTF_DPLINE 2012-02-21 17:28:40 +01:00
Miklos Vajna
c306532e0b writerfilter: try to silence MacOSX-Intel tinderbox 2012-02-20 17:06:38 +01:00
Stephan Bergmann
fe981519f5 gb_JunitTest_JunitTest takes only one argument 2012-02-20 16:39:59 +01:00
Miklos Vajna
4ac4816766 n#695479 fix rtf/docx import of transparent frames
Previously all frames were opaque by default, which is the Writer but
not the docx/rtf default. Change the default, while keeping the
possibility to set an opaque color background for the frame.
2012-02-20 15:53:41 +01:00
Elton Chung
d30b4e9fb6 Get rid of size() == 0 2012-02-19 17:07:46 +04:00
Miklos Vajna
d7baacd81b fdo#45543 fix RTF import of ms932-encoded characters 2012-02-13 18:44:48 +01:00
Miklos Vajna
e0328096dc n#695479 fix RTF import of text frames with exact height 2012-02-13 12:54:18 +01:00
Miklos Vajna
492dbf9cec fix RTF import of ffres token for checkboxes 2012-02-13 11:05:14 +01:00
Matúš Kukan
4b30ec9def fdo#39491 -I$(OUTDIR)/inc is set in SOLARINC 2012-02-10 21:41:45 +01:00
Miklos Vajna
63dfa72b5e n#703032 fix RTF import of page breaks right before text frames 2012-02-10 10:06:05 +01:00