Commit Graph

237 Commits

Author SHA1 Message Date
b0eff57aae cppcheck: Same iterator used with different containers
Change-Id: Idc7f16dc4c81857d7a3f508ed830904d90a762b0
2014-08-07 20:15:02 +02:00
9f2dc12e61 Use comphelper::SequenceAsHashMap
Change-Id: I5e4dc99c86b696d2c00392fdb47c4d9ebb7f14ff
2014-07-18 15:10:51 +02:00
84a5720f9a oox: write Company in docProps/app.xml
Change-Id: I8474b8ec7415b4d8e067343295ea985319c34834
2014-07-18 15:10:51 +02:00
dc93074f71 Use a new fast parser instance for each XML fragment.
Otherwise a crash ensues when the threaded XML parsing kicks in.

Change-Id: Ic41e5a29bbb860d7b63b70f2f0d8896264d9d53e
2014-06-30 20:06:33 -04:00
ca362d6348 remove whitespaces
Change-Id: Ie14ba3dcb97f20479a04538748ef2c1c9e6c5dac
2014-06-25 05:41:11 +02:00
f0fdee8abf oox: replace redundant STATIC_ARRAY_SIZE macro with SAL_N_ELEMENTS
Change-Id: I8cf274902bb5fda9fa70ab2af9e399db82d85d1d
2014-06-07 18:06:03 +02:00
3bebb3c2d2 oox: fix export of OOXML generator info
This time we did preserve this info, and we should not.

Change-Id: If2ddd7a266cd7da5642dc234411ce34e94bd3384
2014-05-22 10:29:35 +02:00
248145f99e Find places where uno::Sequence is passed by value.
Implement a clang plugin to find them, and clean up existing code
to pass them by reference.

Change-Id: If642d87407c73346d9c0164b9fc77c5c3c4354b8
Reviewed-on: https://gerrit.libreoffice.org/9351
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-14 08:10:22 +00:00
e32da77836 oox: sal_Bool->bool
Change-Id: Icddec34e91305cfc3f9d852472bb86eab4d8cb26
2014-04-23 11:11:51 +02:00
e13022a825 Clean up function declarations and some unused functions
Change-Id: I2f5b3144e8d4ce3e497a030aa102985c3bc81645
2014-04-14 14:15:12 +02:00
2805ac13dc typo: choosen -> chosen 2014-04-14 12:32:02 +02:00
80932c9e27 oox, writerfilter: add missing headers for C++ containers
Change-Id: Ied05627a0b5fdb8e5fd4a1b071ce32d901f07961
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-31 13:37:03 +02:00
567ef6d578 Second batch of adding SAL_OVERRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27 18:12:18 +01:00
e938a41ac0 oox: no need to dump these here
writeAppProperties() already uses this data as necessary.

Change-Id: I5eea399ae2cfa37dc3a7c80114f5265fb4a0c648
2014-03-22 15:16:03 +01:00
09e064adc5 First check if this is the one we search for, then extract.
Change-Id: Ie98dc14b743983e68f126ed4b7a7f00b637957d3
2014-03-21 15:48:05 +01:00
5299cc26d1 DOCX export of paragraph count in app.xml
Change-Id: Ie2fd4af3340c48c915eada74760cb414848f8a8b
2014-03-21 10:12:27 +01:00
8c52b5dd1c oox: fix DOCX strict import of SmartArt
Change-Id: Ied8283e17ec4379f218dc60912e1c41ca28a8ac9
2014-03-18 11:52:28 +01:00
4c0fa3ea2d unused oox::core::Relations::getRelationsFromType
Change-Id: I42e0ebd92d804c34cda42a05b91f45970a22fbe2
2014-03-10 21:43:37 +01:00
d2c0856937 Revert "remove unused code oox::core::Relations::getRelationsFromType"
we need it again now

This reverts commit 77c45eb25eb462bacdf7d658d6cb485f755beaa5.

Change-Id: I3e171d95e4f50c8e26824da2f6e6817d3b597d4d
2014-03-05 09:42:46 +00:00
77c45eb25e remove unused code oox::core::Relations::getRelationsFromType
Change-Id: I242ddcc1e352fbf92206a21d93e16c42a0e5ef8e
2014-03-05 09:17:52 +02:00
26f145549e remove unused code oox::core::XmlFilterBase::getFragmentPathFromFirstType
Change-Id: I75094f95001dab18436100375a8ec6564e8d0f8f
2014-03-05 09:17:51 +02:00
6471204afd remove empty lines after comment removal
Change-Id: Iad5cb7303f3797c06a53651b0f0c7e7c2273ef55
2014-03-01 16:23:09 +01:00
e34870c239 support OOXML strict documents in Calc
Change-Id: I277d76aeec28e173d913ccc1506464afe4d09c6d
2014-03-01 16:23:09 +01:00
6ba394e611 handle OOXML strict namespaces
Change-Id: I198862388426161e3f054a5f128639c59f3c9d24
2014-03-01 16:23:09 +01:00
a143beb3a0 make sure the two namespace lists are sorted the same way
Change-Id: I90b3182e10dbbfc8993010dd885509537d2fe537
2014-03-01 16:23:09 +01:00
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
40961d7bcd Remove visual noise from oox
Change-Id: Ie25838f20f00dc32d9d22959308c118cef688e94
Reviewed-on: https://gerrit.libreoffice.org/8288
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 09:37:22 -06:00
b071ce32be Resolves: #i118640# force early destruction of last FragmentHandler...
to not let it use an already destroyed RelationsMap instance
(cherry picked from commit 190444f7fd3fa9cfcd1955b3f5dcd916184d02f4)

