summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/drawingmanager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/oox/drawingmanager.cxx')
-rw-r--r--sc/source/filter/oox/drawingmanager.cxx165
1 files changed, 0 insertions, 165 deletions
diff --git a/sc/source/filter/oox/drawingmanager.cxx b/sc/source/filter/oox/drawingmanager.cxx
index 1e00ff7d4edd..8c46db1ee1e4 100644
--- a/sc/source/filter/oox/drawingmanager.cxx
+++ b/sc/source/filter/oox/drawingmanager.cxx
@@ -270,120 +270,6 @@ BiffDrawingObjectBase::~BiffDrawingObjectBase()
{
}
-/*static*/ BiffDrawingObjectRef BiffDrawingObjectBase::importObjBiff3( const WorksheetHelper& rHelper, BiffInputStream& rStrm )
-{
- BiffDrawingObjectRef xDrawingObj;
-
- if( rStrm.getRemaining() >= 30 )
- {
- sal_uInt16 nObjType;
- rStrm.skip( 4 );
- rStrm >> nObjType;
- switch( nObjType )
- {
- case BIFF_OBJTYPE_GROUP: xDrawingObj.reset( new BiffGroupObject( rHelper ) ); break;
- case BIFF_OBJTYPE_LINE: xDrawingObj.reset( new BiffLineObject( rHelper ) ); break;
- case BIFF_OBJTYPE_RECTANGLE: xDrawingObj.reset( new BiffRectObject( rHelper ) ); break;
- case BIFF_OBJTYPE_OVAL: xDrawingObj.reset( new BiffOvalObject( rHelper ) ); break;
- case BIFF_OBJTYPE_ARC: xDrawingObj.reset( new BiffArcObject( rHelper ) ); break;
-#if 0
- case BIFF_OBJTYPE_CHART: xDrawingObj.reset( new XclImpChartObj( rHelper ) ); break;
- case BIFF_OBJTYPE_TEXT: xDrawingObj.reset( new XclImpTextObj( rHelper ) ); break;
- case BIFF_OBJTYPE_BUTTON: xDrawingObj.reset( new XclImpButtonObj( rHelper ) ); break;
- case BIFF_OBJTYPE_PICTURE: xDrawingObj.reset( new XclImpPictureObj( rHelper ) ); break;
-#endif
- default:
-#if 0
- OSL_ENSURE( false, "BiffDrawingObjectBase::importObjBiff3 - unknown object type" );
-#endif
- xDrawingObj.reset( new BiffPlaceholderObject( rHelper ) );
- }
- }
-
- xDrawingObj->importObjBiff3( rStrm );
- return xDrawingObj;
-}
-
-/*static*/ BiffDrawingObjectRef BiffDrawingObjectBase::importObjBiff4( const WorksheetHelper& rHelper, BiffInputStream& rStrm )
-{
- BiffDrawingObjectRef xDrawingObj;
-
- if( rStrm.getRemaining() >= 30 )
- {
- sal_uInt16 nObjType;
- rStrm.skip( 4 );
- rStrm >> nObjType;
- switch( nObjType )
- {
- case BIFF_OBJTYPE_GROUP: xDrawingObj.reset( new BiffGroupObject( rHelper ) ); break;
- case BIFF_OBJTYPE_LINE: xDrawingObj.reset( new BiffLineObject( rHelper ) ); break;
- case BIFF_OBJTYPE_RECTANGLE: xDrawingObj.reset( new BiffRectObject( rHelper ) ); break;
- case BIFF_OBJTYPE_OVAL: xDrawingObj.reset( new BiffOvalObject( rHelper ) ); break;
- case BIFF_OBJTYPE_ARC: xDrawingObj.reset( new BiffArcObject( rHelper ) ); break;
- case BIFF_OBJTYPE_POLYGON: xDrawingObj.reset( new BiffPolygonObject( rHelper ) ); break;
-#if 0
- case BIFF_OBJTYPE_CHART: xDrawingObj.reset( new XclImpChartObj( rHelper ) ); break;
- case BIFF_OBJTYPE_TEXT: xDrawingObj.reset( new XclImpTextObj( rHelper ) ); break;
- case BIFF_OBJTYPE_BUTTON: xDrawingObj.reset( new XclImpButtonObj( rHelper ) ); break;
- case BIFF_OBJTYPE_PICTURE: xDrawingObj.reset( new XclImpPictureObj( rHelper ) ); break;
-#endif
- default:
-#if 0
- OSL_ENSURE( false, "BiffDrawingObjectBase::importObjBiff4 - unknown object type" );
-#endif
- xDrawingObj.reset( new BiffPlaceholderObject( rHelper ) );
- }
- }
-
- xDrawingObj->importObjBiff4( rStrm );
- return xDrawingObj;
-}
-
-/*static*/ BiffDrawingObjectRef BiffDrawingObjectBase::importObjBiff5( const WorksheetHelper& rHelper, BiffInputStream& rStrm )
-{
- BiffDrawingObjectRef xDrawingObj;
-
- if( rStrm.getRemaining() >= 34 )
- {
- sal_uInt16 nObjType;
- rStrm.skip( 4 );
- rStrm >> nObjType;
- switch( nObjType )
- {
- case BIFF_OBJTYPE_GROUP: xDrawingObj.reset( new BiffGroupObject( rHelper ) ); break;
- case BIFF_OBJTYPE_LINE: xDrawingObj.reset( new BiffLineObject( rHelper ) ); break;
- case BIFF_OBJTYPE_RECTANGLE: xDrawingObj.reset( new BiffRectObject( rHelper ) ); break;
- case BIFF_OBJTYPE_OVAL: xDrawingObj.reset( new BiffOvalObject( rHelper ) ); break;
- case BIFF_OBJTYPE_ARC: xDrawingObj.reset( new BiffArcObject( rHelper ) ); break;
- case BIFF_OBJTYPE_POLYGON: xDrawingObj.reset( new BiffPolygonObject( rHelper ) ); break;
-#if 0
- case BIFF_OBJTYPE_CHART: xDrawingObj.reset( new XclImpChartObj( rHelper ) ); break;
- case BIFF_OBJTYPE_TEXT: xDrawingObj.reset( new XclImpTextObj( rHelper ) ); break;
- case BIFF_OBJTYPE_BUTTON: xDrawingObj.reset( new XclImpButtonObj( rHelper ) ); break;
- case BIFF_OBJTYPE_PICTURE: xDrawingObj.reset( new XclImpPictureObj( rHelper ) ); break;
- case BIFF_OBJTYPE_CHECKBOX: xDrawingObj.reset( new XclImpCheckBoxObj( rHelper ) ); break;
- case BIFF_OBJTYPE_OPTIONBUTTON: xDrawingObj.reset( new XclImpOptionButtonObj( rHelper ) ); break;
- case BIFF_OBJTYPE_EDIT: xDrawingObj.reset( new XclImpEditObj( rHelper ) ); break;
- case BIFF_OBJTYPE_LABEL: xDrawingObj.reset( new XclImpLabelObj( rHelper ) ); break;
- case BIFF_OBJTYPE_DIALOG: xDrawingObj.reset( new XclImpDialogObj( rHelper ) ); break;
- case BIFF_OBJTYPE_SPIN: xDrawingObj.reset( new XclImpSpinButtonObj( rHelper ) ); break;
- case BIFF_OBJTYPE_SCROLLBAR: xDrawingObj.reset( new XclImpScrollBarObj( rHelper ) ); break;
- case BIFF_OBJTYPE_LISTBOX: xDrawingObj.reset( new XclImpListBoxObj( rHelper ) ); break;
- case BIFF_OBJTYPE_GROUPBOX: xDrawingObj.reset( new XclImpGroupBoxObj( rHelper ) ); break;
- case BIFF_OBJTYPE_DROPDOWN: xDrawingObj.reset( new XclImpDropDownObj( rHelper ) ); break;
-#endif
- default:
-#if 0
- OSL_ENSURE( false, "BiffDrawingObjectBase::importObjBiff5 - unknown object type" );
-#endif
- xDrawingObj.reset( new BiffPlaceholderObject( rHelper ) );
- }
- }
-
- xDrawingObj->importObjBiff5( rStrm );
- return xDrawingObj;
-}
-
Reference< XShape > BiffDrawingObjectBase::convertAndInsert( BiffDrawingBase& rDrawing,
const Reference< XShapes >& rxShapes, const Rectangle* pParentRect ) const
{
@@ -666,57 +552,6 @@ void BiffDrawingObjectBase::implReadObjBiff8SubRec( BiffInputStream& /*rStrm*/,
// private --------------------------------------------------------------------
-void BiffDrawingObjectBase::importObjBiff3( BiffInputStream& rStrm )
-{
- // back to offset 4 (ignore object count field)
- rStrm.seek( 4 );
-
- sal_uInt16 nObjFlags, nMacroSize;
- rStrm >> mnObjType >> mnObjId >> nObjFlags >> maAnchor >> nMacroSize;
- rStrm.skip( 2 );
-
- mbHasAnchor = true;
- mbHidden = getFlag( nObjFlags, BIFF_OBJ_HIDDEN );
- mbVisible = getFlag( nObjFlags, BIFF_OBJ_VISIBLE );
- implReadObjBiff3( rStrm, nMacroSize );
-}
-
-void BiffDrawingObjectBase::importObjBiff4( BiffInputStream& rStrm )
-{
- // back to offset 4 (ignore object count field)
- rStrm.seek( 4 );
-
- sal_uInt16 nObjFlags, nMacroSize;
- rStrm >> mnObjType >> mnObjId >> nObjFlags >> maAnchor >> nMacroSize;
- rStrm.skip( 2 );
-
- mbHasAnchor = true;
- mbHidden = getFlag( nObjFlags, BIFF_OBJ_HIDDEN );
- mbVisible = getFlag( nObjFlags, BIFF_OBJ_VISIBLE );
- mbPrintable = getFlag( nObjFlags, BIFF_OBJ_PRINTABLE );
- implReadObjBiff4( rStrm, nMacroSize );
-}
-
-void BiffDrawingObjectBase::importObjBiff5( BiffInputStream& rStrm )
-{
- // back to offset 4 (ignore object count field)
- rStrm.seek( 4 );
-
- sal_uInt16 nObjFlags, nMacroSize, nNameLen;
- rStrm >> mnObjType >> mnObjId >> nObjFlags >> maAnchor >> nMacroSize;
- rStrm.skip( 2 );
- rStrm >> nNameLen;
- rStrm.skip( 2 );
-
- mbHasAnchor = true;
- mbHidden = getFlag( nObjFlags, BIFF_OBJ_HIDDEN );
- mbVisible = getFlag( nObjFlags, BIFF_OBJ_VISIBLE );
- mbPrintable = getFlag( nObjFlags, BIFF_OBJ_PRINTABLE );
- implReadObjBiff5( rStrm, nNameLen, nMacroSize );
-}
-
-// ============================================================================
-
BiffPlaceholderObject::BiffPlaceholderObject( const WorksheetHelper& rHelper ) :
BiffDrawingObjectBase( rHelper )
{