merge the formfield patch from ooo-build
[ooovba.git] / automation / source / server / editwin.hxx
blobac711568c9913d0285802f28a9d5b61426d46ca2
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: editwin.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _EDITWIN_HXX
31 #define _EDITWIN_HXX
33 #if OSL_DEBUG_LEVEL > 1
35 #ifndef _WRKWIN_HXX //autogen
36 #include <vcl/wrkwin.hxx>
37 #endif
39 #ifndef _EDIT_HXX //autogen
40 #include <svtools/svmedit.hxx>
41 #endif
43 class ImpWorkWindow;
45 class EditWindow
47 protected:
48 ImpWorkWindow *pImpWorkWindow;
49 BOOL check();
51 WorkWindow *pMemParent;
52 String aMemName;
53 WinBits iMemWstyle;
55 String aMemPreWinText;
56 BOOL bShowWin;
58 xub_StrLen nTextLen; // aus Performanzgründen eigene Länge mitführen
60 public:
61 EditWindow( WorkWindow *pParent, const UniString &rName = UniString( RTL_CONSTASCII_USTRINGPARAM ( "Debug" ) ), WinBits iWstyle = WB_HSCROLL | WB_VSCROLL );
62 virtual ~EditWindow();
64 void Clear();
65 void Show();
66 void Hide();
67 void AddText( const String &rNew );
68 void AddText( const sal_Char* rNew );
70 virtual BOOL Close(); // derived
71 BOOL bQuiet;
72 BOOL Check();
75 #endif
76 #endif