summaryrefslogtreecommitdiffstats
path: root/forms
Commit message (Collapse)AuthorAgeFilesLines
* java: simplify the getMSF() methodsNoel Grandin2014-12-101-2/+1
| | | | | | | Change-Id: Ib459799f4a3224f8c9683ac4b6cf37982d2077a3 Reviewed-on: https://gerrit.libreoffice.org/13406 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* changed timers to idlesTobias Madl2014-12-092-9/+9
| | | | Change-Id: Ic0d7730f7880dfe2e83c84e773b8cc420249b269
* fdo#84938: replace EVENT_ constants with enumTobias Madl2014-12-011-2/+2
| | | | | | | Change-Id: I8275832d8dae43b374bddd48520d11592e9a6a1f Reviewed-on: https://gerrit.libreoffice.org/13134 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* java: remove some comment noiseNoel Grandin2014-11-253-20/+0
| | | | Change-Id: I1c258b853097448d4a59334d915e94dba4c7eb34
* java,framework: remove unused vars and parametersNoel Grandin2014-11-251-2/+1
| | | | | | | Change-Id: I7df5ff730436b95cb93af9f813d7bc572da2b951 Reviewed-on: https://gerrit.libreoffice.org/13098 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* unotools: Internalize ucblockbytes.hxx headerMatúš Kukan2014-11-243-3/+1
| | | | Change-Id: I1a9b795eda832673a83a426c8bf10d5bb9c28581
* cppuhelper: clean up public headers with include-what-you-useMichael Stahl2014-11-186-0/+7
| | | | Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
* java: make fields final where possibleNoel Grandin2014-11-1811-31/+24
| | | | | | found by PMD Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-178-1/+10
| | | | | | | | | Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
* coverity#706540 Uncaught exceptionCaolán McNamara2014-11-141-1/+13
| | | | Change-Id: I9dabd74824ec7cffe5371ed8be202ad27fecc80d
* fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava2014-11-149-16/+16
| | | | | | | Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-125-6/+6
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* java: convert fields to local variables where possibleNoel Grandin2014-11-124-14/+10
| | | | | | | | | found by PMD Change-Id: I05b45382b8fb1b734657ce9421a20e6ef6fbe542 Reviewed-on: https://gerrit.libreoffice.org/12376 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Revert "Some SvxFontHeightItem clean-up"Stephan Bergmann2014-11-111-6/+4
| | | | | | | | | This reverts commit d5f93eb47ec4c27e93ad908b0199790c702491a0, SvxFontHeightItem::SetProp was used to override "dummy" 100% nProp/ePropUnit values that did not match the computed nHeight value with nProp/ePropUnit values that are supposed to match the computed nHeight value. Yuck. Change-Id: Ic12e824054b3c5da7aca766b9b3eb076d1837d9a
* Some SvxFontHeightItem clean-upStephan Bergmann2014-11-111-4/+6
| | | | | | ...and operator= shall probably copy rSize.ePropUnit... Change-Id: I112c02b3a3b2ce23f3d03f03881136e05be29017
* Try to fix ambiguity errorZolnai Tamás2014-11-071-1/+1
| | | | Change-Id: I93cf7497e52d065d00f762f61f79a4e8f8609bfc
* Revert "use the new OUString::fromUtf8 method"Stephan Bergmann2014-11-061-1/+1
| | | | | | | | This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
* use the new OUString::fromUtf8 methodNoel Grandin2014-11-061-1/+1
| | | | Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
* markup with event type not checker typeCaolán McNamara2014-11-051-1/+1
| | | | Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
* new loplugin: use more efficient find() methodsNoel Grandin2014-11-051-3/+2
| | | | | | | | | (Original idea from Kendy) Look for code that is calling std::find on a sorted container (set/map/vector) and warn about it - the code should be using the find method on the container itself, since that is considerably faster. Change-Id: Ib74e5d3faa836eeb0df16a736d202696626bdfd2
* fdo#84938: replace TOOLBOXITEM_ constants with enumNoel Grandin2014-11-051-1/+1
| | | | | | | Change-Id: I08c4a456f9e80f70719ca8c3ad5c0f0d2d8282f6 Reviewed-on: https://gerrit.libreoffice.org/12258 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* fdo#38835 strip out OUString globalsNoel Grandin2014-11-052-3/+3
| | | | | | | they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
* coverity#706543 uncaught exceptionDavid Tardon2014-11-041-1/+1
| | | | Change-Id: I65932932712dad87f8e21dcd09f477744cc33763
* Removed duplicated includesAndrea Gelmini2014-10-311-1/+0
| | | | | | | Change-Id: I5362d997bfa086c9fb1726efcb15132a966684f6 Reviewed-on: https://gerrit.libreoffice.org/12160 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* forms: The if statement is redundantRobert Antoni Buj i Gelonch2014-10-307-38/+13
| | | | | | | Change-Id: I1d339ea6052e648acf4405d2d40795c82ee043ca Reviewed-on: https://gerrit.libreoffice.org/11713 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* coverity#706537 Uncaught exceptionCaolán McNamara2014-10-271-2/+5
| | | | Change-Id: I687948ef04e4ffdce51a7ac20854d6ebe96f1f25
* Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky2014-10-231-1/+1
| | | | | | | | | | | | | | This reverts commit 47a2d7642d249d70b5da0c330a73f3a0032e4bba. Conflicts: cui/source/tabpages/transfrm.cxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx tools/source/generic/rational.cxx Change-Id: I4849916f5f277a4afef0e279b0135c76b36b9d15
* Fraction: Revert "fdo#84854 it seems long is not enough on 32 bit"Jan Holesovsky2014-10-231-1/+1
| | | | | | | | | | | | This reverts commit 582ef22d3e8e30ffd58f092d37ffda30bd07bd9e. Conflicts: svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx Change-Id: I80abc7abdeddc267eaabc9f8ab49611bb3f8ae83
* loplugin: cstylecastNoel Grandin2014-10-238-15/+15
| | | | Change-Id: Iad39bce8e7562821bc8fbf8156ea56aedc19c7d6
* fdo#84938: replace WINDOW_BORDER constants with enumNoel Grandin2014-10-211-1/+1
| | | | Change-Id: I91ca8e09971aee26f16257a4fd01125cfb2ebcdb
* tweak CaughtExceptionCaolán McNamara2014-10-201-1/+2
| | | | Change-Id: If5aac87876b139bfb394ec124136de131c3518ae
* Missing includeStephan Bergmann2014-10-201-1/+3
| | | | | | ...and only use getCaughtException as first statement in catch block. Change-Id: Idcac073896b84fd2671b52b2315f454651dbf910
* coverity#706540 Uncaught exceptionCaolán McNamara2014-10-201-0/+12
| | | | Change-Id: I175050b5ab66f4eeaa658f0aab1739b175d38d51
* coverity#706538 Uncaught exceptionCaolán McNamara2014-10-201-5/+13
| | | | Change-Id: If23396c545e7add653fa9e5ac6e544aaa794120d
* fdo#84938: replace TIB_ constants with enumNoel Grandin2014-10-201-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>
* java: final fields that can be staticNoel Grandin2014-10-172-2/+2
| | | | Change-Id: I8c06be7bc0b8a38c662209f0de72a00550e25447
* java: no need to call String.valueOf to append to a StringNoel Grandin2014-10-171-6/+6
| | | | Change-Id: I5ef45b971d24dde814ab8cbb2e9503d9da4f0d73
* fdo#84854 it seems long is not enough on 32 bitDavid Tardon2014-10-161-1/+1
| | | | | | | Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
* java: when rethrowing, store the original exceptionNoel Grandin2014-10-161-1/+1
| | | | Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
* java: ensure that the stream is cleaned up before the method returnsRobert Antoni Buj i Gelonch2014-10-161-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>
* create a macro library for implementing bit-flags typesNoel Grandin2014-10-131-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
* convert vcl StateChangedType to enum classNoel Grandin2014-10-113-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>
* fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca2014-10-091-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>
* back out more wrong and confusing tools::Time comment changesEike Rathke2014-10-082-2/+2
| | | | | | | Apparently fc04f76336fdf8c96e35382cdeb497e2f939705c used some sed script to change all ... Change-Id: Ie609bd02a2c5d70109fc6185cf4440480f29d8f5
* java: optimise calls to toArrayNoel Grandin2014-10-071-3/+1
| | | | | | passing in a correctly sized array requires one less allocation Change-Id: I6198d226d9b630c99c4e8b6e3d0fdf890c495b44
* fdo#39468 Make forms/ German comments cleanPhilipp Weissenbacher2014-10-022-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>
* forms: enhanced for loopRobert Antoni Buj i Gelonch2014-10-011-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>
* fdo#82577: Handle TimeNoel Grandin2014-10-014-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>
* forms: use Arrays.toString in integration.forms.RadioButtonsRobert Antoni Buj i Gelonch2014-09-301-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>
* forms: replace StringBuffer with StringBuilderRobert Antoni Buj i Gelonch2014-09-302-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>