merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_sch / objadj.hxx
blob9c4529693dfc247acdaeba2130a5cec402304a26
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: objadj.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SCH_OBJADJ_HXX
32 #define _SCH_OBJADJ_HXX
34 #ifndef _SCH_ADJUST_HXX
35 #include "adjust.hxx"
36 #endif
38 #ifndef _SVX_CHRTITEM_HXX //autogen
39 #include <bf_svx/chrtitem.hxx>
40 #endif
41 #ifndef _SVDOBJ_HXX //autogen
42 #include <bf_svx/svdobj.hxx>
43 #endif
44 #ifndef _STREAM_HXX //autogen
45 #include <tools/stream.hxx>
46 #endif
47 namespace binfilter {
50 /*************************************************************************
52 |* Ausrichtung von Chart-Objekten
54 \************************************************************************/
56 class SchObjectAdjust : public SdrObjUserData
58 ChartAdjust eAdjust; // Ausrichtung
59 SvxChartTextOrient eOrient; // Orientierung
61 public:
62 SchObjectAdjust();
63 SchObjectAdjust(ChartAdjust eAdj, SvxChartTextOrient eOr);
65 virtual SdrObjUserData* Clone(SdrObject *pObj) const;
67 virtual void WriteData(SvStream& rOut);
68 virtual void ReadData(SvStream& rIn);
70 void SetAdjust(ChartAdjust eAdj) { eAdjust = eAdj; }
71 ChartAdjust GetAdjust() { return eAdjust; }
73 void SetOrient(SvxChartTextOrient eOr) { eOrient = eOr; }
74 SvxChartTextOrient GetOrient() { return eOrient; }
77 /*************************************************************************
79 |* Tool-Funktion fuer Objekt-Ausrichtung
81 \************************************************************************/
83 extern SchObjectAdjust* GetObjectAdjust(const SdrObject& rObj);
85 } //namespace binfilter
86 #endif // _SCH_OBJADJ_HXX