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