summaryrefslogtreecommitdiff
path: root/starmath/source
AgeCommit message (Collapse)AuthorFilesLines
2013-10-25fdo#54938: More uses of cppu::supportsServiceMarcos Paulo de Souza1-10/+2
Change-Id: I90a7a07a43559b8d7e1d4b886b2624255200d46b Reviewed-on: https://gerrit.libreoffice.org/6406 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-23starmath: fix include guardsThomas Arnhold11-22/+22
Change-Id: I4f4bd88e8be1f2745ec8c96793a43d93e3f733b4 Reviewed-on: https://gerrit.libreoffice.org/6389 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-23convert code to use OUString::endsWithNoel Grandin1-2/+2
Convert places that call aStr[aStr.getLength()-1] == 'x' to use the shorter form aStr.endsWith("x") Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-18random OUString to String conversionsNoel Grandin1-1/+1
Change-Id: I9cfb8e7183b9cce7c690f3a43a64b61a2aa8c754
2013-10-09More OUString::copy out-of-bounds fixesStephan Bergmann1-10/+10
Change-Id: I45762d167d04252e32155a7b23a3290688bccdf6
2013-10-03CID#735395 potential memory leakCaolán McNamara3-4/+7
Change-Id: Ica07e23920d751757ab5d14d5216615d5fcdbfd9
2013-10-03CID#736482 fix leakCaolán McNamara1-1/+3
Change-Id: I51c1e553339810f7de61c2c4a506482339829b31
2013-10-02More SAL_WNODEPRECATED_DECLARATIONS_PUSH/POP around std::auto_ptrStephan Bergmann1-0/+2
...as needed by Clang trunk towards 3.4. Change-Id: Ibbfe9cb0ec03e0aed939d769feee9e046af4741f
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann1-8/+8
Change-Id: Ic37531aa2fe9b0098cf8b027275d314607208154
2013-10-01Add sanity check to avoid crashTor Lillqvist1-0/+1
I got a crash when saving doc from fdo#45349 as .fodt. Change-Id: I704d86e846e78848d914de7b48da6c9fa4075150
2013-09-27cppcheck: redundant conditionJulien Nabet1-1/+1
Change-Id: I751b5c11d51068dd019a74ea29bd3bf9cf9ba51d
2013-09-26typo fixes in commentsAndras Timar2-2/+2
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-09-22ensure OUString::copy is within boundsCaolán McNamara1-1/+1
Change-Id: I7b8c2e764da01e38fb9f7048bcaeca93a72fafa3
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