summaryrefslogtreecommitdiff
path: root/starmath/source
AgeCommit message (Collapse)AuthorFilesLines
2013-09-20indent: Just some indenting for better readingAndres Gomez1-65/+65
Change-Id: Id840dd00c71afc1930e6bb9b634e888b88fe7391 Reviewed-on: https://gerrit.libreoffice.org/6001 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-09-20uno: new InteropGrabBag UNO prop in OfficeDocumentAndres Gomez1-1/+17
Added the new InteropGrabBag property to the OfficeDocument service and modified the JUnit UNO unit tests for it. Added specific implementation in the sfx2 module for the SfxBaseModel class. Added specific inherited implementations in the sc, sd, starmath and sw modules for the ScModelObj, SdXImpressDocument, SmModel, and SwXTextDocument classes. This new property is intended by now for its usage on preserving OOX's theming although the aim is to be able to re-create the theming in the future from saved properties. It could also be used for preserving other attributes for interoperability among document formats. Change-Id: Ia822856293c70ae22911afa794e3e38bcaa31f86 Reviewed-on: https://gerrit.libreoffice.org/6000 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-09-19fdo#65586: Add tooltips to Elements Dock in MathMarcos Paulo de Souza1-0/+4
Change-Id: I54b201834989752460e4b12bc3ac0afd69a9a5be Reviewed-on: https://gerrit.libreoffice.org/6007 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-19OUString::copy second arg is len, not indexCaolán McNamara1-2/+2
Change-Id: I54729ad816efd4e51e13c0a2985c591920750d59
2013-09-11fdo#69111: Set edit window border to 4 again.Thomas Arnhold1-3/+6
But increase the border on top to tear of the edit window easier. Change-Id: I527ede488e4773dd631182d73809fef916b52c1a
2013-09-09OSL_ENSURE -> SAL_WARN_IFThomas Arnhold3-57/+56
Change-Id: I2807797c6906ae5aaa8aabf7298df5fd8604e96a
2013-09-09Math: OSL_FAIL -> SAL_WARNThomas Arnhold17-121/+106
And some cleanup. Change-Id: I2e5239a6f7d0dca5855b80752deae6be27c21af6
2013-09-09Math: Clear up the purpose of both listsThomas Arnhold1-0/+4
Change-Id: Ic19148fbcff40fae6b06e21cae26f0bce0dde5fc
2013-09-08Math: Further cleanup and realignmentThomas Arnhold3-234/+28
Change-Id: I8cf6265c02db03585aaa86e137e328317f995e4d
2013-09-08Math: Remove obsolete GetConversion()Thomas Arnhold1-101/+6
CONVERT_NONE is the default case, as SetConversion() gets never called. We dropped the support for legacy filetypes with 4.0 anyway. Change-Id: Ic49ae7b53497e8198c8b61eab0b0cdc120c2bdd7
2013-09-08Revert "Math: Remove not needed header file"Thomas Arnhold1-8/+1
This reverts commit 5ab959017665e3f74ec4be8245827f3de92dd512.
2013-09-08Math: Remove not needed header fileMarcos Paulo de Souza1-1/+8
This header is used in just one place, so move all used data to that file. Change-Id: Ic3927c2bd91f71c8800f5af298de3ed640d2c263 Reviewed-on: https://gerrit.libreoffice.org/5832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-06fdo#68956: Be safe and warn if there are other users of GetText()Thomas Arnhold1-1/+1
Because GetText() now returns a value. Change-Id: Iafee193771a56b2b3c25f8655fa35a66f31eebe8
2013-09-05fdo#68956: fix string conversionThomas Arnhold2-3/+4
Added the SetText method to make it absolutely clear. Regression from 150c9f8bbcffacc687a5603e2a589d2a3816dccb Change-Id: I4e9935fd13fca8f9cfdfda65c980d08b1e85b459 Reviewed-on: https://gerrit.libreoffice.org/5819 Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-05String to OUStringThomas Arnhold5-78/+67
And removed nearly all xub_StrLen in starmath. Some sal_uInt16 which were xub_StrLen before 9a0d753b84aed53083bed3ed460308b771f432a8 are also converted to sal_Int32 where applicable. Change-Id: I31d7794f4c7aa840545edff41a102b76bb39e042 Reviewed-on: https://gerrit.libreoffice.org/5817 Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org> Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
2013-09-05String to OUString for SmDocShell::ReplaceBadCharsThomas Arnhold1-18/+11
And simplify a little bit. Change-Id: I3b3cf2ea29f59f173e74b59a8e999f19f86e9a0a Reviewed-on: https://gerrit.libreoffice.org/5818 Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org> Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
2013-09-04Some more fixesThomas Arnhold1-7/+7
Forgotten in 150c9f8bbcffacc687a5603e2a589d2a3816dccb Change-Id: I177c3bcb15bf789a68b8758a8a545d4c6bdf5d85 Reviewed-on: https://gerrit.libreoffice.org/5820 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-04remove intermediate Strings on res loadingCaolán McNamara4-9/+9
Change-Id: I5ae2f445bb2c0e3fa3dd42f972dae54dfee42cc8
2013-09-04String to OUStringThomas Arnhold13-119/+117
Change-Id: I8c51db8fce8c5eea1ac7bd5751aa7f3212ef1166 Reviewed-on: https://gerrit.libreoffice.org/5790 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-03fdo#68877: Select "<?>" as Elements window doMarcos Paulo de Souza1-2/+22
Elements Dock needs to have the same behavior of Elements window. After insert some symbol, if this symbol have some placeholder, select the first placehold to user put some data. This increases usability of Elements Dock. Change-Id: Idc57cc6817d94f698632eb938600a55c8f9afbd8 Reviewed-on: https://gerrit.libreoffice.org/5780 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-02fdo#43090: Last fix for autoclose brackets in MathMarcos Paulo de Souza1-0/+3
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-02Math: fix focus in Elements DockMarcos Paulo de Souza1-0/+1
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-08-30fdo#32059: Fix this once and for allMarcos Paulo de Souza1-3/+3
Fix a regression from 356b2f0edfd5a01ed05976c1bdb74948ff84b5fd. This regression was about the setSelection function. We inserted the command with a space in the right side of the string, but our selection was not counting the " " character. So, reasign the variable with the space solve this issue. Change-Id: Ic48f1afaec89c6eefe73d051d3b0eba7edbf557e Reviewed-on: https://gerrit.libreoffice.org/5688 Reviewed-by: Ricardo Montania <ricardo@linuxafundo.com.br> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-22Mark as constTakeshi Abe1-9/+9
Change-Id: I65a05b59da6dbc2d37a55129c54ca0f322702364
2013-08-22sal_Bool to boolTakeshi Abe1-14/+14
Change-Id: I4ab448a461a9fe37ba18838357d371f71b0a496c
2013-08-22Drop useless #undefTakeshi Abe2-4/+0
WANTEXCEPT disappeared with fc9fb12f58866c04636f61e073d39ba29806cbb5 Change-Id: I6ac9aeba0258797e18f5381a3876401e4dee4c89
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák2-6/+6
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-20Translate some words in Math Elements DockMarcos Paulo de Souza2-10/+64
Change-Id: I7d5075b0c9ac481b954c6a843b35e46355b5348e Reviewed-on: https://gerrit.libreoffice.org/5519 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-08-19Fix deprecated: use rtl::isAsciiDigit/isAsciiAlpha instead (part3)Julien Nabet1-2/+2
Change-Id: I0972f1f46ca46c6c482e016e6e0a280c205cc121
2013-08-16Math: New feature about color selectionMarcos Paulo de Souza2-5/+25
Now we can choose colors to equations in Elements Dock, in the Attributes section. All colors there can be choosed by clicking in the name of color. Change-Id: I5545b292955072f9f45f31262a511cee3d70c953 Reviewed-on: https://gerrit.libreoffice.org/5414 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-08-15Math: Remove not needed fileMarcos Paulo de Souza2-63/+10
We don't need because this file just have one called function and just in one place. So, integrate this into mathmlexport and kill this file. Also remove some useless comments. Change-Id: Ia5749418d74c89be3d70dd5997fb90e1accf7f9e Reviewed-on: https://gerrit.libreoffice.org/5431 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-08-14fdo#43090: Improve auto close bracketsMarcos Paulo de Souza1-0/+28
Now it works this way: * Auto close in end of current line of formula * Auto close when we have "<?>" selected * Auto close when we're in the beginning of current line. We're adding a space between the brakets, like this: "[ ]" and putting the cursor in the center of these brackets. Change-Id: I8d77bfd7c33f875e7f4070343e634c2b6c45d33c Reviewed-on: https://gerrit.libreoffice.org/5388 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-12convert vcl/font.hxx from String to OUStringNoel Grandin1-1/+1
Change-Id: I3df88f26516296ca8f4e81576e86372c8b499a84
2013-08-11String->OUStringIvan Timofeev1-1/+1
Change-Id: I49e0e589c4bad3706882c9e30fe4f6bf8bdd7f1d
2013-08-08Extension to fix all cases of fdo#32059: Commands merge with variablesMichael Duelli1-6/+29
Change 467d5e0a2e074ff2afb4d1b1a37cff2094b0895b fixed insertions of space in front of commands for Elements dialog only. This change also fixes insertion via Elements dock. Change-Id: I37f8510bc4a6dc0145026ca04fbb0443e1e31cd0 Reviewed-on: https://gerrit.libreoffice.org/5225 Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-08-02fdo#67470 Element Dock: Subset icon missing in Set Operation sectionJoren De Cuyper1-1/+1
RID_XSUPSETY wasn't just listed, RID_XSUPSETEQY (notice the Q) was. Adding it adds it to the dock. Change-Id: I4c621aab74b424aacd5421ed90f35b42ae6e0a14
2013-07-29Fix i#84002 by putting braces when neededMarcos Paulo de Souza1-0/+7
In the case of sqrt with more than 2 operands, like over, we need to put braces in the beginning and in the end of the element. Change-Id: I391db14cd2ddc37695fe0b1f590a89b9dd4369ef Reviewed-on: https://gerrit.libreoffice.org/5153 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-07-26convert GetSelectEntry family to OUStringCaolán McNamara1-1/+1
Change-Id: Id3282e2efd6573bed7fd172021dae9aee9342fae
2013-07-25have my own stab at fixing the leaking SmDocShellCaolán McNamara1-0/+5
i.e. alternatives to 5dd1cd72f45df0ec13842d4ee9c849726cb74ea9 ef66cc105e0051fa1414b72c5ee2bf1b2f9331cb f9e981ba0e2da6ce122e3ef30aef057c439c8fb8 d3cf684146162a1528046ab2bcd7d9fa94443c69 Change-Id: Ib094f5ac1455a9770c99aeac5eb1af118bdab829
2013-07-25Revert "Fix memory leak in Math, by holding SmModel pointer"Fridrich Strba1-3/+4
Breaks unit tests of rtf import This reverts commit ef66cc105e0051fa1414b72c5ee2bf1b2f9331cb Change-Id: I95c13fc2bc3f9494a33153c62a7d52eb6f8efdd9 Reviewed-on: https://gerrit.libreoffice.org/5095 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-25Fix memory leak in Math, by holding SmModel pointerMarcos Paulo de Souza1-4/+3
And deleting this in destructor of SmDocShell Change-Id: Ida96648c7aae90fb5b0afac916587bbb049f90b3 Reviewed-on: https://gerrit.libreoffice.org/5088 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-24fdo#43090: Improvement: Just auto close when found placeholderMarcos Paulo de Souza1-4/+11
Another verification needs to be done, auto close when it's in the end of line. Change-Id: I675ac6b6a0477fc9b5747860df8dff2866189433 Reviewed-on: https://gerrit.libreoffice.org/5008 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-22Change function to void, nobody checks the returned dataMarcos Paulo de Souza1-7/+2
Change-Id: I9ef7eb7a9c32153f0a886479f65678907969adc5 Reviewed-on: https://gerrit.libreoffice.org/5000 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-07-22Revert "Math: Fix memory leak with SmDocShell"Fridrich Strba1-5/+0
It breaks "make check" This reverts commit d3cf684146162a1528046ab2bcd7d9fa94443c69 Change-Id: Iae8ef2a49a395e885aa8ab3658244836c9ce71c5 Reviewed-on: https://gerrit.libreoffice.org/5021 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-22Math: Fix memory leak with SmDocShellMarcos Paulo de Souza1-0/+5
Change-Id: Ife984f60344fe41501c9e17b10dab256e14fe9e6 Reviewed-on: https://gerrit.libreoffice.org/5017 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-16fix problem caused by confusing immutability OUString semantics againLuboš Luňák1-1/+1
Change-Id: I9207ec3309b9970afd5c56718829836eead4592b
2013-07-16String.AppendAscii() cleanup in mathRicardo Montania6-211/+206
Change-Id: I567e1a80ab75d6ebdaba52cb9afd47dbd52f39ce Reviewed-on: https://gerrit.libreoffice.org/4933 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-07-15callcatcher: update unused codeCaolán McNamara1-9/+0
All FontSizeBoxs and SmFontPickListBoxs are now .ui loaded, .res ctors unused Change-Id: I50aa8606fefacab0b15b6795a7ba90dff8109802
2013-07-13use static LanguageTag::convertTo...() for standalone conversionsEike Rathke1-1/+1
If no LanguageTag instance is at hand use the static methods to convert between BCP 47 string, Locale and MS-LangID instead of creating temporary instances. Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
2013-07-09ditch last XubString in starmathCaolán McNamara1-4/+1
Change-Id: I5092bad1d56ecb302fff611546196a8ab439b52b