path: root/svl/
AgeCommit message (Collapse)AuthorFilesLines
2019-03-23Introduce new lockfile handler for MSO like lockfilesTamás Zolnai1-0/+1
* Implement writing of MSO lockfiles * Grab the already implemented parsing code (tryMSOwnerFile method) and put it together into one class * Add tests about the generated URL for lockfiles and the lockfile content * MSO lockfiles are not written yet by LO, next step is to integrate this code into the locking mechanism. Change-Id: I3b0ed1975cd57dfd006d4e1890b23c307890de5c Reviewed-on: Tested-by: Jenkins Reviewed-by: Tamás Zolnai <>
2017-07-21migrate to boost::gettextCaolán McNamara1-1/+1
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2015-10-29CppunitTest_svl_urihelper needs the file UCPStephan Bergmann1-6/+0
...for the WNT-only file:///c:/... vs. file:///C:/... check in testNormalizedMakeRelative Change-Id: I66a0456589aabe395645bb358dbef3268e1c3816
2015-10-29sortStephan Bergmann1-3/+3
Change-Id: I074eb6c6ecd651aa63257f7f8424efbd87af899c
2015-10-29CppunitTest_svl_urihelper can be a plain check target nowStephan Bergmann1-4/+1
Change-Id: I8c6f7822f44ae7b6fe213032c62abe620eb3b11f
2014-07-22Add unittests for SfxBroadcasterTobias Lippert1-0/+1
Change-Id: I9ecd8fec395eafbdc2675dda9fa25ac32761123c Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2014-06-17fdo#38513 - Accelerate non-poolable item add / remove.Michael Meeks1-0/+1
For large documents we create and destroy a large number of non-poolable SfxPoolItems, which get inserted into and removed from a vector. Unfortunately the performance of this (depending on pattern) is O(N) and this insert/remove/extend pattern can happen per text span we insert. This patch makes this O(const) via a hash. This gives a 5x speedup for the above bug; 176s to 34s or so, and moves the remaining performance issues elsewhere. Unfortunately, we have to retain the ordered array to keep the binary file format code (used for editeng cut-and-paste) in place, so have to keep both a hash, and an array, and a list around for free slots. cf. fdo#79851 where there is a start at removing that. This wastes space; but not that much - for a large open document collection we have O(100's) of SfxItemPools, and O(1000's) of SfxPoolItemArray_Impls; having fixed fdo#79851 we can consolidate this. Add skeletal unit test; translate several German comments; remove un-necessary include. Change-Id: Ie0de32b1a29217560c5591c71a6cd4e26d39a531
2014-03-27Introduce INetContentType::scanStephan Bergmann1-0/+1
...for use in <> "new methodINetURLObject::getData() for data urls." Change-Id: Id381d7c328153fbea44c0efb80532b2961c6c2b7
2014-03-11fdo#30770 - Speed up xslx importTobias Lippert1-0/+1
Conflicts: include/svl/style.hxx Change-Id: Ie3d855923c651b6e05c0054c8e30155218279045 Reviewed-on: Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <>
2013-11-14make l10n buildable separatelyBjoern Michaelsen1-1/+4
- this renames the 'almost' module target to non-l10n - and adds a l10n target which is intended to only build l10n parts of the product - packagers should then be able to build l10n and non-l10n parts of the product independently, thus: - enable quicker rebuilds - distribution of load - updates to l10n without a full rebuild - security fixes to binaries without rebuilding all l10n - the new targets are called build-l10n-only and build-non-l10n-only - note this is not intended to move a concept of split packages upstream -- while this exsists in distros, the number of test scenarios for this would explode upstream Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863 Conflicts: filter/
2013-04-23execute move of global headersBjoern Michaelsen1-1/+0
see and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-03-14resurrect svl/qa/unit/svl.cxxKorrawit Pruegsanusak1-0/+2
Change-Id: I44659688794436dd97ca5f72cfa969db889d1bc1 Reviewed-on: Reviewed-by: Fridrich Strba <> Tested-by: Fridrich Strba <>
2012-07-15CppunitTest_svl_urihelper fails on MSVCMichael Stahl1-0/+3
Change-Id: Ia1154ab9e677ac0d27eb8cf671139d4e23f78794
2012-07-02re-base on ALv2 code.Michael Meeks1-21/+17
2012-01-20svl: add new test to subsequenttestsMichael Stahl1-0/+1
2012-01-17Disable CppunitTest_svl_urihelper for now due to bad dependencies.Stephan Bergmann1-1/+2
2012-01-17Adapted svl test_URIHelper to gbuild.Stephan Bergmann1-0/+1
2011-11-26Added test for linguistic::RemoveHyphen and some simplificationAugust Sodora1-0/+4
2011-08-10prefer makefile-gmake-mode to plain makefile-modeTakeshi Abe1-1/+1
2011-07-30Add consistent Emacs and vim mode linesTor Lillqvist1-1/+2
2011-01-25CWS gnumake3: fix license headersMathias Bauer1-3/+3
2011-01-11gnumake3: more work on junit subsequenttest migrationBjoern Michaelsen1-0/+4
2010-06-26CWS gnumake2: module reorgBjoern Michaelsen1-0/+42