xref: /aoo4110/main/sw/source/ui/inc/textsh.hxx (revision b1cdbd2c)
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 
24 #ifndef _SWTEXTSH_HXX
25 #define _SWTEXTSH_HXX
26 
27 #include <basesh.hxx>
28 
29 class AbstractSvxPostItDialog;
30 class SwFldMgr;
31 class SvxHyperlinkItem;
32 
33 class SwTextShell: public SwBaseShell
34 {
35 	SwFldMgr*	pPostItFldMgr;
36 
37     void InsertSymbol( SfxRequest& );
38 	void InsertHyperlink(const SvxHyperlinkItem& rHlnkItem);
39 	bool InsertMediaDlg( SfxRequest& );
40     void ChangeHeaderOrFooter(const String& rStyleName, sal_Bool bHeader, sal_Bool bOn, sal_Bool bShowWarning);
41 
42 public:
43 	SFX_DECL_INTERFACE(SW_TEXTSHELL)
44 	TYPEINFO();
45 
46 //CHINA001	DECL_LINK( PostItNextHdl, Button * );
47 //CHINA001	DECL_LINK( PostItPrevHdl, Button * );
48 //CHINA001	DECL_LINK( RedlineNextHdl, Button * );
49 //CHINA001	DECL_LINK( RedlinePrevHdl, Button * );
50 	DECL_LINK( RedlineNextHdl, AbstractSvxPostItDialog * );
51 	DECL_LINK( RedlinePrevHdl, AbstractSvxPostItDialog * );
52 
53 	void	Execute(SfxRequest &);
54 	void	GetState(SfxItemSet &);
55 
56 	void	ExecInsert(SfxRequest &);
57 	void	StateInsert(SfxItemSet&);
58 	void	ExecDelete(SfxRequest &);
59 	void	ExecEnterNum(SfxRequest &);
60 	void	ExecBasicMove(SfxRequest &);
61 	void	ExecMove(SfxRequest &);
62 	void	ExecMovePage(SfxRequest &);
63 	void	ExecMoveCol(SfxRequest &);
64 	void	ExecMoveLingu(SfxRequest &);
65 	void	ExecMoveMisc(SfxRequest &);
66 	void	ExecField(SfxRequest &rReq);
67 	void	ExecSetNumber(SfxRequest &);
68 	void	StateField(SfxItemSet &);
69 	void	ExecIdx(SfxRequest &);
70 	void	GetIdxState(SfxItemSet &);
71 	void	ExecGlossary(SfxRequest &);
72 
73 	void	ExecCharAttr(SfxRequest &);
74 	void	ExecCharAttrArgs(SfxRequest &);
75 	void	ExecParaAttr(SfxRequest &);
76 	void	ExecParaAttrArgs(SfxRequest &);
77 	void	ExecAttr(SfxRequest &);
78 	void	ExecDB(SfxRequest &);
79 	void 	ExecTransliteration(SfxRequest &);
80 
81 	void	GetAttrState(SfxItemSet &);
82 
83 			 SwTextShell(SwView &rView);
84 	virtual ~SwTextShell();
85 };
86 
87 #endif
88