merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_sch / datarow.hxx
blobd38a5ad740f1c15cb688d2fe6739f63029db4d43
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: datarow.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_DATAROW_HXX
32 #define _SCH_DATAROW_HXX
34 #ifndef _SVDOBJ_HXX //autogen
35 #include <bf_svx/svdobj.hxx>
36 #endif
37 #ifndef _STREAM_HXX //autogen
38 #include <tools/stream.hxx>
39 #endif
40 namespace binfilter {
42 /*************************************************************************
44 |* Datenreihen-Index
46 \************************************************************************/
48 class SchDataRow : public SdrObjUserData
50 short nRow;
52 public:
53 SchDataRow();
54 SchDataRow(short nR);
56 virtual SdrObjUserData* Clone(SdrObject *pObj) const;
58 virtual void WriteData(SvStream& rOut);
59 virtual void ReadData(SvStream& rIn);
61 void SetRow(short nR) { nRow = nR; }
62 short GetRow() { return nRow; }
65 /*************************************************************************
67 |* Tool-Funktion fuer Datenreihen-Index
69 \************************************************************************/
71 extern SchDataRow* GetDataRow(const SdrObject& rObj);
72 extern SdrObject* GetObjWithRow(short nRow, const SdrObjList& rObjList,
73 ULONG* pIndex = NULL);
75 } //namespace binfilter
76 #endif // _SCH_DATAROW_HXX