3181 Commits

Author SHA1 Message Date
Noel Grandin
dfd5510a7a convert SmBracketType to scoped enum
and drop unused enumerators

Change-Id: Icda3ff510331f9f0adb97d6dac56edf325d0d1a7
2017-02-15 08:33:37 +02:00
Takeshi Abe
a88c0611e7 starmath: Avoid unnecessary stack operations in parsing
unless the top is "nospace".

Change-Id: I03cfa2b8223298370d9d82ce5e149d61e8793737
Reviewed-on: https://gerrit.libreoffice.org/34249
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-02-15 01:14:17 +00:00
Takeshi Abe
3bec0fd8cd starmath: This condition always holds
Change-Id: I6d47676dc71644766fdaea7033c53efa0bf9b549
Reviewed-on: https://gerrit.libreoffice.org/34212
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-02-14 01:34:32 +00:00
Julien Nabet
2b21ac16c2 Various typos on accessible
Change-Id: Id28a4a2cbbcec10a7cc9cb40ad208d575352039b
Reviewed-on: https://gerrit.libreoffice.org/34161
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-12 07:43:23 +00:00
Takeshi Abe
ad849f4bda starmath: Make stricter assertion to prevent out of range
Change-Id: I3ce0712e5095ade35628bad026a91a11dc6b9967
Reviewed-on: https://gerrit.libreoffice.org/34146
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-02-11 11:14:59 +00:00
Takeshi Abe
765ba08d0b starmath: Kill redundant check
Change-Id: I45f873f3733800c43c36b38dcefb79eba46b9007
Reviewed-on: https://gerrit.libreoffice.org/34030
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-02-10 00:43:06 +00:00
Stephan Bergmann
6dce9c6757 Add missing #includes
...and remove some unncessary using directives/declarations, in preparation of
removing now-unnecessary #includes from cppumaker-generated files, post
e57ca02849c3d87142ff5ff9099a212e72b8139c "Remove dynamic exception
specifications".

Change-Id: Iaf1f268871e2ee1d1c76cf90f03557527ebc9067
2017-02-06 17:21:16 +01:00
Maxim Monastirsky
eb0b727b87 .uno:ScriptOrganizer should be menu:menuitem
... so it won't show as an empty submenu in the
customization dialog, and allow accidentally
overwriting it.

Change-Id: I9431e5240485a58f63a2333850a9052e475db63e
2017-02-05 22:08:43 +02:00
Takeshi Abe
c0d3916cb7 starmath: Prefix member of SmNodeToTextVisitor
Change-Id: I83f5c5664aca925f874be8ac939356228697d05f
Reviewed-on: https://gerrit.libreoffice.org/33850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-02-03 04:34:55 +00:00
Noel Grandin
4978328534 convert method names in tools::SvRef to be more like our other..
reference classes, uno::Reference and rtl::Reference.

Specifically rename Is()->is() and Clear()->clear().

Change-Id: Icb7e05e2d09cb9977121508b837ba0961dabb4ae
Reviewed-on: https://gerrit.libreoffice.org/33576
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-02 08:02:54 +00:00
Takeshi Abe
d7736283aa starmath: these functions are local
Change-Id: I7b1c9722e300585603ce54610d7ef20425a4e634
Reviewed-on: https://gerrit.libreoffice.org/33797
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-02-02 00:32:16 +00:00
Noel Grandin
2489000d3f loplugin:useuniqueptr extend to check local vars
just the simple and obvious case for now, of a local var being allocated
and deleted inside a single local block, and the delete happening at the
end of the block

Change-Id: I3a7a094da543debdcd2374737c2ecff91d644625
Reviewed-on: https://gerrit.libreoffice.org/33749
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01 12:15:22 +00:00
Takeshi Abe
cd2088f139 starmath: Simplify and micro-optimize lookup in SmIsMathAlpha()
Change-Id: Ica2e0d14141785b9e14c05179e517117afadc5e0
Reviewed-on: https://gerrit.libreoffice.org/33734
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-02-01 03:51:27 +00:00
Gabor Kelemen
695c8bc98a tdf#105571 Drop toolbar:helpid attribute from toolbar definitions
These are no longer useful.
Made with:
git grep toolbar:helpid | cut -d : -f1 | sort -u | xargs sed -i -r -e 's/ toolbar:helpid="[0-9]*"//'
git grep toolbar:helpid | cut -d : -f1 | sort -u | xargs sed -i -r -e 's/ toolbar:helpid=""//'1

