xref: /trunk/main/sc/source/ui/inc/formatsh.hxx (revision facb16e7)
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 SC_FORMATSH_HXX
25 #define SC_FORMATSH_HXX
26 
27 #include <sfx2/shell.hxx>
28 #include "shellids.hxx"
29 #include <sfx2/module.hxx>
30 #include <svx/svdmark.hxx>
31 
32 class ScViewData;
33 
34 class ScFormatShell: public SfxShell
35 {
36 	ScViewData* pViewData;
37 
38 protected:
39 
GetViewData()40 	ScViewData*			GetViewData(){return pViewData;}
GetViewData() const41     const ScViewData*   GetViewData() const {return pViewData;}
42 
43 public:
44 
45 	TYPEINFO();
46 	SFX_DECL_INTERFACE(SCID_FORMAT_SHELL)
47 
48 				ScFormatShell(ScViewData* pData);
49 	virtual		~ScFormatShell();
50 
51 	void		ExecuteNumFormat( SfxRequest& rReq );
52 	void		GetNumFormatState( SfxItemSet& rSet );
53 
54 	void		ExecuteAttr( SfxRequest& rReq );
55 	void		GetAttrState( SfxItemSet& rSet );
56 
57 	void		ExecuteAlignment( SfxRequest& rReq );
58 
59 	void		ExecuteTextAttr( SfxRequest& rReq );
60 	void		GetTextAttrState( SfxItemSet& rSet );
61 
62 	void		GetAlignState( SfxItemSet& rSet );
63 	void		GetBorderState( SfxItemSet& rSet );
64 
65 	void		ExecuteStyle( SfxRequest& rReq );
66 	void		GetStyleState( SfxItemSet& rSet );
67 
68     void        ExecuteTextDirection( SfxRequest& rReq );
69     void        GetTextDirectionState( SfxItemSet& rSet );
70 
71     void        ExecFormatPaintbrush( SfxRequest& rReq );
72     void        StateFormatPaintbrush( SfxItemSet& rSet );
73 
74     void        ExecViewOptions( SfxRequest& rReq );
75     void        GetViewOptions( SfxItemSet& rSet );
76 };
77 
78 #endif
79