Commit Graph

333614 Commits

Author SHA1 Message Date
Tor Lillqvist
1bf008c67f Update a few library names
Change-Id: I17c575ce0d4ba55a47a97d86c69a00ef7f822838
2013-09-03 00:41:07 +03:00
Stephan Bergmann
e486f1612d No need to install non-SONAME versions of icu libs
Change-Id: Ica8057c70f5e4b63830c6ffe7fb85269a10b845f
2013-09-02 23:08:51 +02:00
Julien Nabet
fd636fe722 Remove unused writeDBLoaderInfo
See http://nabble.documentfoundation.org/About-writeDBLoaderInfo-function-in-dbloader-cxx-dbaccess-module-td4072511.html

Change-Id: I11b8ff569eaaa8ddcaf105e45ef4ee189e71c183
2013-09-02 22:50:17 +02:00
Caolán McNamara
91a557561c bDel is unused uninitialized
Change-Id: Idac3a6805700d896b8569d1df79d32ca493c48b3
2013-09-02 21:39:08 +01:00
Marcos Paulo de Souza
1dd686175f fdo#43090: Last fix for autoclose brackets in Math
We need to swap values of selection in Math when they're make in RTL selection, because Math don't support RTL.

Change-Id: I4f8acfb560fa486ecc9f2569f1f331fa6f28d2d4
Reviewed-on: https://gerrit.libreoffice.org/5722
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-02 20:17:51 +00:00
Philipp Riemer
6bb2da3f69 fdo#62475 - remove visual noise
Change-Id: Ic944fc45aded66939a2fc1622536eb3f2d80d764
2013-09-02 22:09:04 +02:00
Philipp Riemer
3c48673ff7 Delete wrong comment
This indicates that there should follow the private methods in this class.
However, the visibility constraint "private" was never in this code since it
was added in 2009. So I delete it.

See:
$> git log -u -- framework/source/uiconfiguration/imagemanagerimpl.hxx
ca00697e3d (Sep 8th 2009)

Change-Id: Iac82b79d8cf6cc0c796a5ee97be25d2d24f4fa48
2013-09-02 22:09:04 +02:00
Marcos Paulo de Souza
fef9a991d4 Math: fix focus in Elements Dock
When click in Elements Dock, we need to put focus in formula edit. Elements window do
this, so this needs to be done in Elements Dock too.

Change-Id: I8265d85fcf997344d8269345260499b3690521cb
Reviewed-on: https://gerrit.libreoffice.org/5760
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-02 20:04:28 +00:00
Caolán McNamara
8f6b90a80c stop annoying temp full screen windows appearing on insert->index entry
Change-Id: I730617f5ce28149f79d1d22efbfb7eab22e5840d
2013-09-02 21:00:05 +01:00
Caolán McNamara
42f1ce529d unused string resource
Change-Id: Icea434caf7a5de1131bcba72b2133f8643428ecd
2013-09-02 20:25:47 +01:00
Armin Le Grand
7c03fc2fe7 Related: #i123048# Corrected connector layout after reload
(cherry picked from commit c7d96eed93415894c5ca4522bd32ca06acd88233)

Conflicts:
	svx/inc/svx/svdoedge.hxx
	svx/source/svdraw/svdoedge.cxx

Change-Id: Id388fa7396751a2e8b5908373ca57eceee1a1af1
2013-09-02 20:16:18 +01:00
Philipp Weissenbacher
69895a60c8 Translate German comments
Change-Id: I0c6f2fbd05b3a80826f3bed1b5ac2a1170d6ea5e
Reviewed-on: https://gerrit.libreoffice.org/5753
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-09-02 18:31:14 +00:00
Philipp Weissenbacher
2f96e36c32 Translate German comments
Change-Id: I6a7183e8345f9e076fb15c692392cb4029c14640
Reviewed-on: https://gerrit.libreoffice.org/5752
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-09-02 18:29:54 +00:00
Tor Lillqvist
071948d452 WaE: statement aligned ... [loplugin]
Change-Id: I80256c748fecf1e5d7ffa73fdcde0ed453455b72
2013-09-02 21:04:10 +03:00
Tor Lillqvist
3c4c6bbdfa WaE: unused variables
Change-Id: I0c93ca3875d8cd6fe009018e79847142b4e64bfd
2013-09-02 20:49:30 +03:00
Gergo Mocsi
d3ff876f3c GSOC work, small fixes after
Fixed some errors after the merge.

Change-Id: I8c0360d7fd04425a00dacb37f673d10efffa0ebe
2013-09-02 18:17:03 +02:00
Gergo Mocsi
d9e81b8540 GSOC work, renaming+listbox right side fix
Fixed the small bug in positioning the listbox to the right side.
Function ResizeListBox was renamed to ResizeAndPositionListBox.

