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 _SDTMFITM_HXX 24 #define _SDTMFITM_HXX 25 26 #include <svx/sdmetitm.hxx> 27 #include <svx/svddef.hxx> 28 29 //------------------------------ 30 // class SdrTextMinFrameHeighItem 31 //------------------------------ 32 class SdrTextMinFrameHeightItem: public SdrMetricItem { 33 public: SdrTextMinFrameHeightItem(long nHgt=0)34 SdrTextMinFrameHeightItem(long nHgt=0): SdrMetricItem(SDRATTR_TEXT_MINFRAMEHEIGHT,nHgt) {} SdrTextMinFrameHeightItem(SvStream & rIn)35 SdrTextMinFrameHeightItem(SvStream& rIn): SdrMetricItem(SDRATTR_TEXT_MINFRAMEHEIGHT,rIn) {} 36 }; 37 38 //------------------------------ 39 // class SdrTextMaxFrameHeightItem 40 //------------------------------ 41 class SdrTextMaxFrameHeightItem: public SdrMetricItem { 42 public: SdrTextMaxFrameHeightItem(long nHgt=0)43 SdrTextMaxFrameHeightItem(long nHgt=0): SdrMetricItem(SDRATTR_TEXT_MAXFRAMEHEIGHT,nHgt) {} SdrTextMaxFrameHeightItem(SvStream & rIn)44 SdrTextMaxFrameHeightItem(SvStream& rIn): SdrMetricItem(SDRATTR_TEXT_MAXFRAMEHEIGHT,rIn) {} 45 }; 46 47 //------------------------------ 48 // class SdrTextMinFrameWidthItem 49 //------------------------------ 50 class SdrTextMinFrameWidthItem: public SdrMetricItem { 51 public: SdrTextMinFrameWidthItem(long nWdt=0)52 SdrTextMinFrameWidthItem(long nWdt=0): SdrMetricItem(SDRATTR_TEXT_MINFRAMEWIDTH,nWdt) {} SdrTextMinFrameWidthItem(SvStream & rIn)53 SdrTextMinFrameWidthItem(SvStream& rIn): SdrMetricItem(SDRATTR_TEXT_MINFRAMEWIDTH,rIn) {} 54 }; 55 56 //------------------------------ 57 // class SdrTextMaxFrameWidthItem 58 //------------------------------ 59 class SdrTextMaxFrameWidthItem: public SdrMetricItem { 60 public: SdrTextMaxFrameWidthItem(long nWdt=0)61 SdrTextMaxFrameWidthItem(long nWdt=0): SdrMetricItem(SDRATTR_TEXT_MAXFRAMEWIDTH,nWdt) {} SdrTextMaxFrameWidthItem(SvStream & rIn)62 SdrTextMaxFrameWidthItem(SvStream& rIn): SdrMetricItem(SDRATTR_TEXT_MAXFRAMEWIDTH,rIn) {} 63 }; 64 65 #endif 66