summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-08-29TEMPORARY: more twips in ScOutputData.feature/calctiledrendering_attempt3Andrzej Hunt1-92/+152
Some parts are working, some aren't. Change-Id: I69b63a585e971a4a56514a66ab318e48507ca5be
2014-08-29TEMPORARY: ViewData SetPosX/Y.Andrzej Hunt1-4/+16
Is this just unnecessary data duplication? (Would've been necessary with the old scaling I guess, but we don't have these inaccuracies any more?) Change-Id: I955345668d0d85a30e37316dd9a12f64d6bcbb03
2014-08-29ViewData: further twips updates.Andrzej Hunt1-34/+30
Change-Id: I88b45057ce6feb121f14ecda65a23f2631349ef8
2014-08-29TEMPORARY: Use PaintMapMode scaling for DrawMapMode too.Andrzej Hunt1-14/+10
Otherwise we end up with invalid scalings once PPTX/Y doesn't exist. We can't use the DrawView yet as that gives us invalid scales for now (due to the PPTX/Y removal/disablement). Change-Id: I59279cb007bace1237384f58b345079d23aee92e
2014-08-29Use Twips in DrawEditStandard too.Andrzej Hunt1-8/+16
This is used e.g. for cells which have been marked by the spellchecker. Change-Id: I8e0f85c1ff6f3104520b986eb89b03c6d457bf78
2014-08-29Update DrawStrings to Twips.Andrzej Hunt1-41/+56
Change-Id: I8df207056e5aab198a2d81b5a4a7cc4d85aa07e6
2014-08-29Upgrade GetOutputArea to Twips too.Andrzej Hunt1-55/+53
Change-Id: Ie8f4f004fb73c1042616aaa475ab1d12c33f1181
2014-08-29TEMPORARY: don't predraw for calc.Andrzej Hunt1-12/+12
Since we don't have ViewData (yet), the scaling in OutputData is wrong, making this output ugly. This only seems to affect what appeasrs on screen directly after startup, and there appears to be no negative effect from this, so maybe we can jus tkill this pre-painting? Change-Id: Ie4178ed39263e07fa11a139b20811799b7253601
2014-08-29TEMPORARY: variable renamed, but usage not yet adapted.Andrzej Hunt1-10/+10
Change-Id: Ica80137ab67f7687db03cc0f6c0f7eb10d574a69
2014-08-29Logic coordinates for clip marks too.Andrzej Hunt1-12/+23
Change-Id: I214064a1c060af2078dc5cd3f1fb4990ea374f0b
2014-08-29Use Twips for OutputData as much as possible too.Andrzej Hunt2-79/+91
Change-Id: I4eaa1db83861d325beae2f5eea4b623331a56879
2014-08-29Only set outdev origin for tiled rendering.Andrzej Hunt1-5/+15
Change-Id: Iec3e438867a94ec3465474f7b830275373c72bd3
2014-08-29Use proper conversion for EditGrowX/Y too.Andrzej Hunt1-12/+11
Change-Id: I344a46d2f27f663dc446562534564c34f9ceaea1
2014-08-29Upgrade GetSelectionRects to logic coordinates too.Andrzej Hunt1-21/+36
Change-Id: I4fda7bb4fea5971654c0ecacbd67bc16bd3a68d9
2014-08-29Ensure we use the correct rectangle size for tiled rendering.Andrzej Hunt1-1/+3
Change-Id: I0a4b3bf9c8263365d04ed4319a0c551c363120cd
2014-08-29Match TiledRendering scaling to the new ViewData PaintMapMode.Andrzej Hunt1-9/+18
This is a bit hacky, still need to figure out what's going wrong that we need this weird conversion. Change-Id: Id1c62401f9f85c6d436bdd73b51ccf126100cbc4
2014-08-29Ensure we keep our modified OutputDevice origin.Andrzej Hunt1-8/+15
This is needed for TiledRendering which treats the sheet as one continuous area rather than the what's-on-screen assumptions of the usual rendering method. Change-Id: Ibebba72f8b5fcba75a8f78ccfa6473d2de2df5fa
2014-08-29Don't use UpdateVisibleRange for calc tiled rendering.Andrzej Hunt1-1/+7
Change-Id: Iaba02741acc280dfc4c500e0d08271b39560149b
2014-08-29Use logic coordinates to determine cells in visible area.Andrzej Hunt1-14/+20
Change-Id: I91268b0d32aa85ea2a63e05837dc8c3781ede018
2014-08-29Set visible range from origin for Calc Tiled Rendering.Andrzej Hunt1-1/+15
Change-Id: I255b8865786088751c5d71da9db2ba38defed3bd
2014-08-29Kill use of PPT for DrawEditParam.Andrzej Hunt2-16/+34
Instead use our MapMode using code. Change-Id: I41a4fda036fa94f1ea7e5feed669df39e9ca8ebe
2014-08-29Add logic/pixel conversion wrappers to ScOutputData.Andrzej Hunt1-0/+38
However we still need to think through what to do for the case where we don't have mpViewData. Change-Id: I5c5c1e17407f5c24035d9623e49db25754a4e292
2014-08-27Use logic coordinates for GetMergeSizePixel.Andrzej Hunt1-6/+5
Change-Id: Ie4fae87c3307c601548f29c3b502e3ce4f7e49e0
2014-08-27GetScrPos: do position sums in logic coordinates.Andrzej Hunt1-34/+40
I.e. match up with the rest of our scaling rewrite, since summing up after converting to pixels introduces ugly errors. Change-Id: If60569ce83d2593cf40fa982d3376108b050d383
2014-08-27Replace AddPixelsWhile with Twips equivalent.Andrzej Hunt3-36/+41
Change-Id: I7bd2125ac839278406133c116201a0474d84d4d4
2014-08-27Allow PaintMapMode retrieval.Andrzej Hunt1-0/+2
We need this for conversions elsewhere (outside of ScViewData). Change-Id: I86ce18a22095488d3d3750bd13a5fab46a352be5
2014-08-27Conversions should be const.Andrzej Hunt2-8/+8
Change-Id: I98c68ce809d889c5d7b479a59859e633eb4309d9
2014-08-27Don't use PPT values for row/column size changes either.Andrzej Hunt1-2/+2
Change-Id: I70186485c20280ab26587b0b42e48f3ecb483323
2014-08-27Use GetScrPos so that col/row-headers match the grid.Andrzej Hunt1-3/+18
Without this we can still get single pixel errors which can sum up over multiple columns/row. Change-Id: Id428dafab1ca771c123c84d815261263a7d33fed
2014-08-27Use MapMode instead of PPT for ScEditUtil::GetEditAreaAndrzej Hunt4-39/+55
Change-Id: I3fbc33da3f32723e37c5004f7883fa6ab4107921
2014-08-25Add Point and Size versions of convertMm100ToTwip/TwipToMm100.Andrzej Hunt1-0/+26
There seem to be quite a few cases where the individual components are being converted, this way we can just conver the entire object as one. Change-Id: I0043b6f40520d7497e6edc185187706b255f2354
2014-08-15Use viewdata scaling for vertical grid lines.Andrzej Hunt1-3/+26
Horizontal lines / the rest of ScOutputData still need converting, but at least this shows we're on the right track. Change-Id: I4a7702d9983dd07674808319b3c613d4350ac25e
2014-08-15Implement some Logic/Pixel conversion functions for ScViewData.Andrzej Hunt2-0/+30
Change-Id: I54c99d19852be9825f3dbe80fcbfcfa13a79c835
2014-08-15Use MapMode instead of nPPTX/nPPTY.Andrzej Hunt2-33/+8
This is far from complete: we need to replace all uses of nPPTX/nPPTY for things to work correctly. Change-Id: I7c8aca62c537d8770903f4a6ae0a164479af3fc1
2014-08-15ScOutputData needs ScViewData for scaling.Andrzej Hunt5-5/+14
Change-Id: I14cd3e835ba8233478514d5f6832737aa2c99bf9
2014-08-15Make 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-15ScViewData::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-15Allow overriding limits for SetZoom for Tiled Rendering.Andrzej Hunt2-16/+31
Change-Id: Ic656012921408ce5c8dc691933a71a9e0ac78e5d
2014-08-15aScrSize should be mutable.Andrzej Hunt2-5/+5
Change-Id: I7376ea17aa4f66c9d9085757b84fb69dd0ad71cb
2014-08-15Fillinfo: 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-14Ensure 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-14Take 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-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-08vcl: don't throw misleading exceptions on every failed accessMichael Stahl1-1/+4
During the build different instances of gengal will create a temp file called "instdir/share/config/cdefghij.klm", and enumerate the directories in instdir/share/config; it may happen that the enumeration sees the temp file, and it is removed before fetchFileStatus is called, resulting in E_NOENT rc and the exception. The FileIsValidIconTheme() should be able to handle most errors here. (regression from 60954a8a96a66ff11e06b850838f3d16e8e1625f) Change-Id: Id9361a37b8569d01509efcc8cda2bc17e9eabcd8
2014-08-08DOCX export: handle date SDT on paragraphsMiklos Vajna5-6/+60
Date SDT's are normally imported as form controls, while most other SDT types are just custom properties on regular text portions or paragraphs. However, given that form controls are not supported in headers/footers, in that case even date SDT's are just custom properties. So support such properties on paragraphs in the exporter to properly roundtrip date SDT's in headers/footers. Change-Id: I19eb73a3673e387a7b8780756ce7426a1851e796
2014-08-08Unused optional elementsMiklos Vajna1-3222/+0
The scripts parsing this file don't care if an element is optional or not, so why bother. Change-Id: I0860c9209347d6fab83e1faf2867db4de94216ac
2014-08-08warning C4101: 'e': unreferenced local variableMichael Stahl1-0/+1
Change-Id: Ieaea27df421c939da895723485770830ac15c873