summaryrefslogtreecommitdiff
path: root/scripting/source
AgeCommit message (Collapse)AuthorFilesLines
2014-04-21remove comments why a file gets includedThomas Arnhold1-1/+0
also remove some commented out code Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-19fixincludeguards.sh: some smaller dirsThomas Arnhold17-45/+45
Change-Id: Ic25bd678dc299627299b22145efd7bebcf2b39d0
2014-04-14Clean up function declarationsStephan Bergmann8-63/+83
Change-Id: Ie204bb9dc1fb4ded416087f5a3d962924b3dec82
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin4-30/+30
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann4-8/+8
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-03-29coverity#704287 Logically dead codeCaolán McNamara1-43/+40
Change-Id: Iab22d2d12319bc01f9aebc1dcf40f47881d40446
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann11-104/+104
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann7-187/+187
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin1-2/+2
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-10scripting: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann1-2/+1
Change-Id: If0d9a6f1c56dc560df078eb59313aaba393ee372
2014-03-07Introduce com.sun.star.beans.theIntrospection singletonStephan Bergmann2-4/+4
...deprecating com.sun.star.beans.Introspection (single-instance) service. Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
2014-03-04fdo#54938: Convert some places to use cppu::supportsServiceMarcos Paulo de Souza1-8/+2
The last cases are non obvious, so it's pratically done Change-Id: Icae1da8e238f516eaed0f7fbdf96fff778eac547 Reviewed-on: https://gerrit.libreoffice.org/8445 Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-03-03fdo#54938: Convert some places to use cppu::supportsServiceDonizete Waterkemper1-1/+1
Change-Id: Ib941c6ec82d81b1da815561eee87ee91dc8de200 Reviewed-on: https://gerrit.libreoffice.org/8443 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-02-27Remove unused ScriptingContextStephan Bergmann3-187/+0
Unused and not even built since 11ddfdb8563901bf515fa2eb07fa27244cc58ced/ 4516589f91e03fa5d8589a52ed8b72af8f9e4521 "INTEGRATION: CWS scriptingf2 (1.7.2); FILE MERGED." Change-Id: I06eec282877a91955b3f20109c3c1189b660f2da
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann32-515/+515
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from scriptingAlexander Wilms27-215/+215
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-24Replace deprecated std::auto_ptr with boost::scoped_ptrTakeshi Abe1-1/+3
Change-Id: I55292f5f0049e7c77d5bb0e5ef5fa187b815d159
2014-02-23Remove unneccessary commentsAlexander Wilms11-141/+141
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>
2014-02-02fdo#54938 Convert bridges, editeng and others to cppu::supportsServiceAlexandre Vicenzi1-42/+9
Change-Id: I7ff5189473c3e0831c2f1e95264d1a04f3b716a9 Reviewed-on: https://gerrit.libreoffice.org/7761 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-01-28bool improvementsStephan Bergmann3-5/+5
Change-Id: I0ef2adc0bd4a4764c38094b2b7d27c3453ecc117
2014-01-23Let C++ inline functions return bool instead of sal_BoolStephan Bergmann1-1/+1
...to improve diagnosing misuses of boolean expressions in client code (cf. compilerplugins/clang/implicitboolconversion.cxx). This change should be transparent to client code. Missing overloads of insert() for bool have been added to OStringBuffer and OUStringBuffer (which required dropping one !VALID_CONVERSION check that would now pick that overload, but would be flagged by compilerplugins/clang/pointertobool.cxx). Change-Id: I2d64cd923b8f47bfaa31e753def6515c29a3f8c9
2014-01-22bool improvementsStephan Bergmann3-5/+3
Change-Id: I75c137c1ed0c6089c5dfa8131ffde76cadda0134
2014-01-07remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin1-12/+12
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann5-10/+10
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17Remove unnecessary use of OUString constructor in OUStringBuffer::append callsNoel Grandin1-1/+1
Convert code like aStrBuffer.append(OUString(" AS ")); to aStrBuffer.append(" AS "); Change-Id: I8c1884b5a875f40f0b5e511b6ef38c6c8eeee656
2013-12-12Remove unnecessary macrosStephan Bergmann1-30/+27
Change-Id: I3a975ad9975c569b10f77aeee4105dec5c4f8c5e
2013-11-22remove unnecessary RTL_CONSTASCII_STRINGPARAMNoel Grandin2-2/+2
A final pass through the code, converting code to use the new OUString and OString methods that can detect string literals. Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin5-23/+22
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-14Move MediaDescriptor from comphelper to unotoolsStephan Bergmann1-4/+4
...so it will be able to use SvtSecurityOptions internally. Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
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 constructorNoel Grandin1-1/+1
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11remove unnecessary use of OUString constructor in SCRIPTING moduleNoel Grandin6-21/+20
Change-Id: I87dd775949d1d3cc2c191e84e57b49cd66ecc750
2013-11-06Drop unnecessary #includesTakeshi Abe1-1/+0
Change-Id: I9659279233067a8946a9e54be2f22439854a961e
2013-11-04remove redundant calls to OUString constructorNoel Grandin3-12/+12
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
2013-11-04Convert code that calls OUString::getStr()[] to use the [] operatorNoel Grandin1-3/+3
This also means that this code now gets bounds checked in debug builds. Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin6-7/+7
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza7-99/+18
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-10-02WaE: unused variableTor Lillqvist1-1/+0
Change-Id: If37c7b6a5de8277ecc25538b06197cdf6168878c
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann1-3/+1
Change-Id: I5e00ce258e2dc2b13dc0f7a38f5a92bd1235e81e
2013-08-21deb#719941: pythonscript.py: use open() instead of file()Rene Engelhard1-1/+1
Change-Id: Ib9f06b2b5629d149e932fe37312fdf5e8448c39f
2013-08-20deb#719941: unbreak python script provider debug logging on Python 3Michael Stahl1-1/+1
Don't mess with encoding in Logger.log, since sys.stdout.write() accepts str (in python3) and both str/unicode (in python2) anyway. Change-Id: Ib0339b7fd882a7654cc24c38efdaf67f519663ff
2013-08-19Mark as constTakeshi Abe2-2/+2
Change-Id: Ic81dd60fadecf72f25792903985f2b387df7a7a0
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist2-3/+4
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-07resolved fdo#67444 don't push_back() with already reserved sizeEike Rathke1-2/+3
Change-Id: I5660bdf07ad0adae053508bed1805369850c1134
2013-07-30fdo#67547 fix access to methods (getScript) of MasterScriptProvider from VBNoel Power1-1/+3
access to libreoffice objects ( and methods/properties of those objects ) from VB all goes through the ole automation bridge. There has been a long standing issue where the bridge falls over trying to access methods of the scripting framework MasterScriptProvider object. Change-Id: I3b9391286e1030bef2a12d6e546a5c47a4f68edb
2013-07-15Related: fdo#66761 the double-encoding bug appears gone in python 3.3.2Caolán McNamara1-5/+11
i.e. I see the bug in our built-in python3 3.3.0 but not in my system python 3.3.2 and there's a raft of email related bug fixes in the 3.3.2/3.3.1 python Changelog Change-Id: I257770cd0ec41fc3b2f2a638009b075b9a2f325f
2013-07-14Related: fdo#66761 we want the bytes, not a str representation of themCaolán McNamara1-1/+3
Change-Id: I3c268b0c51f7e1ddd2fa6588f40412a33f316b52