xref: /aoo42x/main/sw/source/ui/inc/annotsh.hxx (revision 67e470da)
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 _SWANNOTSH_HXX
24 #define _SWANNOTSH_HXX
25 
26 #include <sfx2/shell.hxx>
27 #include "shellid.hxx"
28 #include "swmodule.hxx"
29 
30 class SwView;
31 class SwAnnotationShell: public SfxShell
32 {
33 	SwView&		rView;
34 
35 public:
36 	SFX_DECL_INTERFACE(SW_ANNOTATIONSHELL)
37 	TYPEINFO();
38 
39 				SwAnnotationShell(SwView&);
40 	virtual		~SwAnnotationShell();
41 
42     void        StateDisableItems(SfxItemSet &);
43 	void		Exec(SfxRequest &);
44 
45 	void		GetState(SfxItemSet &);
46 	void		StateInsert(SfxItemSet &rSet);
47 
48 	void		NoteExec(SfxRequest &);
49 	void		GetNoteState(SfxItemSet &);
50 
51 	void		ExecLingu(SfxRequest &rReq);
52 	void		GetLinguState(SfxItemSet &);
53 
54 	void		ExecClpbrd(SfxRequest &rReq);
55 	void		StateClpbrd(SfxItemSet &rSet);
56 
57 	void 		ExecTransliteration(SfxRequest &);
58 
59 	void		ExecUndo(SfxRequest &rReq);
60 	void		StateUndo(SfxItemSet &rSet);
61 
62 	void		StateStatusLine(SfxItemSet &rSet);
63 
64 	void		InsertSymbol(SfxRequest& rReq);
65 
66 	void		ExecSearch(SfxRequest&, sal_Bool bNoMessage = sal_False);
67 	void            StateSearch(SfxItemSet &);
68 
69 
70 	virtual ::svl::IUndoManager*
71                 GetUndoManager();
72 };
73 
74 #endif
75