Change-Id: If1bf04265f4e03b44b6a92529f6133aff1589526
Reviewed-on: https://gerrit.libreoffice.org/33642
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-01-31 09:11:47 +00:00
Noel Grandin
1c3e84d819 teach lolugin:stringconstant about calling constructors
so we can remove unnecessary calls to the OUString(literal) constructor
when calling constructors like this:
   Foo(OUString("xxx"), 1)

Change-Id: I1de60ef561437c86b27dc9cb095a5deb2e103b36
Reviewed-on: https://gerrit.libreoffice.org/33698
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-31 08:56:20 +00:00
Takeshi Abe
11a979cb8a starmath: Make some functions private, instead of protected
Change-Id: Ic1192a2fca86833e9efd954c7625fb4f84f46b7c
Reviewed-on: https://gerrit.libreoffice.org/33618
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-30 03:57:33 +00:00
Julien Nabet
68155a6857 tdf#105483: let's put lowercase Greek letter in italic
and let uppercase one in non italic
See comments from tdf#52225 in addition to initial description of this one

+ adapt QA tests associated (keep on to test "0" case)

Change-Id: Ia84685fc5d336dd96b97d02c0e81f92e7966a6f1
Reviewed-on: https://gerrit.libreoffice.org/33480
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-26 18:53:18 +00:00
Stephan Bergmann
e57ca02849 Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only).  See the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html>
"Dynamic Exception Specifications" for details.

Most changes have been done automatically by the rewriting loplugin:dynexcspec
(after enabling the rewriting mode, to be committed shortly).  The way it only
removes exception specs from declarations if it also sees a definition, it
identified some dead declarations-w/o-definitions (that have been removed
manually) and some cases where a definition appeared in multiple include files
(which have also been cleaned up manually).  There's also been cases of macro
paramters (that were used to abstract over exception specs) that have become
unused now (and been removed).

