xref: /aoo4110/main/sd/source/ui/inc/ViewShellHint.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 SD_VIEW_SHELL_HINT_HXX
25 #define SD_VIEW_SHELL_HINT_HXX
26 
27 #include <svl/hint.hxx>
28 
29 namespace sd {
30 
31 /** Local derivation of the SfxHint class that defines some hint ids that
32     are used by the ViewShell class and its decendants.
33 */
34 class ViewShellHint
35     : public SfxHint
36 {
37 public:
38     enum HintId {
39         // Indicate that a page resize is about to begin.
40         HINT_PAGE_RESIZE_START,
41         // Indicate that a page resize has been completed.
42         HINT_PAGE_RESIZE_END,
43         // Indicate that an edit mode change is about to begin.
44         HINT_CHANGE_EDIT_MODE_START,
45         // Indicate that an edit mode change has been completed.
46         HINT_CHANGE_EDIT_MODE_END,
47 
48         HINT_COMPLEX_MODEL_CHANGE_START,
49         HINT_COMPLEX_MODEL_CHANGE_END
50     };
51 
52 	TYPEINFO();
53 
54     ViewShellHint (HintId nHintId);
55 
56     HintId GetHintId (void) const;
57 
58 private:
59     HintId meHintId;
60 };
61 
62 } // end of namespace sd
63 
64 #endif
65