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 _SVXSWFRAMEVALIDATION_HXX 24 #define _SVXSWFRAMEVALIDATION_HXX 25 #include <sal/types.h> 26 #include <tools/gen.hxx> 27 #include <limits.h> 28 29 /* -----------------03.03.2004 16:31----------------- 30 struct to determine min/max values for fly frame positioning in Writer 31 --------------------------------------------------*/ 32 struct SvxSwFrameValidation 33 { 34 sal_Int16 nAnchorType; //com::sun::star::text::TextContentAnchorType 35 sal_Int16 nHoriOrient; //com::sun::star::text::HoriOrientation 36 sal_Int16 nVertOrient; //com::sun::star::text::VertOrientation 37 sal_Int16 nHRelOrient; //com::sun::star::text::RelOrientation 38 sal_Int16 nVRelOrient; //com::sun::star::text::RelOrientation 39 bool bAutoHeight; 40 bool bAutoWidth; 41 bool bMirror; 42 bool bFollowTextFlow; 43 44 sal_Int32 nHPos; 45 sal_Int32 nMaxHPos; 46 sal_Int32 nMinHPos; 47 48 sal_Int32 nVPos; 49 sal_Int32 nMaxVPos; 50 sal_Int32 nMinVPos; 51 52 sal_Int32 nWidth; 53 sal_Int32 nMinWidth; 54 sal_Int32 nMaxWidth; 55 56 sal_Int32 nHeight; 57 sal_Int32 nMinHeight; 58 sal_Int32 nMaxHeight; 59 60 Size aPercentSize; // Size fuer 100%-Wert 61 SvxSwFrameValidationSvxSwFrameValidation62 SvxSwFrameValidation() : 63 bAutoHeight(false), 64 bAutoWidth(false), 65 bMirror(false), 66 bFollowTextFlow( false ), 67 nHPos(0), 68 nMaxHPos(SAL_MAX_INT32), 69 nMinHPos(0), 70 nVPos(0), 71 nMaxVPos(SAL_MAX_INT32), 72 nMinVPos(0), 73 nWidth( 283 * 4 ), //2.0 cm 74 nMinWidth(0), 75 nMaxWidth(SAL_MAX_INT32), 76 nHeight( 283 ), //0.5 cm 77 nMaxHeight(SAL_MAX_INT32) 78 { 79 } 80 }; 81 82 #endif 83 84