Kaydet (Commit) 1d18297e authored tarafından Fridrich Štrba's avatar Fridrich Štrba

C++11 is not everywhere, so be wise

Change-Id: I5935caa1d3c54bc9becd01a96499ca9158ea468c
üst 838a6011
...@@ -62,11 +62,11 @@ private: ...@@ -62,11 +62,11 @@ private:
long TABLE_CELL_WIDTH; long TABLE_CELL_WIDTH;
long TABLE_CELL_HEIGHT; long TABLE_CELL_HEIGHT;
const long TABLE_CELLS_HORIZ = 10; const long TABLE_CELLS_HORIZ;
const long TABLE_CELLS_VERT = 15; const long TABLE_CELLS_VERT;
long TABLE_POS_X = 2; long TABLE_POS_X;
long TABLE_POS_Y = 2; long TABLE_POS_Y;
long TABLE_WIDTH; long TABLE_WIDTH;
long TABLE_HEIGHT; long TABLE_HEIGHT;
...@@ -111,11 +111,16 @@ TableWindow::TableWindow( sal_uInt16 nSlotId, const OUString& rCmd, const OUStri ...@@ -111,11 +111,16 @@ TableWindow::TableWindow( sal_uInt16 nSlotId, const OUString& rCmd, const OUStri
nLine( 0 ), nLine( 0 ),
rTbx(rParentTbx), rTbx(rParentTbx),
mxFrame( rFrame ), mxFrame( rFrame ),
maCommand( rCmd ) maCommand( rCmd ),
TABLE_CELLS_HORIZ(10),
TABLE_CELLS_VERT(15),
TABLE_POS_X(2),
TABLE_POS_Y(2)
{ {
TABLE_CELL_WIDTH = 15 * GetDPIScaleFactor(); TABLE_CELL_WIDTH = 15 * GetDPIScaleFactor();
TABLE_CELL_HEIGHT = 15 * GetDPIScaleFactor(); TABLE_CELL_HEIGHT = 15 * GetDPIScaleFactor();
TABLE_WIDTH = TABLE_POS_X + TABLE_CELLS_HORIZ*TABLE_CELL_WIDTH; TABLE_WIDTH = TABLE_POS_X + TABLE_CELLS_HORIZ*TABLE_CELL_WIDTH;
TABLE_HEIGHT = TABLE_POS_Y + TABLE_CELLS_VERT*TABLE_CELL_HEIGHT; TABLE_HEIGHT = TABLE_POS_Y + TABLE_CELLS_VERT*TABLE_CELL_HEIGHT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment