Commit Graph

333361 Commits

Author SHA1 Message Date
Gergo Mocsi
776734d8dd GSOC work, fix runtime crash
Fixes runtime crash by not checking the string length in "Autoclose Quotes" funtion.

Change-Id: I15e58a0fd487ce86b832452a562406b8155b2641
2013-09-02 18:16:50 +02:00
Gergo Mocsi
40433e2ca9 GSOC work, implemented "Autoclose Double Quotes" option
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-02 18:16:49 +02:00
Gergo Mocsi
9a7b942a0a GSOC work, procedure autoclose implementation
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-02 18:16:49 +02:00
Gergo Mocsi
d5aa9c3b23 GSOC work, disable QuickSelectionEngine+ListBox navigation modification
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
2013-09-02 18:16:49 +02:00
Noel Power
59520bd3f1 remove strange added Invalidate bits
Change-Id: I61f4a6af62d67f2fd5f421e2173cca179d399815
2013-09-02 18:16:49 +02:00
Noel Power
e70a436fe3 fix runtime error when using extended types
note: using VBA objects with the code completion is not possible at
the moment. Unfortunately there is some hard coded hacks for flattening
the namespace used by checkUnoObject.

Change-Id: Ic3a3149f41a6959943e71fa7ac22ff4dab7f30a1
2013-09-02 18:16:48 +02:00
Gergo Mocsi
edcec5b1be GSOC work, cache implementation fix, code fixes
The CodeCompleteDataCache got a new implementation: global variables are stored separately.
The "static const" OUString-s were removed from the class.
Data extraction is only done when pressing the dot key.

Change-Id: I3ff94c0c6eabe328761336d4c74744eb7efc6056
2013-09-02 18:16:48 +02:00
Gergo Mocsi
70ab744ccf GSOC work, ModalDialog instead of menu entry
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-02 18:16:48 +02:00
Gergo Mocsi
61ee2598b1 GSOC work, code complete option, menu entry fixes
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-02 18:16:47 +02:00
Noel Power
b0b511e9b5 fix compile error, cerr not defined
Change-Id: Id33342491dd9bad0ee2f1a7bc648ed669a2b92b9
2013-09-02 18:16:47 +02:00
Gergo Mocsi
3ce1f554de GSOC work menu entry + code fix
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-02 18:16:47 +02:00
Gergo Mocsi
1b8b4864c1 GSOC work window hide when clicking out
CodeCompleteWindow is hidden when clicking out: thi is implemented in
EditorWindow::MouseButtonDown: if CodeCompleteWindow is visible and
the actual TextSelection of the window and the parent's TextView is
different, hide the window (I assume the user changed selection, eg.
clicked on other line, etc.).

Change-Id: Icb6bcffa837b2f7e1ccef288b9d762e27649410b
2013-09-02 18:16:46 +02:00
Gergo Mocsi
6165d0b484 GSOC work, some code fixes
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-02 18:16:46 +02:00
Gergo Mocsi
6c1854f9f3 GSOC work, code fixes + cache implementation
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-02 18:16:45 +02:00
Gergo Mocsi
5a615ddf34 GSOC work ListBox show/hide entries when typing function name
ListBox sorts entries alphabetically.
When typing, filters the matching function names.
ListBox closes on key tab and space, beacuse I assume the user typed in the
whole function name.

Change-Id: I045b1b990b0e0af70de75c32249b7497b51b9e98
2013-09-02 18:16:45 +02:00
Gergo Mocsi
728bc0518b GSOC work Window appearance fix 2 + code fixes
Added a function to select the first entry in the ListBox by default.
Selected entry can be inserted with the ENTER key.
Fixed some code in basic code generation class (SbiCodeGen).

Change-Id: Ia6eb43ee5661a0a3ae0b738b619f19972f019eac
2013-09-02 18:16:45 +02:00
Gergo Mocsi
d03f3cd476 GSOC work, Window appearance fix
Fixed the window width to adopt size by longest entry.
Window height is set to display 8 lines, plus the scrollbar.
When selected, window can be close by the ESC key( done by PreNotify() ).
Also, renamed it to CodeCompleteWindow for consistency.

Change-Id: I9cd53c3d868cdaeb8d391547f16da7038278154b
2013-09-02 18:16:44 +02:00
Gergo Mocsi
5d95448341 GSOC work, Window instead a FloatingWindow
Changed CodeCompleteListBox into a Window which contains a single ListBox.
Navigation with arrows is enabled, window closes on ESC key.
Double click inserts the selected method into the source code.
Visible line count in ListBox is set to 8 lines, width is adopted from the
longest entry.