Change-Id: I3cea54ad5658ee1628935b4975f52fe78c1ff5c3
2013-09-02 18:17:03 +02:00
Gergo Mocsi
7f9597903f GSOC work, fix the clipped listbox
Listbox clipping works correcly on the right side and on the bottom.
The function calculations are done from the initial position: if the actual X/Y coordinate + width/height exceeds the visible area, listbox is poitioned up/a bit left.

Change-Id: I17ff28cd23423819b55d7079c6d35484b567899c
2013-09-02 18:17:03 +02:00
Gergo Mocsi
e7e667fd36 GSOC work, fixed clipping of the listbox in the bottom
Listbox positioning on the bottom is corrected.

Change-Id: I75af0ff68b24ad26e9c9bd41d91a6ac9d1fa9d1c
2013-09-02 18:17:02 +02:00
Gergo Mocsi
251990c063 GSOC work, arrow navigation+TextSelection problems fixed
I've added a new function called EditorWindow::GetLastHighlightPortionTextSelection, which gets the last edited word (from the highlight portion), and creates a TextSelection from it. Later, this is used to remove/replace text in the listbox when pressing the tab key. The proble was, that is cleared the whole line, but now, it just clears the newly edited word.

Change-Id: I61b6721696e89002705c9980579023b42ad1faaa
2013-09-02 18:17:02 +02:00
Gergo Mocsi
f05fa6e67f GSOC work, fix strange TextPaM errors
Wrong TextPaM's caused the autocorrection to insert the string multiple times, this is now fixed. I use the values from the HighlightPortion struct.

Change-Id: I5ff5f01c06738088639186c35eb58ee9ff497d95
2013-09-02 18:17:01 +02:00
Gergo Mocsi
755a74906e GSOC work, multiple fixes
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-02 18:17:01 +02:00
Gergo Mocsi
31f3859884 GSOC work, options fix
Tools/Options are now saving correctly.
I've added a check for empty string in EditorWindow::HandleCodeCompletition.

Change-Id: Ib5d75fe840e3c3fd12cd7175fb7828b8a1d76db6
2013-09-02 18:17:00 +02:00
Gergo Mocsi
d977f59514 GSOC work, small fixes
Some code fixes in function EditorWindow::HandleAutoCorrect():
updating the module and getting the data from parse is necessary(not just when code complete is on).
Removed some duplicate code when checking for the type of the actual highlight portion.

Change-Id: I29a62dae23f2c28e54f9185ac59ff2747c64e0d7
2013-09-02 18:17:00 +02:00
Gergo Mocsi
67596f4cc6 GSOC work, autocorrect procedures+variables
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-02 18:17:00 +02:00
Gergo Mocsi
2f3f5dced8 GSOC work, small code fixes
Added some constants for CodeCompleteWindow::ResizeListBox().
Simplified a condition is EditorWindow::HandleAutoCorrect().

Change-Id: If8aa34273b6170130d95a309ed385a5152418b76
2013-09-02 18:16:59 +02:00
Gergo Mocsi
a8d78a367e GSOC work, simplify CodeCompleteWindow::ResizeListBox
Now all calculations are done in this function, plus the initial TextSelection is passed as a parameter (it it needed to determine the location of the ListBox).
Some local variables were made constant.

Change-Id: I36942ded72cc988c8fd5114e0d666f447b80d396
2013-09-02 18:16:59 +02:00
Gergo Mocsi
703f0e095d GSOC work, autocorrect fix
Autocorrect fixes the new types independently from code completition(not just pressing the "." after the variable).

Change-Id: Icc31af29f1dcc0de662d7fc191c3f215188b571b
2013-09-02 18:16:59 +02:00
Gergo Mocsi
82a4ad7a5c GSOC work, renaming + options fix
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-02 18:16:59 +02:00
Gergo Mocsi
9b534193a3 GSOC work, behavior fixes
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-02 18:16:58 +02:00
Gergo Mocsi
8a1e19f4ff GSOC work, Tool/Options/Basic IDE Options created
Created a new tab in Tools/Options/Basic IDE options instead of the ModalDialog.
The original dialog under Basic IDE/View/IDE Options was removed.
Tab page is disabled when experimetal flag is off, entry node in the treebox is visible.

Change-Id: Iaad1ea5fadc3f05ca81f2240dceb513f25be35b9
2013-09-02 18:16:58 +02:00
Gergo Mocsi
6cb452f366 GSOC work, TAB key inserts match+code fixes
Feature: TAB key now inserts the matching entry. When the TAB key is pressed simultaneously, it selects+inserts the next match.
Fixed some duplicate code calls.
Added a function called CodeCompleteListBox::GetParentEditWiew() to shorter the parent's ExtTextView variable access.

Change-Id: I2ae2eaa07fff760d91d05120439c76b215fcd3c1
2013-09-02 18:16:58 +02:00
Gergo Mocsi
0861ff9dc0 GSOC work, code fixes
Simplified the nested reflection.
Fixed the small issue with the autocorrect keywords: it corrupted the line when doing nested reflection.
Iterator is used instead of for loop when extracting identifiers for nested ferlection.

