summaryrefslogtreecommitdiff
path: root/sc/source/ui/cctrl
AgeCommit message (Collapse)AuthorFilesLines
2014-10-23Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky1-3/+3
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
2014-10-23Fraction: Revert "fdo#84854 it seems long is not enough on 32 bit"Jan Holesovsky1-3/+3
This reverts commit 582ef22d3e8e30ffd58f092d37ffda30bd07bd9e. Conflicts: svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx Change-Id: I80abc7abdeddc267eaabc9f8ab49611bb3f8ae83
2014-10-23loplugin: cstylecastNoel Grandin1-1/+1
Change-Id: I71cdd9154a8a5955e2915858cec33ec4e9ef4987
2014-10-20fdo#84938: replace TIB_ constants with enumNoel Grandin1-1/+1
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-16fdo#84854 it seems long is not enough on 32 bitDavid Tardon1-3/+3
Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
2014-10-15fdo#84938: replace SYMBOL_TYPE constants with enumNoel Grandin1-1/+1
Change-Id: Ib3763f20d74c22e28d519a9ac47f6f3ab4e31f51 Reviewed-on: https://gerrit.libreoffice.org/11983 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 Grandin2-3/+3
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-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca1-3/+3
* 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-09-23fdo#82577: Handle WindowNoel Grandin3-8/+8
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-18fdo#82577: Handle FontNoel Grandin1-2/+2
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-15sc: sal_Bool -> boolStephan Bergmann1-1/+1
Change-Id: I3b59c5679ac3d370f62960b9fc26eab4c3fc4873
2014-09-12Turn SfxItemState into a C++11 scoped enumerationStephan Bergmann2-3/+3
...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_AVAILABLE alias with SFX_ITEM_DEFAULTStephan Bergmann2-2/+2
Change-Id: I88eeac06413fc3935cbbdb357ff8bf9acaa383a8
2014-08-23fdo#82577: Handle KeyCodeTor Lillqvist1-3/+3
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11 KeyCode typedef. Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-18drop unnecessary shl.hxx includesCaolán McNamara1-1/+0
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-06-25remove whitespaceMarkus Mohrhard6-19/+0
Change-Id: Ib15413e73409cc33de01fa92a47b9d1237cfc4b2
2014-06-17improve the inlinesimplememberfunctions clang pluginNoel Grandin1-8/+0
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin1-12/+0
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-05-18fdo#78786: No need to insert entries here for date members.Kohei Yoshida1-3/+0
Data member entries are inserted when they are added in addDateMember(). Change-Id: I6cb2e3629053fe2bb49517c4ef8d5c1fee576446
2014-05-11fix-includes.pl: scThomas Arnhold1-1/+1
Change-Id: Iade3fedac5d2f8e978b7dd9c30f001d7d1564946
2014-05-10coverity#1079327 Uninitialized pointer fieldCaolán McNamara1-2/+5
Change-Id: Ica88a170d1de3298dfa0cc7fad9ed63a46e31d8d
2014-04-29fdo#75058: Optimize autofilter item filling for non-tree items.Kohei Yoshida1-10/+24
2014-04-23sc: sal_Bool->boolNoel Grandin1-3/+3
Change-Id: I70aad0b38979f45a313b8ac36890fb6c64d11bb0
2014-04-06whitespace cleanup in scMarkus Mohrhard6-70/+0
Change-Id: Id1dcadcac179c52977e48a6912ce4d5fd542f60c
2014-03-25svtools: sal_Bool->boolNoel Grandin1-1/+1
Change-Id: Ifd3e643dbc6755839ad4af73ae141fd115ddb4f4
2014-03-06callcatcher: update unused codeCaolán McNamara1-7/+0
Change-Id: Ibecd2458fb50ea6e9aff4e0c8ed76f9bfa25b8f4
2014-03-05made ListBox handle more than 64k elements, fdo#61520 relatedEike Rathke1-1/+1
ListBox and related now handle up to sal_Int32 elements correctly. sal_Int32 instead of sal_Size or size_t because of UNO and a11y API. Also disentangled some of the mess of SvTreeList and other containers regarding sal_uInt16, sal_uLong, long, size_t, ... type mixtures. Change-Id: Idb6e0ae689dc5bc2cf980721972b57b0261e688a Reviewed-on: https://gerrit.libreoffice.org/8460 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-03-03Remove visual noise from scAlexander Wilms5-12/+12
Conflicts: sc/source/ui/inc/docfunc.hxx Change-Id: I9314437ed3dd60e84d28c08ac0a2d1ed7bd1daf8 Reviewed-on: https://gerrit.libreoffice.org/8301 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-27coverity#1187680 Dereference null return valueCaolán McNamara1-1/+5
Change-Id: I84a87700b0c21461dfedfdfdfc098dfd6db6c4b6
2014-02-27coverity#1187870 Unused pointer valueCaolán McNamara1-1/+1
Change-Id: I53c49e4d91821419978ea068c26090b3072c4319
2014-02-24Replace exisiting TriState, AutoState with more generic TriStateStephan Bergmann1-16/+16
Change-Id: Ida05478aae5a379775c671e0c2f2851d820d78be
2014-02-24Replace deprecated std::auto_ptr with boost::scoped_ptrTakeshi Abe1-1/+0
Change-Id: I55292f5f0049e7c77d5bb0e5ef5fa187b815d159
2014-02-23Remove unneccessary commentsAlexander Wilms5-30/+30
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert3-0/+3
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>
2014-02-19fdo#73565: Populate date members in a locale-safe way.Kohei Yoshida1-42/+64
Change-Id: Id90b2829465fada690b0446d6d823e76e792c77b
2014-02-19sal_Bool->boolNoel Grandin1-1/+1
Change-Id: If63608ab410a46704bd4bde5ade2f51c50242f9a
2014-02-18sal_Bool->boolNoel Grandin1-6/+6
Change-Id: I6fde53a51984e965a873d497c5ea3aeb6e852b88
2014-02-18sal_Bool->boolNoel Grandin1-3/+3
Change-Id: I5a412f7b5a8c94546eb4de9825ebaa8d3953d619
2014-01-22bool improvementsStephan Bergmann1-1/+1
Change-Id: I7f814f53f67e2d6dd44013e7f9055ee256ec4811
2014-01-17Window::Notify should return boolStephan Bergmann1-1/+1
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
2013-12-18vcl get rid of xub_StrLen and STRING_LEN in outdev3Norbert Thiebaud1-1/+2
a new log section (sal.rtl.xub) is used to display alert in case of suspicious len == 0xFFFF (aka STRING_LEN) Change-Id: I3ed2aa7896e12592be9e003580dd6c8eda4add5e Reviewed-on: https://gerrit.libreoffice.org/7117 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin1-2/+2
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-05fdo#71120: use native checkbox heightIvan Timofeev1-1/+1
Change-Id: I5d112660015f993856b0709f6a5db2baf521d745
2013-10-30use SC_STRLOAD()Eike Rathke1-3/+3
Change-Id: Ib59005bf6a7f2f28eb37c5e90782dc448ec20aa4
2013-09-05CID#1079327 uninitialized scalar valuesCaolán McNamara1-1/+1
Change-Id: I62d58154ca8c5b4c6b6b0d1aece1b5ecbab2a6eb
2013-08-27callcatcher: update unused code, esp unused Resource based ctorCaolán McNamara1-6/+0
e.g. no ImageRadioButton is now loaded from any res/rsc file, so that ctor and associated code paths can be stripped out Change-Id: Ic4cf19d45adb7c734f150e0b89eef193157a74a7
2013-08-26WaE: unused variable 'vParts' [loplugin]Tor Lillqvist1-1/+0
Change-Id: I6d025e7531880889d49170901776bd19c3adddd0
2013-08-26add magic incantation for expander buttons in treelist, tweak some methodsNoel Power1-22/+62
improved changed check behaviour, now check/unchecking a node not only affects children but ancestor nodes, cleaned up some of the code, renamed various methods Change-Id: If9f552ffe4c3610c259513020ee1d298cf1197bc
2013-08-26treelist for autofilter ( nested nodes for dates ) ( using SvxTreeListBox )Noel Power1-8/+200
Attempt at trying to get more interopable behavior, imho the way dates are presented in the autofilter of the "other" well known spreadsheet application is very nice and intuitive. This attempt here is lacking in that a) for some reason I am not getting the node icons ( and subsequently can't sing le click anything to expand the nodes ) Only double clicking works to expand b) the 'check' behaviour is not quite right, e.g. as simple example is if all nodes of a particular date are unset then clicking the leaf node ( e.g. day ) wont set the ancestor nodes. Change-Id: Iaa89cac21fb18074ff64a984f099a35851c2fe3c
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák1-1/+1
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2