Commit Graph

1597 Commits

Author SHA1 Message Date
43cf39adff fdo#66088 Export some math symbols as <mi> elements.
Change-Id: Ib08717c3d4d41abc7bce4cd6bc2e63bda7db6086
Reviewed-on: https://gerrit.libreoffice.org/4595
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 09:56:36 +00:00
4f294a9087 fdo#66081 - reduce the number of nested <mrow>'s in MathML
Change-Id: I768db4719119e53961c9cfa6a864daad7f1f7873
Reviewed-on: https://gerrit.libreoffice.org/4520
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 09:52:55 +00:00
16a0d06f90 fdo#55853 - improve parsing of concatenated numbers and identifiers.
Change-Id: Ic1cce4cec27f4ca5c3be1daf50888bef788cd6f7
Reviewed-on: https://gerrit.libreoffice.org/4494
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 09:52:08 +00:00
2ca754cba4 Remove unused String::Copy in Math (try to fix fdo#36634)
Change-Id: I4a5618a7ef17a74edd036c34d748715d186f6528
Reviewed-on: https://gerrit.libreoffice.org/4457
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 09:50:37 +00:00
1418694eda fdo#66075 - Formula editor: export blanks as MathML <mspace> elements.
Change-Id: I5cc0ed9a1273b5fb59d5dbaf63a382c844820ff9
Reviewed-on: https://gerrit.libreoffice.org/4454
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 09:49:30 +00:00
3b3ec32358 fdo#66086 - MathML export: wideslash, widebslash and overstrike
Change-Id: I1e8da340ffdacab133b0cff6d6344fe56da34bf8
Reviewed-on: https://gerrit.libreoffice.org/4465
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 09:47:07 +00:00
6231979ce1 fdo#66024 - Formula Editor: make wide accents stretchy when exported to MathML
Change-Id: Ifd0adc51d79e0673661b5646d27f657768ea5b20
Reviewed-on: https://gerrit.libreoffice.org/4450
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 09:45:59 +00:00
23d9f2400b must call FreeResource in old-resource-using dialogs/panels
Change-Id: I756ac431dfcd6a4d6a365fc38b465f4b588ddd79
2013-06-27 11:37:43 +01:00
02e1c0528b pClipEvtLstnr unused and xClipEvtLstnr always empty
Change-Id: Ifc883acd91108981a190f35b19648ec3a747db7b
2013-06-27 11:34:50 +01:00
2278e3cc31 valgrind: bInsertIntoEditWindow uninitialized
Change-Id: I3da23e991a70e12bdfefeda5f5e7669ab111cfb4
2013-06-27 11:24:53 +01:00
d12980ce0b Fix fdo#43090: Auto Closing of brackets
Check if we hit the left bracket, left parenthesis or left braces, insert the right close character
and set the current position to center the characters.

Change-Id: If1ee8a00799ef0933d5dfd51c32f669a2a27b2a7
Reviewed-on: https://gerrit.libreoffice.org/4374
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-06-26 12:09:14 +00:00
90e4d69a4b fdo#65370 Dock ElementsDockingWindow to left at initial use and redraw
Change-Id: I0a7648569541667bba80cffde978558a9206c089
2013-06-22 20:25:43 +02:00
41de10f5fd Fix fdo#59641 - Duplication in formula when import mathml
Remove wrong concatenation of text from EditView in SmXMLImport::endDocument, and use
just the text extracted from formula.

After the SmXMLImport::endDocument method, we compare the text from doc(extracted from formula) and
from editview(text inserted before call the importer) and as they're different, the text from
formula will be inserted in the current edit cursor position.

Also, remove bogus pDocShell->SetText( String() ), as we will set the text some lines below.

Change-Id: Ia317a23d27964a9d1264dcaf9ec0d38b8c586655
Reviewed-on: https://gerrit.libreoffice.org/4369
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-20 13:54:37 +00:00
19b18c4008 don't need explicit help handlers anymore
Change-Id: I5333ff8c4e50cbc4374b937bc8d7617c3b99ee97
2013-06-19 09:23:29 +01:00
0900438214 fontsizedialog.ui widget
Change-Id: I1c91b4c621c5a2da11cebdd8e58a5e5d0d86bf6c
2013-06-19 09:23:28 +01:00
4f99d56f92 convert starmath settings option page to .ui format
Change-Id: I908a29713ca1e01ec3e742193bd4b49e1fa97bc9
2013-06-18 14:59:07 +02:00
8956854d8e String to OUString (SfxStringItem and related)
Change-Id: I390413e9ff3efee720a6423fb8695b4c655d7efa
Reviewed-on: https://gerrit.libreoffice.org/4280
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-18 08:11:58 +00:00
e2c63c14f0 Remove useless attributions in starmath
These values are initialized as 0 in the constructor(see starmath/source/parse.cxx).

Change-Id: I68508f7f7132a2f43b99da3e7cdef9709fd62598
Reviewed-on: https://gerrit.libreoffice.org/4282
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-17 15:13:52 +00:00
ef4872f6c6 Fixes fdo#59642
By adding one more test about mathml xml.

Change-Id: I1b49e9faea6742594eaa900a87a03c4dd86c0b5c
Reviewed-on: https://gerrit.libreoffice.org/4314
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-06-17 14:05:32 +00:00
6372309a0d Starmath: ElementsDockingWindow vertical orientation of elements
Change-Id: I4161cacc95576a5f34205c92482a38bb60ecc9f2
2013-06-13 22:44:00 +02:00
3c3075bdc8 work around lexer bug in l10ntools
Change-Id: Ie53e5475888b9a912f868c12c471b2521f6b0ea1
2013-06-13 08:28:19 +02:00
34f0478ba8 make categories localizable in Elements docking panel
Change-Id: Ic1e4af8f8dd60ab48d701b5d713beafd0ddd22df
2013-06-13 08:03:38 +02:00
eaf4c51ea9 typo: s/CATERGORY/CATEGORY/
Change-Id: I37f2db8b073ad1257101af02118cfbc91ee60f26
2013-06-13 08:03:38 +02:00
db979ee28a fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
- replaced RTL_CONTEXT_ with SAL_INFO
- replace OSL_* with SAL_*

Change-Id: I9a7cce0d3abef42c9d9d0ad56609d94d504854cb
Reviewed-on: https://gerrit.libreoffice.org/4128
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-06-10 08:41:50 +00:00
101c9610d7 fdo#65581 Elements dock window has wrong title
Change-Id: I684eb8014bd6c0f72078187121b30f8df4f5a367
Reviewed-on: https://gerrit.libreoffice.org/4217
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-06-10 05:11:33 +00:00
dcbaf7c253 remove unused componentcontext.hxx includes
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-05 08:13:21 +02:00
467d5e0a2e Fix fdo#32059: Commands merge with variables
Co-work with Rodolfo Ribeiro Gomes <rodolforg@gmail.com>. Thanks a lot man!

Verify if there is a space before insert a new command to not merge
variables.

Also, just make atributions in EndPos when it is needed, to make this more clear.

Change-Id: Ia5ddb4c4c8233b3779c0ee0c7009e181cfe5d1c3
Reviewed-on: https://gerrit.libreoffice.org/3983
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-05-31 18:10:47 +00:00
ffc2e5be1f Clean zoom redundances in Math and fix fdo#55929
Zoom can be handled by sfx2 in many ways:
- 50%, 75%, 100%, 150%, 200%
- Optimal view (fit in window)
- Entire page
- Page width

The math module was doing the first two by itself. Remove it.

Strange enough, state methods for  zoom interface definitions on
sfx2's appslots.sdi were needed. I thought 'Container' property
in sfx.sdi should do the job. It seems to do nothing, though.
(The zoom should be disabled only if the object is an OLE/Container).

The Help-Ids from pop-up menu in Math/Formula were kept, because
they doesn't exist in sfx2.

Change-Id: Ie1ae413780551b34aa36b338f9a9df79a198319c
Reviewed-on: https://gerrit.libreoffice.org/4076
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-05-30 15:44:47 +00:00
20824c118f fdo#63351 make use of ZoomSlider in StarMath
In collaboration with Marcos Souza <marcos.souza.org@gmail.com> :)

Includes some reordering of the statusbar: Zoom and ZoomSlider right,
left field with automatic size adjustment.

Change-Id: Ibfb1eab1abef7b026eeb7fd7c0a778c433c9e208
Reviewed-on: https://gerrit.libreoffice.org/4053
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-05-30 13:23:32 +00:00
1d53996334 convert save defaults to .ui format
Change-Id: I7843598761cf95b04d9c3741cd8b0612b9b059ce
2013-05-29 20:09:49 +01:00
a591f0dd0f adapt code to spacing dialog .ui conversion
Change-Id: I4ec9444b3ad0d243fda0d93547f000cb7296c0bc
2013-05-24 12:07:17 +01:00
102c6164cd adapt code to catalog .ui conversion
Change-Id: If34cef7eef5ab26f52420685f54a85fcff2a0c12
2013-05-22 17:34:41 +01:00
7c04626ec7 adapt code to alignment dialog .ui conversion
Change-Id: I8a64ddc076e177deaa61a450716d7d3dd8043303
2013-05-22 11:45:29 +01:00
6899a0689a fdo#62483 missing default button in format -> aligment dialog at math
The default button was missing because the dialog was to small (it "fell off").
Also the default button was placed a bit to far from the help button IMHO.

Change-Id: I05a079cacf6e5ac73861aff4a7dab7a455f3f181
Reviewed-on: https://gerrit.libreoffice.org/3994
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-21 19:37:30 +00:00
784e472aa2 Math: Use shared_ptr in ElementsDockingWindow
Change-Id: Id31765f0c2f47cd2ebe830a8b42a9397d6eeffae
2013-05-20 08:23:36 +02:00
5861f62ee9 Fix Warning/Errors in Math.
Change-Id: I647f3ad174b59498605cf8a5ba12a7487cdec123
2013-05-20 00:53:15 +02:00
2d3baccf02 Math: new rendered Elements docking window added
Added a docking window with elements that are rendered using the
math renderer insted of static pictures. Currently this is an
alternative to the existing elements floating window which will
be removed when the new one is ready. This is an initial but
fully functional version.

