summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)AuthorFilesLines
2014-08-11Ensure 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-11Take 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-11Use output device mapping for draw layer too.Andrzej Hunt1-1/+3
Otherwise draw layer items don't get scaled at all for tiled rendering. Change-Id: I4ed54f61420eae82fcf4692b8e9b605a3338fc52
2014-08-11Set correct scaling for normal painting.Andrzej Hunt1-0/+6
As we no longer read the scaling from the viewdata, we should instead set it on the output device when doing normal rendering. However the grid still doesn't exactly match the external axes yet, there are probably more rounding errors wherever they are painted. Change-Id: I25b1bd9b344115578fe892aa94fbf753a3c10c81
2014-08-11Use output device scaling to determine cells in draw-area.Andrzej Hunt1-11/+12
Change-Id: Idf4e6ccb72090a55b6a9234cafae21821e3df0b0
2014-08-11Don't scale grid and cell dimensions multiple times.Andrzej Hunt3-33/+40
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. (However currently rendering of text/images isn't quite right.) Change-Id: I0a725fd5c030f3c089c2bbd25947088c321eb2d4
2014-08-08Implement 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-08Allow 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-08Calc: 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-08Render 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-08bnc#885548: Write test for this.Kohei Yoshida2-1/+66
Change-Id: Ifbd4502a5e49dfbb60301b935291ed0ce65da706
2014-08-08bnc#885548: Set the date time mode to non-fixed after the import is done.Kohei Yoshida1-0/+1
So that the new revisions will correctly record time stamps. Change-Id: I7d9b26bed04a95ce2652224faa0f214562818970
2014-08-08java: variable cannot be nullNoel Grandin1-5/+0
remove null check where null-analyis reveals the variable cannot be null Change-Id: Ied0a24665514bbf68c2ed5f15af9e5c2232a8033
2014-08-08java: remove unnecessary semi-colonsNoel Grandin1-2/+2
Change-Id: Ibeeefc6e6ee8f7bed97a02f569f239ff035d38c4
2014-08-08java: remove unused variablesNoel Grandin1-2/+0
Change-Id: I1b04fbf4d4562ff8e74f6ccdb2fd989d79cc869b
2014-08-08loplugin:saloverrideStephan Bergmann1-7/+7
Change-Id: I6a3cdf840468d6508e8ffecdc50d79041b9b4797
2014-08-08XStyleLoader2 loadStylesFromDocument - unit testsLaurent Godard4-1/+236
Change-Id: Id143689f573e6f8585db9bc48a252e311ff0e721
2014-08-07coverity#706946 Uncaught exceptionCaolán McNamara1-3/+28
Change-Id: I836e353ae3a8274842465719b3d8ae82ad433375
2014-08-07coverity#735805 Explicit null dereferencedCaolán McNamara1-4/+9
Change-Id: I6641930b42f233096f4a0067ab320383ff07a72a
2014-08-07coverity#1158491 Uninitialized pointer fieldCaolán McNamara1-0/+1
Change-Id: I618427793885f6dce918e432e5d532f30bed71ad
2014-08-07coverity#1229887 Resource leakCaolán McNamara1-0/+2
Change-Id: I5f8ac14892682490d8cc93266368419107376206
2014-08-07coverity#1229888 Resource leakCaolán McNamara1-1/+4
Change-Id: I5a50c23581ac31b81549cdbab038521598c2abf3
2014-08-07fdo#82241 fix autocompletion for calc functions withWinfried Donkers1-5/+6
dot or underscore in function name Change-Id: Id460cad619098265b4ae000894df64a996ef0514 Reviewed-on: https://gerrit.libreoffice.org/10801 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-08-06RID_SCDLG_CONFLICTS conversion to .uiSzymon Kłos7-249/+273
Change-Id: Ibdfa27e834cd8fba0f732233338e5fba699c1e90 Reviewed-on: https://gerrit.libreoffice.org/10778 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-06Related fdo#69006: Reintroduce some height calculation back.Jan Holesovsky1-3/+2
When importing CSV with multiple lines in a cell, it looks as if some content was lost. It is not, it is in the spreadsheet, but looks very confusing, and only way to get around that was to let the heights be recalculated. It seems that the large CSV still opens in reasonable time even with this change in. Change-Id: I701110fcd8a92daa5f374d80f5af696666a7aa6a Reviewed-on: https://gerrit.libreoffice.org/10499 Tested-by: Eike Rathke <erack@redhat.com> Reviewed-by: Eike Rathke <erack@redhat.com>
2014-08-06Consistency around SdrOnOffItem in svx/sdasitm.hxxStephan Bergmann1-1/+1
...similar to what has been done for svx/sdtmfitm.hxx in 6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and 68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem." Change-Id: Icdeff7f37901f99158bb00de5e912c181bf3e688
2014-08-05fdo#79917: Add 'Save a Copy' to Calc/Impress/Draw.Heiko Scheidt1-0/+1
Was added to writer in LO 4.1 but menu entries for other modules were overlooked. Change-Id: I90bcaa727eaa8fd8b35218f73c101f25c7a71d7b Reviewed-on: https://gerrit.libreoffice.org/10707 Reviewed-by: Andrzej Hunt <andrzej.hunt@collabora.com> Tested-by: Andrzej Hunt <andrzej.hunt@collabora.com>
2014-08-05Fix fdo#80338: Help pages for Calc Data StatsOlivier Hallot8-10/+123
This patch adds the help button on all dialogs of Calc Data Statistics. Change-Id: Ic74493a4df1341ca08b50c03290a386232c977e9 Reviewed-on: https://gerrit.libreoffice.org/10704 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2014-08-05java: remove commented out codeNoel Grandin8-131/+0
Change-Id: I44e2043e5da23bc9421c03e550ef1d8b7ebaad36
2014-08-05java: remove unused fieldsNoel Grandin1-6/+0
Change-Id: I6c93864f501f646a8940eac221a88c87b3f75525
2014-08-05java: remove various unused variablesNoel Grandin3-3/+0
Change-Id: Id9f30938f594cb6fe73bf40adfffa65ec1b42cd1
2014-08-05Consistency around SdrOnOffItem in svx/sdshitm.hxxStephan Bergmann3-4/+4
...similar to what has been done for svx/sdtmfitm.hxx in 6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and 68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem." Change-Id: Id712c222034ef807ea2d7bc459e78882e948aca6
2014-08-05handle autocomplete with dot in formula name, fdo#80058Markus Mohrhard1-0/+28
The problem is that a dot is a word separator so the break iterator provided by ICU will think that the dot separates two words whereas it is part of the name here. Change-Id: I73cee4304f83888b1645fec7b1851b9f42ef879f
2014-08-05use a anonymous namespace and sane function namesMarkus Mohrhard1-3/+7
Change-Id: I8fdd5fb4f21e6c90e352089858ce98a62ac213de
2014-08-04Convert RID_SCDLG_DPSHOWDETAIL to .uiPalenik Mihály5-69/+148
Change-Id: If515e8f554f36e4ba203474d08d5ebe9caa023fa Reviewed-on: https://gerrit.libreoffice.org/10739 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-04Consistency around SdrOnOffItem in svx/sdtagitm.hxxStephan Bergmann5-17/+17
...similar to what has been done for svx/sdtmfitm.hxx in 6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and 68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem." Change-Id: I6d8b3709d6d55bd6958d38f262141c43779dfdcc
2014-08-04sc: remove debugging printfMichael Stahl1-1/+2
Change-Id: I1b403d8ae081347d756145e52539445e067efa91
2014-08-04java: remove some unused variablesNoel Grandin1-7/+4
Change-Id: Ia9405d3e34e710059ff68bf850de91c36f4e1e1b
2014-08-04fix spelling compilant -> compliantNoel Grandin1-1/+1
Change-Id: I5a469226a576906f0dd860c008d2e3fab1659ff7
2014-08-04Consistency around SdrMetricItem in svx/sdtditm.hxxStephan Bergmann3-12/+12
...similar to what has been done for svx/sdtmfitm.hxx in 6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and 68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem." Change-Id: Ib0234883d441be668700df5ccd0e855973dc5426
2014-08-02HIG improvements for data sampling .uiOlivier Hallot1-221/+248
Change-Id: I84d5f6818e1cc729b87b606de00ea342061a10a2 Reviewed-on: https://gerrit.libreoffice.org/10696 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-08-02Stop bothering translatorsOlivier Hallot1-3/+3
restore widget id's to the previously translated Change-Id: Iaf5787447d14fdc4e0f5dac951834d32e729d156 Reviewed-on: https://gerrit.libreoffice.org/10700 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-08-02Improve HIG for moving average .uiOlivier Hallot1-217/+252
Change-Id: I768e409629ac0cf410163b0d3941c873be0afa85 Reviewed-on: https://gerrit.libreoffice.org/10695 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-08-02Improve HIG for Calc Expon. Smoothing .uiOlivier Hallot1-219/+256
Change-Id: Ia935724c95c0ef3c5738c03ddc19f75f1838a753 Reviewed-on: https://gerrit.libreoffice.org/10694 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-08-02Improve HIG for Calc ttest Statistics .uiOlivier Hallot1-205/+242
Change-Id: I329ad988e9cfb12f41e8fd86af26c02fd0bef096 Reviewed-on: https://gerrit.libreoffice.org/10692 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-08-02Improve HIG for Calc Descriptive Statistics .uiOlivier Hallot1-160/+197
Descriptive statistics Change-Id: I8d3377e9c814f674bee4c09b562a02e80e7ed000 Reviewed-on: https://gerrit.libreoffice.org/10691 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-08-02Improve 2 dialogs for data StatisticsOlivier Hallot2-309/+363
Tweak 2 dialogs for Calc Data Statistics, seeking consistency and using HIG guidelines Change-Id: Ie87413dd820315eaf68eafdbd7381ec1f3744b4d Reviewed-on: https://gerrit.libreoffice.org/10673 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-08-02Improve HIG for Calc Data Statistics .ui, ANOVAOlivier Hallot1-304/+351
Change-Id: I3e51685cf4049615e3fc4c562f52a23797c3f4c1 Reviewed-on: https://gerrit.libreoffice.org/10684 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-08-01typo: more then -> more thanTakeshi Abe1-1/+1
Change-Id: I2e477d66f25bde7256938ccb1f95ab26add24922
2014-07-31fix memory leak around chart listenersMarkus Mohrhard1-15/+8
Found by Lsan. The following pattern leaks memory: boost::ptr_container x; x.release().release(); Change-Id: Iaf52e4f2d6a96266fc6afd65ef8027d80c97a08b