summaryrefslogtreecommitdiff
path: root/sc/source
AgeCommit message (Collapse)AuthorFilesLines
2014-08-30Make nPrtToScreenFactor and GetOutputFactor fractions.Andrzej Hunt9-23/+44
These are then used for our output MapMode which required Fractions too. Change-Id: Icbfd9f808a6efe297096c94dc4043cef88c0ba0b
2014-08-30ScViewData::GetActiveWin can be const.Andrzej Hunt2-2/+2
We need to reuse this in other const methods, so lets make it const too. Change-Id: I6d96fa2370081d515f8629998d8a1e218bec643a
2014-08-30Allow overriding limits for SetZoom for Tiled Rendering.Andrzej Hunt2-16/+31
Change-Id: Ic656012921408ce5c8dc691933a71a9e0ac78e5d
2014-08-30aScrSize should be mutable.Andrzej Hunt2-5/+5
Change-Id: I7376ea17aa4f66c9d9085757b84fb69dd0ad71cb
2014-08-30Fillinfo: don't scale data unnecessarily.Andrzej Hunt2-17/+15
Previously we had multiple layers of scaling, with rounding errors propagating, leading to up to 5% differences in expected and rendered sheet widths -- for tiled rendering dimensions have to scale accurately as we may paint the same tile at multiple zoom levels, by eliminating multiple scaling and letting the output device instead deal with the scaling once we can eliminate these errors. Change-Id: I0a725fd5c030f3c089c2bbd25947088c321eb2d4
2014-08-30Ensure we actually render all cells in the selected area.Andrzej Hunt1-0/+4
Only cells within maVisibleRange are rendered, even if we request a larger area (and maVisibleRange is otherwise not updated for tiled rendering). Hence we should explicitly set it here. Change-Id: I399be9df1f266a2b3d32a95483960b21f561c6b3
2014-08-30Take into account drawing layer for data area size.Andrzej Hunt1-2/+18
The drawing layer could potentially have items that are outwith the data area, but we probably want to have them included for tiled rendering. Change-Id: I958c4fa29491cdb0fd80392dfcfa033306f2b76c
2014-08-30Implement data area size retrieval.Andrzej Hunt3-4/+49
Cell dimensions appear to be in TWIPs (but the drawing layer is in 100th mm).
2014-08-30Allow overriding of device for Paint, and use that for Tiles.Andrzej Hunt2-7/+14
Paint handles figuring out which cells are within the visible area for us etc. Gridwin being a Window which paints to itself is a bit of a pain, since we now need to be able to reroute painting calls to alternative output devices, however these changes seem to be sufficient to at least get the cells in the desired tile rendered. Change-Id: I7bd1434c97acc6e9ef6e1e63cbcf039b987c88e4
2014-08-30Calc: Add tiled rendering device to the paint view.Andrzej Hunt1-0/+13
This prevents the previous warnings of SdrPageView::DrawLayer: Creating temporary SdrPageWindow (ObjectContact), \ this should never be needed Change-Id: I76cb7c9ed4d45bfcbd297f697314309b4e036f80
2014-08-30Render tiles from calc.Andrzej Hunt3-14/+32
Currently the document size and number of cells to be rendered is hardcoded, this will need some more work to select the correct cells for a given tile (i.e. cells from location). Also, there isn't really a "size" for a calc sheet, so presumably we'd need to instead return the area containing cells that aren't empty, whilst still being able to render larger tiles? (And in any case the client will need to be aware of this and provide an appropriate interface, i.e. the current LO UI simply extends the sheet ad-infinitum.) We also currently get some warnings most likely related to the way we push our OutputDevice into the rendering methods: SdrPageView::DrawLayer: Creating temporary SdrPageWindow (ObjectContact), \ this should never be needed Change-Id: Ia9d64d7de6c22d5b401350f88497a7ec106f1973
2014-08-30interpr: ZinsesZins is Compound InterestThomas Arnhold2-16/+16
There are many more, like ScZinsZ, ScLaufz, ScGetZw,... And some I can't identify, because my financial vocabulary is limited: nZr Zinsrate nZzr Zinseszinsrate nBw ? nZw Zinswert nRmz ? and many many more ;) Change-Id: I11c26a8d4519bbd1e8242d27d3815db2bc3fdecd
2014-08-30interpr: fPeriodn -> fPeriodsThomas Arnhold1-8/+8
Change-Id: I21b76d2d121b27c5b4aeb676948786ab91bff0b7
2014-08-30fdo#39674: translated German to EnglishJennifer Liebel1-216/+213
Conflicts: sc/source/core/tool/interpr2.cxx Change-Id: Ib063cafa895abd7d792ca068d727ea161946679c Reviewed-on: https://gerrit.libreoffice.org/11184 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-30fdo#39674: Improved translationJennifer Liebel1-14/+13
Conflicts: sc/source/core/tool/interpr2.cxx Change-Id: Ib80472a1670b61fdea61bdee4d52b19e28b85d63 Reviewed-on: https://gerrit.libreoffice.org/11192 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-30WaE: private field 'mnId' is not usedTor Lillqvist2-4/+2
Change-Id: Id3e9c2c380b8c2388eda9e650dae635bfbae7711
2014-08-29Remove the old xlsx pivot table export code.Kohei Yoshida2-216/+1
Change-Id: I6725cbc331b51f66025a8294612c6a5918c07adf
2014-08-29Correctly export subtotal functions of data fields.Kohei Yoshida1-5/+57
Take note that data field may be duplicated. Change-Id: I8f787075869f38d0101da2787bac315c71d8a6e8
2014-08-29Use the source dimension name when searching for a dimension.Kohei Yoshida1-4/+9
Otherwise we might miss the right dimension object. This fixes the bug where the subtotal function of the second data field was not set correctly when importing from xlsx. Change-Id: Id6ecb07b86cf6803a3f6f7604267ce2f5f9a4067
2014-08-29Export data layout field to xlsx correctly.Kohei Yoshida1-8/+13
Excel uses a field index of -2 to indicate a data layout field. Change-Id: I6b18c0bcff439eb4425ef0b0d0b841633dc81dd7
2014-08-30WaE: unused function 'isGL3DDiagram'Tor Lillqvist1-35/+0
Change-Id: I0af5bf5e7d36036b3f0c98d01c8549c2b8e1aa1f
2014-08-29This OpenGL window is uselessZolnai Tamás3-41/+0
Change-Id: Ied9914c9a317dc3945c29b984d2a68957275fc52
2014-08-29opengl charts: Move the init from sc to chart2, to have the right parent.Jan Holesovsky1-18/+0
Conflicts: chart2/source/view/charttypes/GL3DBarChart.cxx Change-Id: I1e23329345e00e7d8e1f269c832e84d015824c0a
2014-08-28bnc#822173: Initial work on exporting pivot cache and pivot table to xlsx.Kohei Yoshida8-8/+823
Still not perfect, but it somewhat does work. Change-Id: Ic248e20f7ab18a37f56b2034f57551dded956bab
2014-08-28Make some methods non-inline, and add method descriptions.Kohei Yoshida3-1/+61
Change-Id: Ib8d5fa666827a7f97035ad37d05e305bb920c300
2014-08-28fdo#39468 Translate German comments in sc/source/ui/miscdlgsThomas Viehmann13-396/+100
Change-Id: I3b15d653206e7c55422a08951466916947052a24 Reviewed-on: https://gerrit.libreoffice.org/11155 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-08-27assert on first useEike Rathke1-1/+3
Change-Id: I63a513406dbd90746bcad9da88945f49d2b51cc5
2014-08-27callcatcher: update unused codeCaolán McNamara3-3/+0
Change-Id: Idaed255e4f004ad555ccbd6ba9dc29bf522d3c5f
2014-08-27out-of-bounds string access, this comparison never matchedEike Rathke1-1/+1
aName == aLinkTabName.copy(nIndex, nLinkTabNameLength) is not a replacement for String(aName).Equals(String(aLinkTabName), nIndex, nLinkTabNameLength) instead use aName.match( aLinkTabName, nIndex) because here nLinkTabNameLength actually is aLinkTabName.getLength() Change-Id: I884f56541f819db5672e9d096a26a3673e82d83b
2014-08-26We don't need this branching here anymore.Kohei Yoshida1-10/+7
Change-Id: I5253e919b85d66fb826eb76a8369f928611644ed
2014-08-26Avoid possible memory leaks in case of exceptionsTakeshi Abe1-3/+2
Change-Id: Ib4a87cab2729e18b2c830cbd7e7a34d62b5f0f45
2014-08-25fdo#83067 also volatile cells need to listen to all referencesEike Rathke1-7/+1
As we now broadcast also cell moves it is not sufficient anymore to add volatile cells only to the BCA_LISTEN_ALWAYS broadcaster, add them as listener to all referenced cells and ranges as usual. Change-Id: I7901b73db7e0c82c4bac302ae746810cbc16ea44
2014-08-25fdo#36772 Move the scrollbar and sheet tabs in a separate row.Tomaž Vajngerl2-34/+29
Change-Id: I57d891d9f6e89dafb4840a577ba55baa734fdcc2
2014-08-25sc HTML export: indent conditional blockMiklos Vajna1-55/+55
Change-Id: Ia96d201ce10fcb58b213b709506a54760c053643
2014-08-25HTML export: avoid invalid output for embedded spreadsheetsMiklos Vajna2-3/+18
When the sc document is embedded inside an sw one, then the sc HTML export should just write what's inside the <body>. Add a filter option for that in sc and use it from sw. Change-Id: I3a9605bd62f0628b78cd782c11661f12bc2c3ae4
2014-08-25nitpick no need for an extra indentation levelEike Rathke1-25/+23
Change-Id: Id7ab390cc28e83ac0ca6b9fff1c172ca46e88a68
2014-08-25Resolves fdo#81084 fdo#81696 fdo#80874 fdo#81010 : sort causes crashDeena Francis1-0/+4
Change-Id: I8fb9ec26bc549c264bfbf30177d720b20677b319 Reviewed-on: https://gerrit.libreoffice.org/11102 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-08-25Translate German comments, fix some wsPhilipp Weissenbacher3-141/+137
Change-Id: Ida67ce193ad032e2a1855e4380626f805514c2f2 Reviewed-on: https://gerrit.libreoffice.org/11103 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-08-24added Lithuanian "LTL" to EUROCONVERT(), CONVERT()Aurimas Fišeras1-1/+2
Change-Id: Iefde129177df827c4b6508ff190f20e1e1973221 Reviewed-on: https://gerrit.libreoffice.org/11088 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-24fdo#73151 Make better use of the sidebarSamuel Mehrbrodt4-22/+8
The general idea is to encourage use of the sidebar instead of floating windows (for Navigator, Styles&Formatting and Gallery) Changes: * Show the sidebar by default in Writer & Impress * Remove the Gallery floating window (Gallery now always opens in the sidebar) * Remove all Gallery, Navigator and Styles&Formatting links from the default toolbar in Writer (since they have an icon in the sidebar and the sidebar is shown by default now) * When selecting "More" from the Styles dropdown, the Stylelist opens in the sidebar instead of the floating window This has all been discussed extensively here: https://bugs.freedesktop.org/show_bug.cgi?id=73151 Change-Id: I3a0461d1472711da7121801000af294b432fccb1 Reviewed-on: https://gerrit.libreoffice.org/11077 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-23Translate German comments, fix some wsPhilipp Weissenbacher4-186/+176
Change-Id: I3bc8d82c5689b8a2da1374e42dd70191e2fe8ef3 Reviewed-on: https://gerrit.libreoffice.org/11099 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-23fdo#82577: Handle KeyCodeTor Lillqvist21-32/+32
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11 KeyCode typedef. Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-23fdo#82577, fdo#82579: Handle CursorTor Lillqvist5-7/+7
Put the vcl Cursor in the vcl namespace. Avoids collision with the Xlib Cursor typedef and some ancient Carbon (?) Cursor typedef on OS X. Change-Id: I7af770c522b5774c87f58cc079ced9fc1bcc88b0
2014-08-22Split FillAsTable into Binary and Xml variants in the same manner.Kohei Yoshida2-50/+33
And remove BIFF-only records from the Xml variant. Change-Id: Ia18cc079d9a9249fbbe0c328b14b719fba8d6bbf
2014-08-22Split FillAsHeader into FillAsHeaderBinary and FillAsHeaderXml.Kohei Yoshida2-43/+110
To reduce complexity in each method, and remove records that are specific to binary export form the Xml variant. Change-Id: I6c66054b99dd8cded5767610f2390952b59caf23
2014-08-22Make header (workbook) export and worksheet export clearer.Kohei Yoshida1-16/+21
Change-Id: I9540fa32ca6a4ce041e15b272a049fcdf267fb0c
2014-08-22treat datetime as handledEike Rathke1-0/+3
Change-Id: Idc94174662eee5a75a6b467e47cbf9027e3ba224
2014-08-22current date/time hotkey inserts also if cell is in input or edit modeEike Rathke1-110/+164
Change-Id: Ib3caed607a5ca1b5ce82de0472223c7bdc8f7f54
2014-08-22InsertCurrentTime: don't fiddle with the cell while editingEike Rathke1-0/+6
Change-Id: Ia12b10a44b7d90344a009753ddae801b7d58dddf
2014-08-22Use anonymous namespace for these. (mostly EnumWrapper)Matúš Kukan4-3/+22
Change-Id: Ice90e519bbd32a12de59d696a6dfedaaf45bd45e