xref: /trunk/main/sw/inc/extinput.hxx (revision 1d2dbeb0)
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 _EXTINPUT_HXX
24 #define _EXTINPUT_HXX
25 
26 #ifndef _SVSTDARR_HXX
27 #define _SVSTDARR_USHORTS
28 #include <svl/svstdarr.hxx>
29 #endif
30 #include <pam.hxx>
31 #include <i18npool/lang.h>
32 
33 class CommandExtTextInputData;
34 
35 class SwExtTextInput : public SwPaM
36 {
37 	SvUShorts aAttrs;
38 	String sOverwriteText;
39 	sal_Bool bInsText : 1;
40 	sal_Bool bIsOverwriteCursor : 1;
41     LanguageType eInputLanguage;
42 public:
43 	SwExtTextInput( const SwPaM& rPam, Ring* pRing = 0 );
44 	virtual ~SwExtTextInput();
45 
46 	void SetInputData( const CommandExtTextInputData& rData );
GetAttrs() const47 	const SvUShorts& GetAttrs() const  	{ return aAttrs; }
SetInsText(sal_Bool bFlag)48     void SetInsText( sal_Bool bFlag )       { bInsText = bFlag; }
IsOverwriteCursor() const49 	sal_Bool IsOverwriteCursor() const 		{ return bIsOverwriteCursor; }
50 	void SetOverwriteCursor( sal_Bool bFlag );
SetLanguage(LanguageType eSet)51     void SetLanguage(LanguageType eSet) { eInputLanguage = eSet;}
52 };
53 
54 #endif	//_EXTINPUT_HXX
55 
56