summaryrefslogtreecommitdiff
path: root/basic
AgeCommit message (Collapse)Author
2013-10-17The getSupportedServiceNames implementations will already take careStephan Bergmann
Change-Id: I0c7ae8e0393f069259b943e04368e874abdf8386
2013-10-17fdo#54938: Adapt svtools and comphelper module ...Marcos Paulo de Souza
to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-15clean up SbiScanner::NextSym() a little, fdo#70319 follow-upEike Rathke
Number recognition was suboptimal and didn't properly resync scan positions after having detected an error. Change-Id: I278fdaaf17ed40560785deaaad0e3412a249d90a
2013-10-15Defer OUString -> OString conversionStephan Bergmann
...to avoid converting back OString -> OUString in SbiIoSystem::WriteCon. Change-Id: I17024891d0babaa589f2c65f1123f1905c4338bb
2013-10-14work around crappy SbiScanner::NextSym(), fdo#70319Eike Rathke
just to make test not fail that was wrong anyway Change-Id: Ibbb8214b64be0e9a82e2bde406abdcfd2e84c734
2013-10-12Nothing Unix-specific about <stdlib.h>Tor Lillqvist
Although unsure whether this source file actually uses anything declared in <stdlib.h>... Change-Id: Ibb5dfe5d0de1576a37a5f2c9cffcd9b850602b14
2013-10-12Test WNT instead of the vague UNXTor Lillqvist
Change-Id: Icacdae592f05bcdcf50223d607976d687e182c96
2013-10-12We already have SAL_CALL that means __cdecl on WindowsTor Lillqvist
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
2013-10-12Bin two unused functionsTor Lillqvist
Change-Id: I8362bfa0152f84a425ea3d461653d45c07816b92
2013-10-11CID#1103740 uninitialized valueCaolán McNamara
Change-Id: I2d10104277d8ad0781e3dd088d51d62fa759fe57
2013-10-10little String to OUString + documentationThomas Arnhold
Change-Id: I982e44150fd2909da0571409f16051d79377d7a3 Reviewed-on: https://gerrit.libreoffice.org/6192 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-10-09Improve ErrorCodeIOException messagesStephan Bergmann
...and clean up some includes. Change-Id: Ia5843cd38f967722d7173a6c87fba26064e3ffd6
2013-10-07CID#708773 unused pointer valueCaolán McNamara
Change-Id: Ib394a444882f5ffa1e0c5e833d59f4e4985479df
2013-10-07CID#707648 uninitialized memberCaolán McNamara
Change-Id: Ib8371710dd6c856b143782ca9c18f4ee76798f0e
2013-10-07CID#707646 uninitialized member variablesCaolán McNamara
also CID#707647 Change-Id: I9962bd2417119944a243d8a92711866548248e36
2013-10-07CID#707643 uninitialized membersCaolán McNamara
Change-Id: I23386c780bf484652a518d907d7dc0cc3c910040
2013-10-07CID#738564 uninitialized memberCaolán McNamara
Change-Id: I35a4d3d412b1848fe3ef8aed600471fc1c8a61d2
2013-10-07CID#707638 uninitialized membersCaolán McNamara
Change-Id: Ic0757e544e42f7ca07cddec379d2d647822d9923
2013-10-07CID#707636 uninitialized membersCaolán McNamara
Change-Id: I7eba8ac0f676a2a16dc12ed423356539aec7148b
2013-10-07CID#738563 uninitialized memberCaolán McNamara
Change-Id: I5413099beb3b30f92b58f973fa4bb03f29e7f5c3
2013-10-07sal_Bool to boolTakeshi Abe
Change-Id: Ie8e35c4342db6e2dc35fca33cee7b4d71cfcb732
2013-10-04'ist' -> 'is' here and there.Jan Holesovsky
Change-Id: I0a463c38214b95582db2c7b3979367255426c14e
2013-10-03unused StringHashCodeCaolán McNamara
Change-Id: I72b882292f62c4a2b4999fa3e553db3c617e03f4
2013-10-02sal_Bool to boolTakeshi Abe
Change-Id: I16ddbcf100e21d6c05fccbe24faca2932a605902
2013-09-25Related: fdo#38838 remove UniString::EqualsIgnoreCaseAsciiCaolán McNamara
Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
2013-09-22gbuild: add gb_Library_use_restargetMichael Stahl
Change-Id: Ic0a2fd3c1adeb55ec27f6a2eb4709be598120fba
2013-09-17convert BASIC from String to OUStringNoel Grandin
Change-Id: I4b046e4c460305acad29862341092af948639215
2013-09-12gbuild: remove gb_Rdb__get_final_targetMichael Stahl
... 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
2013-09-12CID#736166 unlikely out of boundsCaolán McNamara
Change-Id: I8a0f97be1723766df9f8fe287417365febf54966
2013-09-12CID#707499 check for 0 nDimsCaolán McNamara
Change-Id: I828339695db1b1880d7e884f8bf26911d04b8508
2013-09-11Easier conversion between Basic Date and UNO Date/TimeLionel Elie Mamane
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>
2013-09-10janitorial: c++-style castLionel Elie Mamane
Change-Id: I746eff36778e30e36b975e24c70712301c3c71cb
2013-09-07s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar
Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
2013-09-04WaE: use number() instead of valueOf()Tor Lillqvist
Change-Id: Ic45dc030f76531d202a12e227130d11d3d1de805
2013-09-03WaE: C4101: 'ex' : unreferenced local variableTor Lillqvist
Change-Id: If56eaa48c176138cd1b74da2f7f0aa71e3845894
2013-09-02GSOC work, small fixes afterGergo Mocsi
Fixed some errors after the merge. Change-Id: I8c0360d7fd04425a00dacb37f673d10efffa0ebe
2013-09-02GSOC work, multiple fixesGergo Mocsi
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
2013-09-02GSOC work, autocorrect procedures+variablesGergo Mocsi
Fixed some small issue with the right arrow key in the ListBox. Autocorrection now correct all variable types and procedure names. Change-Id: Iff1abaf10c621aef04772837faa272bb6f987e37
2013-09-02GSOC work, renaming + options fixGergo Mocsi
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
2013-09-02GSOC work, behavior fixesGergo Mocsi
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
2013-09-02GSOC work, Extended types correctionGergo Mocsi
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
2013-09-02GSOC work, renaming for consistencyGergo Mocsi
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
2013-09-02GSOC work, ListBox appearance fix (at the borders) + code fixesGergo Mocsi
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
2013-09-02GSOC work, "autocomplete procedures" fix + new featureGergo Mocsi
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
2013-09-02GSOC work, listbox appearance fixGergo Mocsi
Fixed the listbox appearance even the source file is scrolled. When scrolling, and the listbox is visible, it gets hidden. I've set the Code Completition to defaultly true, to make testing easier. Change-Id: If571a4f1d38751b35fd43ab3c1f13daccd9dd375
2013-09-02GSOC work, nested reflection fix - againGergo Mocsi
Fixed the issue when an invalid method was typed, listbox showed tha methods of the base variable. Change-Id: I88576645b373e76112103055d547f713af1fc153
2013-09-02GSOC work, implement "Autoclose parenthesis" functionGergo Mocsi
Autoclosing parenthesis function is working. Implementation is similar to autoclosing double quotes, except that this one does not need the HighlighPortion struct to use. Renamed the checkbox title to "Autoclose parenthesis". Change-Id: I4311cd8020f0dc0b62a2d8707e0eccbf57e0d2c2
2013-09-02GSOC work, implemented "Autoclose Double Quotes" optionGergo Mocsi
Feature autoclosing double quotes (strings) implemented. When the user presses the '"' key, it's pair is also being inserted (only when the previous character is also a '"'), and the cursor is being placed inside the two quotes. Also, if the there was a string (like: "aaa""), the second one is not inserted. Change-Id: I3e4a5e426d2d4bdbf56899fe3e36359ae161b52a
2013-09-02GSOC work, procedure autoclose implementationGergo Mocsi
Now, function procedure autoclose is working. Created a struct named IncompleteProcData to store the line number, type and name of the inclomplete procedure. Procedures are store in a vector (IncompleteProcedures), and are as a member in SbModule. I've created a function called SbModule::GetIncompleteProcedures() to extract the data. Data extraction uses SbModule::SetSource32, beacuse that one tokenizes sthe source file, and recognizes procedures. Closing procedures is triggered ky pressing the Enter key when typing. It checks the actual sub, and if it's incomplete, adds the correct ending( End Sub/End Function). There is only one problem: function SbModule::SetSource32 is not too often calle, maybe extraction should be done by a timer. Change-Id: Id88daaef329e8b5c194b765c5261d356bfb3a0c9
2013-09-02GSOC work, disable QuickSelectionEngine+ListBox navigation modificationGergo Mocsi
Added a function to disable QuickSelectionEngine in ListBox, beacuse it's not needed. ListBox navigation changed: it is not hiding/showing entries, instead of it, jumps to the longest match without filtering. Arrow behavior remains the same. Change-Id: I8982c280f20929c74f9630cbaa95010820d2e234