Change-Id: I8e7e83b4e46838a32e03f71b4fe91dd9d94b3131
2013-09-02 18:16:57 +02:00
Gergo Mocsi
7023bcf99d GSOC work, unused code removal
Removed the call of CodeCompleteListBox::GrabFocus.

Change-Id: I6095f354eadd680d040319beb4d15d37850c3e9d
2013-09-02 18:16:57 +02:00
Gergo Mocsi
06e4ed0e6f GSOC work, code simplification+removed unused functions
Removed some unused functions from CodeCompleteListBox/CodeCompleteWindow.
Renamed CodeCompleteListBox::SetVisibleEntries to SetMatchingEntries.
Simplified autocorrect functions.

Change-Id: I29f9653d52fff2c5020243aa5c14f1ea280018d3
2013-09-02 18:16:57 +02:00
Gergo Mocsi
3345726d31 GSOC work, code simplification
Created a new class: UnoTypeCodeCompletor, which does the field/method extraction for code completition.
Functions GetXIdlClassMethods() and GetXIdlClassFields() have been added to UnoTypeCodeCompletor and removed from EditorWindow.

Change-Id: Ia47965b502c868f52c466c282cb98ccd806ff6f7
2013-09-02 18:16:56 +02:00
Gergo Mocsi
6a2aa97cc1 GSOC work, code fixes
Small fix in the listbox size: I'm using GetOptimalSize to set the correct width.
EditorWindow::KeyInput: autocomplete/codecomplete functions have been placed into separate functions.
Function autoclose sub/functions: duplicate code removal.

Change-Id: I44678753fc9737fd7a0913af3caa4f1f565aca28
2013-09-02 18:16:56 +02:00
Gergo Mocsi
6b47b09f66 GSOC work, small fixes for listbox appearance
Listbox top does not cover the actual line.
Listbox width and height problems are fixed.

Change-Id: Ia814f14c3ae326eecd497df2a233eee0b6c30adb
2013-09-02 18:16:55 +02:00
Gergo Mocsi
b4319d8726 GSOC work, Extended types correction
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-02 18:16:55 +02:00
Gergo Mocsi
972bbede6e GSOC work, KeyInput instead of PreNotify
CodeCompleteListBox now uses KeyInput instead of PreNotify to handle key events.
The cursor is visible, arrow keys navigate the listbox correctly.

Change-Id: Ia0d5c5c48858d345dc4b4886ece1db618bdfc67c
2013-09-02 18:16:55 +02:00
Gergo Mocsi
a1c1e89e43 GSOC work, show the cursor when typing 2
There are two cases:
a) TextView in focus: cursor is visible, typing works, except the arrow keys are not working for the ListBox
b) ListBox in focus: no cursor, everything works

Change-Id: Iaaec69c04370e4d05e226abeecd420bf4d4f52cd
2013-09-02 18:16:54 +02:00
Gergo Mocsi
cbd61c3047 GSOC work, listbox hides the cursor fix
When the listbox appears over the line, it no more hides the top of the cursor.

Change-Id: Ic2d0e8295cc4c44f06765af0d431859b53ab88d2
2013-09-02 18:16:54 +02:00
Gergo Mocsi
ec4c6f3da0 GSOC work, renaming for consistency
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-02 18:16:54 +02:00
Gergo Mocsi
790a7aff12 GSOC work, renaming for consistency
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-02 18:16:54 +02:00
Gergo Mocsi
a622a19b7a GSOC work, autoclose procedures fix
Fixed function autoclose procedures: when there was an incomplete function/sub, and the lookahead found another sub/function, autocorrected the wrong ending. This is fixed.

Change-Id: I3d894808fe8111f1ea1fac797b16576d843bff68
2013-09-02 18:16:53 +02:00
Gergo Mocsi
27da1e7340 GSOC work, ListBox appearance fix (at the borders) + code fixes
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-02 18:16:53 +02:00
Gergo Mocsi
c40ba9c3e0 GSOC work, config crach fix
Storing code completition data in config file is fully functional.

Change-Id: If9a974dd0ed052e26963ad5f202493674f1a51ca
2013-09-02 18:16:53 +02:00
Gergo Mocsi
8194798645 GSOC work, config entry to store options
Created a config file to store configuration for the feature.
NOTE: it gives a runtime error, so it is temporary disabled.

Change-Id: I7103bdfad43bb5760165430a57d93a90a7e5dc7e
2013-09-02 18:16:52 +02:00
Gergo Mocsi
c149c96cf4 GSOC work, "autocomplete procedures" fix + new feature
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-02 18:16:52 +02:00
Gergo Mocsi
92374fb966 GSOC work, listbox appearance fix
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-02 18:16:51 +02:00