summaryrefslogtreecommitdiff
path: root/starmath
AgeCommit message (Collapse)Author
2013-11-04remove redundant calls to OUString constructor in if expressionNoel Grandin
Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
2013-11-03fdo#65586: Add tools tips in Math Elements DockMarcos Paulo de Souza
Change-Id: I304ba9fe0a97f85424d0eb0ee87bf3b4b58179f4 Reviewed-on: https://gerrit.libreoffice.org/6540 Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2013-11-03WaE: unused variable 'sExpected' [loplugin]Tor Lillqvist
Change-Id: I32d774640602566c23303a9816fa3c5926449781
2013-11-03improve starmath test codeMarkus Mohrhard
Change-Id: Ife7e1306ce65dc1d935181553803fbc9266b628c
2013-11-02starmath: Check for text length.Jan Holesovsky
Fixes fdo32667-1.doc. Change-Id: Ibe7a9ca83b65e7b13c6b315f1b771f50f0b6fc7a
2013-11-01convert math font dialog to .uiCaolán McNamara
Change-Id: Ib7bf087664b6c8491872dfa37c750485fedabbe2
2013-10-29cppcheck: duplicate break or break which follows a returnJulien Nabet
Change-Id: I0985d28289e31969cb9b048b221abfae1572025d
2013-10-25fdo#54938: More uses of cppu::supportsServiceMarcos Paulo de Souza
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-23clean up some include guardsThomas Arnhold
Conflicts: sw/source/ui/inc/content.hxx Change-Id: I58d81881271fc6e3320bf3b5f1321594b28614a6 Reviewed-on: https://gerrit.libreoffice.org/6388 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-23starmath: fix include guardsThomas Arnhold
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 Grandin
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 Lillqvist
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-18random OUString to String conversionsNoel Grandin
Change-Id: I9cfb8e7183b9cce7c690f3a43a64b61a2aa8c754
2013-10-09More OUString::copy out-of-bounds fixesStephan Bergmann
Change-Id: I45762d167d04252e32155a7b23a3290688bccdf6
2013-10-03CID#735395 potential memory leakCaolán McNamara
Change-Id: Ica07e23920d751757ab5d14d5216615d5fcdbfd9
2013-10-03CID#736482 fix leakCaolán McNamara
Change-Id: I51c1e553339810f7de61c2c4a506482339829b31
2013-10-02More SAL_WNODEPRECATED_DECLARATIONS_PUSH/POP around std::auto_ptrStephan Bergmann
...as needed by Clang trunk towards 3.4. Change-Id: Ibbfe9cb0ec03e0aed939d769feee9e046af4741f
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Ic37531aa2fe9b0098cf8b027275d314607208154
2013-10-01Add sanity check to avoid crashTor Lillqvist
I got a crash when saving doc from fdo#45349 as .fodt. Change-Id: I704d86e846e78848d914de7b48da6c9fa4075150
2013-09-27cppcheck: redundant conditionJulien Nabet
Change-Id: I751b5c11d51068dd019a74ea29bd3bf9cf9ba51d
2013-09-26typo fixes in commentsAndras Timar
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-09-22ensure OUString::copy is within boundsCaolán McNamara
Change-Id: I7b8c2e764da01e38fb9f7048bcaeca93a72fafa3
2013-09-22gbuild: add gb_Library_use_restargetMichael Stahl
Change-Id: Ic0a2fd3c1adeb55ec27f6a2eb4709be598120fba
2013-09-20indent: Just some indenting for better readingAndres Gomez
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 Gomez
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 Souza
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 McNamara
Change-Id: I54729ad816efd4e51e13c0a2985c591920750d59
2013-09-18Math: fix name's typo of Magenta color in sidebarMarcos Paulo de Souza
Thanks a lot Gerry for noticing this! Change-Id: I24340e751b476e998ba64402719802aa244de00f Reviewed-on: https://gerrit.libreoffice.org/5986 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-11fdo#69111: Set edit window border to 4 again.Thomas Arnhold
But increase the border on top to tear of the edit window easier. Change-Id: I527ede488e4773dd631182d73809fef916b52c1a
2013-09-09OSL_ENSURE -> SAL_WARN_IFThomas Arnhold
Change-Id: I2807797c6906ae5aaa8aabf7298df5fd8604e96a
2013-09-09Math: OSL_FAIL -> SAL_WARNThomas Arnhold
And some cleanup. Change-Id: I2e5239a6f7d0dca5855b80752deae6be27c21af6
2013-09-09Math: Clear up the purpose of both listsThomas Arnhold
Change-Id: Ic19148fbcff40fae6b06e21cae26f0bce0dde5fc
2013-09-08Math: Further cleanup and realignmentThomas Arnhold
Change-Id: I8cf6265c02db03585aaa86e137e328317f995e4d
2013-09-08Math: Remove obsolete GetConversion()Thomas Arnhold
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 Arnhold
This reverts commit 5ab959017665e3f74ec4be8245827f3de92dd512.
2013-09-08Math: Remove not needed header fileMarcos Paulo de Souza
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-07s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar
Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
2013-09-06fdo#68956: Be safe and warn if there are other users of GetText()Thomas Arnhold
Because GetText() now returns a value. Change-Id: Iafee193771a56b2b3c25f8655fa35a66f31eebe8
2013-09-05update pchThomas Arnhold
Change-Id: I6d5e8d3fd69189935a3338fee19b60022f70a7eb
2013-09-05fdo#68956: fix string conversionThomas Arnhold
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 Arnhold
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 Arnhold
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 Arnhold
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 McNamara
Change-Id: I5ae2f445bb2c0e3fa3dd42f972dae54dfee42cc8
2013-09-04String to OUStringThomas Arnhold
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 Souza
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 Souza
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 Souza
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 Souza
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 Abe
Change-Id: I65a05b59da6dbc2d37a55129c54ca0f322702364