summaryrefslogtreecommitdiffstats
path: root/package
Commit message (Collapse)AuthorAgeFilesLines
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-1710-0/+10
| | | | | | | | | Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
* package: Do not bother with deflating jpeg imagesMatúš Kukan2014-11-171-1/+8
| | | | | | | | It takes a lot of time and we can save ~1% of size if at all. Rather store them uncompressed in the zip file. With png, we can save a bit more, although it's still only about 4% - 8%? Change-Id: I43a3e3812882e4ce85e7af9d0aaab454d98c4860
* package: Do not deflate small streams in a threadMatúš Kukan2014-11-171-0/+5
| | | | Change-Id: Iae804a34f344aa793a6d5c13315f7bc1eb64c0a2
* ZipPackageStream::getRawData can be privateMatúš Kukan2014-11-171-2/+3
| | | | Change-Id: I66cbbfb2aa6abc6c8ebe34d9ea69855436c23edd
* Simplify input parameters to just take the sequenceMatúš Kukan2014-11-1710-34/+36
| | | | Change-Id: Ic2538ca8b0f7261064e1dfbf3884dd452003c797
* package: Add possibility to disable deflating in a threadMatúš Kukan2014-11-171-13/+30
| | | | Change-Id: I4d98b6f8b3315b731206700eb65f08463299dda3
* package: Finally implement parallel zip entries deflatingMatúš Kukan2014-11-177-72/+121
| | | | | | | | | | For that: 1, create ZipPackageStream::successfullyWritten to be called after the content is written 2, Do not take mutex when reading from WrapStreamForShare - threads should be using different streams anyway, but there is only one common mutex. :-/ Change-Id: I90303e49206b19454dd4141e24cc8be29c433045
* package: Call writeLOC always after putNextEntry explicitlyMatúš Kukan2014-11-175-38/+39
| | | | | | | | Preparation step to parallel deflating. Rename putNextEntry to setEntry and make it a static function. We need to call setEntry before starting thread but writeLOC after. Change-Id: I99a9ffa7dc4c18b47c621847b48bf8469bfb789a
* package: Do not use hacky bit 1<<4 in ZipEntry::nFlagMatúš Kukan2014-11-173-34/+11
| | | | Change-Id: I504f5c0c9aa9b655ffb53d9820a33677dad6aa08
* There is no XZipOutputEntry interfaceMatúš Kukan2014-11-172-10/+4
| | | | Change-Id: Ib8fa3351ba25416a13d6c8bf63bd5fc8e43703c5
* package: Use memory stream for compressing zip entriesMatúš Kukan2014-11-176-20/+26
| | | | Change-Id: Ibf81dc3cd8a9a9da3dfd6ee6e587a522c4d56a44
* ZipOutputEntry: m_pCurrentEntry is always setMatúš Kukan2014-11-171-45/+38
| | | | Change-Id: Ib6a69a83f4a378df838b2231b9eba7fba49cd9f1
* package: Zipping STORED entry is the same as rawWrite and we don't encrypt itMatúš Kukan2014-11-173-71/+58
| | | | Change-Id: Ie3f8ac261a70c9a2b5182fc7d36938d0a46ec045
* package: Move most ZipOutputEntry's methods back to ZipOutputStreamMatúš Kukan2014-11-177-201/+204
| | | | | | | | | | | | | | We want to use ZipOutputEntry only for deflating (and maybe rename it). ca13a9377e4a36436e4c82bb33648d0f3b6db6f5 was not a good idea because the data still needs to be written sequentially anyway. Otherwise it's hard to get offset positions of individual entries right. Since this commit rawCloseEntry needs to be called always; also when we use write&closeEntry because we don't call writeEXT in closeEntry anymore. Need to rename and add comments later. Change-Id: I03bd48ca6e108e6253a77a137746165909ca3c3d
* ZipPackageFolder: releaseUpwardRef only calls clearParent, remove it.Matúš Kukan2014-11-173-31/+1
| | | | | | Since commit 0c5bb3f42d38b3c16015dc0a45defd1b1dad4f92. Change-Id: I5511f9dc829aca42790f05cb8fb3ebd83b2acad4
* fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava2014-11-141-6/+6
| | | | | | | Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-123-11/+11
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* coverity#706578 uncaught exceptionDavid Tardon2014-11-041-7/+14
| | | | Change-Id: I70640f42db49da274118f7336ff072b1b53ac640
* coverity#706568 Uncaught exceptionCaolán McNamara2014-10-301-1/+9
| | | | Change-Id: I05a7700b782d63654406139532a775173295ea9f
* coverity#706569 Uncaught exceptionCaolán McNamara2014-10-301-3/+10
| | | | Change-Id: I7c1245eacd92b5869e6dab0389ee0ca3cebd98da
* OSL_ENSURE->assert when follow by deref of tested pointerCaolán McNamara2014-10-301-1/+1
| | | | Change-Id: Ib703cb24619228c081c156c4ed52bf7b878fbedd
* coverity#706582 Uncaught exceptionCaolán McNamara2014-10-301-2/+10
| | | | Change-Id: I82fad3f152fe5a563675686accedb583d07d2b13
* coverity#706583 Uncaught exceptionCaolán McNamara2014-10-301-2/+10
| | | | Change-Id: I508eb91d7c32e8604525511c33c39471afd3ffbf
* coverity#706584 Uncaught exceptionCaolán McNamara2014-10-301-2/+15
| | | | Change-Id: I9521ed7d75cae1a1e90fd73dd7b8bd822ab4521f
* coverity#706590 Uncaught exceptionCaolán McNamara2014-10-272-2/+2
| | | | Change-Id: I2005b792c74ad5a5f58c831dcc7caa5134280890
* cid#1249676 Uninitialized scalar fieldNoel Grandin2014-10-271-0/+2
| | | | Change-Id: I87df4e9c1d3f36afccf13aebfd95d1b4f3bfa655
* package: OInputCompStream::m_xStream is never nullMichael Stahl2014-10-242-39/+6
| | | | | | | ... as proven by the un-checked dereference in the dispose() method called from the dtor; simplify based on that and assert in ctor. Change-Id: Id369b80bd89fa59d99b209796c33acb39cbb10f3
* Remove pointless functions now that saveChild() is ZipPackageStream's memberMatúš Kukan2014-10-232-40/+22
| | | | Change-Id: Id43ec2e7ddb1035d3306170523764bb9a74c03b8
* Move ZipPackageStream::saveChild to proper source fileMatúš Kukan2014-10-232-382/+385
| | | | Change-Id: Icd108215874e830e5c9587f7dbb38a7f11ee27c8
* package: Add pure virtual ZipPackageEntry::saveChild()Matúš Kukan2014-10-237-119/+116
| | | | | | | ..and adapt what needs to be changed. So that, we can kill at least some usages of horrible ContentInfo struct. Change-Id: I32d41f3b8ce2dfb65f0d1df18a540a3f67dcab6d
* package: ZipPackageStream: prefix membersMatúš Kukan2014-10-232-75/+75
| | | | Change-Id: I02a1c3189c6b52f4f539b0eaa8878985cae8b321
* package: Add ZipOutputEntry to isolate deflating of streams.Matúš Kukan2014-10-238-415/+504
| | | | | | | | Preparation commit for deflating streams in parallel. We still use the same single XOutputStream (ByteChucker :-) for sequential writing but this can now be changed more easily. Change-Id: Idf26cc2187461660e31ac2e12c4708e761596fb2
* coverity#706585 Uncaught exceptionCaolán McNamara2014-10-232-2/+2
| | | | Change-Id: Ic8d2963536b793f0a229901d9e13d8e54842d9b9
* coverity#706586 Uncaught exceptionCaolán McNamara2014-10-232-2/+2
| | | | Change-Id: I3ec05ae695428f92b7424295b6f2d3e833c6b162
* unusedcode: Remove Deflater::setLevelMatúš Kukan2014-10-221-61/+16
| | | | | | Which makes bSetParams always false; remove that too, together with nLevel. Change-Id: I94a4ec14b2b2c498d749ef72c1b6b118bba37076
* coverity#706591 Uncaught exceptionCaolán McNamara2014-10-172-2/+3
| | | | Change-Id: I9b705664c3814aea5c433526ad147a8ab11c2d0f
* bff: terminate on SAXException on malformed inputCaolán McNamara2014-10-141-1/+22
| | | | | | SAXException thrown and not caught Change-Id: I874ffbcd457e102b572f398f4e531f4be30ca3d3
* ZipOutputStream: No need to explicitly set default valuesMatúš Kukan2014-10-103-22/+2
| | | | Change-Id: Ia3a20e0692e658d847e1b825fc97e32ac8a1854b
* Split ZipPackageFolder::saveChild into two functionsMatúš Kukan2014-10-102-290/+340
| | | | | | | | | | And make them static. Probably would be better to kill ContentInfo and add saveChild as pure virtual into ZipPackageEntry, from which are both ZipPackageFolder and ZipPackageStream inheriting. This will also create a bit more sensible call graph when profiling. Change-Id: If8151332cfa6359e8736c912b7a5633a9162ab36
* package: ZipOutputStream: prefix membersMatúš Kukan2014-10-102-133/+126
| | | | Change-Id: I9cc21ba87484560ec0db5424800dd67f80e00540
* package: Add some 'const' and prefix membersMatúš Kukan2014-10-105-34/+34
| | | | Change-Id: Id177c99ba8b91586cf61457ab2ef084af9c7f490
* package: std::auto_ptr -> std::unique_ptrStephan Bergmann2014-09-301-1/+1
| | | | Change-Id: Iac189fef77c930e35cbd20452027662127047e01
* loplugin: cstylecastNoel Grandin2014-09-292-9/+9
| | | | Change-Id: Iea517d2287bded4a702c73dfdd1f182023425d67
* create a master document template typeCaolán McNamara2014-09-111-0/+1
| | | | | | | | | | | | | | | | | of application/vnd.oasis.opendocument.text-master-template with suffic otm https://lists.oasis-open.org/archives/office-comment/201002/msg00042.html desktop/icons/oasis-master-document-template.icns is just a copy of desktop/icons/oasis-master-document.icns because I can't draw Change-Id: I0d18c79c4c893e97505052884ee8be97d0f117a1 Reviewed-on: https://gerrit.libreoffice.org/11350 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* java: use 'Integer.valueOf' instead of 'new Integer'Noel Grandin2014-08-1931-55/+55
| | | | Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
* java: use Boolean.valueOf instead of instantiating Boolean objectsNoel Grandin2014-08-193-7/+7
| | | | Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
* java: remove commented out codeNoel Grandin2014-08-141-5/+0
| | | | Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
* update_pchThomas Arnhold2014-08-131-0/+1
| | | | Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
* coverity#706587 Uncaught exceptionCaolán McNamara2014-08-071-1/+1
| | | | Change-Id: I33836bfc2d0e18a12774a9e65d814f50ae10d7b8
* coverity#706588 Uncaught exceptionCaolán McNamara2014-08-071-1/+1
| | | | Change-Id: Ia1672fe61f9bf158a300d5855e46de2747754ca2