Conflicts:
	oox/source/core/xmlfilterbase.cxx

Change-Id: Ibd09ff9fcba8f919df0704c8e3a64423518b932f
2014-02-25 12:24:51 +00:00
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
56b404001e fdo#54938 Convert oox and scaddins to cppu::supportsService
Change-Id: If75e6e96887d63a555094a2a9c73ca8a157fe964
Reviewed-on: https://gerrit.libreoffice.org/7836
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-02-04 02:37:05 +00:00
ad930bddba bool improvements
Change-Id: I171212bbfc2f54a16b5669ab4401a3168e7f0552
2014-01-28 20:26:25 +01:00
71eb27376a css.xml.sax service ctor clean-up
Change-Id: I556904861e93a145cfe65f61218926851e4e8eb0
2013-12-19 13:35:39 +01:00
8233226fe4 No need for implbase1.hxx to include XComponentContext.hpp
...which it did unlike all the other implbaseN.hxx.  Required lots of downstream clean-up,
of course.

Change-Id: Ib720e7a0a43410dcd7e6338b84a3973dfbb20866
2013-12-17 17:32:58 +01:00
fb84710151 simplify - use OUString::startsWith where possible
Convert code like
   if( !aStr.isEmpty() && aStr[0] == 'x' )
to
   if( aStr.startsWith("x") )

Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf
2013-12-12 13:15:24 +02:00
532b2f4818 Add a means to check if a namespace exists.
Useful when we just need to check if the stream has a certain namespace
defined. Calling getNamespaceURL() may throw SAXException in such case.

Change-Id: Ib2b7b202492390158270d87bab95d1793c9d8a70
2013-12-02 19:32:28 -05:00
d7280af974 fastparser: Avoid copying all tokens into a sequence. 2013-11-26 17:33:44 +00:00
fee379666a oox: avoid crash in ContextHandler2Helper::processCollectedChars()
Change-Id: Ie70c9914745364c7f2beb3cb84a610ec919a950c
2013-11-26 15:50:22 +01:00
e00562d983 Allow worker threads to use their own FastParser instances.
To prevent deadlock during threaded sheet stream parsing.  It now
deadlocks at a different place.

Change-Id: I0ba0f2c9a257e71b0a340ab14e369b06d5fd8829
2013-11-25 10:55:10 -05:00
8e5fd4a15a A bit of cleanup.
Change-Id: I576a184ebc8422d760800c670f8d9070f66e9e78
2013-11-25 10:55:10 -05:00
136d57e9eb No indent on namespaces.
Change-Id: I2639a51c2faa19373a335c28b160862435cd6dbe
2013-11-25 10:55:10 -05:00
945d5a010b oox: avoid per element allocation and freeing of OUStringBuffers.
Change-Id: Ie4d4d7740ae002422f73a3bfc57e1fe1ad67e50f
2013-11-22 18:07:40 +00:00
24cad6a649 Move MediaDescriptor from comphelper to unotools
...so it will be able to use SvtSecurityOptions internally.

Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14 11:13:24 +01:00
8061c8c70b Make requestAndVerifyDocPassword var with MediaDescriptor a mem fn of latter
Change-Id: I645d554c7ce592d93ca0696fa7e6068ce40c9058
2013-11-14 11:13:23 +01:00
99a1f38156 remove unnecessary sal_Unicode casts in OOX module
Change-Id: I2b9f26cb500a9e56f5860bd1b483ed284b84f50d
2013-11-14 08:17:31 +02:00
3d3293144b fdo#54938: Adapt svtools and comphelper module ...
to  use cppu::supportsService and other pieces.

Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-17 14:43:28 +02:00
42fa94bd3f -Werror,-Wunused-variable
Change-Id: Ic0801e224750cccee3d91c742fcb67cb0472124f
2013-10-02 18:14:38 +02:00
13aedd1d0e Save should encrypt OOXML document if it was loaded encrypted.
Currently Agile encryption is not supported, so all documents
loaded with "agile" encryption will be encrypted with "standard"
encryption when they are saved afterwards.

Change-Id: Id0477f43c00ed70032ca6b3390eebb1105d5ffa7
2013-09-15 15:34:16 +02:00
1d3483ed27 Remove some unused code from unusedcode.easy
Change-Id: Ic3e96eebbb914c5b905a8c58532ead9cb01dd41d
Reviewed-on: https://gerrit.libreoffice.org/5721
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-01 09:15:44 +00:00
4323c66840 fdo#35422 Support to open encrypted Office 2010 and 2013 formats
Additionally encryption and decryption has been refactored.
2 engines have been added: AgileEngine and Standard2007Engine,
which contain core functions for encryption and decryption.
Standard2007Engine refers to encryption and decryption as used
in Office 2007 and AgileEngine refers to encryption and decryption
as used in Office 2010 and 2013. AgileEngine does not yet support
encryption.

Change-Id: Ica1d4d5a109fb204012b92a0c39325fe0b99b793
2013-08-24 22:53:04 +02:00
64b993e046 finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.

Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00