Commit Graph

79 Commits

Author SHA1 Message Date
a4fee33b23 abi#4817 attempt to access an element in an empty container
Change-Id: Ic51ef8b3db182dd34195c9bb808170d20953d406
2013-06-11 16:25:21 +02:00
2c64af5295 fdo#64656 RTF import: handle levelnumbers without leveltext
Change-Id: I34ce7b172dc94489f7f506796e66b14598aab19c
2013-06-10 09:47:31 +02:00
d5ac8a01b2 fdo#46808, Use service constructors
Change-Id: Ib428bb78751e9707c89dcf311b8ab86ad8184775
2013-05-21 09:58:13 +02:00
5761872502 writerfilter: few more doxygen comments
Change-Id: I4893e2b3297adadf4e19ab22b298aaef4044b52e
2013-05-02 09:26:23 +02:00
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
5bb4a2ba1d further OUString cleanup
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19 14:18:10 +01:00
23a133dfe7 drop various dangling makefile.mks
Change-Id: Id76b57a1ef2edbb05f1d22a624caad077275ac74
2013-02-25 10:53:56 +00:00
ed383ebfba remove RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: Ica4dc859229c2ba0dc052a97ff23178895c25580
Reviewed-on: https://gerrit.libreoffice.org/2368
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2013-02-24 21:16:12 +00:00
c29098917a Get rid of (most uses of) GUI
GUI only takes values UNX or WNT, so it is fairly pointless. One can check
whether OS is WNT or not instead.

Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34
Reviewed-on: https://gerrit.libreoffice.org/1304
Reviewed-by: Peter Foley <pefoley2@verizon.net>
Tested-by: Peter Foley <pefoley2@verizon.net>
2012-12-25 17:53:25 +00:00
12152d253e Replace GUIBASE checks with equivalent OS checks
The idea is to get rid of GUIBASE and GUI checks as much as possible.

GUIBASE=aqua <=> OS=MACOSX
GUIBASE=WIN <=> OS=WNT
GUIBASE=cocoatouch <=> OS=IOS
GUIBASE=android <=> OS=ANDROID

Don't set GUIBASE to these values any more in configure.ac
either.

GUIBASE_FOR_BUILD is not used anywhere.

Conflicts:
	configure.ac
	postprocess/packcomponents/makefile.mk
	postprocess/packregistry/makefile.mk

Change-Id: Ie0526b40e1073f2328ba6c333e28752104b0fed3
2012-12-18 20:52:24 -05:00
c2913591d8 rework filters test to squeeze through extra flags
that are needed to load .odt, .sxw etc files, and
add a regression test for CVE-2012-4233

