xref: /trunk/main/sw/source/ui/inc/textsh.hxx (revision a893be29343ee97512d484e6e8fefa91df2b44cb)
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(
41         const String& rStyleName,
42         sal_Bool bHeader,
43         sal_Bool bOn,
44         sal_Bool bShowWarning );
45 
46 public:
47 
48     SFX_DECL_INTERFACE(SW_TEXTSHELL)
49     TYPEINFO();
50 
51 //CHINA001  DECL_LINK( PostItNextHdl, Button * );
52 //CHINA001  DECL_LINK( PostItPrevHdl, Button * );
53 //CHINA001  DECL_LINK( RedlineNextHdl, Button * );
54 //CHINA001  DECL_LINK( RedlinePrevHdl, Button * );
55     DECL_LINK( RedlineNextHdl, AbstractSvxPostItDialog * );
56     DECL_LINK( RedlinePrevHdl, AbstractSvxPostItDialog * );
57 
58     void    Execute(SfxRequest &);
59     void    GetState(SfxItemSet &);
60 
61     void    ExecInsert(SfxRequest &);
62     void    StateInsert(SfxItemSet&);
63     void    ExecDelete(SfxRequest &);
64     void    ExecEnterNum(SfxRequest &);
65     void    ExecBasicMove(SfxRequest &);
66     void    ExecMove(SfxRequest &);
67     void    ExecMovePage(SfxRequest &);
68     void    ExecMoveCol(SfxRequest &);
69     void    ExecMoveLingu(SfxRequest &);
70     void    ExecMoveMisc(SfxRequest &);
71     void    ExecField(SfxRequest &rReq);
72     void    ExecSetNumber(SfxRequest &);
73     void    StateField(SfxItemSet &);
74     void    ExecIdx(SfxRequest &);
75     void    GetIdxState(SfxItemSet &);
76     void    ExecGlossary(SfxRequest &);
77 
78     void    ExecCharAttr(SfxRequest &);
79     void    ExecCharAttrArgs(SfxRequest &);
80     void    ExecParaAttr(SfxRequest &);
81     void    ExecParaAttrArgs(SfxRequest &);
82     void    ExecAttr(SfxRequest &);
83     void    ExecDB(SfxRequest &);
84     void    ExecTransliteration(SfxRequest &);
85 
86     void    GetAttrState(SfxItemSet &);
87 
88              SwTextShell(SwView &rView);
89     virtual ~SwTextShell();
90 };
91 
92 #endif
93