1*190118d0SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*190118d0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*190118d0SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*190118d0SAndrew Rist * distributed with this work for additional information 6*190118d0SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*190118d0SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*190118d0SAndrew Rist * "License"); you may not use this file except in compliance 9*190118d0SAndrew Rist * with the License. You may obtain a copy of the License at 10*190118d0SAndrew Rist * 11*190118d0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*190118d0SAndrew Rist * 13*190118d0SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*190118d0SAndrew Rist * software distributed under the License is distributed on an 15*190118d0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*190118d0SAndrew Rist * KIND, either express or implied. See the License for the 17*190118d0SAndrew Rist * specific language governing permissions and limitations 18*190118d0SAndrew Rist * under the License. 19*190118d0SAndrew Rist * 20*190118d0SAndrew Rist *************************************************************/ 21*190118d0SAndrew Rist 22*190118d0SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_editeng.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <editeng/measfld.hxx> 28cdf0e10cSrcweir 29cdf0e10cSrcweir SV_IMPL_PERSIST1(SdrMeasureField,SvxFieldData); 30cdf0e10cSrcweir ~SdrMeasureField()31cdf0e10cSrcweir__EXPORT SdrMeasureField::~SdrMeasureField() 32cdf0e10cSrcweir { 33cdf0e10cSrcweir } 34cdf0e10cSrcweir Clone() const35cdf0e10cSrcweirSvxFieldData* __EXPORT SdrMeasureField::Clone() const 36cdf0e10cSrcweir { 37cdf0e10cSrcweir return new SdrMeasureField(*this); 38cdf0e10cSrcweir } 39cdf0e10cSrcweir operator ==(const SvxFieldData & rSrc) const40cdf0e10cSrcweirint __EXPORT SdrMeasureField::operator==(const SvxFieldData& rSrc) const 41cdf0e10cSrcweir { 42cdf0e10cSrcweir return eMeasureFieldKind==((SdrMeasureField&)rSrc).GetMeasureFieldKind(); 43cdf0e10cSrcweir } 44cdf0e10cSrcweir Load(SvPersistStream & rIn)45cdf0e10cSrcweirvoid __EXPORT SdrMeasureField::Load(SvPersistStream& rIn) 46cdf0e10cSrcweir { 47cdf0e10cSrcweir sal_uInt16 nFieldKind; 48cdf0e10cSrcweir rIn>>nFieldKind; 49cdf0e10cSrcweir eMeasureFieldKind=(SdrMeasureFieldKind)nFieldKind; 50cdf0e10cSrcweir } 51cdf0e10cSrcweir Save(SvPersistStream & rOut)52cdf0e10cSrcweirvoid __EXPORT SdrMeasureField::Save(SvPersistStream& rOut) 53cdf0e10cSrcweir { 54cdf0e10cSrcweir rOut<<(sal_uInt16)eMeasureFieldKind; 55cdf0e10cSrcweir } 56cdf0e10cSrcweir 57cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 58cdf0e10cSrcweir // eof 59