Commit Graph

10 Commits

Author SHA1 Message Date
Miklos Vajna
90f9e09a17 CID#1306215 Uninitialized members
Change-Id: Ib1ff285d1f8180ecb0be8448ac4c2d1878dff274
2015-06-12 11:24:41 +02:00
Stephan Bergmann
9aa9baa788 loplugin:literaltoboolconversion
Change-Id: I85fa46de5b864369158d047fd3f7c683f10c822f
2015-06-09 12:10:46 +02:00
Stephan Bergmann
3a1a5b9744 -Werror,-Wunused-private-field
Change-Id: I76cf487c66e048b5e9d0877a1b690cd066b73528
2015-06-09 12:10:45 +02:00
Pranav Kant
2afe94dbfc tilebuffer: tileSize as member variable is superfluous
Change-Id: I1eae8c96c12ba4d272341f45fee6c1fd66ab9e28
2015-06-09 10:44:24 +02:00
Pranav Kant
16222190ec tilebuffer: ZoomFactor as member variable is superfluous
Change-Id: I9f533f577f959c9a715e5214be99ca59cb0d206c
2015-06-09 10:44:24 +02:00
Pranav Kant
c074cfa4d4 lokdocview, tilebuffer: clean up
Improve documentation, style fixes

Change-Id: I5000e32e90cd8e3b75e8df2907673efc303a55fd
2015-06-09 10:44:22 +02:00
Pranav Kant
a5d3efa4a0 lokdocview: move commonly used functions and variables to common header
twipToPixel and pixelToTwip are also being used by the new TileBuffer
clsas. Lets move these utility functions to a common header,
tilebuffer.hxx

The variables for DPI and tileSize are also moved to tilebuffer.hxx

Change-Id: I9d0bec7f2aefe412df232040a7a9abc6db3e4ccb
2015-06-09 10:44:22 +02:00
Pranav Kant
82a208a08f lokdocview: Add support for editing documents
Change-Id: I8637d99e6fa59129af207e667bcdf03dc212efeb
2015-06-09 10:44:22 +02:00
Pranav Kant
cc78267f27 lokdocview: Use maps instead of vector
Using vector each tile needs to be allocated memory irrespective of
whether tile is required or not. This approach fails when we zoom in to
a very high level to have thousands of tiles due to lot of memory
required. Using maps instead of vector takes care of this, and only
allocates Tiles when required.

Change-Id: I523f815618451a7f014e28258e0de7b1c0693370
2015-06-09 10:44:21 +02:00
Pranav Kant
42dc4f3ed8 Add tile buffering support
The TileBuffer class now manages all the tiles. The tile rendering calls
to LO core is also managed by this class.

Change-Id: Ic667a93dcf1c097e0601c0496e8a083c4742e8cb
2015-06-09 10:44:21 +02:00