summaryrefslogtreecommitdiff
path: root/xmlscript
AgeCommit message (Collapse)AuthorFilesLines
2014-06-05xmlscript: remove SAL_THROW macroNoel Grandin20-202/+67
Change-Id: Ic830c23d8696fde323dcf67697248a84658be2bf
2014-06-04update_pch: add a bunch of pch filesThomas Arnhold3-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
2014-05-29fdo#68849: Add header guards to all include filesJens Carl4-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>
2014-05-23Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet1-4/+4
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin3-4/+4
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-22xmlscript: remove using namespace from headersThomas Arnhold4-78/+74
Change-Id: Ic3b355e732bcbecf020720752aadd70e0722b6f0
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold5-12/+12
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-04-14SCROLLABLEFRAME never definedThomas Arnhold2-6/+0
2014-04-11Clean up function declarationsStephan Bergmann5-30/+97
Change-Id: If482545f87a9b0c066f91639c55b73bee4d01b5c
2014-04-07xmlscript: sal_Bool->boolNoel Grandin4-10/+10
Change-Id: Ib784d23aa613dce80b786ecadb98cc2c3c278e33
2014-03-27xmlscript: sal_Bool->boolNoel Grandin2-5/+5
Change-Id: I5d0041283637dddeac86c50917d77c7e3d005b20
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann8-182/+182
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-21coverity#708728 Uninitialized scalar fieldCaolán McNamara1-6/+14
Change-Id: Ic5e22da988f762641daf4cc07f3b2bd0caba36f9
2014-03-21coverity#708730 Uninitialized scalar fieldCaolán McNamara1-2/+10
Change-Id: I464774697703b7143c3a6b0df88aa32745824394
2014-03-21coverity#708732 Uninitialized scalar fieldCaolán McNamara1-4/+8
Change-Id: I0e76926d25491f54b6552c5bc1d55c77e39318b0
2014-03-21coverity#708733 Uninitialized scalar fieldCaolán McNamara1-4/+8
Change-Id: I751be405978cfc4c13047033a71504353439145d
2014-03-21coverity#708734 Uninitialized scalar fieldCaolán McNamara1-5/+9
Change-Id: Icea7902268a362f35c16a22597f2c55d67eaa83e
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann15-370/+370
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from xmlscriptAlexander Wilms1-1/+1
Change-Id: Id984fe846f28eba50f0fd480dca235482d150dd9 Reviewed-on: https://gerrit.libreoffice.org/8347 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23Remove unneccessary commentsAlexander Wilms1-1/+1
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-18coverity#984352 Uninitialized scalar fieldCaolán McNamara1-0/+2
Change-Id: I871fcd02f461c798520a033217e14b3caa78876e
2014-02-06fdo#54938 Convert oox, sc, vcl, svtools... to cppu::supportsServiceAlexandre Vicenzi1-14/+8
Change-Id: I6268bc57417d53b9810c81071fbcd604e2a19507 Reviewed-on: https://gerrit.libreoffice.org/7886 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-01-28bool improvementsStephan Bergmann2-3/+3
Change-Id: I6caec041ce671aeeb9de86ea620774fb2e28f765
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann1-2/+2
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17Remove unnecessary use of OUString constructor in + expressionsNoel Grandin1-1/+1
Convert code like aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp"); to aFilename = OUString::number(nFilePostfixCount) + ".bmp"; Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
2013-11-11xmlscript: include <> for external includesNorbert Thiebaud7-17/+17
Change-Id: I3921f93a5ec2d043ed25d7569297131c020c4e83
2013-10-28gbuild: set Package default target to INSTDIRMichael Stahl1-2/+0
Change-Id: I2bc45e4ba63f5faaee7389bcd9d7b3f563503186
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza2-17/+4
to cppu::supportsService Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14 Reviewed-on: https://gerrit.libreoffice.org/6370 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-19CID#1103755 unint membersCaolán McNamara1-2/+4
Change-Id: Ic6961e3f18aed2f271f80c69d17a5c34a0c9fa8e
2013-09-25sal_Bool to boolTakeshi Abe4-13/+13
Change-Id: I390b6b0d8e1c143a0d2e8f4f0a1ec80c2924942c
2013-09-23Try to fix cross-compilationTor Lillqvist1-1/+1
Add more FOO_FOR_BUILD variables and some gb_Foo_for_build functions. Get rid of gb_INSTROOT and gb_DEVINSTALLROOT, just use INSTROOT. Change-Id: Iee531b02d14fae41edb68ad589a5dec829a60255
2013-09-11Towards a working instdir for Mac OS XStephan Bergmann1-1/+1
Introduced gb_INSTROOT, which is the same as $(INSTDIR) except for Mac OS X, where it is $(INSTDIR)/LibreOffice.app/Contents. Most stuff ends up there (so most occurrences of $(INSTDIR) have been replaced with $(gb_INSTROOT)), but SDK- related stuff goes to $(INSTDIR)/$(gb_Package_SDKDIRNAME). (And GeneratedPackage needed to be made more flexible, to allow for packages that go into either of those two places.) For Android and iOS, gb_INSTROOT probably still needs to be set. The most obvious missing thing yet to make instdir work for Mac OS X is the instdir/*/LibreOffice.app/Contents/ure/ vs. instdir/*/LibreOffice.app/Contents/ure-link/ split. Change-Id: I4478edd27b14c92c96d92d5169bdca3ec50d78f5
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák3-17/+40
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-18Further work on the "Mac-like app structure" optionTor Lillqvist1-1/+1
Lots of stuff still either ended up in the wrong place, or was looked up from the wrong place, or both. Fix most cases. Change-Id: I06ebbce207c219f3cd82b4387dd9b3fdb83420d4
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist1-1/+3
Change all instances of hardcoded "program", "share" etc subfolder names to use those from <config_folders.h> instead. In normal builds, the end result will not change. Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-08-16fdo#57950: Remove some chained appends in xmlscriptJelle van der Waa2-43/+9
Change-Id: I7061f59077a75b879ad42179b839894747f5ba5b Reviewed-on: https://gerrit.libreoffice.org/5377 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-12fdo#62475 removed pointless commentsJelle van der Waa23-703/+125
Change-Id: I13e7eedaa5f0f116bd01834fc6db576c39350163 Reviewed-on: https://gerrit.libreoffice.org/5348 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-05Adapt Dialog XML import/export codeLionel Elie Mamane6-12/+116
to: commit 8ee69b0ba13f74d1515fac71df92947eb6328ab1 fdo#67235 adapt form control code to time nanosecond API change, step 3. Change-Id: I57b549c9c1379154173bb50463171a60ce35ca0c
2013-07-22Mark as constTakeshi Abe1-1/+1
Change-Id: I2746b92b1360c3c181879a81f653c44ef609f351
2013-07-13use static LanguageTag::convertTo...() for standalone conversionsEike Rathke1-1/+1
If no LanguageTag instance is at hand use the static methods to convert between BCP 47 string, Locale and MS-LangID instead of creating temporary instances. Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
2013-07-12write bcp47 format-locale if necessary and read bothEike Rathke3-15/+24
Change-Id: I82cfdd8652d1c86b701ccb0b913928c860a360d2
2013-06-13Introduce O[U]String::toUInt32Stephan Bergmann2-2/+2
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39 "Handle oveflow in O(U)String::toInt() functions" reduces values in the range (SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied on getting a correct (unsigned) value for the whole input range ["0" .. "FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3 "Revert overflow checks in O[U]String::toInt{32,64} again"). Audited all uses of toInt32/64 with non-decimal radix. (There is still a TODO comment in oox/source/helper/attributelist.cxx, and stoc/source/typeconv/convert.cxx will still need some love and test code.) Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-05remove unused componentcontext.hxx includesNoel Grandin3-3/+1
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-05fdo#46808, Convert various comphelper::ComponentContextNoel Grandin1-4/+3
..to regular XComponenContext Change-Id: I08f9092ae818db5c1e37880625b83607c860680b
2013-05-28fdo#46808, Convert awt::UnoControlDialog to new styleNoel Grandin1-14/+10
Change-Id: I9a5256c8dbacda60167403b4e26900588943a9b2
2013-05-25Revert "fdo#46808, Convert awt::UnoControlDialogModel to new style"Stephan Bergmann1-12/+16
This reverts commit 6c61b20a8d4a6dcac28801cde82a211fb7e30654. As discussed at <http://lists.freedesktop.org/archives/libreoffice/2013-May/052449.html> "Re: fdo#46808, Convert awt::UnoControlDialogModel to new style problem" why the odd change in 2e2a4827ce6708f0e8677dba9cc92e1479a44086 "scripting: get CreateUnoDialog() work again" appears to fix things again: The problem is that the implementation of the css.awt.UnoControlDialogModel involves UNO aggregation (IMPL_CREATE_INSTANCE_WITH_GEOMETRY(UnoControlDialogModel) in toolkit/soruce/helper/registerservices.cxx creating a OGeometryControlModel<UnoControlDialogModel> instance that aggregates a UnoControlDialogModel instance). That means that queryInterface can return a reference to something that is technically a different object, and that's what's happening here, and explains why calling setPropertyValue in two different ways on what logically appears to be a single object can end up calling two different implementations (of two different physical objects). (UNO aggregation is known to be broken and should not be used. Nevertheless, there's still code that does---code that is a horrible mess and hard to clean up.) That all this worked as intended in the past is just sheer luck, but any way of substantially touching it is asking for trouble. I'm going to revert 6c61b20a8d4a6dcac28801cde82a211fb7e30654 again. I wasn't able to revert without also reverting be50ad28f5bbdaeff527f646481ce263843c2401 "fdo#46808, Convert awt::XUnoControlDialog to new style," as the two were tightly dependant. Also reverts all the follow-up fixes cb4b6dde8fda2a5848e11063028bf44d72f85431 "-Werror,-Wuninitialized" (sans the const-ness fix in UpdateHandler::insertControlModel), 697a007c61b9cabceb9767fad87cd5822b300452 "Fix exception specifications," 2ce6828bbbf6ba181bb2276adeec279e74151ef6 "fix awt::UnoControlModelDialog crash," and 2e2a4827ce6708f0e8677dba9cc92e1479a44086 "scripting: get CreateUnoDialog() work again." Conflicts: basctl/source/dlged/dlged.cxx filter/source/t602/t602filter.cxx xmlscript/test/imexp.cxx Change-Id: I5d133468062f3ca36300db52fbd699be1ac72998
2013-05-21fix for linkingNoel Grandin1-0/+1
caused by my commit 863d38fbfa4fb4861e476828c46410602100919e "move DBG_UNHANDLED_EXCEPTION out of line" Change-Id: Idfd84d987ba9151ba476ce0516a9e5fbdb2003ec
2013-05-21fdo#46808, Clean up old usages of ExtToolkitNoel Grandin1-1/+2
This service no longer exists in LO, and no-one seems to know what this service was, so convert it to use the awt::Toolkit service, since that service returns the interface the code expects. Change-Id: I761effbd49a9a3a15ec9c8716c72d4220a3e987e
2013-05-21fdo#46808, Convert awt::XUnoControlDialog to new styleNoel Grandin1-14/+10
Change-Id: I40d2e2ddd92186a2ba22ebfbdda8367391e8d355
2013-05-21fdo#46808, Convert awt::UnoControlDialogModel to new styleNoel Grandin1-3/+3
Change-Id: I4b912034ef3f4855b87d6d6f18ff13bd1ecc8f72