xref: /trunk/main/svx/inc/svx/sxmtfitm.hxx (revision 3334a7e6)
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 _SXMTFITM_HXX
24 #define _SXMTFITM_HXX
25 
26 #include <svx/svddef.hxx>
27 #include <svx/sdynitm.hxx>
28 #include <svx/sdangitm.hxx>
29 
30 // die 2 folgenden sind noch nicht implementiert!
31 // Text auf einen wirklich fixen Winkel festnageln.
32 // Der Textwinkel ist dann auch unabhaengig vom Winkel der Masslinie.
33 // Setzt TextUpsideDown, TextRota90 sowie TextAutoAngle ausser Kraft. (n.i.)
34 class SdrMeasureTextIsFixedAngleItem: public SdrYesNoItem {
35 public:
SdrMeasureTextIsFixedAngleItem(bool bOn=false)36 	SdrMeasureTextIsFixedAngleItem(bool bOn=false): SdrYesNoItem(SDRATTR_MEASURETEXTISFIXEDANGLE,bOn) {}
SdrMeasureTextIsFixedAngleItem(SvStream & rIn)37 	SdrMeasureTextIsFixedAngleItem(SvStream& rIn): SdrYesNoItem(SDRATTR_MEASURETEXTISFIXEDANGLE,rIn) {}
38 };
39 
40 // Der Winkel des Textes in 1/100deg. 0=Horizontal von links nach rechts zu lesen. (n.i.)
41 class SdrMeasureTextFixedAngleItem: public SdrAngleItem {
42 public:
SdrMeasureTextFixedAngleItem(long nVal=0)43 	SdrMeasureTextFixedAngleItem(long nVal=0): SdrAngleItem(SDRATTR_MEASURETEXTFIXEDANGLE,nVal)  {}
SdrMeasureTextFixedAngleItem(SvStream & rIn)44 	SdrMeasureTextFixedAngleItem(SvStream& rIn): SdrAngleItem(SDRATTR_MEASURETEXTFIXEDANGLE,rIn) {}
45 };
46 
47 // The decimal places used for the measure value
48 class SdrMeasureDecimalPlacesItem: public SfxInt16Item {
49 public:
SdrMeasureDecimalPlacesItem(sal_Int16 nVal=2)50 	SdrMeasureDecimalPlacesItem(sal_Int16 nVal=2): SfxInt16Item(SDRATTR_MEASUREDECIMALPLACES,nVal)  {}
SdrMeasureDecimalPlacesItem(SvStream & rIn)51 	SdrMeasureDecimalPlacesItem(SvStream& rIn): SfxInt16Item(SDRATTR_MEASUREDECIMALPLACES,rIn) {}
52 };
53 
54 #endif
55