Change-Id: I6b6ceb0ce78f9fc727aed53952dc6ee24cba47df
2013-09-02 18:16:44 +02:00
Gergo Mocsi
5dc05ade53 GSOC work nested reflection fix
Ive fixed the parameter problem: I use the tokens created
by the syntax highlighter (it's struct HighlightPortion),
and put the identiiers to the vector, and reflect them.

Change-Id: I08888e4a8bf00fa987a16466f4a5ac03836e5ee7
2013-09-02 18:16:44 +02:00
Gergo Mocsi
5beb4be54c GSOC work week 5, some recent fixes
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-02 18:16:44 +02:00
Gergo Mocsi
5b9840955b GSOC work week4, CodeCompleteListBox appearance fix
This patch allows the pop-up CodeCompleteListBox to appear under the cursor.
It's size is fixed:150x150.
Also, I've fixed a bug in extracting the current variable name.

Change-Id: Id98cb1c29be72af07a25aac3d51561f072bf103e
2013-09-02 18:16:43 +02:00
Gergo Mocsi
6f516edc50 GSOC work week 3, showing methods in a ListBox
This patch allows the Code Completition feature to list methods in a custom ListBox class called CodeCompleteListBox.
So, when the user presses the dot("."), a ListBox appears, and listed the methods(not just prints on the terminal).
The user can select one from them, and it is put in the source code (after the dot).

Change-Id: Ie5165e7bdaae1d96bbf40a9b996ca8ebbdb40dea
2013-09-02 18:16:43 +02:00
Gergo Mocsi
025e7ff3e1 GSOC work week 2, getting infromation from variables and print on terminal
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-09-02 18:16:42 +02:00
Gergo Mocsi
f97d794654 GSOC work week 0-1, allowing BASIC to recognize UNO interfaces
Introduced a new function calles IsUnoInterface in SbiParser to determine, if
a variable is a type of an UNO interface. It uses reflection.CoreReflection to
do that, on success it returs true otherwise false.

Change-Id: I18895127bcbd92dc7a25feb5d82a7d1343bde851
2013-09-02 18:16:42 +02:00
Eike Rathke
49656398d4 simpleExtract() with variants
rsc needs to resolve all known defined languages without access to
liblangtag because that would need
/usr/local/share/liblangtag/language-subtag-registry.xml so we'd end up
with a bootstrap problem (or would have to pass the database path).

Change-Id: I6b966d45080da26cb89169cdb40cd8a58c04a276
2013-09-02 18:20:51 +02:00
Caolán McNamara
8614ff2993 Updated core
Project: help  c43188ed28a2cf2b32f459e5b45abdc46d9cdd23
2013-09-02 15:41:23 +00:00
Armin Le Grand
89d01a7d80 Resolves: #i122820# Corrected graphics creation...
allow bigger limits if directly requested

(cherry picked from commit 50f1445bda91cb44a1a1e8636ab0bcb6a8c4f381)

Conflicts:
	svx/source/unodraw/UnoGraphicExporter.cxx

Change-Id: I33576ef9f95b9f8a9fa0ab6f6d83c93ecec8da9f
2013-09-02 16:34:38 +01:00
Caolán McNamara
d649afe84b convert apply styles dialog to .ui
Change-Id: Id596ceaebc0dda3be046be89f22b6bf1a304fa4e
2013-09-02 16:32:41 +01:00
Michael Stahl
24a076337a ucb: rename "cmisucp" log area for consistency
Change-Id: Ie9ef3324bb7a9e954db57548d7862a90b070ebd3
2013-09-02 16:59:29 +02:00
Michael Stahl
b9ac217b4a ucb: add missing ucb.core log area, and ftp/ext too
Change-Id: Ifa2df0e2dcc193ae02202687c0d6b7ab930db58f
2013-09-02 16:59:29 +02:00
Ivan Timofeev
5d6a994ccc String->OUString
Change-Id: Ic7e61d002638991f2d69462d343f1b29bc9b0040
2013-09-02 18:43:09 +04:00
Ivan Timofeev
96ad9c965b String->OUString
Change-Id: I0557dcc191aab97adb6aa68ebee1970a11600f4f
2013-09-02 18:42:39 +04:00
Ivan Timofeev
45b757f1c6 remove unused vars
Change-Id: I2e7caabbc8464a2a6ee214085e7ea43ba436e030
2013-09-02 18:40:26 +04:00
Jesús Corrius
a03b1876c7 We don't support Win9x anymore, remove legacy code
Change-Id: I12afdc1c25bb09d20fd0698831642b953e08bb63
2013-09-02 16:30:41 +02:00
Michael Stahl
b23999755a fdo#68750: ensure that GetSuggestedEndOfSentence makes progress
Checking a string of 17399 spaces takes 20 seconds here in
GrammarCheckingIterator::GetSuggestedEndOfSentence() because
BreakIterator_Unicode::endOfSentence() will always return
0 as a result regardless of what nStartPos it gets.

Change-Id: Id02440a91d7015c2896e387854445ee5383092fa
2013-09-02 16:02:19 +02:00
Cédric Bosdonnat
8248dbeb71 ucb: fixed bad init of shared_ptr
Change-Id: I3d7fc2c01d58da58eb984ad5c10435f86f87f56a
2013-09-02 16:12:01 +02:00
Caolán McNamara
77173d8954 rework SwIndexTreeLB to be a SvSimpleTable to make .ui conversion easier
Change-Id: I7ce02cb53e6164e69f0d4efd9863ba16a4fab025
2013-09-02 14:50:48 +01:00
Stephan Bergmann
c5f1941b9a @RESPONSEFILE shouldn't be necessary for the few cppumaker -X arguments
Change-Id: I4d53223c12b7c8f793b236f9b2657bd339b345e9
2013-09-02 15:35:17 +02:00
Tor Lillqvist
953d466103 WaE: use of logical '&&' with constant operand
A warning that reveals what surely must be coding glitches. Thanks,
Clang.

Change-Id: Ieb1e09b91a4ab63c2ab15bb4874ac82b57c174cf
2013-09-02 16:22:21 +03:00
Viktor Varga
b8d1e88e19 pocheck now removes entries from .po files which are incorrect
Change-Id: I1749714154be9c2aea7a8623719c38601abc13ba
Reviewed-on: https://gerrit.libreoffice.org/5750
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-09-02 12:41:29 +00:00
Tor Lillqvist
7dca33cc74 WaE: implicit conversion of NULL constant to 'boost::detail::sp_nullptr_t'
Change-Id: I556d03a5bbd74faa26d73a8e84147c9743c20507
2013-09-02 15:11:16 +03:00
Tor Lillqvist
b50d3727cf WaE: unused function 'removeFragment'
Change-Id: I9f62a2eef5113e0ab1c06f818b2a64ad84c06b84
2013-09-02 15:05:35 +03:00
Eike Rathke
81c54e607b prepare to accept partial BCP47 (lll-Ssss-CC-vvvvvvvv)
Change-Id: I3c65cb43696a829f29ab573b7b6e424a39d1a547
2013-09-02 13:58:56 +02:00
Cédric Bosdonnat
f408102bd4 feature/cmis rebase: fixed uno DateTime construction
Change-Id: Ibbbbaf0445bb1cdaaf83b9449f4d4fbba6097b24
2013-09-02 13:51:57 +02:00
Cédric Bosdonnat
c33b82bd37 libcmis: add a mandatory patch for GDrive feature to properly work
Change-Id: I1bd183508b7f481feed641f8658c0baea6f743bd
2013-09-02 13:51:57 +02:00
Cédric Bosdonnat
4e2d23812c Updated libcmis to 0.4.1: only build changes for distros
Change-Id: Ie5bd26d0fd9e3cd2b590b3b1ee1753faee533d63
2013-09-02 13:51:57 +02:00
Cao Cuong Ngo
b8a6e351ff CMIS properties: make multiple values
Change-Id: I0d5ed8fbfd113940aadc117bcc7cf751be246071
2013-09-02 13:51:57 +02:00
Cao Cuong Ngo
ac11dee3db CMIS properties: fix update issue
Change-Id: Ia04c588c7491cf9a4a5430b364b52ac89adf2f90
2013-09-02 13:51:56 +02:00
Cao Cuong Ngo
5c1d9086db CMIS properties dialog: get multiple values
Change-Id: Ife7562d52cc3070c8d409f2da68d4e2aa5faea69
2013-09-02 13:51:56 +02:00
Cao Cuong Ngo
b5e2d83bd5 CMIS properties dialog: fix scroll
Change-Id: I4f65adea63267dcafa448001fed7693f55378751
2013-09-02 13:51:56 +02:00