summaryrefslogtreecommitdiff
path: root/basic/source/classes/sbxmod.cxx
AgeCommit message (Collapse)Author
2013-09-02GSOC work, ModalDialog instead of menu entryGergo Mocsi
Created a ModalDialog named CodeCompleteOptionsDlg to edit options for code completition/suggestion. Unimplemented features in it are disabled. The dialog window uses Glade .ui file. Change-Id: I1b59f386a9575aa25b38c5a1d7d1f020498a69ab
2013-09-02GSOC work, code complete option, menu entry fixesGergo Mocsi
Menu entry is added under View->Enable Code Completition when in Experimental mode. Fixed the call of funtion SbModule::GetCodeCompleteDataFromParse() to be called only when code completition is enabled. Replaced the occurences of SvtMiscOptions to CodeCompleteOptions. Change-Id: If0520123ab5f612d7d24fb98f8e9bf6881af76cb
2013-09-02GSOC work menu entry + code fixGergo Mocsi
Fixed the definition of GLOB_KEY, NOT_FOUND from const to static const. Added a new menu entry for code completition under View->Enable Code Completition. Change-Id: If8ac25ee43a7ba780ccdee2e5e909777115a1f27
2013-09-02GSOC work, some code fixesGergo Mocsi
Fixed the link error: declared CodeCompleteDataCache as BASIC_DLLPUBLIC and it worked fine. Fixed sergmentation fault error in CodeCompleteWindow. The new cache implementation is fully functional. CodeCompleteWindow is now being used as boost::scoped_ptr. Change-Id: I76a0fc7407d589e7f94280fc4d50cea51b9639db
2013-09-02GSOC work, code fixes + cache implementationGergo Mocsi
WARNING: cache implementation gives a link error to it's methods. Created the cache called CodeCompleteDataCache in file include/basic/codecompletecache.hxx This class should replace the std::vector< CodeCompleteData > int file baside2b.cxx When issuing command "make basic", it compiles fine, but, when "make basctl", it gives a link error (ld returned status 1) to CodeCompleteDataCache's methods. Change-Id: If78c6533b7fb5653cc459d22b80c98d097b886eb
2013-09-02GSOC work week 5, some recent fixesGergo Mocsi
This week I've managed to fix the ListBox appearance. Also, I've modified the code: it gets the data on insert/remove/change, and gets updated only when the dot is pressed. This makes the data to be up-to-date. Next, I wrote a Split(OUString , char) function to do the nested reflection (It works, but it will need some tweaks later). Also, code generation is disabled for code completition (just a boolean value, maybe it could be done in a more "elegant" way, like the error supression). Change-Id: I43d250c0a065351950ac6424dcd88266d70bcef3
2013-09-02GSOC work week 2, getting infromation from variables and print on terminalGergo Mocsi
This is an early version. I use the BASIC parser to parse the source, then the infromation is extracted from the symbol table built by parser. Error reporting is suppressed, beacuse it is not needed fro code completition. I placed my function inside SbModule, and created a struct called CodeCompletitionData, which holds the object's name, it's parent, and it's type name. This function, SbMethod::GetCodeCompleteDataFromParse() is called from Basic IDE's Notify function, which updates a cache(actually, reassigns a viariable :) ). Later, in the EditorWindow::KeyInput function there is a check wheteher dot key is pressed. After that, the actual variable (or word) is being looked up in the vector that holds code completition data. And finally, if it is found, it's methods are printed on the terminal. Change-Id: Idaf19baa8f720b8b117a76dc3cc2f90dd04fd155
2013-04-26some more namespace cleanupThomas Arnhold
Change-Id: Ib1e80d717f199db8f8ac4181d4377a86d88e3244
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
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 Bergmann
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-13Fix Set/Let mixup ( from String -> OUString rework ) fdo#60752Noel Power
Change-Id: I56f3e8b54d80f4575937f8515e8a8d9318353b8d
2013-03-04remove unused and commented out codeThomas Arnhold
This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script: http://pastebin.ca/2327716
2013-02-16Move SyntaxHighlighter class from svtools to comphelperAndras Timar
We use this class in helpcompiler, and it is not desirable to compile svtools (thus half of LibreOffice) for a build tool in cross-compiling environment. Change-Id: I5e6bc3e576af41eb03c1420dd347c542306f69fa
2013-02-11fdo#46808, Use service constructor for awt::DialogProviderNoel Grandin
Change-Id: I5d0a3e66afeadafa6d53ff0a255d036b7e3d528d
2013-01-14fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTRadu Ioan
- Clean up OSL_ - Clean up DBG_ - Clean up OUString Change-Id: I002d17ffbbd8371b0518ede34931b2eea30865a3 Reviewed-on: https://gerrit.libreoffice.org/1602 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-12-21fdo#46808, Convert frame::Desktop to new style service.Noel Grandin
I had to drop XEventBroadcaster from the merged interface because it introduced method name conflicts (addEventListener). Shouldn't be an issue since it was scheduled to be dropped anyhow, and the service implementation still implements it, so existing clients will be fine. I dropped the interface XPropertySet from the combined IDL because nobody seems to be using it, and it's primary purpose appears to be to set weird flags. I dropped the optional interfaces XStatusIndicatorFactory XDispatchInformationProvider from the combined IDL because the service does not implement them, and nobody seems to be using them. I suspect they were mistakenly copied from XFrame. I also did not convert the Title, UserDefinedAttributes and LayoutManager properties to attributes, again because no-one is using them. Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-11-28fdo#46808, Adapt reflection::ProxyFactory UNO service to new styleNoel Grandin
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-07basic: String -> OUStringNorbert Thiebaud
Change-Id: I42479b4bade5111e38d69f04c889c166f340d5ba
2012-11-03basic: preliminary cosmetic clean-upNorbert Thiebaud
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-09-29Use comphelper::getComponentContextStephan Bergmann
...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-25replace remaining InterlockedCount() with inlined versionNorbert Thiebaud
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: https://gerrit.libreoffice.org/671 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-12-Werror=unused-parameterStephan Bergmann
Change-Id: I2a83ecd010c2d85b5596172102d24b5063ace159
2012-09-12fix build issueNoel Power
2012-09-12targetted VBA re-work.Noel Power
2012-09-07sal_Bool to boolTakeshi Abe
Change-Id: Ie8a128db35bebcdcee5eda984a7875339418d9bb
2012-08-21sal_Bool to boolTakeshi Abe
Change-Id: I38141187c4f0809343a93c5765c0773d2321968a
2012-08-15sal_Bool to boolTakeshi Abe
Change-Id: I784fb31bad1ff02987c24abbac04b38207a1f5cf
2012-07-20XubString->rtl::OUStringCaolán McNamara
Change-Id: I584ff580e3c8eee401f07c858ecbd63e5b0bf980
2012-07-18re-base on ALv2 code. Includes:Michael Meeks
118568: switch to using ucpp Patch contributed by Juergen Schmidt http://svn.apache.org/viewvc?view=revision&revision=1209396
2012-07-04dr80: #i117392# initialize VBAGlobals object if single Basic module is in ↵Daniel Rentz [dr]
VBA mode, do not expect existing parent sheet in implementation of Excel.Application.ActiveCell
2012-06-28probably the last uses of the one argument String::CreateFromAscii variantCaolán McNamara
Change-Id: I36aab317da2f69f12aaefc24895ad9eaa6b69a7c
2012-06-02targeted string re-workNorbert Thiebaud
Change-Id: Ia651a93951da514105183775a5f49d031a192937
2012-04-20WaE: MSVC2008 C2220 unsafe mix of types in operationCaolán McNamara
2012-03-28removed duplicate includes in avmedia / basic / canvas / chart2 / comphelperTakeshi Abe
2012-01-26Deleting a null pointer is safeTakeshi Abe
2012-01-16Remove SbErrorStack[Entry]August Sodora
2012-01-15remove useless misleading macrosDavid Tardon
2012-01-06make ReadUniOrByteString return a stringCaolán McNamara
2011-12-21disentangle Read/WriteByteString OUString variantsCaolán McNamara
The ones which use a definite 8-bit encoding read/write pascal-style strings with a 16bit length prefix. The ones which use a definite 16-bit encoding read/write pascal-style UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending on the charset. Rename to ReadUniOrByteString like the other similar horrors to flag this misery
2011-12-21bah, need to tweak for pre c++0xCaolán McNamara
This reverts commit d00fc0e293852cfc019ffaffa65bee327397677b.
2011-12-21disentangle Read/WriteByteString OUString variantsCaolán McNamara
The ones which use a definite 8-bit encoding read/write pascal-style strings with a 16bit length prefix. The ones which use a definite 16-bit encoding read/write pascal-style UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending on the charset. Rename to ReadUniOrByteString like the other similar horrors to flag this misery
2011-12-12German translationsNoel Grandin
By Mike Whiteley/Noel Grandin, some smaller changes by myself; changes to binfilter removed from patch
2011-12-09callcatcher: remove unused code post automation removalCaolán McNamara
2011-11-27rmove include of pch header in basicNorbert Thiebaud
2011-11-25gsl_getSystemTextEncoding -> osl_getThreadTextEncodingDavid Tardon
2011-11-06StaticIsEnabledBroadcasting can only be trueCaolán McNamara
2011-09-29callcatcher: unused codeCaolán McNamara
2011-08-24catch ignored exceptions by const referenceTakeshi Abe
2011-08-23make sure dialog api object is reset when window is closed ( but not vetoed )Noel Power