[Libreoffice-commits] core.git: Branch 'feature/tiledrendering' - 2 commits - include/touch sw/source

Ptyl Dragon ptyl at cloudon.com
Tue Oct 29 15:12:59 CET 2013


 include/touch/touch.h          |    1 +
 sw/source/core/view/viewsh.cxx |   10 ++++++++++
 2 files changed, 11 insertions(+)

New commits:
commit 1d8592059259a3ccc5088516c3f14fc34e49c160
Author: Ptyl Dragon <ptyl at cloudon.com>
Date:   Tue Oct 29 16:11:58 2013 +0200

    added the touch_lo_get_content_size to touch.h
    
    Change-Id: I53287cbc84f99b56f575479860c3e8f890c49a35

diff --git a/include/touch/touch.h b/include/touch/touch.h
index 979a8de..a480fb6 100644
--- a/include/touch/touch.h
+++ b/include/touch/touch.h
@@ -111,6 +111,7 @@ context, contextHeight, contextWidth specify where to draw.
 */
 void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, int tilePosX, int tilePosY, int tileWidth, int tileHeight);
 void touch_lo_copy_buffer(const void * source, size_t sourceWidth, size_t sourceHeight, size_t sourceBytesPerRow, void * target, size_t targetWidth, size_t targetHeight);
+Size touch_lo_get_content_size();
 void touch_lo_mouse_drag(int x, int y, MLOMouseButtonState state);
 
 // Move the start of the selection to (x,y)
commit ae6ef002d3b4c5eef98a4751d3a6e04e6f1a7d9b
Author: Ptyl Dragon <ptyl at cloudon.com>
Date:   Tue Oct 29 16:11:29 2013 +0200

    added Size touch_lo_get_content_size()
    
    Change-Id: I0874f511e217713ba695e55d07133378a33fced9

diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index d64e1fa..9427b3d 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1815,6 +1815,16 @@ void touch_lo_draw_tile(void * context, int contextWidth, int contextHeight, int
     }
 }
 
+extern "C"
+Size touch_lo_get_content_size()
+{
+    SwWrtShell *pViewShell = GetActiveWrtShell();
+    Size contentSize(0,0);
+    if (pViewShell)
+    {
+    }
+    return contentSize;
+}
 #endif
 
 extern "C" void touch_ui_selection_none() {}


More information about the Libreoffice-commits mailing list