xref: /trunk/main/sw/source/ui/inc/drwtxtsh.hxx (revision 512ec161)
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 _SWDRWTXTSH_HXX
24 #define _SWDRWTXTSH_HXX
25 
26 #include <sfx2/shell.hxx>
27 #include "shellid.hxx"
28 
29 class SdrView;
30 class SwView;
31 class SwWrtShell;
32 class SfxModule;
33 
34 class SwDrawTextShell: public SfxShell
35 {
36 	SwView		&rView;
37 
38 	SdrView		*pSdrView;
39 
40 	sal_Bool 		bRotate : 1;
41 	sal_Bool 		bSelMove: 1;
42 
43 	void 		SetAttrToMarked(const SfxItemSet& rAttr);
44     void        InsertSymbol(SfxRequest& rReq);
45 	sal_Bool		IsTextEdit();
46 public:
47 	SFX_DECL_INTERFACE(SW_DRWTXTSHELL)
48 	TYPEINFO();
49 
GetView()50 	SwView	   &GetView() { return rView; }
51 	SwWrtShell &GetShell();
52 
53 				SwDrawTextShell(SwView &rView);
54 	virtual		~SwDrawTextShell();
55 
56     virtual ::svl::IUndoManager*
57                 GetUndoManager();
58 
59     void        StateDisableItems(SfxItemSet &);
60 
61 	void		Execute(SfxRequest &);
62 	void		ExecDraw(SfxRequest &);
63 	void		GetStatePropPanelAttr(SfxItemSet &);
64 	void		GetState(SfxItemSet &);
65 	void		GetDrawTxtCtrlState(SfxItemSet&);
66 
67 	void		ExecFontWork(SfxRequest& rReq);
68 	void		StateFontWork(SfxItemSet& rSet);
69 	void		ExecFormText(SfxRequest& rReq);
70 	void		GetFormTextState(SfxItemSet& rSet);
71 	void		ExecDrawLingu(SfxRequest &rReq);
72 	void		ExecUndo(SfxRequest &rReq);
73 	void		StateUndo(SfxItemSet &rSet);
74 	void		ExecClpbrd(SfxRequest &rReq);
75 	void		StateClpbrd(SfxItemSet &rSet);
76 	void		StateInsert(SfxItemSet &rSet);
77 	void 		ExecTransliteration(SfxRequest &);
78 
79 	void		Init();
80 	void		StateStatusline(SfxItemSet &rSet);
81 };
82 
83 #endif
84