summaryrefslogtreecommitdiff
path: root/sc/inc/dapiuno.hxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-01-13 15:51:24 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-01-13 15:51:24 +0000
commit839c7b5625b02be72885e33590dbd719545fbccc (patch)
tree9453729420d59632ec4ad928a6d6d5c79b7687e7 /sc/inc/dapiuno.hxx
parenta8a3b781da57c6c8216320caf97919ef9ba91058 (diff)
INTEGRATION: CWS dr43 (1.8.42); FILE MERGED
2005/12/06 19:26:15 nn 1.8.42.1: #i57375# access fields by name and repeat count instead of index
Diffstat (limited to 'sc/inc/dapiuno.hxx')
-rw-r--r--sc/inc/dapiuno.hxx31
1 files changed, 23 insertions, 8 deletions
diff --git a/sc/inc/dapiuno.hxx b/sc/inc/dapiuno.hxx
index ba13cc7d65d1..4aa6c8b8216d 100644
--- a/sc/inc/dapiuno.hxx
+++ b/sc/inc/dapiuno.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: dapiuno.hxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 17:30:16 $
+ * last change: $Author: rt $ $Date: 2006-01-13 16:51:24 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -468,6 +468,21 @@ struct ScFieldGroup
typedef ::std::vector < ScFieldGroup > ScFieldGroups;
+
+struct ScFieldIdentifier
+{
+ String sFieldName; // source field name
+ sal_Bool bDataLayoutField;
+ sal_Int32 nRepeat; // to allow using one source column for several data fields
+ // nRepeat always counts in all fields, not just of one orientation
+
+ ScFieldIdentifier() :
+ bDataLayoutField( sal_False ), nRepeat( 0 ) {}
+
+ ScFieldIdentifier( const String& rName, sal_Bool bDataLayout, sal_Int32 nRep ) :
+ sFieldName( rName ), bDataLayoutField( bDataLayout ), nRepeat( nRep ) {}
+};
+
class ScDataPilotFieldObj : public cppu::WeakImplHelper5<
com::sun::star::container::XNamed,
com::sun::star::beans::XPropertySet,
@@ -480,13 +495,13 @@ private:
SfxItemPropertySet aPropSet;
ScDataPilotDescriptorBase* pParent;
USHORT nSourceType;
- SCSIZE nSourcePos;
+ ScFieldIdentifier aSourceIdent;
USHORT nLastFunc; // valid while type is HIDDEN (or PAGE)
public:
ScDataPilotFieldObj(ScDataPilotDescriptorBase* pPar,
- USHORT nST, SCSIZE nSP);
+ USHORT nST, const ScFieldIdentifier& rIdent);
virtual ~ScDataPilotFieldObj();
// XNamed
@@ -762,12 +777,12 @@ class ScDataPilotItemsObj : public cppu::WeakImplHelper4<
{
private:
ScDataPilotDescriptorBase* pParent;
- SCSIZE nSourcePos; // of the field
+ ScFieldIdentifier aSourceIdent; // of the field
ScDataPilotItemObj* GetObjectByIndex_Impl(SCSIZE nIndex) const;
public:
- ScDataPilotItemsObj(ScDataPilotDescriptorBase* pPar, SCSIZE nSP);
+ ScDataPilotItemsObj(ScDataPilotDescriptorBase* pPar, const ScFieldIdentifier& rIdent);
virtual ~ScDataPilotItemsObj();
// XNameAccess
@@ -813,12 +828,12 @@ class ScDataPilotItemObj : public cppu::WeakImplHelper3<
private:
SfxItemPropertySet aPropSet;
ScDataPilotDescriptorBase* pParent;
- SCSIZE nSourcePos;
+ ScFieldIdentifier aSourceIdent;
SCSIZE nIndex;
public:
- ScDataPilotItemObj(ScDataPilotDescriptorBase* pPar, SCSIZE nSP, SCSIZE nI);
+ ScDataPilotItemObj(ScDataPilotDescriptorBase* pPar, const ScFieldIdentifier& rIdent, SCSIZE nI);
virtual ~ScDataPilotItemObj();
// XNamed