Change-Id: Ie178725ded3d76942030d12f23074de519cf62de
2012-11-01 13:14:09 +00:00
48c9586e07 RtfFilter::filter: not allowed to throw WrongFormatException:
throw a WrappedTargetRuntimeException instead :(

Change-Id: Iebf2b709beea738ba513ec5ce884874b76fbf243
2012-10-23 15:12:43 +02:00
49e003177d fdo#51145 give better error message on import invalid RTF
Change-Id: Idd81e58b8b0b95b1027b7ece434cb362a689f124
2012-10-23 09:42:52 +02:00
477e19d22f targetted make reversion. 2012-09-17 19:02:07 +01:00
9ac86f484b Improvement on previous commit, UCB clean up
* As UCB is only ever initialized with "Local"/"Office", remove this
  configuration vector completely.  The "create" ctor creates an instance
  internally initialized with those "Local"/"Office" keys.  Special (test) code
  can still instantiate an uninitialized one via plain createInstance.  And for
  backwards compatilibity process startup still ensures to create an initialized
  instance early, in case there is still code out there (in extensions) that
  later calls plain createInstance and expects to get the already-initialized
  (single) instance.

* XInitialization is an "implementation detail" of the UniversalContentBroker
  service, do not expose in XUniversalContentBroker.

* ucbhelper/configurationkeys.hxx is no longer needed and is removed.

* ucbhelper/contentbroker.hxx is an empty wrapper and is removed; however, that
  requires ucbhelper::Content constructors to take explicit XComponentContext
  arguments now.

* The only remaining code in ucbhelper/source/client/contentbroker.cxx is
  Android-only InitUCBHelper.  Is that relevant still?

Change-Id: I3f7bddd0456bffbcd13590c66d9011915c760f28
2012-09-14 18:24:49 +02:00
892fffaea2 various rtf regression tests
Change-Id: If4fd8fba87c13b6294813a86155d3d0ea4d18eb2
2012-07-31 08:52:55 +01:00
a079bacad1 writerfilter/qa: clean up rtl:: and RTL_CONSTASCII_* usage
Change-Id: I729e5a6dcc9ca3a291c5f28c8b7eed7e3ca03bfd
2012-07-26 09:44:14 +02:00
75c0acd024 writerfilter: rtl::OUString -> OUString
Change-Id: I1577c1bb8a3dc498b647b930d405c90f80eafaf9
2012-07-21 19:22:18 +02:00
6d93a74695 writerfilter is now RTL_CONSTASCII..PARAM-free
Change-Id: I04ef6ffefa7e27a1f9cac6d7d46cb6022223b9ff
2012-07-02 22:11:34 +02:00
bd18cf5274 re-base on ALv2 code. Includes:
Avoid some uses of non portable #!/bin/bash in shell scripts.
    Patch contributed by Pedro Giffuni
    http://svn.apache.org/viewvc?view=revision&revision=1235297
2012-06-28 19:59:06 +01:00
328e2263fb targetted re-work of cppunit pieces. 2012-06-27 19:13:11 +01:00
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
d5d29accb7 targeted string re-work
Change-Id: I910a508722a309d7916377a7e2df2093070809ad
2012-06-02 14:55:58 -05:00
3fa3bf038d targeted string re-work
Change-Id: Ie5a8469620650ba67bab8c875e0bc136bd103866
2012-06-02 13:55:39 -05:00
c948e655f8 Add helpful instructions nearby encrypted CVE files. 2012-05-14 09:20:17 +01:00
23f59fe823 use a consistent naming scheme 2012-03-06 16:36:08 +00:00
d30b4e9fb6 Get rid of size() == 0 2012-02-19 17:07:46 +04:00
b35c0ae4ff catch exception by constant reference 2012-01-09 03:17:20 +09:00
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
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
e898bcc1c2 silence tedious malware checkers, arcfour, key 0x435645 2011-09-30 17:02:37 +01:00
4a5745503c merge filters-test code 2011-09-30 12:39:35 +01:00
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
88f72f525c testrtf: add support for an indeterminate directory 2011-08-08 16:15:57 +02:00
7851e052d4 [PATCH] do not use hard-code/clone/in writerfilter tests 2011-08-06 13:07:58 -05:00
74561937b7 CVE-2010-3451-1.rtf: reduce size of this
The fix for this is in commit 9bd6527559cf12ef7b04761212e26149e1a229a7,
reverting the rtfnum.cxx part of it shows that this smaller sample tests
the issue as well.
2011-08-04 01:31:34 +02:00
6f48388f89 add new failing test rtf files 2011-08-04 01:18:52 +02:00
4b3008dc45 testrtf: ignore dotfiles 2011-08-04 01:04:15 +02:00
a249d1e96f testrtftok: fix path on windows 2011-08-03 21:35:15 +02:00
a426d5890e more passing rtf test docs 2011-08-03 19:47:22 +02:00
e9eeee0d82 initial rtf unit test 2011-08-03 19:35:05 +02:00
2c7baf6f2c merge cppunittest from feature/gnumake4_writerfilter_head (e0ac3ddd8a3602490854829107908abefc3eaf2f) 2011-07-23 13:55:28 +02:00
88efc04329 revert to old writerfilter gbuilization
* gnumake4's writerfilter gbuildization got pushed in a seperate branch
 * it might or might not be merged to master later
2011-07-23 03:12:47 +02:00
6f7b36ecd8 remove merge trash 2011-06-20 09:54:52 +02:00
ae2ebf8fac Merge branch 'master' into feature/gnumake4
Conflicts:
	filter/source/config/cache/filtercache.cxx
	filter/source/odfflatxml/makefile.mk
	oox/Library_oox.mk
	oox/Makefile
	oox/Module_oox.mk
	oox/Package_generated.mk
	oox/Package_inc.mk
	oox/prj/build.lst
	oox/prj/d.lst
	oox/prj/makefile.mk
	oox/source/dump/makefile.mk
	unoxml/Library_unordf.mk
	unoxml/Library_unoxml.mk
	writerfilter/CppunitTest_writerfilter_doctok.mk
	writerfilter/Library_writerfilter.mk
	writerfilter/Module_writerfilter.mk
	writerfilter/Package_inc.mk
	writerfilter/inc/resourcemodel/TagLogger.hxx
	writerfilter/inc/resourcemodel/WW8ResourceModel.hxx
	writerfilter/prj/build.lst
	writerfilter/prj/makefile.mk
	writerfilter/qa/complex/ooxml/makefile.mk
	writerfilter/qa/cppunittests/doctok/makefile.mk
	writerfilter/qa/cppunittests/doctok/testdoctok.cxx
	writerfilter/qa/cppunittests/xxml/testXXML.cxx
	writerfilter/source/dmapper/DomainMapper.cxx
	writerfilter/source/dmapper/DomainMapperTableHandler.cxx
	writerfilter/source/dmapper/DomainMapperTableManager.cxx
	writerfilter/source/dmapper/DomainMapper_Impl.cxx
	writerfilter/source/dmapper/FontTable.cxx
	writerfilter/source/dmapper/GraphicHelpers.cxx
	writerfilter/source/dmapper/PropertyIds.cxx
	writerfilter/source/dmapper/PropertyMap.cxx
	writerfilter/source/dmapper/SettingsTable.cxx
	writerfilter/source/dmapper/StyleSheetTable.cxx
	writerfilter/source/dmapper/TablePropertiesHandler.cxx
	writerfilter/source/dmapper/TblStylePrHandler.cxx
	writerfilter/source/dmapper/ThemeTable.cxx
	writerfilter/source/doctok/WW8DocumentImpl.cxx
	writerfilter/source/doctok/resourcesimpl.xsl
	writerfilter/source/filter/WriterFilter.cxx
	writerfilter/source/generated.mk
	writerfilter/source/ooxml/OOXMLDocumentImpl.cxx
	writerfilter/source/ooxml/OOXMLFactory.cxx
	writerfilter/source/ooxml/OOXMLFactory.hxx
	writerfilter/source/ooxml/OOXMLStreamImpl.cxx
	writerfilter/source/ooxml/RefAndPointer.hxx
	writerfilter/source/resourcemodel/TagLogger.cxx
	writerfilter/unocomponent/component.cxx
	writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx
	writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx
2011-06-19 20:09:46 +02:00
a3231ede0b xmlfilter10: reactivated cppuinit test [hg:46adee0574e9] 2011-06-17 15:31:07 +02:00
a4ed76cda4 writerfilter10: convert writerfilter to gbuild [hg:1013d9bf5d0a] 2011-06-17 15:18:28 +02:00
fd018e709f imported patch cppcheck [hg:d55fc25e48ab] 2011-06-17 14:55:20 +02:00