xref: /AOO41X/main/sw/source/ui/inc/drwtxtsh.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SWDRWTXTSH_HXX
28 #define _SWDRWTXTSH_HXX
29 
30 #include <sfx2/shell.hxx>
31 #include "shellid.hxx"
32 
33 class SdrView;
34 class SwView;
35 class SwWrtShell;
36 class SfxModule;
37 
38 class SwDrawTextShell: public SfxShell
39 {
40 	SwView		&rView;
41 
42 	SdrView		*pSdrView;
43 
44 	sal_Bool 		bRotate : 1;
45 	sal_Bool 		bSelMove: 1;
46 
47 	void 		SetAttrToMarked(const SfxItemSet& rAttr);
48     void        InsertSymbol(SfxRequest& rReq);
49 	sal_Bool		IsTextEdit();
50 public:
51 	SFX_DECL_INTERFACE(SW_DRWTXTSHELL)
52 	TYPEINFO();
53 
54 	SwView	   &GetView() { return rView; }
55 	SwWrtShell &GetShell();
56 
57 				SwDrawTextShell(SwView &rView);
58 	virtual		~SwDrawTextShell();
59 
60     virtual ::svl::IUndoManager*
61                 GetUndoManager();
62 
63     void        StateDisableItems(SfxItemSet &);
64 
65 	void		Execute(SfxRequest &);
66 	void		ExecDraw(SfxRequest &);
67 	void		GetState(SfxItemSet &);
68 	void		GetDrawTxtCtrlState(SfxItemSet&);
69 
70 	void		ExecFontWork(SfxRequest& rReq);
71 	void		StateFontWork(SfxItemSet& rSet);
72 	void		ExecFormText(SfxRequest& rReq);
73 	void		GetFormTextState(SfxItemSet& rSet);
74 	void		ExecDrawLingu(SfxRequest &rReq);
75 	void		ExecUndo(SfxRequest &rReq);
76 	void		StateUndo(SfxItemSet &rSet);
77 	void		ExecClpbrd(SfxRequest &rReq);
78 	void		StateClpbrd(SfxItemSet &rSet);
79 	void		StateInsert(SfxItemSet &rSet);
80 	void 		ExecTransliteration(SfxRequest &);
81 
82 	void		Init();
83 	void		StateStatusline(SfxItemSet &rSet);
84 };
85 
86 #endif
87