Commit graph

2273 commits

Author SHA1 Message Date
Miklos Vajna
ac8782bd51 Related: fdo#37716 null pointer check for the unit test 2011-11-12 00:03:56 +01:00
Miklos Vajna
444d04b60b Related: fdo#37498 don't try to read after the last closing brace 2011-11-12 00:03:55 +01:00
Miklos Vajna
5a212d501e Related: fdo#33012 null pointer check for the unit test to pass 2011-11-12 00:03:55 +01:00
Stephan Bergmann
c1758889cb Heavily simplified utl::ConfigManager. 2011-11-11 22:49:21 +01:00
Stephan Bergmann
f66ac29343 Make .component files directly usable within UNO_SERVICES.
* solenv/bin/createcomponent.xslt simply surrounds it output by <components>.
* solenv/gbuild/CppunitTest.mk got new functions
gb_CppunitTest_add[_old]_component[s] (like their gb_RdbTarget_ predecessors).
* This obsoleted current uses of solenv/gbuild/RdbTarget.mk, which also does not
work currently, as it catenates the input component files instead of passing
them through packcomponents.xslt (which now takes care about the surrounding
<components> in the input).  In the future, it will likely be combined with the
recently added solenv/gbuild/ComponentsTarget.mk.
2011-11-11 10:53:23 +01:00
Noel Power
02c6f5c74b fix rtf image import ( causing wrong image sometimes displayed ) fdo#42640 2011-11-09 14:37:40 +00:00
Cédric Bosdonnat
0e26bd2097 writerfilter import, fixed the shapes import
In some cases like an OLE object inside a textbox, the imported document
was empty. This was due to unremoved text context in dmapper.
2011-11-08 17:05:19 +01:00
Cédric Bosdonnat
b32bcaf10a sw, writerfilter: fixed debug builds and output dmapper table messages 2011-11-08 17:05:19 +01:00
Luboš Luňák
247ac3b109 fix incorrect OSL_FAIL message because of copy&paste 2011-11-08 15:37:54 +01:00
Miklos Vajna
a23ee867ea RTFDocumentImpl: rename m_bIsInShape to m_bIsInFrame
The "in shape" term was confusing since it was false for non-text-frame
shapes all the time.
2011-11-08 15:03:09 +01:00
Miklos Vajna
dc060230a1 RTFDocumentImpl: use boost::shared_ptr for m_pInStream and m_pGraphicHelper 2011-11-06 14:01:22 +01:00
Miklos Vajna
e4323bd5f5 RTF import: close file descriptor once import finished 2011-11-06 13:55:30 +01:00
Miklos Vajna
009c572b2f RTF import: delete graphic helper once it's not used (fdo#42640) 2011-11-06 13:45:28 +01:00
Miklos Vajna
11e227371a Related: i#95668 Fix encoding of non-continuous font indexes
The non-continuous font index first has to be converted before the
encoding can be looked up.
2011-11-02 02:30:47 +01:00
Miklos Vajna
2a5e99cb83 RTF_FFRES should be parsed for list fields only
See spec v1.9.1, page 198.
2011-10-29 01:06:33 +02:00
Miklos Vajna
d6df2cdd2e Fix crash of text frames inside RTF tables (fdo#39856) 2011-10-29 00:58:08 +02:00
Miklos Vajna
43d5a03d02 Related: fdo#39856 fix RTF import of some special accented chars in tables 2011-10-29 00:26:02 +02:00
Matúš Kukan
c77a9254dd no need for SRCDIR parameter here 2011-10-23 13:20:29 +02:00
Michael Stahl
521001049d writerfilter: add some bling to customtarget 2011-10-21 20:17:19 +02:00
Tor Lillqvist
62f4128d74 char can be unsigned, use sal_Int8 2011-10-20 08:41:36 +03:00
Caolán McNamara
db5a5ffa82 split bootstrapfixture and move test-filters class for sot test
sot is below vcl, but is a filters test, we can split bootstrapfixture
into a vcl needing bit and and non-vcl bit and filters test api
can be standalone and combined with whichever bit in order to form
pre and post vcl filters test
2011-10-15 12:18:44 +01:00
Miklos Vajna
ee2e2a1f52 fdo#41080: fix crash while importing footnotes in RTF tables 2011-10-14 14:53:06 +02:00
Caolán McNamara
0123fc6d03 these can go behind DEBUG_CONTEXT_HANDLER 2011-10-10 22:36:55 +01:00
Tor Lillqvist
ebcb781ab0 WaE: class has virtual functions, but destructor is not virtual 2011-10-07 16:10:01 +03:00
Tor Lillqvist
86cbc1dd99 WaE: switch statement contains 'default' but no 'case' labels 2011-10-07 15:56:03 +03:00
Tor Lillqvist
d0aaada282 WaE: unreferenced local variable 2011-10-07 15:56:01 +03:00
Tor Lillqvist
11b64d662d WaE: assignment within conditional expression
A whole bunch of them.
2011-10-07 15:55:59 +03:00
Tor Lillqvist
e76df814a5 WaE: type name first seen using 'struct' now seen using 'class' 2011-10-07 15:55:57 +03:00
Tor Lillqvist
535cd4acc2 WaE: unreferenced local variable 2011-10-07 15:55:54 +03:00
Caolán McNamara
eddc7f6846 WaE: unused variables 2011-10-05 16:30:08 +01:00
Michael Meeks
8a0d0457a7 test fix: use setUp and tearDown not constructors to init LibreOffice
It turns out the constructors are all run back-to-back one per filter,
and we need to init and de-init in a sensible order to make multiple
tests that otherwise share the ContentBroker work properly.
2011-10-05 16:02:28 +01:00
Bjoern Michaelsen
e94a19f3e0 simplfy dmake to gbuild bridgefile 2011-10-05 00:31:50 +02:00
Bjoern Michaelsen
73000ee8c2 adapt writerfilter unittests to separate RdbTarget makefile requirement 2011-10-04 18:34:23 +02:00
Caolán McNamara
e898bcc1c2 silence tedious malware checkers, arcfour, key 0x435645 2011-09-30 17:02:37 +01:00
Caolán McNamara
4a5745503c merge filters-test code 2011-09-30 12:39:35 +01:00
Caolán McNamara
1f5c696c37 add mode-lines to .m files and last round of merged files, etc. 2011-09-30 09:09:25 +01:00
Stephan Bergmann
6671fa81db Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *(). 2011-09-27 20:22:03 +02:00
Caolán McNamara
871426533f just silence the auto_ptr deprecations in isolation 2011-09-22 15:01:05 +01:00
Stephan Bergmann
7d1bb036e1 Simplified setting headless mode for smoke-/subsequenttetss.
Both C++ and Java OfficeConnection code now always pass --headless, so no
need for SAL_USE_VCLPLUGIN=svp etc. any more.  Only some C++ unit tests that
link against vcl still need an explicit --headless.
2011-09-16 10:38:06 +02:00
Stephan Bergmann
d996328cd5 sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed out a6913c9677c2
For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-09-12 22:47:50 +02:00
Caolán McNamara
b2043b3585 map CTL_LANGUAGE<->RTF_ALANG the same as CTL_FONTSIZE<->RTF_AFS 2011-09-09 14:00:49 +01:00
Julien Nabet
ec9f19db98 Fix duplicateBreak 2011-09-08 21:45:17 +02:00
Tor Lillqvist
d2e2c50e60 Make this easier to parse visually 2011-09-06 16:13:10 +03:00
Tor Lillqvist
3b881220a6 Do what I said in 8b23d5be31
Don't mark the template class TableDataHandler for DLL export/import
either. It seems to break the MSVC build, and dropping the decoration
fixed the problem.

Odd that I didn't notice before now, or is it really over a month
since I managed to build master last? That wouldn't be too surprising,
I guess. But other people do claim the have built master with MSVC
relatively recently. Or is it just that this templace class has only
recently been used more than earlier? Or does the fact that I am still
attempting a --enable-dbgutil build affect this? The world is full of
little mysteries.
2011-09-06 16:13:07 +03:00
Luboš Luňák
a5339d44ec fix reading of w:textbox contents (bnc#693388) 2011-09-06 13:08:57 +02:00
Julien Nabet
f6880eac22 Drop unused parts 2011-09-04 22:04:35 +02:00
Miklos Vajna
f4c24f051b Related: fdo#38966 initial support for first page header/footer in RTF import 2011-09-04 10:48:01 +02:00
Julien Nabet
00fabc1ea0 drop unused parts 2011-09-03 22:26:53 +02:00
Miklos Vajna
1a2894941e Related: fdo#38966 RTF import should not ignore page breaks before empty pars 2011-09-03 17:12:23 +02:00
Miklos Vajna
649e0f731a writerfilter: define DEBUG_DMAPPER_PROPERTY_MAP with dbglevel>1 2011-09-03 16:22:32 +02:00
Miklos Vajna
07d1d39fcc RTFSymbol: avoid unnecessary typedef 2011-09-02 19:28:01 +02:00
Joseph Powers
746074a0c0 Placed more debug code behind #ifdef statements 2011-09-01 07:47:10 -07:00
Caolán McNamara
d1340a6e4d WaE: unused variable 2011-08-29 09:56:09 +01:00
Miklos Vajna
1200031528 DomainMapper_Impl: send shape props to the dmapper logger 2011-08-26 02:08:26 +02:00
Miklos Vajna
55e2aec24c setdebugflags is replaced by debug_setup.mk 2011-08-26 01:51:55 +02:00
Miklos Vajna
f446e9f259 TagLogger: debug code in non-debug build 2011-08-26 01:49:42 +02:00
Miklos Vajna
805aa2151e Related: fdo#39337 It turns out dmapper ignores the position of an entry 2011-08-26 01:18:28 +02:00
Miklos Vajna
a789d8a487 Implement RTF_ANSICPG 2011-08-22 18:23:33 +02:00
Miklos Vajna
ea190eaa04 Make frame start/end a bit more robust
Don't try to start a started frame, don't try to end a not started
frame.
2011-08-22 18:23:33 +02:00
Miklos Vajna
b50403171c Make sure runs are closed before we end a frame 2011-08-22 18:23:33 +02:00
Norbert Thiebaud
d64bbd6bf8 detect gmake 3.81 and limit to -j1 unless num-cpu is explicitly set 2011-08-19 18:29:07 -05:00
Caolán McNamara
2d7c9298c0 WaE: fix build 2011-08-19 17:06:15 +01:00
Miklos Vajna
49f5d94f40 pictures in fly frames are already handled 2011-08-19 17:20:02 +02:00
Miklos Vajna
8807969ef3 a pard between two frame definitions means two frames 2011-08-19 17:20:02 +02:00
Miklos Vajna
72d09b8a1c paragraphs inside frames do not count 2011-08-19 17:20:02 +02:00
Miklos Vajna
c9bdee0b19 handle sections containing no paragraphs 2011-08-19 17:20:01 +02:00
Miklos Vajna
82336dbc53 multiple sections in a frame are not allowed 2011-08-19 17:20:01 +02:00
Miklos Vajna
4dd70db964 make sure frame props are always emitted 2011-08-19 17:20:01 +02:00
Miklos Vajna
6229149a1b have the twip->mm100 conversion code for frame props at a single place 2011-08-19 17:20:01 +02:00
Luboš Luňák
eccb19aebb Revert "adjust for timezone when reading datetime"
This reverts commit 7fcd99b3d261b0bd76bbf4a7f9bfcb93793be4e4.
Apparently everybody lives in UTC+0 timezone according to MSOffice,
wherever they live.
2011-08-18 15:15:50 +02:00
Miklos Vajna
10de8cf0e3 warnings fixes for RTFPicture and RTFFrame 2011-08-18 15:09:59 +02:00
Miklos Vajna
13c00ce322 Enable the writerfilter-based RTF import in non-experimental mode
Disable the unit tests in sw, as that would duplicate the unit test in
writerfilter now.

Do not remove the old filter yet, so this commit can be reverted later
if needed.
2011-08-18 12:11:03 +02:00
Miklos Vajna
7f3a3e02d7 Tokenize text::HoriOrientation 2011-08-18 02:28:45 +02:00
Miklos Vajna
57f28d9900 complete text::VertOrientation 2011-08-18 02:14:02 +02:00
Miklos Vajna
5d2a624f46 tokenize text::RelOrientation 2011-08-18 02:09:30 +02:00
Miklos Vajna
d8ceaa2fb5 implement RTF_FLYANCHOR 2011-08-18 01:54:39 +02:00
Miklos Vajna
e4c1f2a7ab dmapper: don't reset anchor type of text frames 2011-08-18 01:53:16 +02:00
Miklos Vajna
0b415dac18 these ctors are unused 2011-08-18 01:03:51 +02:00
Miklos Vajna
2e67f17fb3 fly props are needed outside their destination 2011-08-18 01:01:57 +02:00
Miklos Vajna
6c8d683a4b implement RTF_FLYVERT and RTF_FLYHORZ 2011-08-18 00:56:43 +02:00
Miklos Vajna
a5d694abef enter RTF_FLYMAINCNT 2011-08-18 00:38:48 +02:00
Miklos Vajna
32ebb1e830 Add data structures to import LO-specific fly frame RTF extensions 2011-08-18 00:34:42 +02:00
Miklos Vajna
2f2c6b05cb Support empty paragraphs in text frames 2011-08-18 00:07:36 +02:00
Miklos Vajna
fd0a8ca957 Support multiple paragraphs inside a single frame 2011-08-17 23:54:17 +02:00
Miklos Vajna
b7633fa4b2 Implement textframe margins 2011-08-17 21:12:25 +02:00
Miklos Vajna
174b65ec87 initial textframe support 2011-08-17 20:49:52 +02:00
Miklos Vajna
2f6dab7668 dmapper: textframes have to be inserted before text can be appended to them 2011-08-17 18:24:33 +02:00
Miklos Vajna
997cd18a65 send crop values to dmapper 2011-08-15 13:09:12 +02:00
Miklos Vajna
db55a63928 implement RTF_PICWGOAL and RTF_PICHGOAL 2011-08-15 12:54:01 +02:00
Miklos Vajna
08a968d100 unused code: picture size is set in the extent attributes 2011-08-15 12:20:19 +02:00
Miklos Vajna
eecb1bb4ef no special handling of text box shapes, we already have a drawpage set 2011-08-12 18:33:52 +02:00
Miklos Vajna
dddba7cb21 bugus null pointer check 2011-08-12 17:41:38 +02:00
Miklos Vajna
d4ad67379e WaE: initialise these, older gcc does not recognize we always do so later 2011-08-12 15:24:42 +02:00
Miklos Vajna
dd525ec15c Merge remote-tracking branch 'feature/gsoc2011_rtfimport' 2011-08-12 14:58:10 +02:00
Miklos Vajna
bcc2fbef8f fdo#37691: Initial support for the textbox shape
For now, only pictures supported
2011-08-12 12:34:26 +02:00
Miklos Vajna
f40fcd9d10 support picture at the start of the document 2011-08-12 12:19:08 +02:00
Miklos Vajna
e0514fd4e8 Picture frame: we need the destination text outside the pict group
I broke this in 6751324082
2011-08-12 11:40:21 +02:00
Norbert Thiebaud
751531df52 add the module oox into tail_build's fold 2011-08-11 23:10:40 -05:00
Miklos Vajna
7a01b7cba3 we already have a using directive for these 2011-08-11 16:45:33 +02:00
Miklos Vajna
70569eb6d6 fix the "last char is missing from footnote when Word produces the rtf" bug 2011-08-11 16:23:48 +02:00