summaryrefslogtreecommitdiff
path: root/scripting/source/dlgprov
AgeCommit message (Collapse)AuthorFilesLines
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-2/+2
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-09-03scripting: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe3-8/+8
with the variadic variants. Change-Id: I2a59d42efbb1aeef5078d0b0744b5a3c0559affa Reviewed-on: https://gerrit.libreoffice.org/18123 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann1-1/+1
Change-Id: I14d1c6f703c83bc4a0259ce68e93a315bbfdde4e
2015-05-28Rewrite all calls like Dialog(params).Execute()Philippe Jung1-1/+1
Replace all calls looking like ADialog(some params).Execute() by ScopedVclPtrInstance<ADialog>::Create(some parms)->Execute() Change-Id: I0b6f0a9ea5ef0a749ffa30ce131e9dc989604639 Reviewed-on: https://gerrit.libreoffice.org/15915 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-04-23loplugin:staticmethodsNoel Grandin1-1/+1
Change-Id: Ib0c0841e48814d1a6e13bcd4575725d86ffa5e5e
2015-02-07loplugin:deletedspecialStephan Bergmann1-2/+2
Change-Id: I862b29974c770aea7396f2d650208b1f3e1f4e4b
2015-01-29scripting: remove unnecessary SAL_CALLMichael Stahl2-2/+2
Change-Id: Ic1fbb36a509ec1dce63f1c7fa4a8955a4780517d
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin2-2/+2
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
2015-01-04boost::unordered_map->std::unordered_mapCaolán McNamara1-8/+3
Change-Id: I5d458f43616edc395faa8c27edaddc7d515166db
2014-12-21fdo#39440 reduce scope of local variablesMichael Weghorn1-1/+1
This addresses some cppcheck warnings. Change-Id: I390607e002e93cf7a6babc26d9be084d9f185058
2014-12-15scripting: Use appropriate OUString functions on string constantsStephan Bergmann1-1/+1
Change-Id: I8ee8eb92ac95937893c894e67882e9df2c16a67d
2014-11-05fdo#38835 strip out OUString globalsNoel Grandin2-30/+11
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-10-01scripting: std::auto_ptr -> std::unique_ptrStephan Bergmann1-1/+1
Change-Id: I91f4a037dfcfbea83cb1ea546ea73880f0480961
2014-08-28Fix some *_component_getFactory function typesStephan Bergmann1-2/+2
Change-Id: I912f9d1454c049419e9ead6f0ff8d7fa7d8cd6c5
2014-08-18ErrorBox->MessageDialogCaolán McNamara1-2/+2
Change-Id: I57d4e43460e40d3aff54873280eddbb18c12446b
2014-07-11new loplugin: externalandnotdefinedNoel Grandin2-19/+13
Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-06-27remove SFX_APP() macro that was a mer wrapper for SfxGetApp()Norbert Thiebaud2-2/+2
Change-Id: I480a789c767dd671775c9d70d96bf71908f21f5b
2014-06-25fixes for up-casting to Reference<XInterface>Noel Grandin1-2/+2
Fix regressions introduced with 6a043e9c0acff20e1618ca8ec15c21d5d0fd0d37 "Use the new type-checking Reference constructor to reduce code noise" Change-Id: I85662856f21c810a7db497fe3b0e116f075b1687 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-06-05scripting: remove SAL_THROW macroNoel Grandin1-2/+1
Change-Id: I535a57d043ac51926ae6f640d721d0dd1571c3fa
2014-06-01fdo#68849: Add header guards to all include filesJens Carl1-0/+6
Added header guards to files in directories sal/, sal/, and scripting/ Change-Id: Ieb7f224f2d27bd671618c516f47f5b7f08c1d294 Reviewed-on: https://gerrit.libreoffice.org/9582 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-27remove more unnecessary use of OUString constructorNoel Grandin1-5/+5
Change-Id: Iae14cb3df65295b6894fd9e05411c5698e9c8aba
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin1-7/+3
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-04-19fixincludeguards.sh: some smaller dirsThomas Arnhold2-5/+5
Change-Id: Ic25bd678dc299627299b22145efd7bebcf2b39d0
2014-04-14Clean up function declarationsStephan Bergmann1-1/+0
Change-Id: Ie204bb9dc1fb4ded416087f5a3d962924b3dec82
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin2-6/+6
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann4-38/+38
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-07Introduce com.sun.star.beans.theIntrospection singletonStephan Bergmann1-2/+2
...deprecating com.sun.star.beans.Introspection (single-instance) service. Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann6-68/+68
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from scriptingAlexander Wilms4-42/+42
Change-Id: Id9f177a20d911ce1e041407aa556c9cf13f0efc8 Reviewed-on: https://gerrit.libreoffice.org/8305 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23Remove unneccessary commentsAlexander Wilms2-33/+33
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-20Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert1-1/+1
Added vcl/settings.hxx to all cxx files which require it. This helps to speed up compilation after changes to the settings. Conflicts: sc/source/ui/dbgui/pvlaydlg.cxx Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4 Reviewed-on: https://gerrit.libreoffice.org/7933 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann1-2/+2
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin1-1/+1
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11remove unnecessary use of OUString constructor in SCRIPTING moduleNoel Grandin1-4/+4
Change-Id: I87dd775949d1d3cc2c191e84e57b49cd66ecc750
2013-11-04remove redundant calls to OUString constructorNoel Grandin1-2/+2
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
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-18random OUString to String conversionsNoel Grandin1-1/+1
Change-Id: I9cfb8e7183b9cce7c690f3a43a64b61a2aa8c754
2013-06-29remove OUString wrap for string literalsThomas Arnhold2-8/+8
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-05-28fdo#46808, Convert awt::UnoControlDialog to new styleNoel Grandin2-56/+47
Change-Id: I9a5256c8dbacda60167403b4e26900588943a9b2
2013-05-25Revert "fdo#46808, Convert awt::UnoControlDialogModel to new style"Stephan Bergmann4-65/+85
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-24scripting: get CreateUnoDialog() work againMiklos Vajna1-1/+2
Trivial reproducer: Dim Dlg As Object DialogLibraries.LoadLibrary("Standard") Dlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1) Dlg.Execute() Dlg.dispose() Regression from 6c61b20a8d4a6dcac28801cde82a211fb7e30654. Change-Id: Ia62778c6d94f54e6097a307701e5c81be847665d Reviewed-on: https://gerrit.libreoffice.org/4023 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-05-23fix awt::UnoControlModelDialog crashNoel Grandin1-1/+5
...in commit 6c61b20a8d4a6dcac28801cde82a211fb7e30654, "Convert awt::UnoControlDialogModel to new style" I added an attribute "ResourceResolver" because some of the client code was setting it using the property interface. It turns out that this was a bad idea because the "ResourceResolver" property is doing some very interesting stuff, so revert that part of the change. Change-Id: I62b890e60164e005867ced49c3e407a49ed09441 Reviewed-on: https://gerrit.libreoffice.org/4013 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-05-22Use the new type-checking Reference constructor to reduce code noiseNoel Grandin1-2/+2
Also create a Clang compiler plugin to detect such cases. Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752 Reviewed-on: https://gerrit.libreoffice.org/4001 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-05-21fdo#46808, Convert awt::XUnoControlDialog to new styleNoel Grandin2-42/+33
Change-Id: I40d2e2ddd92186a2ba22ebfbdda8367391e8d355
2013-05-21fdo#46808, Convert awt::UnoControlDialogModel to new styleNoel Grandin4-49/+33
Change-Id: I4b912034ef3f4855b87d6d6f18ff13bd1ecc8f72
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák6-153/+153
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-07fdo#46808, Convert singleton theMasterScriptProviderFactoryNoel Grandin1-12/+7
Change-Id: I647a02e552acdd354463fc46c13c5a73b1c90d09
2013-03-04doubled namespacesThomas Arnhold1-1/+0
Change-Id: I0f6a34a459c1492a69afa3ef6bcbaa8ed7639a22
2013-02-25loplugin: unused variablesThomas Arnhold1-1/+0
Change-Id: I63553a09eec81e5ae28aa79ee1d3281053b23d06
2013-02-11fdo#46808, Use singleton util::theMacroExpander new-style constructorNoel Grandin1-5/+3
And deprecate the old-style service util::MacroExpander Change-Id: Ifcefe31a8f8c68c6d44d6ec19616727eb607e1cd