1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _EDITWIN_HXX
24 #define _EDITWIN_HXX
25 
26 #if OSL_DEBUG_LEVEL > 1
27 
28 #ifndef _WRKWIN_HXX //autogen
29 #include <vcl/wrkwin.hxx>
30 #endif
31 
32 #ifndef _EDIT_HXX //autogen
33 #include <svtools/svmedit.hxx>
34 #endif
35 
36 class ImpWorkWindow;
37 
38 class EditWindow
39 {
40 protected:
41 	ImpWorkWindow	*pImpWorkWindow;
42 	sal_Bool check();
43 
44 	WorkWindow	*pMemParent;
45 	String		aMemName;
46 	WinBits		iMemWstyle;
47 
48 	String		aMemPreWinText;
49 	sal_Bool		bShowWin;
50 
51 	xub_StrLen		nTextLen;	// aus Performanzgr�nden eigene L�nge mitf�hren
52 
53 public:
54 	EditWindow( WorkWindow *pParent, const UniString &rName = UniString( RTL_CONSTASCII_USTRINGPARAM ( "Debug" ) ), WinBits iWstyle = WB_HSCROLL | WB_VSCROLL );
55 	virtual ~EditWindow();
56 
57 	void Clear();
58 	void Show();
59 	void Hide();
60 	void AddText( const String &rNew );
61 	void AddText( const sal_Char* rNew );
62 
63 	virtual sal_Bool Close(); // derived
64 	sal_Bool bQuiet;
65 	sal_Bool Check();
66 };
67 
68 #endif
69 #endif
70 
71