| 1 |
/* AbiSource Application Framework |
| 2 |
* Copyright (C) 1998 AbiSource, Inc. |
| 3 |
* |
| 4 |
* This program is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU General Public License |
| 6 |
* as published by the Free Software Foundation; either version 2 |
| 7 |
* of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This program is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
* GNU General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU General Public License |
| 15 |
* along with this program; if not, write to the Free Software |
| 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 17 |
* 02110-1301 USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
#include "ut_assert.h" |
| 21 |
#include "ut_types.h" |
| 22 |
|
| 23 |
#include "xap_Preview.h" |
| 24 |
#include "gr_Graphics.h" |
| 25 |
|
| 26 |
XAP_Preview::XAP_Preview(GR_Graphics * gc) : |
| 27 |
m_gc(gc), m_iWindowHeight(0), m_iWindowWidth(0) |
| 28 |
{ |
| 29 |
UT_ASSERT(gc); |
| 30 |
|
| 31 |
// maybe later we'll need scroll offsets |
| 32 |
} |
| 33 |
|
| 34 |
// protected constructor |
| 35 |
XAP_Preview::XAP_Preview() : |
| 36 |
m_iWindowHeight(0), m_iWindowWidth(0) |
| 37 |
{ |
| 38 |
//UT_ASSERT(gc); -> requires setting of gc after creation |
| 39 |
} |
| 40 |
|
| 41 |
XAP_Preview::~XAP_Preview() |
| 42 |
{ |
| 43 |
} |
| 44 |
|
| 45 |
/************************************************************************/ |
| 46 |
|
| 47 |
void XAP_Preview::setWindowSize(UT_sint32 width, UT_sint32 height) |
| 48 |
{ |
| 49 |
m_iWindowWidth = width; |
| 50 |
m_iWindowHeight = height; |
| 51 |
} |
| 52 |
|