summaryrefslogtreecommitdiff
path: root/starmath
AgeCommit message (Collapse)AuthorFilesLines
2015-09-30Fix typosAndrea Gelmini8-9/+9
Change-Id: Ic3d2171521e308261c354d8f699b44b26c95f1ea Reviewed-on: https://gerrit.libreoffice.org/18978 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-30Fix typosAndrea Gelmini2-4/+4
Change-Id: I89ff6d31662824d83961d6457b82db8d8031168c Reviewed-on: https://gerrit.libreoffice.org/18977 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-29starmath: ClaimPaternity() is only for SmStructureNodeTakeshi Abe2-10/+9
rather than SmNode. Change-Id: I2c4765500f077007979417b90f47cc22c6362491 Reviewed-on: https://gerrit.libreoffice.org/18917 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-29starmath: tdf#93240 replace boost::ptr_vectorTakeshi Abe2-10/+11
with std::vector<std::unique_ptr> Change-Id: I72f96b08273c73cbd11c7796c34a45b262325209 Reviewed-on: https://gerrit.libreoffice.org/18820 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-24convert Link<> to typedNoel Grandin2-8/+7
Change-Id: I59d325c3b051690303a5841907317122fa1ec98b Reviewed-on: https://gerrit.libreoffice.org/18825 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-23starmath: Use member initialization lists for SmTokenTakeshi Abe1-11/+16
Change-Id: I3c5389135054ee866ebac3122edc71ec8c163124 Reviewed-on: https://gerrit.libreoffice.org/18785 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-23starmath: Prefix members of SmErrorDescTakeshi Abe4-13/+13
Change-Id: I4910561e3671f546f2e36344016e2b50fd2a70eb Reviewed-on: https://gerrit.libreoffice.org/18788 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-09-17convert Link<> to typedNoel Grandin2-7/+11
Change-Id: Idc8e9b0ad0032940b98357b07f3e6caf26c5c2d7
2015-09-17convert Link<> to typedNoel Grandin2-13/+17
Change-Id: If9d4ec8d33719a76603a266c14990897fbbc11a7
2015-09-17Use member initialization lists for SmParserTakeshi Abe1-2/+3
Change-Id: I421794df067314dbfc56f8651be6225bbb9683e2 Reviewed-on: https://gerrit.libreoffice.org/18659 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-17convert Link<> to typedNoel Grandin2-12/+7
Change-Id: Ied8e0b35f193770a6651f1c57dfb8eedd22d837c
2015-09-16convert Link<> to typedNoel Grandin2-11/+6
Change-Id: I9ce05712af8300c8bcea6ea0f670b57cce1ca43d
2015-09-14Avoid getTokenCount in SmViewShell::DrawTextMatteo Casalin1-3/+7
Change-Id: I1a4ee666900c3c412777ea2e8c01a4f38dc58b3a
2015-09-14Avoid getTokenCount in SmViewShell::DrawTextLineMatteo Casalin1-8/+6
Change-Id: If2c059b1284257c73e64f30ffe845ee4d1ccc84d
2015-09-14Avoid getTokenCount in SmViewShell::GetTextSizeMatteo Casalin1-3/+6
Change-Id: Ic81b961ae2360ea3fe40c9e536a6f10a5788fe1a
2015-09-14String tokens do not include token separatorMatteo Casalin1-6/+0
Change-Id: I03ab73e5f53b2068efc3c4cdaed15f2ec3854c76
2015-09-14Avoid getTokenCount in SmViewShell::SetZoomFactorMatteo Casalin1-8/+6
Change-Id: Idb874a60868595ccc648da86c8bd32c28b92547b
2015-09-14String tokens do not include token separatorMatteo Casalin1-2/+0
Change-Id: Ia469f84412bdaed59b9e9eb3c8942de3d14270b9
2015-09-12Update many ListBox users to its sal_Int32 interfaceMatteo Casalin2-3/+2
Change-Id: I6469ac5e2d17406bee9bc434930e2471cb3bae9f
2015-09-08convert Link<> to typedNoel Grandin2-4/+2
Change-Id: I1140910c8e90a3022cc88ff33fa37db62007b745
2015-09-07Fix harmless, historic mis-mergeStephan Bergmann1-2/+0
...between 6037a79c3791e41578c384481acec48904951ae0 "cws tl82: #i74049# math symbols should be able to handle 20 bit Unicode characters (surrogates)" and a93c9517dc52b1d9c22a0e69f9d92c119983f7fe "Removes a fair amount of BOOL variables in starmath." Change-Id: Id146defb7231458b945629d4e4dcb7fc8de69f0e
2015-09-07convert Link<> to typedNoel Grandin6-12/+12
Change-Id: I38f2c15b4f8bb1d7187b019d26a2644b087898c1 Reviewed-on: https://gerrit.libreoffice.org/18357 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-04convert Link<> to typedNoel Grandin6-9/+6
Change-Id: I2136c3db2742afcb4722f69297276bea1e0119f4 Reviewed-on: https://gerrit.libreoffice.org/18306 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-28Simplify SmFontStyles::GetStyleNameStephan Bergmann1-6/+6
Change-Id: I2df721af0eb60e28cd9882195f68a034a5fa802e
2015-08-26Clean up aEmptyStrStephan Bergmann1-8/+6
Change-Id: I5befe9deac917a28e80ed193b67ff29b5ba35149
2015-08-26Convert vcl Button Link<> click handler to typed Link<Button*,void>Noel Grandin2-41/+24
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
2015-08-25make pWindow private in SfxChildWindowNoel Grandin3-4/+4
Change-Id: I585d4e8f0a53f46b6fbcef9e4d26f88b57569684
2015-08-25make eChildAlignment private in SfxChildWindowNoel Grandin2-2/+2
Change-Id: I68a4c3324736e111a2c88e3edb9df506c33042b7
2015-08-21loplugin:defaultparamsNoel Grandin2-3/+3
Change-Id: Iaf6415d3b33a4ce195a00913a0df69f1fb794217
2015-08-20loplugin: defaultparamsNoel Grandin4-30/+30
Change-Id: Ibf0ea539d2a95073a12f84964759d9c7a94baa7b
2015-08-17Put Polygon from tools under tools:: namespaceNorbert Thiebaud1-2/+2
Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: https://gerrit.libreoffice.org/17789 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-12cppcheck: variableScopeCaolán McNamara1-14/+8
Change-Id: Ibb70de22f566c103af7a1f075252ae38da1742b2
2015-08-11Related: tdf#75171 wrong "italic" happens on importing MathMLTakeshi Abe2-10/+5
As of 4f294a90877d2f91bb88c7d6cd5b74e8e546a025, a SmTextNode can be the sole child of a SmLineNode without being wrapped in a SmExpressionNode. Change-Id: I3779eb90e216a70566c1151a9b8cb91a9fa36519 Reviewed-on: https://gerrit.libreoffice.org/17613 Reviewed-by: Regina Henschel <rb.henschel@t-online.de> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-04svx,starmath: inline some use-once typedefsNoel Grandin4-9/+4
Change-Id: I5a7405d326b7258cbed476c30f88e57559b4cc8e
2015-07-30starmath: these constans are local and staticTakeshi Abe1-19/+19
Change-Id: I737a67945766454cc611061178acf15b434dd526 Reviewed-on: https://gerrit.libreoffice.org/17417 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-30loplugin:unusedmethodsNoel Grandin1-1/+0
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-29Avoid warning C4819Takeshi Abe1-3/+3
> : The file contains a character that cannot be represented in the > current code page (932). Save the file in Unicode format to prevent > data loss Change-Id: I4ebd15fc0e00a0bc150652fbbe7c4368eee0ac15 Reviewed-on: https://gerrit.libreoffice.org/17369 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-27inline a bunch of use-once macrosNoel Grandin1-2/+10
no point in having a macro unless it's actually going to reduce the number of lines of code Change-Id: Ic8760d6506cf272d7bd088f7b3b4dcbf288099fc
2015-07-22tdf#92600: Restore ability to apply font settings to controlsKatarina Behrens2-0/+5
SmShowSymbol handles font/fg/bg settings by itself, so make ApplySettings noop there. This partially reverts commit b010e4074e5d5ee3a3905f1351f04efafe937c2a Change-Id: Ib5074684ef1277d9b9b4646bd73dce4cbff3943e Reviewed-on: https://gerrit.libreoffice.org/17288 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-07-22Resolves: tdf#92148 SmElementsControl invalidates itself from paint endlesslyCaolán McNamara2-31/+42
Change-Id: Id9cd7fbe9e433005cc27b2e8e3417a5e289b94e3
2015-07-21loplugin:unusedmethods starmathNoel Grandin13-43/+0
Change-Id: I543a914bb7cdfdc498cf8d9f885316fbe3e1543b Reviewed-on: https://gerrit.libreoffice.org/17237 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-20convert to typed Link<> in sfx2Noel Grandin2-3/+2
Change-Id: Ifa42bd14d7329ff1043fa736513c468dda30485e Reviewed-on: https://gerrit.libreoffice.org/17195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-17formatting of public/private/protected section qualifiersNoel Grandin1-1/+1
make it consistent across the codebase, no space between keyword and the colon Change-Id: Idca61ddfc74ad2460fb05fe417499324b05e5de5 Reviewed-on: https://gerrit.libreoffice.org/17148 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-16coverity#1209707 Dereference null return valueCaolán McNamara1-2/+2
and coverity#1209708 Dereference null return value Change-Id: I3ba48950f989f8c49d1b09fde30de4c46f0bad1b
2015-07-10Use std::unique_ptr in SmViewShell::Execute()Miklos Vajna1-8/+5
Change-Id: I8593c87f7a580e09d689df4cfdfecc8947f86159
2015-07-08various warningsStephan Bergmann1-6/+6
Change-Id: I1e4f6920601bad273b5255defc9377ef303083fc
2015-07-08i#107734 Support for Math Input Panel in Windows 7Regina Henschel5-0/+106
The patch introduces a new command .uno:ImportMathClipboard to module Math. It imports MathML content from clipboard and transforms it to Starmath It handles clipboard MIME type 'application/mathml+xml' and plain text, which can be interpreted as MathML segment. It partly solves issues #i14252, #i34781, and #i53509 too. Review by: Hanya <hanya.runo@gmail.com> (cherry picked from commit 9ec2148653436be8612273439180749e71e2ce58) Conflicts: dtrans/source/win32/ftransl/ftransl.cxx officecfg/registry/data/org/openoffice/Office/UI/MathCommands.xcu sot/inc/sot/formats.hxx sot/source/base/exchange.cxx starmath/sdi/smath.sdi starmath/source/view.cxx Change-Id: I6cb5e8f737ee2e39f9ce96aba841db347a8806e4
2015-07-04Fix typosAndrea Gelmini2-3/+3
Change-Id: Ic6415423f46aaee7ba90239a617c318cf92ae222 Reviewed-on: https://gerrit.libreoffice.org/16711 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-06-30Fix typosAndrea Gelmini1-1/+1
Change-Id: I1c5e4970d4e90bdea68a901294594104de5e189e Reviewed-on: https://gerrit.libreoffice.org/16582 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-06-24remove SFX_NOTIFY macroNoel Grandin4-8/+4
it has not served any purpose since we switched to using normal C++ RTTI for the SfxHint objects Change-Id: Ic81353bcb7863ce892eb75296248ca14d8fd6c86