summaryrefslogtreecommitdiffstats
path: root/basic
Commit message (Collapse)AuthorAgeFilesLines
* fixincludeguards.sh: basicThomas Arnhold2013-10-2836-76/+76
| | | | Change-Id: Id797a8969e42876092da347d8e1bba6195b697dc
* windows: warning 4355 is disabled globally in com_MSC_defs.mkThomas Arnhold2013-10-281-5/+0
| | | | | | So there is no need to do this locally, too. Change-Id: I0fa1d0cd3e077ba0985848a9d2cbb061b123e8ad
* clean up places accessing the NULL at the of an OUStringNoel Grandin2013-10-232-9/+13
| | | | | | | | | There were only a couple of real bugs fixed, but we're a little bit safer now. This also fixes the assert and the comment in OUString::operator[] about this. Change-Id: Ibe16b5794e0ba7ecd345fa0801586d25b015974c
* Bin comments that claim to say why some header is includedTor Lillqvist2013-10-227-9/+9
| | | | | | They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
* Resolves: fdo#38838 remove UniStringCaolán McNamara2013-10-221-1/+1
| | | | | | hammer silver nails into coffin and bury in concrete Change-Id: I3fda2ff47738bb33793adab97faba2d439ac9a28
* fdo#68849 add some header guardsThomas Arnhold2013-10-212-0/+10
| | | | | | | Change-Id: I9d25a58f22095689eccc0ac444c163d1e9bee69f Reviewed-on: https://gerrit.libreoffice.org/6364 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* The getSupportedServiceNames implementations will already take careStephan Bergmann2013-10-171-1/+0
| | | | Change-Id: I0c7ae8e0393f069259b943e04368e874abdf8386
* fdo#54938: Adapt svtools and comphelper module ...Marcos Paulo de Souza2013-10-171-12/+2
| | | | | | | to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* clean up SbiScanner::NextSym() a little, fdo#70319 follow-upEike Rathke2013-10-152-51/+74
| | | | | | | Number recognition was suboptimal and didn't properly resync scan positions after having detected an error. Change-Id: I278fdaaf17ed40560785deaaad0e3412a249d90a
* Defer OUString -> OString conversionStephan Bergmann2013-10-153-20/+15
| | | | | | ...to avoid converting back OString -> OUString in SbiIoSystem::WriteCon. Change-Id: I17024891d0babaa589f2c65f1123f1905c4338bb
* work around crappy SbiScanner::NextSym(), fdo#70319Eike Rathke2013-10-141-1/+3
| | | | | | just to make test not fail that was wrong anyway Change-Id: Ibbb8214b64be0e9a82e2bde406abdcfd2e84c734
* Nothing Unix-specific about <stdlib.h>Tor Lillqvist2013-10-121-2/+0
| | | | | | | Although unsure whether this source file actually uses anything declared in <stdlib.h>... Change-Id: Ibb5dfe5d0de1576a37a5f2c9cffcd9b850602b14
* Test WNT instead of the vague UNXTor Lillqvist2013-10-122-16/+9
| | | | Change-Id: Icacdae592f05bcdcf50223d607976d687e182c96
* We already have SAL_CALL that means __cdecl on WindowsTor Lillqvist2013-10-121-8/+1
| | | | | | | | | | | Not that there should be any need to use it here; it is the default anyway. Also the extern "C" is bogus here as far as I know; that affects only the external name of the function, and that a function is passed to bsearch() doesn't set any requirements on the external name of it. It could be a static function with no global symbol name. But oh well. Change-Id: Ia264bf2f952fd6f38aa36a25a084383d4d3f1bdc
* Bin two unused functionsTor Lillqvist2013-10-121-10/+0
| | | | Change-Id: I8362bfa0152f84a425ea3d461653d45c07816b92
* CID#1103740 uninitialized valueCaolán McNamara2013-10-111-1/+1
| | | | Change-Id: I2d10104277d8ad0781e3dd088d51d62fa759fe57
* little String to OUString + documentationThomas Arnhold2013-10-101-1/+1
| | | | | | | Change-Id: I982e44150fd2909da0571409f16051d79377d7a3 Reviewed-on: https://gerrit.libreoffice.org/6192 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* Improve ErrorCodeIOException messagesStephan Bergmann2013-10-091-4/+11
| | | | | | ...and clean up some includes. Change-Id: Ia5843cd38f967722d7173a6c87fba26064e3ffd6
* CID#708773 unused pointer valueCaolán McNamara2013-10-071-3/+3
| | | | Change-Id: Ib394a444882f5ffa1e0c5e833d59f4e4985479df
* CID#707648 uninitialized memberCaolán McNamara2013-10-071-0/+1
| | | | Change-Id: Ib8371710dd6c856b143782ca9c18f4ee76798f0e
* CID#707646 uninitialized member variablesCaolán McNamara2013-10-071-2/+6
| | | | | | also CID#707647 Change-Id: I9962bd2417119944a243d8a92711866548248e36
* CID#707643 uninitialized membersCaolán McNamara2013-10-071-1/+6
| | | | Change-Id: I23386c780bf484652a518d907d7dc0cc3c910040
* CID#738564 uninitialized memberCaolán McNamara2013-10-071-0/+1
| | | | Change-Id: I35a4d3d412b1848fe3ef8aed600471fc1c8a61d2
* CID#707638 uninitialized membersCaolán McNamara2013-10-071-1/+3
| | | | Change-Id: Ic0757e544e42f7ca07cddec379d2d647822d9923
* CID#707636 uninitialized membersCaolán McNamara2013-10-071-1/+3
| | | | Change-Id: I7eba8ac0f676a2a16dc12ed423356539aec7148b
* CID#738563 uninitialized memberCaolán McNamara2013-10-071-1/+5
| | | | Change-Id: I5413099beb3b30f92b58f973fa4bb03f29e7f5c3
* sal_Bool to boolTakeshi Abe2013-10-074-30/+30
| | | | Change-Id: Ie8e35c4342db6e2dc35fca33cee7b4d71cfcb732
* 'ist' -> 'is' here and there.Jan Holesovsky2013-10-041-1/+1
| | | | Change-Id: I0a463c38214b95582db2c7b3979367255426c14e
* unused StringHashCodeCaolán McNamara2013-10-031-8/+0
| | | | Change-Id: I72b882292f62c4a2b4999fa3e553db3c617e03f4
* sal_Bool to boolTakeshi Abe2013-10-028-67/+67
| | | | Change-Id: I16ddbcf100e21d6c05fccbe24faca2932a605902
* Related: fdo#38838 remove UniString::EqualsIgnoreCaseAsciiCaolán McNamara2013-09-251-3/+3
| | | | Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
* gbuild: add gb_Library_use_restargetMichael Stahl2013-09-221-2/+1
| | | | Change-Id: Ic0a2fd3c1adeb55ec27f6a2eb4709be598120fba
* convert BASIC from String to OUStringNoel Grandin2013-09-175-23/+23
| | | | Change-Id: I4b046e4c460305acad29862341092af948639215
* gbuild: remove gb_Rdb__get_final_targetMichael Stahl2013-09-121-0/+2
| | | | | | | | ... by replacing gb_Rdb_install with a separate constructor so the right target can be registered at the module. There is still an ugly special case for the ure/services. Change-Id: I81c004143f201aaf38daca99819888313ee24f49
* CID#736166 unlikely out of boundsCaolán McNamara2013-09-122-2/+6
| | | | Change-Id: I8a0f97be1723766df9f8fe287417365febf54966
* CID#707499 check for 0 nDimsCaolán McNamara2013-09-121-1/+1
| | | | Change-Id: I828339695db1b1880d7e884f8bf26911d04b8508
* Easier conversion between Basic Date and UNO Date/TimeLionel Elie Mamane2013-09-119-27/+235
| | | | | | | | | | | | | | | | | | | | | Utility functions to convert between Basic Date type and the representations of Date and Time in UNO, namely: - com.sun.star.util.Date - com.sun.star.util.Time - com.sun.star.util.DateTime Name of new functions: - CDateToUnoDate - CDateFromUnoDate - CDateToUnoTime - CDateFromUnoTime - CDateToUnoDateTime - CDateFromUnoDateTime Change-Id: I2b971df20df1c0351d071023e042169b548894f1 Reviewed-on: https://gerrit.libreoffice.org/5897 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
* janitorial: c++-style castLionel Elie Mamane2013-09-101-1/+1
| | | | Change-Id: I746eff36778e30e36b975e24c70712301c3c71cb
* s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar2013-09-071-1/+1
| | | | Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
* WaE: use number() instead of valueOf()Tor Lillqvist2013-09-042-2/+2
| | | | Change-Id: Ic45dc030f76531d202a12e227130d11d3d1de805
* WaE: C4101: 'ex' : unreferenced local variableTor Lillqvist2013-09-031-1/+1
| | | | Change-Id: If56eaa48c176138cd1b74da2f7f0aa71e3845894
* GSOC work, small fixes afterGergo Mocsi2013-09-021-2/+2
| | | | | | Fixed some errors after the merge. Change-Id: I8c0360d7fd04425a00dacb37f673d10efffa0ebe
* GSOC work, multiple fixesGergo Mocsi2013-09-022-3/+4
| | | | | | | | Code completion: parser recognizes extended types ony when the checkbox is checked. Fixed a crash caused by a misspelled uno type. Fixed function CodeCompleteDataCache::Clear() to clear both internal variables. Change-Id: I82fdd2e1cf749237e2e2de4a9a2fc7d07fb7eb4a
* GSOC work, autocorrect procedures+variablesGergo Mocsi2013-09-022-26/+9
| | | | | | | Fixed some small issue with the right arrow key in the ListBox. Autocorrection now correct all variable types and procedure names. Change-Id: Iff1abaf10c621aef04772837faa272bb6f987e37
* GSOC work, renaming + options fixGergo Mocsi2013-09-021-5/+5
| | | | | | | Options now work correctly: I've added the missing function. Rename: renamed some variables and methods to kep the consistence( Autocorrect keywords -> Autocorrect). Change-Id: I6b4914575f1a06eb3268c133b8b990364e3d24e4
* GSOC work, behavior fixesGergo Mocsi2013-09-025-2/+28
| | | | | | | | | | | | Code completition: left/right arrow keys handled. Left arrow dismisses the dialog when reaches the dot. Right arrow dismissed the dialog when reaches the next line. ListBox appearance fixed. TAB key can insert the first matching entry. Autocorrect: "Autocorrect Keywords" has been renamed to "Autcorrect" (in the UI, and the config file, after this patch a make dev-install is needed). Keyword case correction is not just capitalizing the first letter ( eg. Elseif -> ElseIf ). Autoclose procedures: cursor is being placed inside the preocedure. Change-Id: Ie7e9ae96b49bd94562db83f96e1c4ad63ab3f3d6
* GSOC work, Extended types correctionGergo Mocsi2013-09-021-4/+1
| | | | | | | | Stucts can be autocompleted when extended types disabled. Created two functions to make the code brighter. They extract the methods/fields from an XIdlClass and return them in a std::vector<OUString>. I had to modify file basic/source/comp/dim.cxx, to check on UNO types when code completition is on. Change-Id: Id93a6fe896424efb7868f6102985f59fb419b17e
* GSOC work, renaming for consistencyGergo Mocsi2013-09-021-12/+8
| | | | | | | | | | Menu enrty was renamed to IDE Options under View. SID_BASICIDE_CODECOMPLETE was renamed to SID_BASICIDE_IDEOPTIONS. CodeCompleteDlg was rename to BasicIDEOptionDlg. Ui file was renamed to basicideoptionsdialog.ui. Checkbox for extended types is now independent from code complete one. Change-Id: Id862df0ee56cdf2aa81e19a34099fe679ad5d311
* GSOC work, ListBox appearance fix (at the borders) + code fixesGergo Mocsi2013-09-023-2/+19
| | | | | | | | | | | | | ListBox appearance fixed at the borders: a) bottom: it it placed over the current line (not under) b) right side: listbox's right side is adjusted to the window's right side Coed fixes: CodeCompleteOptions now intializes itself from the configuration file BasicIDE.xcs Added a checkbox for enabling extended types in the options dialog. Cursor is visible when the listbox is active. Fixed the small issue when deleting a character. Change-Id: I68b80143de245cebfce65cdd8af37ea4694aa81b
* GSOC work, "autocomplete procedures" fix + new featureGergo Mocsi2013-09-022-27/+36
| | | | | | | | | Fixed the procedure autoclose function. Now, autoclose is based on the syntax higlighter: if finds an opening token, starts searching forward to a close token. If there is another sub/function keyword, or EOF is reached, the procedure is considered incomplete. If the end token is found, the procedure is considered to be closed. Added function autocorrect symbol spelling, wich corrects the ascii case of the keywords, and corrects the spelling of the extended types. Change-Id: Ibd17f319a6d6ff5c3f91f4adb7a10dc701f0468a