xref: /aoo4110/main/sfx2/inc/sfx2/chalign.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 #ifndef _SFX_CHILDALIGN_HXX
24 #define _SFX_CHILDALIGN_HXX
25 
26 #include <tools/solar.h>
27 
28 // Neue Reihenfolge: zuerst Navigationsleiste, dann senkrecht angedockte
29 // ChildWindows (Explorer!), dann horizontal angedockte ChildWindows (Browser!),
30 // dann die Formatleiste, die Statuszeile, am Ende die Werkzeugleiste.
31 
32 enum SfxChildAlignment
33 {
34 	SFX_ALIGN_HIGHESTTOP,       // z.B. Navigationsleiste
35 	SFX_ALIGN_LOWESTBOTTOM,
36 	SFX_ALIGN_FIRSTLEFT,
37 	SFX_ALIGN_LASTRIGHT,
38 	SFX_ALIGN_LEFT,				// z.B. SplitWindow
39 	SFX_ALIGN_RIGHT,
40 	SFX_ALIGN_LASTLEFT,
41 	SFX_ALIGN_FIRSTRIGHT,
42 	SFX_ALIGN_TOP,				// z.B. Hyperlink-Builder, SplitWindow
43 	SFX_ALIGN_BOTTOM,			// z.B. SplitWindow
44 	SFX_ALIGN_TOOLBOXTOP,		// z.B. Objektleiste
45 	SFX_ALIGN_TOOLBOXBOTTOM,
46 	SFX_ALIGN_LOWESTTOP,		// z.B. Calc-Rechenleiste
47 	SFX_ALIGN_HIGHESTBOTTOM,    // z.B. Statusleiste
48 	SFX_ALIGN_TOOLBOXLEFT,		// z.B. Werkzeugleiste
49 	SFX_ALIGN_TOOLBOXRIGHT,
50 	SFX_ALIGN_NOALIGNMENT		// alle FloatingWindows
51 };
52 
53 // "Uberpr"uft, ob ein g"ultiges Alignment verwendet wird
SfxChildAlignValid(SfxChildAlignment eAlign)54 inline sal_Bool SfxChildAlignValid( SfxChildAlignment eAlign )
55 {
56 	return ( eAlign >= SFX_ALIGN_HIGHESTTOP && eAlign <= SFX_ALIGN_NOALIGNMENT );
57 }
58 
59 #endif
60