summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/view/output.cxx
Commit message (Collapse)AuthorAgeFilesLines
* tdf#84938 Change defines to typed_flagsJochen Nitschke2016-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Put defines into an enum class and use typed_flags template from o3tl to give them flag operators. There were some shift operations to apply flags from start references to end references, these went into a helper in address.hxx to hide them. A marco with shift operations in address.cxx was rewritten in two helpers without shifts. One shift remained in ScRange::Format with a comment. The other flag untypical operator was a minus 1 in a helper for ScRefFinder::ToggleRel, which iteratates through all possible combinations for absolute references. This is used to make referecnces absolute via SHIFT+F4. A replacement would be too complex. Change-Id: I4850f1623e01e56c60ac2260b95fc5cad8b6fd71 Signed-off-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Reviewed-on: https://gerrit.libreoffice.org/22840 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* loplugin:unuseddefaultparams in sc (part1)Noel Grandin2016-03-021-2/+2
| | | | Change-Id: Ie7c23bfee7cb6c73e455a47801f7eb1b481a8cf0
* Fix typosAndrea Gelmini2016-01-101-1/+1
| | | | | | | Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
* sc: loplugin:badstaticsMichael Stahl2015-11-171-9/+11
| | | | | | | | Not sure if there would be a performance penalty to re-loading these icons every time, so move the static map from ScIconSetFormat::getBitmap() to a member of ScDocument. Change-Id: If560d70cea27e25396dd821d9e77a785e3b79820
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-101-26/+26
| | | | Change-Id: I765d2a600f9c57da50c85354688e3ae796750d94
* read past end of pCellInfoCaolán McNamara2015-11-031-1/+4
| | | | | | | Change-Id: Ic024f8dd3aaf368877f5914c6106164508760da8 Reviewed-on: https://gerrit.libreoffice.org/19752 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* tdf#94559: 4th step to remove rtti.hxxOliver Specht2015-10-061-1/+1
| | | | | | | | | | 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>
* remove old standalone Sun bug numbersNoel Grandin2015-10-011-1/+1
| | | | | | | | | | | | | | | Sun bug numbers without any accompanying text are completely useless. Fixed with git grep -lP '//\s*#\d+#\s*$' | xargs perl -i -ne'/\/\/\s*#\d+#\s*$/d or print' And then hand-checking the result to restore places where it deleted code. And then some more grepping and hand-editing to kill the others. Change-Id: Ia96ce4466db8bb8da363ebf41f0ae7f45f28bf29 Reviewed-on: https://gerrit.libreoffice.org/19023 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* boost->stdCaolán McNamara2015-09-181-4/+4
| | | | | | | | Change-Id: I7f3bb094f116103c1146a7d60e3af94c0b37d9ea Reviewed-on: https://gerrit.libreoffice.org/18677 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* revert for mac and win unit case crashes after boost->stdCaolán McNamara2015-09-171-4/+4
| | | | Change-Id: I82c7084f203a834c2d42f9527705288e6036019b
* boost->stdCaolán McNamara2015-09-171-4/+4
| | | | Change-Id: I1e6a7fd66f90e6acd803c6cd464f1d73252f7bcb
* Put Polygon from tools under tools:: namespaceNorbert Thiebaud2015-08-171-8/+8
| | | | | | | | | | Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: https://gerrit.libreoffice.org/17789 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* loplugin: defaultparamsNoel Grandin2015-08-141-1/+1
| | | | Change-Id: If342e813063eb0a17f7a8f8e872290f056964e05
* tdf#39468 translated german comments in output.cxx and output2.cxxAlbert Thuswaldner2015-07-291-16/+16
| | | | | | | Change-Id: I36f7e2ffa8868692b99c0a7d77692d25b82662d8 Reviewed-on: https://gerrit.libreoffice.org/17319 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* calc mapmode: Cleanup DrawBackground + fix one pixel size.Jan Holesovsky2015-07-241-32/+33
| | | | Change-Id: I2ff1aa1d83a3228ee76eda7cd2e411cf084079f6
* calc mapmode: Refactor DrawBackground to use logic unitsKrisztian Pinter2015-07-241-24/+60
| | | | Change-Id: Id47eac2578e75750eac04b481fe58df6d4f5e70d
* calc mapmode: Pass RenderContext as reference in DrawNoteMarksKrisztian Pinter2015-07-241-5/+5
| | | | Change-Id: Id47f4001943bd40fb8476c7e6a81f257b34c2c7d
* calc mapmode: Pass RenderContext as reference in DrawFrameKrisztian Pinter2015-07-241-26/+26
| | | | Change-Id: I6c9a476a8dea5266868c94d6a1203cfe840171cf
* calc mapmode: Add explicit RenderContext passingKrisztian Pinter2015-07-101-28/+28
| | | | | | | Change-Id: I52d9c84bc6658348c249870088c38512ae169a34 Reviewed-on: https://gerrit.libreoffice.org/16277 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
* calc mapmode: Convert ScOutputData::DrawGrid to draw in logic units.Jan Holesovsky2015-06-091-20/+28
| | | | Change-Id: Ie641c31e9023accf9d6bc510f8ca0b25ced3031b
* calc mapmode: Refactor DrawDocumentBackground to use logic unitsKrisztian Pinter2015-06-031-5/+6
| | | | Change-Id: I316e51bac78981263bfbee55ea5b684a40b44afa
* convert DRAWMODE constants to scoped enumNoel Grandin2015-05-201-8/+8
| | | | Change-Id: I36cbe8057d09226f8b302963bdd94dc5600b686f
* render vertically merged cells togetherMarkus Mohrhard2015-05-181-3/+20
| | | | | | This helps with databars and color scales in merged cells. Change-Id: Ice2054a03d031012645a1f2537da1ea636cbbaef
* sw,sc,sd,starmath: convert to vcl::RenderContextNoel Grandin2015-05-111-3/+3
| | | | Change-Id: I5d0a3b8ed1c49ba2806e0fa528d908da45afd58c
* sc: -Werror=unused-variableMichael Stahl2015-04-211-1/+0
| | | | Change-Id: Ia680b441a418a02148b9a2f27a38691f7c28c173
* fdo#39440 sc: reduce scope of local variablesMichael Weghorn2014-12-211-6/+3
| | | | | | This addresses some cppcheck warnings. Change-Id: Icd031be4aeec07ba60804923e3506d64cf876dd8
* cid#738785 Uninitialized pointer fieldStephan Bergmann2014-10-281-10/+10
| | | | Change-Id: I2256682639084c8889d1137f087e34f7b0dab6e7
* loplugin: cstylecastNoel Grandin2014-10-281-24/+24
| | | | Change-Id: I42cd0be78478536322357ca7a03cf30e624b1afc
* Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky2014-10-231-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
* Fraction: Revert "fdo#84854 it seems long is not enough on 32 bit"Jan Holesovsky2014-10-231-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
* fdo#84854 it seems long is not enough on 32 bitDavid Tardon2014-10-161-3/+3
| | | | | | | Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
* fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca2014-10-091-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>
* coverity#1242818 Unused valueNorbert Thiebaud2014-10-041-2/+0
| | | | Change-Id: I487026489937679978e7ed403edb7125eb2c7fcf
* coverity#1242771 Unused valueNorbert Thiebaud2014-10-041-1/+0
| | | | Change-Id: I86455a041c98f010724ac6878e78a1b14cd26899
* fdo#82577: Handle PolyPolygonNoel Grandin2014-09-301-5/+5
| | | | | | | Put the TOOLS PolyPolygon class in the tools namespace. Avoids clash with the Windows PolyPolygon typedef. Change-Id: I811ecbb3d55ba4ce66e4555a8586f60fcd57fb66
* fdo#82577: Handle RegionNoel Grandin2014-09-301-4/+4
| | | | | | | Put the VCL Region class in the vcl namespace. Avoids clash with the X11 Region typedef. Change-Id: I6e008111df7cf37121fbc3eaabd44a8306338291
* draw white border around note marks for fdo#81032Laurent Godard2014-07-081-2/+2
| | | | | | | | | also translate the mark to make cell border visible Change-Id: Ifa9f3befd1e25a66cc3443a3f33255603feea6a6 Reviewed-on: https://gerrit.libreoffice.org/10135 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* remove whitespaceMarkus Mohrhard2014-06-251-7/+0
| | | | Change-Id: Ib15413e73409cc33de01fa92a47b9d1237cfc4b2
* Avoid possible memory leaks in case of exceptionsTakeshi Abe2014-05-141-6/+6
| | | | Change-Id: Ib74c40bb4ac11edf97b6843e983a911308fa4b98
* fdo#78535: Don't process borders of 0 width.Kohei Yoshida2014-05-111-42/+54
| | | | | | Or they would get drawn for real. Change-Id: Iec24e70a80ff8aa1ef7512e71249a99243297c4e
* coverity#708101 Uninitialized scalar fieldCaolán McNamara2014-04-091-0/+2
| | | | Change-Id: I9eff260046a08890629b41188082f196d547c734
* whitespace cleanup in scMarkus Mohrhard2014-04-061-2/+0
| | | | Change-Id: Id1dcadcac179c52977e48a6912ce4d5fd542f60c
* Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert2014-02-201-0/+1
| | | | | | | | | | | | | 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>
* sal_Bool->boolNoel Grandin2014-02-191-40/+40
| | | | Change-Id: Ia73bd33beaaea1ff41292006c04ff7fb582fd938
* fdo#39468 Translate German commentsSven Wehner2014-02-071-66/+45
| | | | | | | | | Also remove ASCII art. Change-Id: I2e2aeb7a940fcebb0a08aa8906eb1f3e392b8d0f Reviewed-on: https://gerrit.libreoffice.org/7921 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* bool improvementsStephan Bergmann2014-01-281-3/+3
| | | | Change-Id: I740c0e18eefc64cb5f1da5b88ceb77289790ec37
* Revert "Always disable anti-aliasing for drawing cell borders." fdo#60805Noel Power2013-12-131-26/+4
| | | | | | | | | | | | | | Unfortunately this patch creates a very weird ( and took me forever to find ) bug ( fdo#60805 ). Basically certain double line borders seems to dissappear at certain zoom levels. I guess maybe its possible to tweak the create2DDecomposition to process the line as hairline at those problematic zoom levels ( but I suspect that actually would look worse ) Best maybe would be to tweak the rendering/painting ( but isn't that processor specific maybe ? ) as is maybe this problem. I admit this is outside my comfort zone :/ This reverts commit a551cad4e35b6b664167d65dfc25e5a0f6990687. Change-Id: Idb25493ffb038cb1f8ae9b364a29052abafd940d
* Integrate branch of IAccessible2Steve Yin2013-12-021-17/+0
| | | | | | | Conflicts: everything Change-Id: I3d8cf956f511a0d953a1cefe83b6ef987806da25
* don't use fixed size icon sets, fdo#62652Markus Mohrhard2013-12-021-2/+3
| | | | | | actually we should switch to svg as soon as it becomes possible Change-Id: Ifbbe5befab94441f04fadb90b779e0bc8c15eda4
* Re-implement cell note storage using mdds::multi_type_vector.Laurent Godard2013-10-231-3/+3
| | | | Change-Id: I34ea91e360e2a6b85d65f970c6e43db687d213ca