2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 18:46:49 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:46:49 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:46:49 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:46:49 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:46:49 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:46:49 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _BMPWIN_HXX
|
|
|
|
#define _BMPWIN_HXX
|
|
|
|
|
|
|
|
#ifndef _GRAPH_HXX //autogen
|
|
|
|
#include <vcl/graph.hxx>
|
|
|
|
#endif
|
2007-08-03 12:42:01 +00:00
|
|
|
#ifndef _BITMAPEX_HXX
|
|
|
|
#include <vcl/bitmapex.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
#endif
|
|
|
|
#include <vcl/window.hxx>
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------
|
|
|
|
Beschreibung: Extended Page fuer Grafiken
|
|
|
|
--------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
class BmpWindow : public Window
|
|
|
|
{
|
2007-08-03 12:42:01 +00:00
|
|
|
private:
|
|
|
|
Graphic aGraphic;
|
|
|
|
BitmapEx aBmp;
|
|
|
|
BitmapEx aBmpHC;
|
|
|
|
|
|
|
|
BOOL bHorz : 1;
|
|
|
|
BOOL bVert : 1;
|
|
|
|
BOOL bGraphic : 1;
|
|
|
|
BOOL bLeftAlign : 1;
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
void Paint(const Rectangle& rRect);
|
|
|
|
|
|
|
|
public:
|
|
|
|
BmpWindow(Window* pPar, USHORT nId,
|
2007-08-03 12:42:01 +00:00
|
|
|
const Graphic& rGraphic, const BitmapEx& rBmp, const BitmapEx& rBmpHC);
|
2000-09-18 16:15:01 +00:00
|
|
|
BmpWindow(Window* pParent, const ResId rResId) :
|
2007-09-27 10:54:18 +00:00
|
|
|
Window(pParent, rResId),
|
|
|
|
bHorz(FALSE), bVert(FALSE),bGraphic(FALSE), bLeftAlign(TRUE) {}
|
2000-09-18 16:15:01 +00:00
|
|
|
~BmpWindow();
|
|
|
|
void MirrorVert(BOOL bMirror) { bVert = bMirror; Invalidate(); }
|
|
|
|
void MirrorHorz(BOOL bMirror) { bHorz = bMirror; Invalidate(); }
|
2001-12-12 15:17:20 +00:00
|
|
|
void SetGraphic(const Graphic& rGrf);
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|