Change-Id: I7678d09d643c532c672447026b0f12b7b70fc91d
2013-05-20 00:20:27 +02:00
13adadee52 Resolves: #ii120149# Flash changes on slot execution to reflect AutoUpdate
(cherry picked from commit b73c741c4f792c71623127fdc711dc3f38603083)

Conflicts:
	starmath/source/edit.cxx

Change-Id: Ie073deabb1a48f3479a9c6bbf89d1e40f5cea663
2013-05-18 12:06:40 +01:00
cb6d67c21f Spelling "separate" (etc) correctly is hard 2013-05-15 11:14:28 +03:00
5b01acf745 Bin IsDigit method and use isAsciiDigit from CharClass
Also remove the unused function strnccmp.

Change-Id: Ie857dfca1e52b1251f85abfba3cd0e12e509974f
Reviewed-on: https://gerrit.libreoffice.org/3888
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-05-13 18:17:36 +00:00
2af1f5691e resolved fdo#35756 import more than 64k HTML table cells
Enhanced EditEngine to be able to hold more than 64k paragraphs. Used
also in RTF import Calc and Writer, so that could benefit as well.

* changed all EditEngine,Outliner,... related paragraph index/count
  variables from sal_uInt16 to sal_Int32
  * sal_Int32 instead of sal_uInt32 to match accessibility API
  * matched some Outliner methods' paragraph parameters from sal_uLong
    to sal_Int32
  * containers capable to hold size_t nevertheless are limited to a
    maximum of sal_Int32
* changed definition of EE_PARA_NOT_FOUND and EE_PARA_ALL to
  SAL_MAX_INT32
+ added EE_PARA_MAX_COUNT and EE_TEXTPOS_MAX_COUNT to initialize
  ESelection with what previously were hard coded 0xFFFF all over the
  place
+ for similar reason added EE_TEXTPOS_ALL corresponding to EE_PARA_ALL
  to initialize an ESelection spanning all available text like
  aSel(0,0,EE_PARA_ALL,EE_TEXTPOS_ALL)

Change-Id: I62d1b9c399cd709a4f93dbac31b219a61c46ec00
Reviewed-on: https://gerrit.libreoffice.org/3838
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-05-10 14:01:38 +00:00
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
f8231a9765 some eco-activism
Change-Id: Ib447cd8633c3102ee78c919cfbeabcc88018b130
2013-04-27 23:04:15 +02:00
e22825fe36 XubString->OUString
Change-Id: I32c867e43bfb50a57261414107caae60f616d703
2013-04-26 10:36:48 +01:00
a44bff569b SmXMLExport::GetViewSettings: add back lost property name
This was removed in 90a91ed3e9ca1684655268dc52754ca569febc36, probably
accidently.

Change-Id: Ib5b4bc847caaa1fb2f119b07612231e32789834e
2013-04-26 09:23:20 +02:00
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
8546c324ff Remove pass-through header file sot/inc/sot/clsids.hxx
Change-Id: I122669d4ffaf72fb1d5f6fccc98e8a648f31aa23
Reviewed-on: https://gerrit.libreoffice.org/3490
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-20 14:55:56 +00:00
0f200cc30e fdo#63154: Change Min/Max/Abs for std::min/max/abs
Now all these usages were removed from LO.

Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6
Reviewed-on: https://gerrit.libreoffice.org/3326
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-20 11:09:54 +00:00
c6e9926468 Convert SmFontPickList from SfxPtrArr to std::vector
- removing SmPickList in the process, since it's only used
  as a base class for SmFontPickList
- and remove dynamic allocation, since we're always making our
  own copy, just store the data inline in the vector

Change-Id: Idedff240456788c473ac49bdaa3f6d27a217e3d6
Reviewed-on: https://gerrit.libreoffice.org/3398
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-04-16 20:24:41 +00:00
074e27c1ba remove commented out code
Change-Id: I754a34a88a7f976714827bd8e8986b854d5da692
2013-04-10 01:24:49 +02:00