summaryrefslogtreecommitdiff
path: root/starmath
AgeCommit message (Collapse)AuthorFilesLines
2016-07-20Replace fallthrough comments with new SAL_FALLTHROUGH macroStephan Bergmann4-5/+5
...which (in LIBO_INTERNAL_ONLY) for Clang expands to [[clang::fallthrough]] in preparation of enabling -Wimplicit-fallthrough. (This is only relevant for C++11, as neither C nor old C++ has a way to annotate intended fallthroughs.) Could use BOOST_FALLTHROUGH instead of introducing our own SAL_FALLTHROUGH, but that would require adding back in dependencies on boost_headers to many libraries where we carefully removed any remaining Boost dependencies only recently. (At least make SAL_FALLTHROUGH strictly LIBO_INTERNAL_ONLY, so its future evolution will not have any impact on the stable URE interface.) C++17 will have a proper [[fallthroug]], eventually removing the need for a macro altogether. (cherry picked from commit 14cd5182c5f64c43581c82db8c958369152226ac) Change-Id: I342a7610a107db7d7a344ea9cbddfd9714d7e9ca
2016-07-20use Any constructor instead of temporariesNoel Grandin1-10/+4
(cherry picked from commit 58a32075ca4f457f570af75aef368dd6c389aca7) Change-Id: Iffb82a2cee1a28d89eeea2b905aaa14086ee475a
2016-07-20vcl: rename Font::GetName to Font::GetFamilyNameChris Sherlock7-15/+15
Reviewed-on: https://gerrit.libreoffice.org/21529 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> (cherry picked from commit 28c96fc2553a5c3dee108f1e2060d7bc081a7e7e) Change-Id: Ie20871a3078bf875c1782b7761d60591a9c9704f
2016-07-20Fix typosAndrea Gelmini7-10/+10
Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 64d624b65124ac02d8ee59b135593fd9d8eb9067) Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86
2016-07-13starmath: Fix missing negationTakeshi Abe1-1/+1
which was a regression from fa614231733800f4a961b77e36c86f8840d12251. Change-Id: Ia7bab72dbd6f82519024809cf6384e1442a02327 Reviewed-on: https://gerrit.libreoffice.org/27033 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> (cherry picked from commit 2fcb8022a22b55b6680af57f2b101d56a3d88e36) (cherry picked from commit ccc92a4706c2fa72a17e736cff8fbf70cec2b2f9)
2016-07-12Remove excess newlinesChris Sherlock29-207/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> (cherry picked from commit a238b1f8d304bf1e2ffb357937f3ec888ee8ac89) Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
2016-07-12update loplugin stylepolice to check local pointers varsNoel Grandin2-8/+8
are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit e8fd5a07eca70912ddee45aaa34d434809b59fb7) Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1
2016-05-17Resolves: tdf#99556 if the num of arguments is not 1 infer a rowCaolán McNamara3-5/+18
not just if the num of arguments is > 1 (cherry picked from commit eb2da27e0834925d449373593fb650db49671adf) Change-Id: If0cae16cc52685315708ac3b2b8456ede7c1a6ce Reviewed-on: https://gerrit.libreoffice.org/24963 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-13tdf#98088: prevent access to invalid sub nodeOliver Specht1-1/+2
Change-Id: I73bd77682bfb60474ba18ca85bc5d008c70a7f97 Reviewed-on: https://gerrit.libreoffice.org/22715 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 529e06a1b855ac83468230a15903aeafe1ac89a7)
2016-03-12Resolves tdf#88485: Allow to select rightmost symbols in the dialogTakeshi Abe1-0/+2
by adjusting target area with proper offsets. Change-Id: I66100c898354909623991c3af3e78287d6f5a9a0 Reviewed-on: https://gerrit.libreoffice.org/23147 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 e7e1d50fc0c8077be9d9603eab8ef86098c9aa24) Reviewed-on: https://gerrit.libreoffice.org/23158
2016-02-02Resolves: tdf#97495 fix SmElementsControl tooltipsCaolán McNamara2-8/+51
instead of setting a single tooltip for the whole panel area, wait for a tooltip request and specify the area to which it applies. Which is what other widgets that have different tooltip areas do, and maps much better to the gtk3 tooltip system which functions like that too. Change-Id: I56f452562c3c4d9dcec4109a8ee6168f34619472 (cherry picked from commit f6c3c942976d615972674c5a5e12337d07be104c)
2016-01-27starmath: fix OOXML export of non-BMP UnicodeMichael Stahl1-3/+3
(cherry picked from commit 331a0a347e2ed238ff41c8cd7815b946cc95ac0f) Change-Id: Iafaeb9ea2e96ee6d8cc96174731ba3845c230b5e Reviewed-on: https://gerrit.libreoffice.org/21785 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-01-25i18npool: handle non-BMP Unicode in cclass_Unicode::parseText()Michael Stahl1-4/+22
The UTF-16 code unit limitation was mangling starmath import. Change-Id: I087e5c5b7954799fdb73e7ee1a8d3d02669f8831 (cherry picked from commit fefd1221be844a033e409a18e05e8c6e98f6d1a7) Reviewed-on: https://gerrit.libreoffice.org/21784 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-01-21starmath: only use WordProcessingML elements in DOCX filesMichael Stahl6-9/+26
Change-Id: I1b0f6d67bd0db0796756fd920ab92303a7ee7d79 (cherry picked from commit 80b55dcfc9754553e42625d0d6e9ebbb728200eb) Reviewed-on: https://gerrit.libreoffice.org/21494 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-11-23starmath: Prefix members of SmCaretPos2LineVisitorTakeshi Abe2-16/+17
Change-Id: I277a66d32af51af7e28fd424dedd7980619e9d6e Reviewed-on: https://gerrit.libreoffice.org/20104 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-11-22cppcheck: redundantAssignmentTakeshi Abe1-1/+0
Change-Id: Iad347c2575cdbd6ee117461ea89f16234ecdd49e
2015-11-20Remove last redundant toolbar:style propertiesSamuel Mehrbrodt1-1/+1
Change-Id: I42fa834464fd4cd7f0c1f11e310c1145fb1f071b
2015-11-20starmath: Use std::unique_ptr for exception safetyTakeshi Abe1-4/+3
Change-Id: Idc71dc410000b88463440dd18f41ff945b7616d7
2015-11-19Remove redundant toolbar:style attributesSamuel Mehrbrodt1-1/+1
These have been defined in the widgets Change-Id: If46a6862872286a454804846128bd8658f60af9b
2015-11-17Toolbar: Remove empty attributesSamuel Mehrbrodt3-24/+24
Change-Id: Id78cae55eb89520bd87713f9ea6c009c922f2870
2015-11-17Add SvStream::ReadUtf16 (don't assume sal_Unicode is unsigned short)Stephan Bergmann1-1/+1
Change-Id: I74f34e3389582617fa83f8f4a3d6867cf87189e1
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian1-172/+134
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-115th step to remove tools/rtti.hxxOliver Specht7-8/+0
tools/rtti.hxx removed completed the interface of some Sdr.* Items and removed pseudo items Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a Reviewed-on: https://gerrit.libreoffice.org/19837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-10starmath: Assert FindIndex()'s preconditionTakeshi Abe1-5/+5
by using std::assert rather thatn DBG_ASSERT. Change-Id: I8fca2b82f8d86a843c024556a0a29c7848b1e602 Reviewed-on: https://gerrit.libreoffice.org/19294 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-10tdf#43090: Add option to disable auto close bracketsMarcos Paulo de Souza10-2/+59
As many users asked, now there is a checkbox inside Tools->Math called "Auto close brackets, parentheses and braces". This option is enabled by default, but can be turned off now. Change-Id: I6f96201c0720fb62fc2dce99222f97194e930fbe Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/19750 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann35-315/+315
Change-Id: Ife1eef04d905f12308b64b971176c2f045a1b268
2015-11-09starmath: replace boost::ptr_deque with std::deque<std::unique_ptr>Michael Stahl3-150/+168
Change-Id: I1d2671a0b355bd4dbb195d69af2c432c50df904e
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann9-15/+15
Change-Id: Id5b78aa78fc585a67712fa44329479a86230d194
2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin2-20/+9
Change-Id: Ib93d762cf523e0029bbed16e08beebd9f418ae24
2015-11-04yyyyyNoel Grandin2-5/+5
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-10-29com::sun::star->css in starmath,stoc,svgio,svlNoel Grandin15-231/+223
Change-Id: If4308b358a55351f6e951ebf055df076ce4ad4ce Reviewed-on: https://gerrit.libreoffice.org/19667 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-20loplugin:defaultparamsStephan Bergmann5-10/+10
Change-Id: Ib596b759e876a4a7d341e1b476bfec9f7a54069e
2015-10-19loplugin:defaultparamsStephan Bergmann4-4/+4
Change-Id: I7a836a62f5614415e7aa982133ef7b34262e0bf9
2015-10-16convert Link<> to typedNoel Grandin2-17/+15
Change-Id: Icbba339dac0be31e30dff021bba06a219f8aecd6 Reviewed-on: https://gerrit.libreoffice.org/19405 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-15tdf#73691 - add alt-x support to mathJustin Luth3-0/+76
At the request of bug tdf#94957, adding unicode conversion shortcut (alt+x) to Math also. Change-Id: I5b4d17543a819f035ade0d9a516eeef8542a286e Reviewed-on: https://gerrit.libreoffice.org/19323 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-15convert Link<> to typedNoel Grandin2-20/+16
Change-Id: I6c55c74d47b13149c2fa210bb9de4e8c430c57cc
2015-10-14Fix gb_Library_use_externals callStephan Bergmann1-1/+4
...from d8f46f854ee64ad9fe6356a8d4b30f98f3b20135 "enable ICU_HEADER includes for starmath" Change-Id: Idcafaeb6a43c4aa423a2c7a7ea4669d4fdaf3744
2015-10-13enable ICU_HEADER includes for starmathJustin Luth1-1/+1
Although $include <i18nutils/unicode.hxx> compiles on Linux, it doesn't compile on the Mac without this. Change-Id: I56eae77b1c293b2348ca1fd7b38b543ea713557d Reviewed-on: https://gerrit.libreoffice.org/19355 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org> Tested-by: Justin Luth <justin_luth@sil.org>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann25-658/+658
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann4-19/+19
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-12convert Link<> to typedNoel Grandin6-21/+14
Change-Id: Iec15042138e0715459b2c9e872a7464d75a6b1eb Reviewed-on: https://gerrit.libreoffice.org/19305 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-09starmath: Prefix members of SmNodeTakeshi Abe2-52/+52
Change-Id: I2658b8fc9d36fe92dd91e0f5adc27612ce1dc438 Reviewed-on: https://gerrit.libreoffice.org/19268 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-10-08starmath: Represent ownership by std::unique_ptrTakeshi Abe2-6/+4
Change-Id: I7ce39cbdc0199d3508e7d16d1ce0b78f8d8ca620 Reviewed-on: https://gerrit.libreoffice.org/19230 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-07starmath: Prefix members of SmCursorTakeshi Abe2-117/+117
Change-Id: Ib3407b5457f4d69294c95879455553dc013cc340 Reviewed-on: https://gerrit.libreoffice.org/19186 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-06 tdf#94559: 4th step to remove rtti.hxxOliver Specht6-12/+10
replaced use of PTR_CAST, IS_TYPE, ISA in idl, editeng, sc, sd, sw, sfx2, sot, starmath Change-Id: I4a5bba4fdc4829099618c09b690c83f876a3d653 Reviewed-on: https://gerrit.libreoffice.org/19132 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-10-05starmath: Simply add elements to the end of the vectorTakeshi Abe1-15/+5
No logic changed. Change-Id: I5df80d6c31f1c103c49ac4310a7d06da57d1a05f Reviewed-on: https://gerrit.libreoffice.org/19142 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-05starmath: Kill c-style castTakeshi Abe1-2/+2
Change-Id: I6f65c2518b25fbe3a08070e81c33ce346ffb0801 Reviewed-on: https://gerrit.libreoffice.org/19117 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-05starmath: Avoid unnecessary castTakeshi Abe1-6/+3
Change-Id: I18abd676b81c714e21ad83acbe4a4163fd5830fb Reviewed-on: https://gerrit.libreoffice.org/19116 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-02starmath: it is just a stack that is needed hereTakeshi Abe1-10/+10
Change-Id: I5b929a462f8084105ba6254e53e9d5bfa0a96c79 Reviewed-on: https://gerrit.libreoffice.org/19096 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-10-02starmath: SmAlignNode has only one childTakeshi Abe2-1/+3
So, do not bother to extend its children array. Change-Id: I9550501469aec5c4420f127ab64003c5ab14f9c1 Reviewed-on: https://gerrit.libreoffice.org/19089 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>