# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # $(eval $(call gb_ExternalProject_ExternalProject,libmspub)) $(eval $(call gb_ExternalProject_use_autoconf,libmspub,build)) $(eval $(call gb_ExternalProject_register_targets,libmspub,\ build \ )) $(eval $(call gb_ExternalProject_use_externals,libmspub,\ boost_headers \ icu \ wpd \ wpg \ )) $(call gb_ExternalProject_get_state_target,libmspub,build) : $(call gb_ExternalProject_run,build,\ export PKG_CONFIG="" \ && ./configure \ --with-pic \ --enable-static \ --disable-shared \ --without-docs \ --disable-debug \ --disable-werror \ --disable-weffc \ $(if $(filter NO,$(SYSTEM_BOOST)),CXXFLAGS=-I$(call gb_UnpackedTarball_get_dir,boost),CXXFLAGS=$(BOOST_CPPFLAGS)) \ $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ && (cd $(EXTERNAL_WORKDIR)/src/lib && \ $(if $(VERBOSE)$(verbose),V=1) \ $(MAKE)) \ ) # vim: set noet sw=4 ts=4: .1'>distro/capgemini/cg-4.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
AgeCommit message (Collapse)Author
2014-06-24new compilerplugin returnbyrefNoel Grandin
Find places where we are returning a pointer to something, where we can be returning a reference. e.g. class A { struct X x; public X* getX() { return &x; } } which can be: public X& getX() { return x; } Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-05-05simplify ternary conditions "xxx ? yyy : false"Noel Grandin
Look for code like: xxx ? yyy : false; Which can be simplified to: xxx && yyy Change-Id: Ia33c0e452aa28af3f0658a5382895aaad0246b4d
2014-03-28coverity#705479 Dereference null return valueCaolán McNamara
Change-Id: Id8b6723e7d3d8a66f5a657628e1467edda509cfa
2014-03-09coverity#1078822 Dereference before null checkCaolán McNamara
Change-Id: I6cc2ed1777a797c74b4a6d9618af6a62ad5ff247
2014-03-09we can move the pEditView delete inside the previous check for pEditViewCaolán McNamara
Change-Id: I612a4f8ee1e49b1468a2898678660bd66902fc96
2014-02-26Remove visual noise from starmathAlexander Wilms
Change-Id: I45a716abba68521c5ebc203eed205e717efead7b Reviewed-on: https://gerrit.libreoffice.org/8315 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert
Added vcl/settings.hxx to all cxx files which require it. This helps to speed up compilation after changes to the settings. Conflicts: sc/source/ui/dbgui/pvlaydlg.cxx Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4 Reviewed-on: https://gerrit.libreoffice.org/7933 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-07fdo#65588 - Elements Dock: Scrollbar moves into input windowJosé Guilherme Vanz
This change "solves" the visual problem. But I don't think so this is the best solution Change-Id: I658f7a4182578e49644ae6de281f221499d61ad3 Reviewed-on: https://gerrit.libreoffice.org/6602 Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2013-09-19OUString::copy second arg is len, not indexCaolán McNamara
Change-Id: I54729ad816efd4e51e13c0a2985c591920750d59
2013-09-05String to OUStringThomas Arnhold
And removed nearly all xub_StrLen in starmath. Some sal_uInt16 which were xub_StrLen before 9a0d753b84aed53083bed3ed460308b771f432a8 are also converted to sal_Int32 where applicable. Change-Id: I31d7794f4c7aa840545edff41a102b76bb39e042 Reviewed-on: https://gerrit.libreoffice.org/5817 Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org> Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
2013-09-04String to OUStringThomas Arnhold
Change-Id: I8c51db8fce8c5eea1ac7bd5751aa7f3212ef1166 Reviewed-on: https://gerrit.libreoffice.org/5790 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-03fdo#68877: Select "<?>" as Elements window doMarcos Paulo de Souza
Elements Dock needs to have the same behavior of Elements window. After insert some symbol, if this symbol have some placeholder, select the first placehold to user put some data. This increases usability of Elements Dock. Change-Id: Idc57cc6817d94f698632eb938600a55c8f9afbd8 Reviewed-on: https://gerrit.libreoffice.org/5780 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-02fdo#43090: Last fix for autoclose brackets in MathMarcos Paulo de Souza
We need to swap values of selection in Math when they're make in RTL selection, because Math don't support RTL. Change-Id: I4f8acfb560fa486ecc9f2569f1f331fa6f28d2d4 Reviewed-on: https://gerrit.libreoffice.org/5722 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-02Math: fix focus in Elements DockMarcos Paulo de Souza
When click in Elements Dock, we need to put focus in formula edit. Elements window do this, so this needs to be done in Elements Dock too. Change-Id: I8265d85fcf997344d8269345260499b3690521cb Reviewed-on: https://gerrit.libreoffice.org/5760 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-08-30fdo#32059: Fix this once and for allMarcos Paulo de Souza
Fix a regression from 356b2f0edfd5a01ed05976c1bdb74948ff84b5fd. This regression was about the setSelection function. We inserted the command with a space in the right side of the string, but our selection was not counting the " " character. So, reasign the variable with the space solve this issue. Change-Id: Ic48f1afaec89c6eefe73d051d3b0eba7edbf557e Reviewed-on: https://gerrit.libreoffice.org/5688 Reviewed-by: Ricardo Montania <ricardo@linuxafundo.com.br> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-14fdo#43090: Improve auto close bracketsMarcos Paulo de Souza
Now it works this way: * Auto close in end of current line of formula * Auto close when we have "<?>" selected * Auto close when we're in the beginning of current line. We're adding a space between the brakets, like this: "[ ]" and putting the cursor in the center of these brackets. Change-Id: I8d77bfd7c33f875e7f4070343e634c2b6c45d33c Reviewed-on: https://gerrit.libreoffice.org/5388 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-08Extension to fix all cases of fdo#32059: Commands merge with variablesMichael Duelli
Change 467d5e0a2e074ff2afb4d1b1a37cff2094b0895b fixed insertions of space in front of commands for Elements dialog only. This change also fixes insertion via Elements dock. Change-Id: I37f8510bc4a6dc0145026ca04fbb0443e1e31cd0 Reviewed-on: https://gerrit.libreoffice.org/5225 Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-07-24fdo#43090: Improvement: Just auto close when found placeholderMarcos Paulo de Souza
Another verification needs to be done, auto close when it's in the end of line. Change-Id: I675ac6b6a0477fc9b5747860df8dff2866189433 Reviewed-on: https://gerrit.libreoffice.org/5008 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-26Fix fdo#43090: Auto Closing of bracketsMarcos Paulo de Souza
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-05-31Fix fdo#32059: Commands merge with variablesMarcos Paulo de Souza
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-18Resolves: #ii120149# Flash changes on slot execution to reflect AutoUpdateAriel Constenla-Haile
(cherry picked from commit b73c741c4f792c71623127fdc711dc3f38603083) Conflicts: starmath/source/edit.cxx Change-Id: Ie073deabb1a48f3479a9c6bbf89d1e40f5cea663
2013-05-10resolved fdo#35756 import more than 64k HTML table cellsEike Rathke
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-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-27-Wunused-macrosStephan Bergmann
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-01-21Changed SetText() / GetText() to take/return OUStringChr. Rossmanith
replaced lots of Len() with isEmpty() Change-Id: I6b82d48245ee2a0782e05a326f7934e9357227d0 Reviewed-on: https://gerrit.libreoffice.org/1795 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-10-02String -> OUStringIvan Timofeev
Change-Id: I88873eec738a068152e7d7be0dc4ab86fcfe345a
2012-10-02String -> OUStringIvan Timofeev
Change-Id: I9921e9803e5d63fafffbfcf15e5c4fc2c9080669
2012-08-03Translated German comments in starmath (fdo#39468)Alexander Wilms
Change-Id: If3be0db9213c405525f01c92aa4dd039e3aa6aad Reviewed-by: Philipp Riemer <ruderphilipp@gmail.com>
2012-07-06re-base on ALv2 code. Includes:Michael Meeks
mingwport35: i#117796: MinGW fix to VistaFilePickerImpl.cxx Patch contributed by Takashi Ono http://svn.apache.org/viewvc?view=revision&revision=1172092
2012-06-28ditch slightly suboptimal C2S defineCaolán McNamara
Change-Id: I51abdf8539801f6d93cdc1a21a7e0e1a3d5ef785
2012-06-09Remove superfluous empty lines on topThomas Arnhold
More than two lines are removed for readability. Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-05-13removed unused definesTakeshi Abe
Change-Id: Ida50737f540459bd0e709c49414c3a7f4d042a47