summaryrefslogtreecommitdiff
path: root/basic
AgeCommit message (Collapse)AuthorFilesLines
2013-04-03detect follow-on default member of default member object bnc#809017Noel Power2-0/+29
Change-Id: I366c049fc342240081957b81d2f28bfcf8d4e331 Reviewed-on: https://gerrit.libreoffice.org/2758 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org> (cherry picked from commit dd59a0a039fe4bd509d5fe456e7d6ea865bb307e)
2013-04-03Rehash basic unit test frameworkNoel Power19-233/+1629
Create new Macro helper class to help invoking macros for unittests Change-Id: Icc3cbfc3eae6ade037960497e7fe2addf1912897 (cherry picked from commit a9fc6ee7dc640f016728bf524d684696a376e989) use "doUnitTest" as the method to search for, tweak error reporting Change-Id: I0c0f4ce1304b561bf94af5444c83d8920062568b (cherry picked from commit 49417b0b68e8c9743bd6f664a5f8b4a0f3c19723) adapt existing tests to use MacroSnipper helper class Change-Id: I50980d9510b82277a5da04cc4f6c1d3ec8e7c756 (cherry picked from commit 8534787f95dfbfff24167b2160cfe07a1b70bcc6) Nested_Struct should really inherit from test::BootstrapFixture Change-Id: I06255940f41c32493187d1ec847f7238fef4e9f8 (cherry picked from commit 20f12a1d7ad5f9694f901a85e1fa22f46c3953a2) finally remove no long needed BasicTestBase Change-Id: Ic1522b0c3a292af061f5777e06e796dd82884fbf (cherry picked from commit fea9b3a99a24366b4dea22ed1b79f34046f7f521) Add some stand alone vba specific tests ( mostly vba only functions ) Change-Id: I137e93a8af67b7eec4c51348caf3d0d03dbbce73 (cherry picked from commit 76c3184813c97224cfd1e114ec13796e1da040d5) fix String->OUString foobar Change-Id: Ia924e6e8f3cfa25b131185713699d64e9d339357 (cherry picked from commit f202b21770b9d36522ff811868b911d0f1c852a6) doh! sReturnStrg is OUStringBuffer, no need to assign Change-Id: I490d20e8b494b4f59277b1cc92c73beb65a05813 (cherry picked from commit a9813b9ab307591a4c8a06fd01a4ef82126cfb18) fix WAE mbError unused Change-Id: I03bae6808008dcb0b53b1e816f3fe84739036773 (cherry picked from commit 4596120336b575d94d305c4139054afd95d2f740) remove duplicate file loading from basic_coverage ( now in MacroSnippet ) Change-Id: I1b19fec59419575fcf09d79986b6bac73ea51c9a (cherry picked from commit 46bab17e6d48c2279f4698d46f01db5404b0ba6f) unit tests and data for bnc#805071 Change-Id: I36fefa280ee922cbade676c951b753e632c9d8bb (cherry picked from commit 0f7798d86226d8e93fbd624283cd3558c7dd63fe) remove some rtl:: and RTL_CONSTASCII_USTRINGPARAM foo Change-Id: I68e2891999f306865d00b33fdfef3bc539a34e93 (cherry picked from commit 54d70501380f818fc928557590ed70e6f5a925f7) basic: make the makefile a bit nicer Change-Id: Ib606c0a9c84b35f4ab4b10dd7dc4dd82e85fcb71 (cherry picked from commit 954611cdea0ae4b0dab4f241e580c4f61792dc8b) Windows oleautobridge depends on ATL Change-Id: I94b43b03f742da7c6c8cf2e6a60ed305c1395fa7 (cherry picked from commit b0bcadf62a631b6cce5a5188f8018f266e1b99ee) Reviewed-on: https://gerrit.libreoffice.org/2757 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org> (cherry picked from commit 90a9abea38d5fb17d754b78c4452a94c1ffbdf3c)
2013-03-22resolved rhbz#919020 Basic CDbl() and CSng() scan localized numberEike Rathke1-78/+117
Code wrongly replaced decimal separator with '.' and used atof() to scan the number string which itself may be localized on *iX systems but not on Windows. Hence on *iX the numbers may had been truncated where on Windows they were not. Additionally made this work with Unicode separators if defined for the locale, removed the awkward conversion to ASCII byte string and eliminated use of toupper() and isdigit() calls. Also eliminated a possible buffer overflow. (cherry picked from commit 9e9f39d171cafa035d7b8e74187e25c3581cb89d) Conflicts: basic/source/sbx/sbxscan.cxx replace decimal separator at correct position, rhbz#919020 (cherry picked from commit e96c7a60c88bc1e3008ebdeafd59327933d6707f) Change-Id: I35d82e8f267ecb925783bf6f2de044a29c08f688 Reviewed-on: https://gerrit.libreoffice.org/2859 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com> (cherry picked from commit 96b079e24f86f7f49a624573783c6e103012f942) Reviewed-on: https://gerrit.libreoffice.org/2893 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Petr Mladek <pmladek@suse.cz> Reviewed-by: Petr Mladek <pmladek@suse.cz>
2013-03-13Fix Set/Let mixup ( from String -> OUString rework ) fdo#60752Noel Power1-1/+1
Change-Id: I56f3e8b54d80f4575937f8515e8a8d9318353b8d (cherry picked from commit 9dcfc56c7cd76de237f45cf46448c14cfbb2f45c) Reviewed-on: https://gerrit.libreoffice.org/2706 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2013-02-18fix basic access to nested uno structures fdo#60117Noel Power2-8/+250
Although basic might appear to correctly change nested struct elements fdo#60117 shows that basic can be fooled ( and even the watch(ed) variable in the debugger shows the expected values ). The problem stems from the fact that the uno object held by basic isn't infact modified when changed via the introspection uno service. Additionally pimp the existing tests to check the actual uno struct to see if the changes made are *really* reflected in the object also includes commit:0ee3d79b98af3c249f47c77a0298a80f01300be5 blind wae fix for CPPUNIT_ASSERT_EQUAL Change-Id: Iff007e17df87148ea81e69d3567c8cf9857fdcaa Reviewed-on: https://gerrit.libreoffice.org/2099 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-07fix for fdo#60065Noel Power2-0/+25
squash errors trying to gain object for rhs ( where no object yet exists ( Change-Id: I81548d1c6a32f0445dc18e31c84c3df85163ed45 Reviewed-on: https://gerrit.libreoffice.org/2003 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2013-01-07fdo#53521 Crash when running BASIC's "shell()" with a non-existent programChristopher Copits1-1/+5
The problem is that the process handle is freed regardless of whether osl_executeProcess was successful or not. Therefore, a segmentation fault would result, as a random memory address would be freed. This patch checks whether osl_executeProcess was successful. If it was, then it frees the handle; if it wasn't successful, the memory is not freed. Change-Id: Ic3af07be06e7af7730a3bcb1680c659a88b66af3 Reviewed-on: https://gerrit.libreoffice.org/1530 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit dbfc8777bf73872d1b96f956b9e778d9099d52b3)
2012-12-29fdo#58222 The BASIC HEX Command now returns uppercase hexadecimal charactersChristopher Copits1-1/+3
Instead of returning lowercase characters with BASIC's HEX command, uppercase characters are now returned. Digits from 0-9 are not affected. This change utilizes on OUString's toAsciiUpperCase() method. Change-Id: Id6ea93a7635c1913c8592bf5519bdd7391f4e3bc Reviewed-on: https://gerrit.libreoffice.org/1428 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-12-20fix crash for fdo#58306 by avoiding literal assignNoel Power1-1/+1
OUStringBuffer doesn't handler append ( if it had been previously assigned to "" literal ) Change-Id: Ief4379490a4873fbee4117db5833111943b86334
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens1-2/+0
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-28fdo#46808, Adapt reflection::ProxyFactory UNO service to new styleNoel Grandin1-6/+2
The service is deprecated, but we still have a handful of in-tree users, and converting it lets me thread XComponentContext through a bunch of classes. Change-Id: Iffdfe537ada6b9e4a89f9b3c8dd82ca85f4bfaba
2012-11-25German comment translationsMarkus Maier2-2/+2
Change-Id: I0d169b7cd0f47b6986063d0cc0b6697b1d575e6a
2012-11-23some i18n wrappers with LanguageTagEike Rathke2-4/+4
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
2012-11-22AllSettings with LanguageTagEike Rathke12-18/+21
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
2012-11-22convert users of XDocumentInfo to XDocumentPropertiesMichael Stahl1-1/+2
Change-Id: I10f395f90d554d0ec26fe9f2654ae839e21c7ee5
2012-11-20Merge branch 'feature/killsdf'Andras Timar1-1/+1
Conflicts: desktop/prj/build.lst helpcontent2 l10ntools/Executable_gsicheck.mk l10ntools/Executable_uiex.mk regexp/inc/regexp/reclass.hxx solenv/gbuild/AllLangResTarget.mk Change-Id: I398f0cd9e7daefa8d2e04fd977d5bc2e9708169b
2012-11-19Bin the HACK() sillynessTor Lillqvist1-3/+3
Change-Id: Ieeebc4098404fa006d66bb8b656172a4348b1dc1
2012-11-18PutEntry familly of functions use consistent pairing OUString/sal_Int32Norbert Thiebaud3-5/+5
Change-Id: I23ae9d3e8bf71ef9ece75ea013d18c36ab2e69d4
2012-11-18basic: fix OUString copy overrun in Mid()Norbert Thiebaud1-1/+12
Change-Id: I91cdd3a52917b89ab2a452e0eeb7a9e00dc35e8b Reported-by: vmiklos@suse.cz
2012-11-15fdo#46808, use service constructor for ucb::SimpleFileAccessNoel Grandin8-78/+65
I upgraded the service to return XSimpleFileAccess3, since it already implemented that interface, and it's backwards compatible. Change-Id: I40001a46048bd21a23b6a2f58a95376f06fc634b
2012-11-14Clean upStephan Bergmann1-38/+25
Also, avoid global static data in sb lib, so that gengal.bin now also works well on Mac OS X, cf. 12fa9ece663f24eff44197befe546a92e6c90724 "Avoid global static data." Change-Id: I23f2a7abc0c06a752ded1c1c64619b3aab009190
2012-11-14Report errors for invalid DateAdd/Diff/Part Add parameter valuesStephan Bergmann1-3/+3
...so that e.g., DateAdd("x", 1, "1/31/2004") (where "x" is not in the list of valid values for the Add parameter, "yyyy", "q", "m", etc.) leads to a Basic runtime error rather than going into a seemingly endless while(nNewMonth>nTargetMonth) loop at the end of RTLFUNC(DateAdd) (basic/source/runtime/methods.cxx). Change-Id: I15c3bdb62723ffddf36ff2396ffb294369d93ff8
2012-11-11Merge branch 'master' into feature/killsdfAndras Timar96-4671/+7502
Conflicts: Repository.mk RepositoryFixes.mk connectivity/prj/build.lst extensions/prj/build.lst filter/prj/build.lst fpicker/prj/build.lst l10ntools/StaticLibrary_transex.mk saxon/build.xml shell/prj/build.lst solenv/gbuild/AllLangResTarget.mk solenv/gbuild/Configuration.mk solenv/gbuild/UI.mk ucb/source/ucp/webdav/webdavcontent.cxx
2012-11-08fix more warning C4804 unsafe use of type boolMichael Stahl1-1/+1
... from commit bbf1bcd9ad9cc0368aef4a4de41e9538f6ad91b0 Change-Id: Ic8e52f6848e09a274133f2d8fd1c4044cae4b039
2012-11-07BasicScriptListener_Impl::firing_impl: actually this is the defaultMiklos Vajna1-1/+1
Change-Id: I0fdb522a1119da4a75094db86217449e9d940d19
2012-11-07basic: fix String -> OUString conversion in BasicScriptListener_ImplMiklos Vajna1-1/+1
Regression from commit ac476e78848ad02fd399633acbe9cb72e40d1235, the second parameter of OUString::copy() is not the end position, but the length. In practice this makes xray usable again. Change-Id: I9f345648c851b61e2e3c581bc605af7df4c12c87
2012-11-07basic: adapt dllmgr-x64.cxx to OUString changesMichael Stahl1-3/+3
Change-Id: I9e5ff5be1f001a9f55953fd516fb5ef7fe94bf44
2012-11-07Fix String -> OUString falloutTor Lillqvist1-3/+3
Change-Id: I038848aed0c64c39ca93da89b4a78bd3a1f6d7d0
2012-11-07basic: String -> OUStringNorbert Thiebaud67-2975/+3529
Change-Id: I42479b4bade5111e38d69f04c889c166f340d5ba
2012-11-05fdo#46808, Adapt i18n::Transliteration UNO service to new styleNoel Grandin2-5/+5
Simply make the service implement XExtendedTransliteration, since all of the implementatins already do that. Change-Id: If03bf56a8d33931ad0230743a4603e2ae9b104ac
2012-11-04Fix .Len -> getLengthJulien Nabet1-1/+1
Change-Id: Ibe3e97a6fa59098b9234e4aae04118abc4e37eea
2012-11-03basic add a generic unit test fixtureNorbert Thiebaud5-0/+310
basic_coverage is a generic unit test that scan qa/basic_coverage/* each file there is supposed to be a well formed Basic script that define as least a Function doUnitTest as Integer that return 1 if OK, 0 if not OK Change-Id: I6c3cfac1e7ce4748f46c04344102a0eff69b6a49
2012-11-03basic: preliminary cosmetic clean-upNorbert Thiebaud43-1049/+2593
parsing 1000s of line of code is hard enough without having to fight with weird indentation and irregular formatting. So as the review progress, in order to follow the code, cosmetic changes were made... In order to minimize the task of the reviewers and allow them to concentrate on what matter, an effort is made to collect these cosmetic changes into this separate commit. Change-Id: I3c9b04a0150d0d0a048c2e976fe24de4f2b6b98a
2012-11-03basic: OUStringification of ddectrlNorbert Thiebaud5-44/+81
Change-Id: I2af40d7c8117aff8ce62a8ea0eec579664f8bdeb
2012-11-03basic migration to OUStringNorbert Thiebaud4-71/+180
Change-Id: I1f9403174b3779801d91ba20d846191ed9a09eed
2012-11-03basic: convert StepPAD to OUStringNorbert Thiebaud1-3/+7
Change-Id: I19d05f455767c973a47d0233b3af20af1ac3a20a
2012-11-03simplify and use OUString for StepLOADNCNorbert Thiebaud1-8/+4
Change-Id: I92c86f672cc79506c2c7c56bb3402b4436f71c98
2012-11-03basic: use OUString in DimAsNewRecoverItemNorbert Thiebaud1-5/+5
Change-Id: Icfecff549161c3c429524549b65752671792a94f
2012-11-03basic: unnecessary round-trip via StringNorbert Thiebaud1-1/+1
Change-Id: I691a59b8ab9e6352a9257dac35b8e378e6ef9666
2012-11-03basic: avoid String<>OUString issue by by-passing them completelyNorbert Thiebaud1-2/+20
Change-Id: If741661f1151950a2180fa5c6504957b44a7e998
2012-11-03basic: clean-up String from eventatt.cxxNorbert Thiebaud1-38/+55
Change-Id: I78f39310dbb0a024af4268f503a6150451f12778
2012-11-03basic: String -> OUString in basicmanagerNorbert Thiebaud5-187/+236
Change-Id: I6607bfe8b6bf4d29ffd01cd88a19af5e53d616b5
2012-11-03svformatter already accept OUString inputNorbert Thiebaud1-4/+2
Change-Id: Icca8c40db4a4449876e115a0746319f3f893e846
2012-11-03basic: use OUString internaly for error messagesNorbert Thiebaud2-20/+20
Change-Id: I9ea243f93b7477814037deca2f332c3359ce527d
2012-11-03cosmetic prep-workNorbert Thiebaud1-110/+274
Change-Id: I732a8506a25f48c89cd0dc590e7305d355aa0762
2012-11-03use OUString for intermediary result in PrepareNumberFormatterNorbert Thiebaud1-8/+9
Change-Id: I9435d926beb2fd7ebe350f61634673eed7228fbe
2012-11-03cosmetic clean-upNorbert Thiebaud1-25/+90
Change-Id: Ie9569fba8b03656b9a50e9add06c8e13d0026624
2012-11-03basic: implement RIGHT with OUStringNorbert Thiebaud1-11/+8
Change-Id: Iff2150cf45569ca3d95f461495f49c455178cb5e
2012-10-30trivial empty-init String::Fill -> comphelper::padToLengthCaolán McNamara3-28/+32
Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e
2012-10-29Missing #includeStephan Bergmann1-0/+1
Change-Id: I63e68bd37b46f339d09d97a6bf6edfeaa6a7df1d