summaryrefslogtreecommitdiff
path: root/starmath
AgeCommit message (Collapse)AuthorFilesLines
2015-08-06tdf#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 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> (cherry picked from commit 94ceda8b2fea37587424b664e17fa9ee8b01e158) squashed commit from László Németh <laszlo.nemeth@collabora.com> tdf#92600 fix missing font preview in character set widget The previous fix for tdf#92600 (missing bold text in dialogs) brought back the regression in the special character set widget: the characters show always the default font of the Control class instead of the chosen font, see in the Insert->Special Character... dialog window of Writer. Change-Id: Ib5074684ef1277d9b9b4646bd73dce4cbff3943e 2bdc2300f481dd680877f84ea2a717b9e749c64c Reviewed-on: https://gerrit.libreoffice.org/17303 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-06Resolves: tdf#92148 SmElementsControl invalidates itself from paint endlesslyCaolán McNamara2-31/+42
Change-Id: Id9cd7fbe9e433005cc27b2e8e3417a5e289b94e3 (cherry picked from commit b1760dc3320bfb44568243359124d2615e69e18d) Reviewed-on: https://gerrit.libreoffice.org/17302 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-08-06rendercontext: Mass fix of using the wrong size.Jan Holesovsky2-4/+4
In the paints, we must use the size of the Window for the computations, not of the RenderContext - the RenderContext can be much bigger than the Window in the double-buffering case. Fixes for example the list boxes, and many others. Change-Id: I4c7607569f88b2d097587140858d0862e54b5ea6 Reviewed-on: https://gerrit.libreoffice.org/16421 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-08-06starmath: dispose SmEditController object correctlyLászló Németh1-0/+1
(cherry-picked from 17cdc92e46e84ec8d99dedfdd9e8e96fb950f6ea) Change-Id: I5d44ff6d514d2e40df23f6c419463b980f39d2c7 Reviewed-on: https://gerrit.libreoffice.org/16287 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-06Apply new VclPtr clang plugin to catch potential problems.Noel Grandin1-4/+4
Omit the plugin, and sw's FrameControlsManager for now. Change-Id: Ifb98a2e6e03a9d099efc1668305b96bd9142ca5f Reviewed-on: https://gerrit.libreoffice.org/16117 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-28Rewrite all calls like Dialog(params).Execute()Philippe Jung1-1/+1
Replace all calls looking like ADialog(some params).Execute() by ScopedVclPtrInstance<ADialog>::Create(some parms)->Execute() Change-Id: I0b6f0a9ea5ef0a749ffa30ce131e9dc989604639 Reviewed-on: https://gerrit.libreoffice.org/15915 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1-3/+3
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-05-20convert DEFAULTCONSTANT constant to scoped enumNoel Grandin2-2/+2
Change-Id: I5ebd77edfa29d6c6c7acea37e826ef1d625916c3
2015-05-20convert DRAWMODE constants to scoped enumNoel Grandin2-3/+3
Change-Id: I36cbe8057d09226f8b302963bdd94dc5600b686f
2015-05-19Update Apache Bugzilla’s URLAdolfo Jayme Barrientos1-3/+3
Change-Id: I6ef4ae530b7fb4e615100803ae6e3972d9b4545f
2015-05-18Remove include stdio (part2)Julien Nabet3-4/+0
Change-Id: Iae58d107d8df1c543a165086fb2b7c288e7121dd Reviewed-on: https://gerrit.libreoffice.org/15775 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2015-05-18refactor how font, fg. and bg. are applied in widgets/controlsTomaž Vajngerl1-1/+3
- Move vcl::RenderContext to outdev. - Change some methods on vcl::Window to accept RenderContext as parameter. - Add ApplySettings to vcl::Window - This method is called before painting. Refactor existing classes that use InitSettings to have ApplySettings or mark the classes to be refactored later. - Add RenderSettings for adding defered settings to rendering. This is similar to ApplySettings but for more ad-hoc calls. Change-Id: I4ea58461f3b6b08ccfa3e0ddd1a4a3e04f8c4f45
2015-05-15fix starmath testsTomaž Vajngerl1-0/+10
Change-Id: I0fc6fc4a1ce71507f97797dcfe77a6d5b21e4b80
2015-05-14more refactorings in starmath dialogs..Tomaž Vajngerl2-149/+84
Change-Id: I24b6584a72b4a8db031d9bf8906d8682e32e4545
2015-05-14SmShowFont: change to save the font and use it in Paint + HiDPITomaž Vajngerl2-23/+23
No painting should be performed outside of Paint hierarchy. Change-Id: I97a8d6429abcd6022e9bf89295dc2944485984eb
2015-05-14cleanup starmath view/documentTomaž Vajngerl3-133/+120
Change-Id: Ieda85c0f157a6b299ba10528dd3cee3fe9942783
2015-05-14refactor starmath view/edit classes to use RenderContextTomaž Vajngerl3-155/+127
Change-Id: I741e596a665119b50597586e9b0b5e8339a826ae
2015-05-14refacor starmath dialogs to use RenderContextTomaž Vajngerl1-31/+26
Change-Id: I077fb1fbb3a5b55c50b61235ef9f0315c342faa4
2015-05-14refactor ElementsDockingWindow to use RenderContextTomaž Vajngerl1-41/+29
Change-Id: I3a37883fc7688d4edd978e38e545e2386ae814b0
2015-05-13tdf#68871 Nuke old Elements box from menu, rename new paneAdolfo Jayme Barrientos2-2/+1
Change-Id: I22301e72a8cb8d11ad35ea63e6361b56e7c7e867
2015-05-13convert FRAME_DRAW constants to scoped enumNoel Grandin1-2/+2
Change-Id: I98e52aa56ec063ecc8f3d10baef65eb293c726bf
2015-05-12tdf#68871: Remove the old Elements panel from MathJulien Nabet9-728/+0
Conflicts: starmath/inc/toolbox.hxx starmath/source/toolbox.cxx Change-Id: Ie148d57dc14ed3f38566c24ee027f23e25987810 Reviewed-on: https://gerrit.libreoffice.org/15599 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-12Switch VclBuilder constructors to use VclPtr.Michael Meeks1-4/+3
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
2015-05-11Revert "Switch VclBuilder constructors to use VclPtr."Michael Meeks1-3/+3
Behaves oddly; not ready yet. This reverts commit 9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c. Change-Id: I30d746eac29d1dbe78d3072b10d2e22c051e3f4e
2015-05-11Switch VclBuilder constructors to use VclPtr.Michael Meeks1-3/+3
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
2015-05-11convert COMMAND_ constants to scoped enumNoel Grandin2-4/+6
Change-Id: I88e67f89dbbab0646e8f106dfeb32c6ee1bb0b95 Reviewed-on: https://gerrit.libreoffice.org/15671 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-11tdf#91052 - more macros for 'make' constructors.Michael Meeks2-13/+7
Change-Id: Ic7ff127e2793993f9dcf1018f8d5ed4f2858a2c4
2015-05-11sw,sc,sd,starmath: convert to vcl::RenderContextNoel Grandin2-2/+2
Change-Id: I5d0a3b8ed1c49ba2806e0fa528d908da45afd58c
2015-05-10No more need for EMPTYARG in C++11Stephan Bergmann2-17/+17
Change-Id: I8a6abc563fa80a801d1907100d0b1138d260c36e
2015-05-07Unwind SotStorageStreamRef typedefStephan Bergmann3-6/+6
Change-Id: If7652a7c0251b741660365848a717c06954ca419
2015-05-07Unwind SotStorageRef typedefStephan Bergmann4-4/+4
Change-Id: I8d5363bb2ad813ef29b4078848914f4b0989b9f1
2015-05-07Remove SvStorageRef aliasStephan Bergmann3-3/+3
Change-Id: Icd1bf88cefac929916ece9a30b9b65c5297ec2a3
2015-05-07Remove SvStorageStream aliasStephan Bergmann3-5/+5
Change-Id: I9d835e6032e2366e5357240609ff0e60273d475b
2015-05-07Remove SvStorageStreamRef aliasStephan Bergmann3-6/+6
Change-Id: Ic25c39adf8796bb433fa7746f53a68e3e2bfd228
2015-05-07drop unused debugging ColorCaolán McNamara1-3/+0
Change-Id: I02fc8f71543e7fda48fbbce131abd172c8c03259
2015-05-06convert DEFAULTFONT_ constants to scoped enumNoel Grandin2-29/+29
Change-Id: Ia33e957f6cf530e2639b3c86d9482f642652cb46
2015-05-06Use various typed ToolBox::Set*Hdl LinksStephan Bergmann2-6/+4
Change-Id: Iddfd36ae0de86fdd2d4febb2c05d1fe0c02801f0
2015-05-05vcl: rename other members of StateChangedType for consistencyMichael Stahl2-3/+3
Change-Id: Ifd3339813e5d3dfb54566fd226aaf2d2a199d59a
2015-05-05loplugin:staticmethodsNoel Grandin23-61/+57
Change-Id: I4d19f868a618cb135aa7a949222972dc35b47d2a
2015-05-05Use typed Idle::SetIdleHdl LinkStephan Bergmann2-8/+5
Change-Id: I189937950325dc4ef663f7f49cb45f38f8537de9
2015-05-05Use typed Timer::SetTimeoutHdl LinkStephan Bergmann2-7/+4
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-05-04prefer OUStringBuffer to concatenating OUString in a loopTakeshi Abe1-3/+7
Change-Id: Ia617e6e3524264ecc62d50bb8b58d1458b8e3303 Reviewed-on: https://gerrit.libreoffice.org/15582 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-05-03starmath: Convert many services to constructors.Jan Holesovsky4-184/+30
Change-Id: Iadeb0723ec4f4d30996aa5677b936de9f11ffadc
2015-05-02Audit LoseFocus - forms, reportdesign, sc, starmath, svtools.Michael Meeks1-2/+3
Change-Id: If7068e59c88e8c3c3bafc70f64899a26d739e331
2015-04-30Gradually typed LinkStephan Bergmann3-13/+13
Turn the Link class into a template abstracting over the link's argument and return types, but provide default template arguments that keep the generic, unsafe "void* in, sal_IntPtr out" behvior. That way, individual uses of the Link class can be updated over time. All the related macros are duplicated with ..._TYPED counterparts, that additionally take the RetType (except for LINK_TYPED, which manages to infer the relevant types from the supplied Member). (It would have been attractive to change the "untyped" LinkStubs from taking a void* to a properly typed ArgType parameter, too, but that would cause -fsanitize=function to flag uses of "untyped" Link::Call.) Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
2015-04-30Get rid of the initial :: for the vcl namespaceTor Lillqvist2-3/+3
We used it all over the place without leading :: already anyway, even in many files in include. So let's be consistent. In the majority of cases, prefer the easier-on-the-eyes choice, not the "safe" one. In those files in include where *all* existing uses of ::vcl:: indeed used the :: prefix, there let's keep it for consistency. Change-Id: If99cb41d3bf290d38c601d91125c3c8d935e61d0
2015-04-29Remove unnecessary IMPL_LINK[_NOARG]_INLINE_START/ENDStephan Bergmann3-15/+6
...just use IMPL_LINK[_NOARG] and let the compiler decide what to inline Change-Id: I63ec5116df7e79093ebf31193f8c674f1351c0e6
2015-04-29error C2666: 'operator ==' : 2 overloads have similar conversionsDavid Tardon1-1/+2
Change-Id: I94b54586477ae0cad3b5351953cccffffecbf902
2015-04-29convert STR_EVENT constants to scoped enumNoel Grandin1-1/+1
- also add needed infrastructure to o3tl::enumarray so we can use std::find on it - move the Impl inside the .cxx file, no need to expose it in the header Change-Id: I7758a6175849f46723d97b1e657f846524c3b7cd
2015-04-29avoid ambiguityStephan Bergmann1-1/+1
Change-Id: Iaccb07e1060ea2f3aa611170895da3e72bf6fefd