Furthermore, some code needed to be cleaned up manually
(avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
configurations available that would actually build that code.  Missing @throws
documentation has not been applied in such manual clean-up.

Change-Id: I3408691256c9b0c12bc5332de976743626e13960
Reviewed-on: https://gerrit.libreoffice.org/33574
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-26 12:54:43 +00:00
Noel Grandin
0d172a8030 use rtl::Reference in SmGraphicWindow
instead of storing both a raw pointer and an uno::Reference

Change-Id: Ib84809bee35c01fb590439174740d92bf4cd54bd
2017-01-26 08:13:46 +02:00
Noel Grandin
2608523b69 loplugin: unnecessary destructor sfx2..store
Change-Id: Idbf2585e48cd89a43ab68c5c8819880d20461ccf
Reviewed-on: https://gerrit.libreoffice.org/33514
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-25 10:26:05 +00:00
Takeshi Abe
6d898945d5 Fix typo in comments: relativ -> relative
Change-Id: I58833e503e93b8057f92710c5828bba6cecd4e09
Reviewed-on: https://gerrit.libreoffice.org/33488
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-25 06:05:54 +00:00
Takeshi Abe
c2850bab4f starmath: Inline and remove SmRect::BuildRect()
because a ctor was its only client.

Change-Id: I31cce925231210930576bf93396f9d7aa44a5a71
Reviewed-on: https://gerrit.libreoffice.org/33414
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-24 03:09:37 +00:00
Jan-Marek Glogowski
bf110d40ef Change all Idle* LINKs to be Timer*
Seem UBSAN doesn't like my forced reinterpret_cast to set the Idles
Link in the Timer class. Now there are two possible solution:

  1. convert all (DECL|IMPL).*_LINK call sites to use a Timer* or
  2. split the inheritance of Idle from Timer again to maintain
     different Link<>s and move all common code into a TimerBase.

While the 1st is more correct, the 2nd has a better indicator for
Idles. This implements the first solution.

And while at it, this also converts all call sites of SetTimeoutHdl
and SetIdleHdl to SetInvokeHandler and gets rid of some local Link
objects, which are just passed to the SetInvokeHandler call.

It also introduces ClearInvokeHandler() and replaces the respective
call sites of SetInvokeHandler( Link<Timer *, void>() ).

Change-Id: I40c4167b1493997b7f136add4dad2f4ff5504b69
2017-01-23 20:49:05 +01:00
Takeshi Abe
cef8ebe925 starmath: Avoid ad hoc LanguageTag and CharClass at tokenization
Instead, keep them as SmParser's members.

Change-Id: I8a2aad7ba8baaad9a761f42f62d51fc67cadec07
Reviewed-on: https://gerrit.libreoffice.org/32348
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-20 02:25:59 +00:00
Stephan Bergmann
dcb992ae2a New loplugin:dynexcspec: Add @throws documentation, starmath
Change-Id: I1181cd9fd50fc0307c4475abb8c59e3f16bade91
2017-01-19 18:03:13 +01:00
Jochen Nitschke
e87071ac57 replace boost::checked_deleter with std::default_delete
and remove all traces of boost/checked_delete.hpp

Change-Id: I4486d0e07a7197d75f8739c8c6d79670163eaab2
Reviewed-on: https://gerrit.libreoffice.org/33182
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-01-17 20:24:17 +00:00
Jan-Marek Glogowski
fdc612619c Refactor Scheduler to add Task class
Moves all the "task-specific" stuff into a Task class and just
keeps the "real" static Scheduler functions in the original
Scheduler class.

Change-Id: I9eb02d46e2bcf1abb06af5bab1fa0ee734d1984c
2017-01-17 16:08:47 +01:00
Takeshi Abe
98e910fbec starmath: Rely on the default ctors for SmRect
No need to define its copy ctor manually nor to use
placement new for assignment operator.

Change-Id: I679a19c1d1a87072d818cdfa4a9347edb6f4cea1
Reviewed-on: https://gerrit.libreoffice.org/33202
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-17 11:39:41 +00:00
Takeshi Abe
be7d0697b0 starmath: Kill unused forward declaration
Change-Id: I03f76aada322a7222795795d32553ae2425092c3
Reviewed-on: https://gerrit.libreoffice.org/32962
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-11 14:18:26 +00:00
Takeshi Abe
0e911397c9 starmath: Prefix members of SmViewShell
Change-Id: I256b251b6aaad487ab0afeb56ee67a4a33769e8f
Reviewed-on: https://gerrit.libreoffice.org/32777
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-11 07:04:30 +00:00
Stephan Bergmann
d09f0799e9 New loplugin:conststringvar: starmath
Change-Id: I23efecd90ee3e89afd0159ac2eaca78bb0a92685
2017-01-10 08:10:19 +01:00
Takeshi Abe
49f10e92dc starmath: SmGraphicWindow requires non-null pViewShell
Change-Id: Ic1e0f3f7aefb801cdda4709c3d43794ad9a21b02
Reviewed-on: https://gerrit.libreoffice.org/32722
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-01-04 14:00:48 +00:00
Takeshi Abe
d3c1a84d4c starmath: Reenable a test case for SmNodeToTextVisitor
by fixing a regression which seems introduced at
4f294a90877d2f91bb88c7d6cd5b74e8e546a025.

Change-Id: If47f7528f5b5fd04432da134f345d69c25a1ca77
Reviewed-on: https://gerrit.libreoffice.org/32665
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-04 02:05:24 +00:00
Takeshi Abe
20abf5f66b starmath: Assert that GetDoc() is non-null here
Change-Id: I694f42a5bf2917e99bdf77d3cf7122cf1bb920ae
Reviewed-on: https://gerrit.libreoffice.org/32596
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-02 12:33:34 +00:00
Takeshi Abe
a5e9c5e350 starmath: Prefix members of SmSelectionDrawingVisitor
Change-Id: I889da35c24919157e5b01225df10947c790ebf66
Reviewed-on: https://gerrit.libreoffice.org/32547
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-01 16:56:00 +00:00
Takeshi Abe
fc0d4e6bc4 starmath: Prefix member of SmCloningVisitor
Change-Id: I21511074a4dd2d0bf410401dfce7c43437824979
Reviewed-on: https://gerrit.libreoffice.org/32526
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2016-12-31 10:04:44 +00:00
Takeshi Abe
95d47fbf41 starmath: SmCaretPos's index must be non-negative
Change-Id: I69a2fc0c9ccaa76a0d93127ac6a1544fe9924605
Reviewed-on: https://gerrit.libreoffice.org/32444
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-27 18:29:19 +00:00
Takeshi Abe
d6a7f7fe98 starmath: Prefix n to SmCaretPos's Index
Change-Id: Ie1647d8143c4c38ebcf5111bffc291c26704c4c0
Reviewed-on: https://gerrit.libreoffice.org/32428
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-26 12:17:13 +00:00
Noel Grandin
ed2b8ca92a convert SFX_EVENT constants to scoped enum
SFX_EVENT_CLOSEAPP and SFX_EVENT_TOGGLEFULLSCREENMODE are never
generated,
so remove them and delete the code that receives them

Change-Id: I2d003ba73fff0b02120ba29ff58e1d2399dedf00
Reviewed-on: https://gerrit.libreoffice.org/32168
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-20 06:08:30 +00:00
Caolán McNamara
8ae20343bb make IOS hack a DISABLE_DYNLOADING hack and extend for basctl+starmath
Change-Id: I07057dec477051ddc96600f467ffbb0c8bd1da5f
Reviewed-on: https://gerrit.libreoffice.org/32144
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-12-19 08:53:21 +00:00
Takeshi Abe
77eac365c1 tdf#91767 Read SfxItemSet before disposing its AbstractSvxZoomDialog
Change-Id: I5dc6a1b1fa42a4fd76af398c2fb56461574900ee
Reviewed-on: https://gerrit.libreoffice.org/31980
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-14 08:06:57 +00:00
Noel Grandin
d6f2dd831a remove useless Mutex guards
Change-Id: Ib1edb681b47ce98e2e810d15111932002786aa51
Reviewed-on: https://gerrit.libreoffice.org/31875
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-12 09:16:09 +00:00
Takeshi Abe
424553f160 starmath: Omit empty dtor
Change-Id: I7c905255627fb5286378e077d52932e9b184f054
Reviewed-on: https://gerrit.libreoffice.org/31853
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-12 07:31:45 +00:00
Noel Grandin
a66731982e convert SFX_HINT to scoped enum
Notes

(*) In SC, BULK_DATACHANGED was or'ed into the hint id. Replaced with a
dynamic_cast check.

(*) In SC, removed the hint id field from ScIndexHint, no point in
storing the hint id twice

(*) Fold the SfxStyleSheetHintId enum into the new SfxHintId enum, no
point in storing two different hint ids

(*) In some cases, multiple #define's used to map to the same SFX_HINT
value (notably the SFX_HINT_USER* values). I made all of those separate
values.

Change-Id: I990e2fb587335ebc51c9005588c6a44f768d9de5
Reviewed-on: https://gerrit.libreoffice.org/31751
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-08 12:35:09 +00:00
Mike Kaganski
1d74d19a76 Monkey business: Fix typo in comments: et -> ed :)
Change-Id: I91440e8582108b9121ac6525c8ac88ad6f218a60
Reviewed-on: https://gerrit.libreoffice.org/31721
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2016-12-07 11:28:59 +00:00
Takeshi Abe
f7834582a7 starmath: Add unit test for importing MathML's mathcolor
Change-Id: I1e6378834889d6808a1aa724b2cc72c59b02435e
Reviewed-on: https://gerrit.libreoffice.org/31671
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-07 01:02:04 +00:00
Takeshi Abe
4b6c66daa8 starmath: Require that they are non-0 vectors
Otherwise, division by zero would happen.

Change-Id: I77fde7da87f32ba530482e80623bb449313cf986
Reviewed-on: https://gerrit.libreoffice.org/31670
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-07 00:59:00 +00:00
Stephan Bergmann
9b8fb82150 loplugin:unnecessaryoverride
Change-Id: Iac074bd6f59d2fc890459b45801d0a6143c3eb9e
2016-12-06 10:20:01 +01:00
Takeshi Abe
59a59de8be starmath: Prefix members of SmStructureNode
Change-Id: I58f6ca7585ef726d4ac3f555118832a4434f4e3c
Reviewed-on: https://gerrit.libreoffice.org/31629
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-05 16:58:29 +00:00
Takeshi Abe
0d2e083fed starmath: Prefix members of SmPolyLineNode etc.
Change-Id: I6fa81689e14e605cd7449526e44245d4fdebb298
Reviewed-on: https://gerrit.libreoffice.org/31536
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-03 11:41:32 +00:00