summaryrefslogtreecommitdiff
path: root/scripting/source
AgeCommit message (Collapse)AuthorFilesLines
2013-08-22deb#719941: pythonscript.py: use open() instead of file()Rene Engelhard1-1/+1
Change-Id: Ib9f06b2b5629d149e932fe37312fdf5e8448c39f Signed-off-by: Michael Stahl <mstahl@redhat.com>
2013-08-22deb#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 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2013-07-31fdo#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 (cherry picked from commit 92500896a9d0ba873c06a4a2728eb5a1b9d8f68d) Reviewed-on: https://gerrit.libreoffice.org/5206 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-15Related: fdo#66761 the double-encoding bug appears gone in python 3.3.2Caolán McNamara1-6/+14
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 (cherry picked from commit 24078e3501042e8693ef1f9d3edebbc47e37ce12) Related: fdo#66761 we want the bytes, not a str representation of them Change-Id: I3c268b0c51f7e1ddd2fa6588f40412a33f316b52 (cherry picked from commit f460556bfa6bd55df3cd4b2288524d63db284d7e) Reviewed-on: https://gerrit.libreoffice.org/4909 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-07-13Resolves: fdo#66761 Macro controlled Python Mailmerge brokenCaolán McNamara1-1/+4
Change-Id: Id8bbf06a5571534aa5eef8624e89565fe3715938 (cherry picked from commit c4aa13c931da11164835a7aafbfd7e44bd5714ca) Reviewed-on: https://gerrit.libreoffice.org/4883 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-18Resolves: fdo#55411 python 2 vs 3 str/bytes encoding issuesCaolán McNamara1-4/+7
Change-Id: Ic1aac1609f3a1fcbd0af9a1c9ecc07a735c8785a (cherry picked from commit 06f22f5ae0eafe094b280f03c770eebdbb33d403) Reviewed-on: https://gerrit.libreoffice.org/4350 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
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 (cherry picked from commit e36f83d81c462e1a5959b160886e481a8d449494)
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> (cherry picked from commit 2e2a4827ce6708f0e8677dba9cc92e1479a44086)
2013-05-24fix 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> (cherry picked from commit 2ce6828bbbf6ba181bb2276adeec279e74151ef6)
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-05-11Resolves: #ii118478# Implement getInvocationContext in PyUNO ScriptContextAriel Constenla-Haile1-5/+51
Original author: Tsutomu Uchino <hanya.runo at gmail.com> (cherry picked from commit 5de5fd495d7cdad852d1631941ae03ec213f93b7) Change-Id: Iaa0aa8b1dd6a326cd738f2e296a1b5ecdc379c65
2013-05-09fix memory leak with orphaned controls created on the flyNoel Power1-5/+33
2013-05-09handle various ReturnXXXX types for formsNoel Power1-8/+5
Change-Id: Idcbfbebafb02c734b42428c5b1d6df8d0d4a23d6
2013-05-06cleanup whitespaces due to RTL_CONSTASCII_USTRINGPARAM removalPhilipp Riemer1-4/+2
In e2e2cc61144cb22227eebfadff0ea24b51ccfbd0 the method was removed automatically leaving several line breaks etc. as visual noise.
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák1-9/+9
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks1-24/+4
2013-04-19Remove any remaining remnants of unused component_canUnload featureStephan Bergmann1-2/+0
Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane1-1/+1
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-16Missing includeStephan Bergmann1-1/+1
Change-Id: I1be082b7db5592ad5090cf3ffaafe708bb1d9be4
2013-04-07remove needless forward rtl::OUString declarationsLuboš Luňák1-4/+0
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák39-886/+885
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-27-Wunused-macrosStephan Bergmann1-2/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold1-4/+2
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19Simplify equalsIgnoreAsciiCaseAscii[L] callsStephan Bergmann1-2/+2
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold3-11/+6
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-07fdo#46808, Convert singleton theMasterScriptProviderFactoryNoel Grandin5-44/+25
Change-Id: I647a02e552acdd354463fc46c13c5a73b1c90d09
2013-03-04doubled namespacesThomas Arnhold1-1/+0
Change-Id: I0f6a34a459c1492a69afa3ef6bcbaa8ed7639a22
2013-03-04doubled includesThomas Arnhold2-5/+0
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold1-1/+1
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script: http://pastebin.ca/2327716
2013-03-03loplugin: improve indentationThomas Arnhold1-8/+9
Change-Id: If0ddaa8fd7cfaf4df8589422cb50ce37f1be2ad1
2013-02-25loplugin: unused variablesThomas Arnhold1-1/+0
Change-Id: I63553a09eec81e5ae28aa79ee1d3281053b23d06
2013-02-24move loop variables into least scope posCaolán McNamara1-3/+2
Change-Id: I8e69e92bbfee2bf20918d041ecc6b7a3f7729fbd
2013-02-24coverity#704434 Non-array delete for scalarsJulien Nabet1-1/+1
Change-Id: Ie92de56ead7988d951fe44cf63b4e72214b1e22f Reviewed-on: https://gerrit.libreoffice.org/2358 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-24loplugin: unused variablesThomas Arnhold1-3/+0
Change-Id: I7fc203900256839e679bf73b717d121fedc42087
2013-02-22s/the the/the/Tor Lillqvist1-2/+2
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-22scripting: s/pathes/paths and s/Pathes/PathsMiklos Vajna1-15/+15
Change-Id: I58d8e8dc9c6a6864206d923165d075114368c866
2013-02-19fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTRadu Ioan1-3/+4
- replaced osl_trace with sal_info - added new log areas to log-area.dox Change-Id: Ib47c4b4c9604bca1f8a635dd01bb89702b47b591 Reviewed-on: https://gerrit.libreoffice.org/2010 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-11fdo#46808, convert io::TextOutputStream service to new-styleNoel Grandin1-65/+57
Change-Id: I12af47afc21c2b646197893a77698f4e0818f94f
2013-02-11fdo#46808, convert io::TextInputStream service to new styleNoel Grandin1-105/+96
Change-Id: Ida4abdd6587399aa8ade88af672bcb23ab7ea0f1
2013-02-11fdo#46808, Use singleton util::theMacroExpander new-style constructorNoel Grandin2-12/+7
And deprecate the old-style service util::MacroExpander Change-Id: Ifcefe31a8f8c68c6d44d6ec19616727eb607e1cd
2013-01-30Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRINGJean-Noël Rouvignac8-59/+57
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd Reviewed-on: https://gerrit.libreoffice.org/1924 Tested-by: Luboš Luňák <l.lunak@suse.cz> Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-15make emailmerge work with python3 and python2 at the same timeCaolán McNamara1-5/+12
Change-Id: I6289b522513a2fc86e261c85a04ca9c89fd55b63
2013-01-15tidy mailmerge debuging messagesCaolán McNamara1-16/+16
Change-Id: Ibca2af0efa448ed4c2c5b7ad73febf16cbf03480
2013-01-15make emailmerge work for me with python3Caolán McNamara2-10/+29
Change-Id: I4f79aa69b39d2be8fcceacc90b858f116f875385
2013-01-15i118814 - Allow set connection timeout in Mail APIAriel Constenla-Haile1-6/+22
Conflicts: scripting/source/pyprov/mailmerge.py Change-Id: I7a3eb3b29f41eed154abd45e1aa5be824983f5de
2013-01-15i118791 - Encode ReadableName in UTF-8 only when necessaryAriel Constenla-Haile1-1/+6
Conflicts: scripting/source/pyprov/mailmerge.py Change-Id: I5275bdbbc21f422248a32b824ea6de965c23abd0
2013-01-15i118736 - i118787 : fix XMailMessage implementation in mailmerge.pyAriel Constenla-Haile1-24/+25
(cherry picked from commit 4166969f3b8ed05e91c10a724ce7bd39074012a1) Conflicts: scripting/source/pyprov/mailmerge.py Change-Id: I794735f02db1efe04b323fed9db5458242e5c16a
2013-01-14mailmerge.py: fix the debug strings againMichael Stahl1-3/+3
Change-Id: Iceac0952b6fc9765cb12f6694260070c1c17296b
2013-01-14fdo#59249: mailmerge.py: adapt to changes in smtplib:Michael Stahl1-8/+17
Apparently the login() method in Python 3.3 expects str arguments for user and password, since it calls encode on them, but for Python 2.6 the "encode" calls were explicitly added in the caller since login() does not encode itself; add an ugly version check for that. Change-Id: Iebfce44073a837e9cb845855ba448d5b6a2ebd11