summaryrefslogtreecommitdiffstats
path: root/xmlscript
Commit message (Collapse)AuthorAgeFilesLines
* com::sun::star->css in xmlscript/Noel Grandin2015-11-268-123/+123
| | | | | | | Change-Id: I8ead2862ef429a0ac3fc16fe6ca5dfc9e5f549bc Reviewed-on: https://gerrit.libreoffice.org/20193 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Fast PCH generator and optimized PCH filesAshod Nakashian2015-11-151-59/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* use initialiser syntax for Sequence<OUString>Noel Grandin2015-11-152-8/+4
| | | | | | | | | | | | | | replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-108-20/+20
| | | | Change-Id: Ie91fbfc9369fe9f2de1cf12c746598a80c2233c1
* new loplugin: oncevarNoel Grandin2015-11-094-14/+7
| | | | | | | Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann2015-11-064-17/+17
| | | | Change-Id: I8aedb690380d407dcbc290a44d21afa6604b8f95
* Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-128-182/+182
| | | | Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
* Fix typosAndrea Gelmini2015-09-293-6/+6
| | | | | | | Change-Id: I2cdfc4e9d8ba1acb7c2548f9394d320c6504207e Reviewed-on: https://gerrit.libreoffice.org/18997 Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org> Tested-by: Joren De Cuyper <jorendc@libreoffice.org>
* boost->stdCaolán McNamara2015-09-162-15/+15
| | | | Change-Id: Ic18be8b86727dd1179a7e39c70493d088ed00557
* xmlscript: tdf#88206 replace cppu::WeakImplHelper*Takeshi Abe2015-09-1410-29/+25
| | | | | | | | | with the variadic variants. Change-Id: Ic05094dea12c0aa66dc97a7e403a3abec9e25785 Reviewed-on: https://gerrit.libreoffice.org/18556 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* inline some use-once typedefsNoel Grandin2015-08-031-3/+1
| | | | | | | Change-Id: I02cbbba56a2ad83e0ac3d806265a7e0d6a29594d Reviewed-on: https://gerrit.libreoffice.org/17495 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Fix typosAndrea Gelmini2015-07-031-1/+1
| | | | | | | Change-Id: I98b4dfb0f72f315065693335e2f882bb2eed3afe Reviewed-on: https://gerrit.libreoffice.org/16713 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
* loplugin:loopvartoosmallNoel Grandin2015-05-291-1/+1
| | | | Change-Id: I1e9768c08af0bc7caac6a39c13842ee9d8ad962c
* cppcheck: noExplicitConstructorCaolán McNamara2015-05-204-8/+9
| | | | Change-Id: Idcf5460ec59cfb6f13055652c094d460c15da5ed
* cppcheck: noExplicitConstructorCaolán McNamara2015-05-043-6/+6
| | | | Change-Id: Iea5bb0504518b380c3fe7c238d376dc26be8a7ef
* Various #include <sal/log.hxx> fixupsStephan Bergmann2015-04-228-0/+15
| | | | | | | | | | | | | | rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
* loplugin:staticmethodsNoel Grandin2015-04-071-1/+1
| | | | Change-Id: Ibaad2adabecb878411fdd66383bca91f034477af
* Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann2015-04-011-1/+1
| | | | Change-Id: Ida0a4cced7d35be6f9da16447ae4e23ded5e415a
* Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann2015-03-311-1/+1
| | | | Change-Id: I8af2e7c7bb5e750c13dd9f7ef1fd3033ec9cdf9c
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-282-15/+15
| | | | Change-Id: Id64d800ccebab274e5bb7ad2667c0e270e745bdf
* constifyLionel Elie Mamane2015-02-051-8/+8
| | | | Change-Id: Id319c001b399a3105d6c9f87a58168f956ad46c3
* proper indentationLionel Elie Mamane2015-02-051-19/+19
| | | | Change-Id: Ifc7577f46625562183ed3ee2273f28b9dcfc13df
* destructors are not allowed to throwLionel Elie Mamane2015-02-052-4/+69
| | | | | | | | so move potentially throwing call to a manually called finish() additionally don't make it leak something that is not a RuntimeException, the caller does not expect it. Change-Id: I8b19585ae197f5ac8625dc85d4c4860a1c11b262
* xmlscript: fix import/export of dialog radio-buttonsMichael Stahl2015-02-052-6/+3
| | | | | | | | | The BASIC dialog format is not specified by ODF anyway, so the change was particularly stupid. (regression from 2d4b87f0c1bfd97185a89c18d5b7680d11a958d6) Change-Id: I5b20d690093b0d2b898f3e45cc0292fb72fbb353
* Updated all precompiled headers.Ashod Nakashian2015-02-051-0/+2
| | | | | | | | Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* WaE: implicit conversion of literal of type 'int' to 'bool'Tor Lillqvist2015-01-271-1/+1
| | | | Change-Id: Ie12339760904329d690bbe4863286e005ebde380
* remove spurious xDocStorage tempCaolán McNamara2015-01-271-2/+0
| | | | Change-Id: Ia47394bcd4d39fca5096413ca7e0fbffbc3d7ac6
* Resolves: #i98734# save/load ScaleMode property of image control on dialogsTsutomu Uchino2015-01-277-0/+76
| | | | | | | | | | | | | | Suggested by: Frank Schönheit <frank.schoenheit@gmx.de> (cherry picked from commit 350c4f9a01b88d4fd1006465151348ac5d459f1a) Conflicts: xmlscript/source/xmldlg_imexp/exp_share.hxx xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx xmlscript/source/xmldlg_imexp/xmldlg_export.cxx xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx xmlscript/source/xmldlg_imexp/xmldlg_import.cxx Change-Id: I2a11809112c0b1b53349f5b74dca20897d4a6acd
* Some more loplugin:cstylecast: xmlscriptStephan Bergmann2015-01-201-2/+2
| | | | Change-Id: I6c13ff51c32e0fded35d8f9124981fee1cce80ad
* fdo#39440 reduce scope of local variablesMichael Weghorn2015-01-191-1/+1
| | | | | | | | | This addresses some cppcheck warnings. Change-Id: If7ad3584b3124ed0b337836071af1a5bd0451d85 Reviewed-on: https://gerrit.libreoffice.org/13972 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* boost::unordered_map->std::unordered_mapCaolán McNamara2015-01-022-6/+5
| | | | | | you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
* xmlscript: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-182-4/+4
| | | | Change-Id: I1fafba17c590d4485f2138e2dda877344c573df1
* cppuhelper: clean up public headers with include-what-you-useMichael Stahl2014-11-181-0/+1
| | | | Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-174-0/+4
| | | | | | | | | 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
* fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava2014-11-141-1/+1
| | | | | | | Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* fdo#38835 strip out OUString globalsNoel Grandin2014-11-052-92/+16
| | | | | | | they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
* Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini2014-10-301-1/+1
| | | | | | | | Change-Id: Ia43976d84eede6f699381bc4f3daf89b95e4cb4f Reviewed-on: https://gerrit.libreoffice.org/12150 Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* remove unnecessary 'using namespace rtl' declarationsNoel Grandin2014-10-293-3/+0
| | | | | | | | | It turns out that almost none of them were necessary. Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83 Reviewed-on: https://gerrit.libreoffice.org/12133 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* xmlscript: std::auto_ptr -> std::unique_ptrStephan Bergmann2014-10-011-1/+1
| | | | Change-Id: I203b84180d3614a440b37af87223bbf5a6a0f21a
* fdo#82577: Handle TimeNoel Grandin2014-10-012-3/+3
| | | | | | | | | | Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Rename LO-specific uno ini-file (Linux: program/unorc) to "louno"Stephan Bergmann2014-09-161-1/+1
| | | | | | | | | | | ...to avoid confusion with the URE uno ini-file (Linux: ure/lib/unorc). It might even work to get rid of the louno ini-file altogether and fold its contents into the fundamental ini-file, but at least desktop/source/deployment/misc/dp_misc.cxx accesses the louno ini-file directly, so would need some inspection to avoid potential regressions. Change-Id: Ib49bbc4c814d677c22e68d2dd0f11af6d8423bb6
* xmlscript: avoid accessing [0] of an emptry stringNorbert Thiebaud2014-09-121-1/+5
| | | | Change-Id: I2ad756b07418d3eb93f48374cd7de3bc3db9ce29
* ODF export: don't write invalid "group-name" attributeMichael Stahl2014-08-202-3/+6
| | | | | | Radio buttons are grouped via their "form:name" attribute already. Change-Id: I9f8b27a2904d947c3d4665495d36961e3e41d2c6
* new compilerplugin returnbyrefNoel Grandin2014-06-242-8/+8
| | | | | | | | | | | | | | Find places where we are returning a pointer to something, where we can be returning a reference. e.g. class A { struct X x; public X* getX() { return &x; } } which can be: public X& getX() { return x; } Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
* xmlscript: remove SAL_THROW macroNoel Grandin2014-06-0520-202/+67
| | | | Change-Id: Ic830c23d8696fde323dcf67697248a84658be2bf
* update_pch: add a bunch of pch filesThomas Arnhold2014-06-043-1/+96
| | | | | | | | | | | | | | desktop: 1m51s -> 54s framework: 1m55s -> 1m04s package: 32s -> 16s sdext: 1m31s -> 47s svgio: 32s -> 15s uui: 49s -> 20s vbahelper: 1m44s -> 27s xmlscript: 15s -> 10s xmlsecurity: 45s -> 23s Change-Id: Ia437969c091bf877983ababc5ea2d044bbc0bee0
* fdo#68849: Add header guards to all include filesJens Carl2014-05-294-0/+20
| | | | | | | | | Added header guards to files in directories xml*/* Change-Id: Ia5dfb9ab494bfbfae7537f2d54ff11331dc8c922 Reviewed-on: https://gerrit.libreoffice.org/9539 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet2014-05-231-4/+4
| | | | Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
* remove boilerplate in UNO Exception constructor callsNoel Grandin2014-05-233-4/+4
| | | | | | | Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
* xmlscript: remove using namespace from headersThomas Arnhold2014-05-224-78/+74
| | | | Change-Id: Ic3b355e732bcbecf020720752aadd70e0722b6f0