summaryrefslogtreecommitdiff
path: root/forms
AgeCommit message (Collapse)AuthorFilesLines
2014-10-21fdo#84938: replace WINDOW_BORDER constants with enumNoel Grandin1-1/+1
Change-Id: I91ca8e09971aee26f16257a4fd01125cfb2ebcdb
2014-10-20tweak CaughtExceptionCaolán McNamara1-1/+2
Change-Id: If5aac87876b139bfb394ec124136de131c3518ae
2014-10-20Missing includeStephan Bergmann1-1/+3
...and only use getCaughtException as first statement in catch block. Change-Id: Idcac073896b84fd2671b52b2315f454651dbf910
2014-10-20coverity#706540 Uncaught exceptionCaolán McNamara1-0/+12
Change-Id: I175050b5ab66f4eeaa658f0aab1739b175d38d51
2014-10-20coverity#706538 Uncaught exceptionCaolán McNamara1-5/+13
Change-Id: If23396c545e7add653fa9e5ac6e544aaa794120d
2014-10-20fdo#84938: replace TIB_ constants with enumNoel Grandin1-2/+2
Change-Id: I435ce2331fb49e7ce9fe97bdfddfaef706759a84 Reviewed-on: https://gerrit.libreoffice.org/12023 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-17java: final fields that can be staticNoel Grandin2-2/+2
Change-Id: I8c06be7bc0b8a38c662209f0de72a00550e25447
2014-10-17java: no need to call String.valueOf to append to a StringNoel Grandin1-6/+6
Change-Id: I5ef45b971d24dde814ab8cbb2e9503d9da4f0d73
2014-10-16fdo#84854 it seems long is not enough on 32 bitDavid Tardon1-1/+1
Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
2014-10-16java: when rethrowing, store the original exceptionNoel Grandin1-1/+1
Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
2014-10-16java: ensure that the stream is cleaned up before the method returnsRobert Antoni Buj i Gelonch1-3/+11
Change-Id: Id3efeda2fd66173ba2f5662eaacb3629da54573d Reviewed-on: https://gerrit.libreoffice.org/11991 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-13create a macro library for implementing bit-flags typesNoel Grandin1-2/+2
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, changed from a macro- to a template-based solution. (Unfortunately MSVC 2012 does not support explicit conversion operators. Worked around that with explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a baseline that requires unconditional support for them.) Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396
2014-10-11convert vcl StateChangedType to enum classNoel Grandin3-8/+9
Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f Reviewed-on: https://gerrit.libreoffice.org/11843 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca1-1/+1
* Added rational util functions used by Fraction class not available in the boost::rational class. * Replaced usage of Fraction by boost::rational<long> * Removed code that relies on: 1. fraction.IsValid() -- rational only allow valid values, ie denominator() != 0 2. rational.denominator() == 0 -- always false 3. rational.denominator() < 0 -- always false but implementation detail: http://www.boost.org/doc/libs/release/libs/rational/rational.html#Internal%20representation * Simplified code that relies on: 1. rational.denominator() != 0 -- always true * BUGS EXIST because Fraction allows the creation of invalid values but boost::rational throws the exception boost::bad_rational Change-Id: I84970a4956afb3f91ac0c8f726547466319420f9 Reviewed-on: https://gerrit.libreoffice.org/11551 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-10-08back out more wrong and confusing tools::Time comment changesEike Rathke2-2/+2
Apparently fc04f76336fdf8c96e35382cdeb497e2f939705c used some sed script to change all ... Change-Id: Ie609bd02a2c5d70109fc6185cf4440480f29d8f5
2014-10-07java: optimise calls to toArrayNoel Grandin1-3/+1
passing in a correctly sized array requires one less allocation Change-Id: I6198d226d9b630c99c4e8b6e3d0fdf890c495b44
2014-10-02fdo#39468 Make forms/ German comments cleanPhilipp Weissenbacher2-18/+18
Change-Id: Iec24928324bec1caee65ca37cbf0fb5b66e6975e Reviewed-on: https://gerrit.libreoffice.org/11760 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-01forms: enhanced for loopRobert Antoni Buj i Gelonch1-6/+2
Change-Id: I0c83d6fce9440f5d8b23e5f1bfca71d8f61d056b Reviewed-on: https://gerrit.libreoffice.org/11719 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-10-01fdo#82577: Handle TimeNoel Grandin4-12/+12
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-30forms: use Arrays.toString in integration.forms.RadioButtonsRobert Antoni Buj i Gelonch1-10/+2
Change-Id: I797692857c874d879192ca9a4ff73b98ed5ebd86 Reviewed-on: https://gerrit.libreoffice.org/11721 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-30forms: replace StringBuffer with StringBuilderRobert Antoni Buj i Gelonch2-4/+4
Change-Id: Iee1b7ea214e5ed2fdd8bd5fe93dc16fbaaf312a8 Reviewed-on: https://gerrit.libreoffice.org/11720 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-30forms: the assigned value is never usedRobert Antoni Buj i Gelonch2-5/+2
Change-Id: I8eadc27ba8880630ec93c68145969f3e8ba6c189 Reviewed-on: https://gerrit.libreoffice.org/11712 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-30forms: remove import from the same packageRobert Antoni Buj i Gelonch5-16/+0
Change-Id: Ia15b4586e183bcd24a47c1a072c4d6e8ca280e98 Reviewed-on: https://gerrit.libreoffice.org/11714 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-30forms: std::auto_ptr -> std::unique_ptrStephan Bergmann15-27/+16
Change-Id: Ia8f045715a508de77c8ce86cf224a3038162faac
2014-09-29Fix java.util.Calendar.set in integration.forms.DateValidatorRobert Antoni Buj i Gelonch1-1/+1
Change-Id: I1bd87c623b923469c325ebfcba4ba82e2a648ae2 Reviewed-on: https://gerrit.libreoffice.org/11694 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-29forms: getMonth() and getYear() are deprecated in java.util.DateRobert Antoni Buj i Gelonch1-7/+6
Change-Id: I31664bbd8c1c3b02e8a7381226d4d558b37466a2 Reviewed-on: https://gerrit.libreoffice.org/11690 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-29forms: Pass array of length equal to the size of the collectionRobert Antoni Buj i Gelonch1-1/+3
Change-Id: Id880953105f6100b15cd78f48ce0c8dbcb7ffb8d Reviewed-on: https://gerrit.libreoffice.org/11687 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-25fdo#39468 Translate German comments, clean some wsPhilipp Weissenbacher13-101/+92
Conflicts: forms/source/component/FormComponent.cxx forms/source/component/FormattedField.cxx Change-Id: I76dacfff3aa6f5680a1e81c97281c4f744ec1ceb Reviewed-on: https://gerrit.libreoffice.org/11622 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-24fdo#39468 Translated German to EnglishTobias Madl2-19/+18
Change-Id: I7405b8251b977f8e5c1b95c37fbab6ae6cb120e7 Reviewed-on: https://gerrit.libreoffice.org/11461 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-23fdo#82577: Handle WindowNoel Grandin11-41/+41
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-19fdo#39468 Translate German comments, clean some wsPhilipp Weissenbacher18-132/+116
Change-Id: I4a9b3b3e0d0fefb18808b0b045ffcf3531f4ea28 Reviewed-on: https://gerrit.libreoffice.org/11524 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-18fdo#82577: Handle FontNoel Grandin1-1/+1
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-15Simplify expression to fix bool/sal_Bool ambiguityStephan Bergmann1-1/+1
Change-Id: I249262779519934c3dacc9df76028a994187e3d6
2014-09-15forms: sal_Bool -> boolStephan Bergmann13-21/+21
Change-Id: If69785c37c6c9cd175e149f10bd5497de26a120c
2014-09-15Mark template member fns that are supposed to override as SAL_OVERRIDEStephan Bergmann1-5/+5
Change-Id: If940dcf7f7d2144576b4ae55578b8b7bd113295b
2014-09-12fdo#39468: Translated German to EnglishJennifer Liebel1-5/+5
Change-Id: Ica935c641d3858ae875410efc7fe531835feadf8 Reviewed-on: https://gerrit.libreoffice.org/11373 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-09-12Turn SfxItemState into a C++11 scoped enumerationStephan Bergmann1-1/+1
...to gain further confidence in the claim "that none of the existing code tries to uses combinations of these enum values" (d92602c5b13d0a60439d86c5a033d124178726ca "more fixes for SfxItemState") Change-Id: I987922d945e8738e38adfde83b869adf3ff35b13 Reviewed-on: https://gerrit.libreoffice.org/11384 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-09-10Replace uses of old SFX_ITEM_ON alias with SFX_ITEM_SETStephan Bergmann1-1/+1
Change-Id: I64be7ca711dcd3ea7c4d5840a30f2f701d055e1b
2014-08-25set names on a bunch more threads...Michael Stahl1-0/+2
Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
2014-08-25Avoid incomplete type in fn sig to keep ubsan's RTTI-based checks happyStephan Bergmann1-0/+1
Change-Id: I79422149fd25b1531673a517e2a340dbeab43b1a
2014-08-25Fix *_component_getFactory function typeStephan Bergmann1-2/+3
Change-Id: I10414cbc61b5540f1b9f39b19699673868e9c3eb
2014-08-23fdo#82577: Handle KeyCodeTor Lillqvist1-1/+1
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11 KeyCode typedef. Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-21Remove useless include tools/debug.hxx from forms and extensionsMarcos Paulo de Souza12-20/+0
Change-Id: Idc8ecbb65c7c4c63950d8b249e0d0d91788d6d3b Reviewed-on: https://gerrit.libreoffice.org/11012 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2014-08-21forms: CSS -> cssThomas Arnhold12-71/+67
Change-Id: Ib2fb1f4f4b64a67cebdebb6ebfb36dbe6878bef6
2014-08-21star* -> css::*Thomas Arnhold6-13/+13
Change-Id: I156d40badb1a11727d1320600a9d3af2b8b24e4a
2014-08-21stario -> css::ioThomas Arnhold5-24/+24
Change-Id: I4e82694399e72ce17172ac3d3c3cd9f9bcd30ba5
2014-08-21staruno -> css::unoThomas Arnhold1-2/+2
Change-Id: Ic82bbe5797d4f3c16096598cd566b917ee335a10
2014-08-20remove more unnecessary constructor declarationsNoel Grandin1-5/+0
Change-Id: Ie5a243006b112c2e6daf12992f3dba8baf12748d
2014-08-20java: remove unnecessary constructor declarationsNoel Grandin10-50/+0
in the absence of any other constructors, the compiler will automatically generate a public no-arg constructor Change-Id: I70eca507cd8e16e33580b3398d41d70690bc2909
2014-08-20java: avoid unnecessary comparisons in boolean expressionsNoel Grandin1-2/+2
i.e. stuff like "x == true" Change-Id: Ib82a4a30e736df392405332fa197b588482cffcf