Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _EDIT_MEASFIELD_HXX
30 : : #define _EDIT_MEASFIELD_HXX
31 : :
32 : : #include <editeng/eeitem.hxx>
33 : :
34 : : #ifndef _FLDITEM_HXX
35 : : #ifndef ITEMID_FIELD
36 : : #include <editeng/editdata.hxx> /* this include is needed due to EE_FEATURE_FIELD */
37 : : #define ITEMID_FIELD EE_FEATURE_FIELD /* is needed for #include <editeng/flditem.hxx> */
38 : : #endif
39 : : #include <editeng/flditem.hxx>
40 : : #endif
41 : : #include "editeng/editengdllapi.h"
42 : :
43 : : #include <com/sun/star/text/textfield/Type.hpp>
44 : :
45 : : class SdrMeasureObj;
46 : :
47 : : enum SdrMeasureFieldKind {SDRMEASUREFIELD_VALUE,SDRMEASUREFIELD_UNIT,SDRMEASUREFIELD_ROTA90BLANCS};
48 : :
49 : 0 : class EDITENG_DLLPUBLIC SdrMeasureField: public SvxFieldData {
50 : : SdrMeasureFieldKind eMeasureFieldKind;
51 : : public:
52 : 135 : SV_DECL_PERSIST1(SdrMeasureField,SvxFieldData,com::sun::star::text::textfield::Type::MEASURE)
53 : 0 : SdrMeasureField(): eMeasureFieldKind(SDRMEASUREFIELD_VALUE) {}
54 : 0 : SdrMeasureField(SdrMeasureFieldKind eNewKind): eMeasureFieldKind(eNewKind) {}
55 : : virtual ~SdrMeasureField();
56 : : virtual SvxFieldData* Clone() const;
57 : : virtual int operator==(const SvxFieldData&) const;
58 : 0 : SdrMeasureFieldKind GetMeasureFieldKind() const { return eMeasureFieldKind; }
59 : : void SetMeasureFieldKind(SdrMeasureFieldKind eNewKind) { eMeasureFieldKind=eNewKind; }
60 : : };
61 : :
62 : : ////////////////////////////////////////////////////////////////////////////////////////////////////
63 : :
64 : : #endif //_SVDFIELD_HXX
65 : :
66 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|