summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/xlpivot.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei@openoffice.org>2009-06-19 01:30:32 +0000
committerKohei Yoshida <kohei@openoffice.org>2009-06-19 01:30:32 +0000
commitacd89bd93d510281d1e46ca1617ff8545d0e981b (patch)
treec2d5c18631ac8ea2f8bb8e3c3c6677ebd3859544 /sc/source/filter/inc/xlpivot.hxx
parent7425283183cc26795bc3c655b2bc5cd6931091e2 (diff)
added grid layout bits.
Diffstat (limited to 'sc/source/filter/inc/xlpivot.hxx')
-rw-r--r--sc/source/filter/inc/xlpivot.hxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/sc/source/filter/inc/xlpivot.hxx b/sc/source/filter/inc/xlpivot.hxx
index 9604c7b1d17d..52251ed62294 100644
--- a/sc/source/filter/inc/xlpivot.hxx
+++ b/sc/source/filter/inc/xlpivot.hxx
@@ -41,6 +41,7 @@
#include <tools/datetime.hxx>
#include "ftools.hxx"
#include "xladdress.hxx"
+#include "dpobject.hxx"
class XclImpStream;
class XclExpStream;
@@ -73,6 +74,10 @@ const sal_uInt16 EXC_PT_MAXDATACOUNT = 256;
// pivot table items
const sal_uInt16 EXC_PT_MAXITEMCOUNT = 32500;
+const sal_uInt16 EXC_PT_AUTOFMT_HEADER = 0x810;
+const sal_uInt16 EXC_PT_AUTOFMT_ZERO = 0;
+const sal_uInt32 EXC_PT_AUTOFMT_FLAGS = 0x20;
+
/** Data type of a pivot cache item. */
enum XclPCItemType
{
@@ -396,6 +401,9 @@ const double EXC_SXDBEX_CREATION_DATE = 51901.029652778;
const sal_uInt16 EXC_ID_SXFDBTYPE = 0x01BB;
const sal_uInt16 EXC_SXFDBTYPE_DEFAULT = 0x0000;
+// (0x0810) SXVIEWEX9 ---------------------------------------------------------
+const sal_uInt16 EXC_ID_SXVIEWEX9 = 0x0810;
+
// ============================================================================
// Pivot cache
// ============================================================================
@@ -786,5 +794,22 @@ XclExpStream& operator<<( XclExpStream& rStrm, const XclPTExtInfo& rInfo );
// ============================================================================
+// Pivot table autoformat settings ==============================================
+
+/** Pivot table autoformat settings (SX_AUTOFORMAT record). */
+struct XclPTAutoFormat
+{
+ sal_uInt32 mbReport; /// 2 for report* fmts ?
+ sal_uInt8 mnAutoFormat; /// AutoFormat ID
+ sal_uInt8 mnGridLayout; /// 0 == gridlayout, 0x10 == modern
+
+ explicit XclPTAutoFormat();
+ void Init( const ScDPObject& rDPObj );
+};
+
+XclImpStream& operator>>( XclImpStream& rStrm, XclPTAutoFormat& rInfo );
+XclExpStream& operator<<( XclExpStream& rStrm, const XclPTAutoFormat& rInfo );
+
+// ============================================================================
#endif