summaryrefslogtreecommitdiff
path: root/oox/inc/oox/xls
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 17:10:54 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 17:10:54 +0000
commit7e7d890b7cb9a541b19fbc9293e975707c8ab62c (patch)
tree79c8a9a9ef1ad4c40371eb2f5e956df081ddb497 /oox/inc/oox/xls
parentb931e9ad1e91018d90eb2112def3a1df97a28c89 (diff)
INTEGRATION: CWS xmlfilter03_DEV300 (1.2.4); FILE MERGED
2008/02/12 11:33:09 dr 1.2.4.9: handle drawing fragment in WorksheetHelper 2008/02/07 13:41:40 dr 1.2.4.8: add fragment base path to relations, import page background 2008/02/07 10:35:33 dr 1.2.4.7: more sheet types 2008/02/01 09:54:44 dr 1.2.4.6: addShape() code cleanup, started xlsx drawing import 2008/01/28 15:40:38 dr 1.2.4.5: BIFF stream handling 2008/01/28 14:32:48 dr 1.2.4.4: load macro enabled spreadsheets, and xm:macrosheet sheets 2008/01/25 15:50:16 dr 1.2.4.3: helpers to get row/col positions 2008/01/24 16:22:19 dr 1.2.4.2: preparations for DrawingML import 2008/01/24 14:57:20 dr 1.2.4.1: OOBIN additions, BIFF string handling
Diffstat (limited to 'oox/inc/oox/xls')
-rw-r--r--oox/inc/oox/xls/worksheethelper.hxx26
1 files changed, 21 insertions, 5 deletions
diff --git a/oox/inc/oox/xls/worksheethelper.hxx b/oox/inc/oox/xls/worksheethelper.hxx
index bae7d4539663..3dc434182077 100644
--- a/oox/inc/oox/xls/worksheethelper.hxx
+++ b/oox/inc/oox/xls/worksheethelper.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: worksheethelper.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2008-01-17 08:05:50 $
+ * last change: $Author: kz $ $Date: 2008-03-05 18:10:54 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -41,6 +41,8 @@
#include "oox/xls/formulabase.hxx"
namespace com { namespace sun { namespace star {
+ namespace awt { struct Point; }
+ namespace awt { struct Size; }
namespace table { class XTableColumns; }
namespace table { class XTableRows; }
namespace table { class XCell; }
@@ -68,8 +70,10 @@ class SheetViewSettings;
enum WorksheetType
{
SHEETTYPE_WORKSHEET, /// Worksheet.
- SHEETTYPE_CHART, /// Chart sheet.
- SHEETTYPE_MACRO /// BIFF4 macro sheet.
+ SHEETTYPE_CHARTSHEET, /// Chart sheet.
+ SHEETTYPE_MACROSHEET, /// Macro sheet.
+ SHEETTYPE_DIALOGSHEET, /// Dialog sheet (BIFF5+).
+ SHEETTYPE_MODULESHEET /// VB module sheet (BIFF5 only).
};
// ============================================================================
@@ -117,6 +121,7 @@ struct OoxColumnData
double mfWidth; /// Column width in number of characters.
sal_Int32 mnXfId; /// Column default formatting.
sal_Int32 mnLevel; /// Column outline level.
+ bool mbShowPhonetic; /// True = cells in column show phonetic settings.
bool mbHidden; /// True = column is hidden.
bool mbCollapsed; /// True = column outline is collapsed.
@@ -215,7 +220,7 @@ class WorksheetData;
class WorksheetHelper : public WorkbookHelper
{
public:
- explicit WorksheetHelper( WorksheetData& rSheetData );
+ /*implicit*/ WorksheetHelper( WorksheetData& rSheetData );
/** Returns the type of this sheet. */
WorksheetType getSheetType() const;
@@ -292,6 +297,13 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::table::XTableRows >
getRows( sal_Int32 nFirstRow, sal_Int32 nLastRow ) const;
+ /** Returns the absolute cell position in 1/100 mm. */
+ ::com::sun::star::awt::Point getCellPosition( sal_Int32 nCol, sal_Int32 nRow ) const;
+ /** Returns the cell size in 1/100 mm. */
+ ::com::sun::star::awt::Size getCellSize( sal_Int32 nCol, sal_Int32 nRow ) const;
+ /** Returns the size of the entire drawing page in 1/100 mm. */
+ ::com::sun::star::awt::Size getDrawPageSize() const;
+
/** Returns the worksheet settings object. */
WorksheetSettings& getWorksheetSettings() const;
/** Returns the buffer containing all shared formulas in this sheet. */
@@ -331,6 +343,8 @@ public:
/** Sets cell contents to the cell specified in the passed cell data object. */
void setOoxCell( OoxCellData& orCellData, bool bEmptyStringAsFormula = false ) const;
+ /** Changes the current sheet type. */
+ void setSheetType( WorksheetType eSheetType );
/** Sets the dimension (used area) of the sheet. */
void setDimension( const ::com::sun::star::table::CellRangeAddress& rRange );
/** Stores the cell formatting data of the current cell. */
@@ -351,6 +365,8 @@ public:
void setLabelRanges(
const ApiCellRangeList& rColRanges,
const ApiCellRangeList& rRowRanges );
+ /** Sets the path to the DrawingML fragment of this sheet. */
+ void setDrawingPath( const ::rtl::OUString& rDrawingPath );
/** Sets base width for all columns (without padding pixels). This value
is only used, if width has not been set with setDefaultColumnWidth(). */