summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlexprt.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-12-02 11:25:54 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-12-02 16:06:51 -0500
commit92734962c82ac8a89792d44461dbdac8a17516c9 (patch)
treeb00a46535f20c7334dcbb06f0d8aa9db1ceb27ad /sc/source/filter/xml/xmlexprt.hxx
parent998cb023ad248f4b9e9928d1b9f25875bdbf70ae (diff)
Moved new wrapper class into own files.
Diffstat (limited to 'sc/source/filter/xml/xmlexprt.hxx')
-rw-r--r--sc/source/filter/xml/xmlexprt.hxx26
1 files changed, 2 insertions, 24 deletions
diff --git a/sc/source/filter/xml/xmlexprt.hxx b/sc/source/filter/xml/xmlexprt.hxx
index 222b84ddb3c7..43b32949898e 100644
--- a/sc/source/filter/xml/xmlexprt.hxx
+++ b/sc/source/filter/xml/xmlexprt.hxx
@@ -65,32 +65,10 @@ class ScChartListener;
class SfxItemPool;
class ScAddress;
class ScBaseCell;
+class ScXMLCachedRowAttrAccess;
typedef std::vector< com::sun::star::uno::Reference < com::sun::star::drawing::XShapes > > ScMyXShapesVec;
-class ScXMLRowAttrAccess
-{
- struct Cache
- {
- sal_Int32 mnTab;
- sal_Int32 mnRow1;
- sal_Int32 mnRow2;
- bool mbValue;
- Cache();
- bool hasCache(sal_Int32 nTab, sal_Int32 nRow) const;
- };
-
-public:
- ScXMLRowAttrAccess(ScDocument* pDoc);
-
- bool rowHidden(sal_Int32 nTab, sal_Int32 nRow);
- bool rowFiltered(sal_Int32 nTab, sal_Int32 nRow);
-private:
- Cache maHidden;
- Cache maFiltered;
- ScDocument* mpDoc;
-};
-
class ScXMLExport : public SvXMLExport
{
ScDocument* pDoc;
@@ -190,7 +168,7 @@ class ScXMLExport : public SvXMLExport
bool bHidden, bool bFiltered);
void OpenAndCloseRow(const sal_Int32 nIndex, const sal_Int32 nStartRow, const sal_Int32 nEmptyRows,
bool bHidden, bool bFiltered);
- void OpenRow(const sal_Int32 nTable, const sal_Int32 nStartRow, const sal_Int32 nRepeatRow, ScXMLRowAttrAccess& rRowAttr);
+ void OpenRow(const sal_Int32 nTable, const sal_Int32 nStartRow, const sal_Int32 nRepeatRow, ScXMLCachedRowAttrAccess& rRowAttr);
void CloseRow(const sal_Int32 nRow);
void GetColumnRowHeader(sal_Bool& bHasColumnHeader, com::sun::star::table::CellRangeAddress& aColumnHeaderRange,
sal_Bool& bHasRowHeader, com::sun::star::table::CellRangeAddress& aRowHeaderRange,