diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index 6a8d4d7..cdaff96 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -278,7 +278,6 @@ public: {} /* Use the formula::FormulaGrammar::AddressConvention associated with rAddr::Tab() */ Details( const ScDocument* pDoc, const ScAddress & rAddr ); -//UNUSED2009-05 void SetPos( const ScDocument* pDoc, const ScAddress & rAddr ); }; SC_DLLPUBLIC static const Details detailsOOOa1; diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx index cbf4d26..fd6c7d8 100644 --- a/sc/inc/attarray.hxx +++ b/sc/inc/attarray.hxx @@ -171,8 +171,6 @@ public: BOOL IsEmpty() const; -//UNUSED2008-05 SCROW GetFirstEntryPos() const; -//UNUSED2008-05 SCROW GetLastEntryPos( BOOL bIncludeBottom ) const; BOOL GetFirstVisibleAttr( SCROW& rFirstRow ) const; BOOL GetLastVisibleAttr( SCROW& rLastRow, SCROW nLastData ) const; @@ -193,7 +191,6 @@ public: void DeleteHardAttr( SCROW nStartRow, SCROW nEndRow ); -//UNUSED2008-05 void ConvertFontsAfterLoad(); // old binary file format }; diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index c42d31b..eae74cd 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -231,7 +231,6 @@ public: inline ScTableListItem( const USHORT nWhich ); ScTableListItem( const ScTableListItem& rCpy ); -//UNUSED2008-05 ScTableListItem( const USHORT nWhich, const List& rList ); ~ScTableListItem(); ScTableListItem& operator=( const ScTableListItem &rCpy ); @@ -245,8 +244,6 @@ public: const IntlWrapper* pIntl = 0 ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; -//UNUSED2009-05 BOOL GetTableList( List& aList ) const; -//UNUSED2009-05 void SetTableList( const List& aList ); public: USHORT nCount; diff --git a/sc/inc/chartpos.hxx b/sc/inc/chartpos.hxx index 44c92a0..5d3c6e6 100644 --- a/sc/inc/chartpos.hxx +++ b/sc/inc/chartpos.hxx @@ -97,8 +97,6 @@ public: return ppRowHeader[ nChartRow ]; return NULL; } -//UNUSED2009-05 ScRangeListRef GetColRanges( SCCOL nChartCol ) const; -//UNUSED2009-05 ScRangeListRef GetRowRanges( SCROW nChartRow ) const; }; diff --git a/sc/inc/collect.hxx b/sc/inc/collect.hxx index b38aeb2..b26799c 100644 --- a/sc/inc/collect.hxx +++ b/sc/inc/collect.hxx @@ -155,8 +155,6 @@ public: nValue(nVal), nStrType(nType) {} -//UNUSED2008-05 TypedStrData( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nTab, -//UNUSED2008-05 BOOL bAllStrings ); TypedStrData( const TypedStrData& rCpy ) : ScDataObject(), diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 2796015..4a46b95 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -141,8 +141,6 @@ public: void SwapRow( SCROW nRow1, SCROW nRow2 ); void SwapCell( SCROW nRow, ScColumn& rCol); -//UNUSED2009-05 BOOL HasLines( SCROW nRow1, SCROW nRow2, Rectangle& rSizes, -//UNUSED2009-05 BOOL bLeft, BOOL bRight ) const; bool HasAttrib( SCROW nRow1, SCROW nRow2, USHORT nMask ) const; BOOL HasAttribSelection( const ScMarkData& rMark, USHORT nMask ) const; BOOL ExtendMerge( SCCOL nThisCol, SCROW nStartRow, SCROW nEndRow, @@ -254,7 +252,6 @@ public: BOOL HasStringData( SCROW nRow ) const; BOOL HasValueData( SCROW nRow ) const; -//UNUSED2009-05 USHORT GetErrorData( SCROW nRow) const; BOOL HasStringCells( SCROW nStartRow, SCROW nEndRow ) const; /** Returns the pointer to a cell note object at the passed row. */ @@ -377,7 +374,6 @@ public: void GetFilterEntries(SCROW nStartRow, SCROW nEndRow, TypedScStrCollection& rStrings, bool& rHasDates); BOOL GetDataEntries(SCROW nRow, TypedScStrCollection& rStrings, BOOL bLimit); -//UNUSED2008-05 SCROW NoteCount( SCROW nMaxRow = MAXROW ) const; void UpdateInsertTabAbs(SCTAB nNewPos); BOOL TestTabRefAbs(SCTAB nTable); @@ -403,7 +399,6 @@ public: private: ScBaseCell* CloneCell(SCSIZE nIndex, USHORT nFlags, ScDocument& rDestDoc, const ScAddress& rDestPos); -//UNUSED2008-05 void CorrectSymbolCells( CharSet eStreamCharSet ); }; diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index f137182..efd35f9 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -186,12 +186,8 @@ public: void SetSingleReference( const ScSingleRefData& rRef ); void SetDoubleReference( const ScComplexRefData& rRef ); void SetDouble( double fVal ); -//UNUSED2008-05 void SetInt( int nVal ); -//UNUSED2008-05 void SetMatrix( ScMatrix* p ); // These methods are ok to use, reference count not cleared. -//UNUSED2008-05 ScComplexRefData& GetReference(); -//UNUSED2008-05 void SetReference( ScComplexRefData& rRef ); void SetName( USHORT n ); void SetExternalSingleRef( sal_uInt16 nFileId, const String& rTabName, const ScSingleRefData& rRef ); void SetExternalDoubleRef( sal_uInt16 nFileId, const String& rTabName, const ScComplexRefData& rRef ); diff --git a/sc/inc/dbcolect.hxx b/sc/inc/dbcolect.hxx index 0066650..aacf8ef 100644 --- a/sc/inc/dbcolect.hxx +++ b/sc/inc/dbcolect.hxx @@ -157,7 +157,6 @@ public: BOOL IsStripData() const { return bStripData; } void SetStripData(BOOL bSet) { bStripData = bSet; } -//UNUSED2008-05 BOOL IsBeyond(SCROW nMaxRow) const; String GetSourceString() const; String GetOperations() const; diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx index d63a08a..7fab8b9 100644 --- a/sc/inc/dociter.hxx +++ b/sc/inc/dociter.hxx @@ -108,10 +108,6 @@ private: BOOL GetThis(double& rValue, USHORT& rErr); public: -//UNUSED2008-05 ScValueIterator(ScDocument* pDocument, -//UNUSED2008-05 SCCOL nSCol, SCROW nSRow, SCTAB nSTab, -//UNUSED2008-05 SCCOL nECol, SCROW nERow, SCTAB nETab, -//UNUSED2008-05 BOOL bSTotal = FALSE, BOOL bTextAsZero = FALSE); ScValueIterator(ScDocument* pDocument, const ScRange& rRange, BOOL bSTotal = FALSE, diff --git a/sc/inc/docoptio.hxx b/sc/inc/docoptio.hxx index 8db36bd..76c9f2f 100644 --- a/sc/inc/docoptio.hxx +++ b/sc/inc/docoptio.hxx @@ -207,7 +207,6 @@ class SC_DLLPUBLIC ScTpCalcItem : public SfxPoolItem { public: TYPEINFO(); -//UNUSED2008-05 ScTpCalcItem( USHORT nWhich ); ScTpCalcItem( USHORT nWhich, const ScDocOptions& rOpt ); ScTpCalcItem( const ScTpCalcItem& rItem ); diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 9112c6d..065ce30 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -507,8 +507,6 @@ public: BOOL bStartOnly = FALSE) const; ScDBData* GetDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const; -//UNUSED2008-05 ScRangeData* GetRangeAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, -//UNUSED2008-05 BOOL bStartOnly = FALSE) const; SC_DLLPUBLIC ScRangeData* GetRangeAtBlock( const ScRange& rBlock, String* pName=NULL ) const; SC_DLLPUBLIC ScDPCollection* GetDPCollection(); @@ -765,8 +763,6 @@ public: BOOL HasSubTotalCells( const ScRange& rRange ); SC_DLLPUBLIC void PutCell( const ScAddress&, ScBaseCell* pCell, BOOL bForceTab = FALSE ); -//UNUSED2009-05 SC_DLLPUBLIC void PutCell( const ScAddress&, ScBaseCell* pCell, -//UNUSED2009-05 ULONG nFormatIndex, BOOL bForceTab = FALSE); SC_DLLPUBLIC void PutCell( SCCOL nCol, SCROW nRow, SCTAB nTab, ScBaseCell* pCell, BOOL bForceTab = FALSE ); SC_DLLPUBLIC void PutCell(SCCOL nCol, SCROW nRow, SCTAB nTab, ScBaseCell* pCell, @@ -810,7 +806,6 @@ public: SC_DLLPUBLIC void GetCell( SCCOL nCol, SCROW nRow, SCTAB nTab, ScBaseCell*& rpCell ) const; SC_DLLPUBLIC ScBaseCell* GetCell( const ScAddress& rPos ) const; -//UNUSED2008-05 void RefreshNoteFlags(); SC_DLLPUBLIC BOOL HasData( SCCOL nCol, SCROW nRow, SCTAB nTab ); SC_DLLPUBLIC BOOL HasStringData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const; @@ -1439,8 +1434,6 @@ public: SC_DLLPUBLIC void ClearPrintRanges( SCTAB nTab ); /** Adds a new print ranges. */ SC_DLLPUBLIC void AddPrintRange( SCTAB nTab, const ScRange& rNew ); -//UNUSED2009-05 /** Removes all old print ranges and sets the passed print ranges. */ -//UNUSED2009-05 void SetPrintRange( SCTAB nTab, const ScRange& rNew ); /** Marks the specified sheet to be printed completely. Deletes old print ranges on the sheet! */ SC_DLLPUBLIC void SetPrintEntireSheet( SCTAB nTab ); SC_DLLPUBLIC void SetRepeatColRange( SCTAB nTab, const ScRange* pNew ); @@ -1779,7 +1772,6 @@ public: SC_DLLPUBLIC SfxItemPool* GetEnginePool() const; SC_DLLPUBLIC ScFieldEditEngine& GetEditEngine(); SC_DLLPUBLIC ScNoteEditEngine& GetNoteEngine(); -//UNUSED2009-05 SfxItemPool& GetNoteItemPool(); ScRefreshTimerControl* GetRefreshTimerControl() const { return pRefreshTimerControl; } diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx index 19448b0..f13c38a 100644 --- a/sc/inc/docuno.hxx +++ b/sc/inc/docuno.hxx @@ -680,7 +680,6 @@ private: ScDocShell* pDocShell; public: -//UNUSED2008-05 ScSpreadsheetSettingsObj(ScDocShell* pDocSh); virtual ~ScSpreadsheetSettingsObj(); virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx index a6bd647..095e73e 100644 --- a/sc/inc/dptabsrc.hxx +++ b/sc/inc/dptabsrc.hxx @@ -207,7 +207,6 @@ public: ScDPDimensions* GetDimensionsObject(); -//UNUSED2009-05 void DumpState( ScDocument* pDoc, const ScAddress& rPos ); // XDimensionsSupplier virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > @@ -456,7 +455,6 @@ public: const ::com::sun::star::sheet::DataPilotFieldReference& GetReferenceValue() const; -//UNUSED2009-05 BOOL IsValidPage( const ScDPItemData& rData ); // Wang Xu Ming -- 2009-8-17 // DataPilot Migration - Cache&&Performance BOOL IsVisible( const ScDPItemData& rData ); diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx index e456fed..9858c7d 100644 --- a/sc/inc/global.hxx +++ b/sc/inc/global.hxx @@ -481,7 +481,6 @@ struct ScImportParam ScImportParam& operator= ( const ScImportParam& r ); BOOL operator== ( const ScImportParam& r ) const; -//UNUSED2009-05 void Clear (); }; struct ScStringHashCode diff --git a/sc/inc/hints.hxx b/sc/inc/hints.hxx index 5ff21e8..e5b0fe4 100644 --- a/sc/inc/hints.hxx +++ b/sc/inc/hints.hxx @@ -93,7 +93,6 @@ class ScPointerChangedHint : public SfxHint public: TYPEINFO(); -//UNUSED2008-05 ScPointerChangedHint( USHORT nF ); ~ScPointerChangedHint(); USHORT GetFlags() const { return nFlags; } diff --git a/sc/inc/markarr.hxx b/sc/inc/markarr.hxx index d21d794..5df7e2a 100644 --- a/sc/inc/markarr.hxx +++ b/sc/inc/markarr.hxx @@ -62,7 +62,6 @@ public: void CopyMarksTo( ScMarkArray& rDestMarkArray ) const; BOOL Search( SCROW nRow, SCSIZE& nIndex ) const; -//UNUSED2009-05 void DeleteArea(SCROW nStartRow, SCROW nEndRow); /// Including current row, may return -1 if bUp and not found SCsROW GetNextMarked( SCsROW nRow, BOOL bUp ) const; diff --git a/sc/inc/miscuno.hxx b/sc/inc/miscuno.hxx index 911fbb0..932ff9b 100644 --- a/sc/inc/miscuno.hxx +++ b/sc/inc/miscuno.hxx @@ -123,55 +123,7 @@ public: throw(::com::sun::star::uno::RuntimeException); }; -//UNUSED2008-05 class ScEmptyEnumerationAccess : public cppu::WeakImplHelper2< -//UNUSED2008-05 com::sun::star::container::XEnumerationAccess, -//UNUSED2008-05 com::sun::star::lang::XServiceInfo > -//UNUSED2008-05 { -//UNUSED2008-05 public: -//UNUSED2008-05 ScEmptyEnumerationAccess(); -//UNUSED2008-05 virtual ~ScEmptyEnumerationAccess(); -//UNUSED2008-05 -//UNUSED2008-05 // XEnumerationAccess -//UNUSED2008-05 virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL -//UNUSED2008-05 createEnumeration() throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 -//UNUSED2008-05 // XElementAccess -//UNUSED2008-05 virtual ::com::sun::star::uno::Type SAL_CALL getElementType() -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 -//UNUSED2008-05 // XServiceInfo -//UNUSED2008-05 virtual ::rtl::OUString SAL_CALL getImplementationName( ) -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 }; -//UNUSED2008-05 class ScEmptyEnumeration : public cppu::WeakImplHelper2< -//UNUSED2008-05 com::sun::star::container::XEnumeration, -//UNUSED2008-05 com::sun::star::lang::XServiceInfo > -//UNUSED2008-05 { -//UNUSED2008-05 public: -//UNUSED2008-05 ScEmptyEnumeration(); -//UNUSED2008-05 virtual ~ScEmptyEnumeration(); -//UNUSED2008-05 -//UNUSED2008-05 // XEnumeration -//UNUSED2008-05 virtual sal_Bool SAL_CALL hasMoreElements() throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual ::com::sun::star::uno::Any SAL_CALL nextElement() -//UNUSED2008-05 throw(::com::sun::star::container::NoSuchElementException, -//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException, -//UNUSED2008-05 ::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 -//UNUSED2008-05 // XServiceInfo -//UNUSED2008-05 virtual ::rtl::OUString SAL_CALL getImplementationName( ) -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 }; // new (uno 3) variant class ScNameToIndexAccess : public cppu::WeakImplHelper2< @@ -209,63 +161,6 @@ public: throw(::com::sun::star::uno::RuntimeException); }; -//UNUSED2008-05 class ScPrintSettingsObj : public cppu::WeakImplHelper2< -//UNUSED2008-05 com::sun::star::beans::XPropertySet, -//UNUSED2008-05 com::sun::star::lang::XServiceInfo > -//UNUSED2008-05 { -//UNUSED2008-05 public: -//UNUSED2008-05 ScPrintSettingsObj(); -//UNUSED2008-05 virtual ~ScPrintSettingsObj(); -//UNUSED2008-05 -//UNUSED2008-05 // XPropertySet -//UNUSED2008-05 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > -//UNUSED2008-05 SAL_CALL getPropertySetInfo() -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, -//UNUSED2008-05 const ::com::sun::star::uno::Any& aValue ) -//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException, -//UNUSED2008-05 ::com::sun::star::beans::PropertyVetoException, -//UNUSED2008-05 ::com::sun::star::lang::IllegalArgumentException, -//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException, -//UNUSED2008-05 ::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( -//UNUSED2008-05 const ::rtl::OUString& PropertyName ) -//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException, -//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException, -//UNUSED2008-05 ::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, -//UNUSED2008-05 const ::com::sun::star::uno::Reference< -//UNUSED2008-05 ::com::sun::star::beans::XPropertyChangeListener >& xListener ) -//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException, -//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException, -//UNUSED2008-05 ::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, -//UNUSED2008-05 const ::com::sun::star::uno::Reference< -//UNUSED2008-05 ::com::sun::star::beans::XPropertyChangeListener >& aListener ) -//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException, -//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException, -//UNUSED2008-05 ::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, -//UNUSED2008-05 const ::com::sun::star::uno::Reference< -//UNUSED2008-05 ::com::sun::star::beans::XVetoableChangeListener >& aListener ) -//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException, -//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException, -//UNUSED2008-05 ::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, -//UNUSED2008-05 const ::com::sun::star::uno::Reference< -//UNUSED2008-05 ::com::sun::star::beans::XVetoableChangeListener >& aListener ) -//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException, -//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException, -//UNUSED2008-05 ::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 -//UNUSED2008-05 // XServiceInfo -//UNUSED2008-05 virtual ::rtl::OUString SAL_CALL getImplementationName( ) -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) -//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException); -//UNUSED2008-05 }; class SC_DLLPUBLIC ScUnoHelpFunctions diff --git a/sc/inc/patattr.hxx b/sc/inc/patattr.hxx index 84bb51d..0a5ab28 100644 --- a/sc/inc/patattr.hxx +++ b/sc/inc/patattr.hxx @@ -133,18 +133,6 @@ public: with text encoding RTL_TEXTENC_SYMBOL */ BOOL IsSymbolFont() const; -//UNUSED2008-05 /** Create a FontToSubsFontConverter if needed for -//UNUSED2008-05 this pattern, else return 0. -//UNUSED2008-05 -//UNUSED2008-05 @param nFlags is the bit mask which shall be -//UNUSED2008-05 used for CreateFontToSubsFontConverter(). -//UNUSED2008-05 -//UNUSED2008-05 The converter must be destroyed by the caller -//UNUSED2008-05 using DestroyFontToSubsFontConverter() which -//UNUSED2008-05 should be accomplished using the -//UNUSED2008-05 ScFontToSubsFontConverter_AutoPtr -//UNUSED2008-05 */ -//UNUSED2008-05 FontToSubsFontConverter GetSubsFontConverter( ULONG nFlags ) const; ULONG GetNumberFormat( SvNumberFormatter* ) const; ULONG GetNumberFormat( SvNumberFormatter* pFormatter, diff --git a/sc/inc/pivot.hxx b/sc/inc/pivot.hxx index 118b027..883be1c 100644 --- a/sc/inc/pivot.hxx +++ b/sc/inc/pivot.hxx @@ -114,7 +114,6 @@ struct ScPivotParam ScPivotParam& operator= ( const ScPivotParam& r ); BOOL operator== ( const ScPivotParam& r ) const; -//UNUSED2009-05 void Clear (); void ClearPivotArrays(); void SetLabelData (const ::std::vector& r); void SetPivotArrays ( const PivotField* pPageArr, diff --git a/sc/inc/printopt.hxx b/sc/inc/printopt.hxx index d7358f8..11ad2fd 100644 --- a/sc/inc/printopt.hxx +++ b/sc/inc/printopt.hxx @@ -63,7 +63,6 @@ class SC_DLLPUBLIC ScTpPrintItem : public SfxPoolItem { public: TYPEINFO(); -//UNUSED2008-05 ScTpPrintItem( USHORT nWhich ); ScTpPrintItem( USHORT nWhich, const ScPrintOptions& rOpt ); ScTpPrintItem( const ScTpPrintItem& rItem ); diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index 7f3e123..4f4a02b 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -144,7 +144,6 @@ public: BOOL IsReference( ScRange& rRef, const ScAddress& rPos ) const; BOOL IsValidReference( ScRange& rRef ) const; -//UNUSED2009-05 BOOL IsRangeAtCursor( const ScAddress&, BOOL bStartOnly ) const; BOOL IsRangeAtBlock( const ScRange& ) const; void UpdateTabRef(SCTAB nOldTable, USHORT nFlag, SCTAB nNewTable); @@ -201,7 +200,6 @@ public: virtual short Compare(ScDataObject* pKey1, ScDataObject* pKey2) const; virtual BOOL IsEqual(ScDataObject* pKey1, ScDataObject* pKey2) const; -//UNUSED2009-05 ScRangeData* GetRangeAtCursor( const ScAddress&, BOOL bStartOnly ) const; SC_DLLPUBLIC ScRangeData* GetRangeAtBlock( const ScRange& ) const; SC_DLLPUBLIC BOOL SearchName( const String& rName, USHORT& rPos ) const; diff --git a/sc/inc/scdll.hxx b/sc/inc/scdll.hxx index ac63b93..4070566 100644 --- a/sc/inc/scdll.hxx +++ b/sc/inc/scdll.hxx @@ -67,7 +67,6 @@ public: static void Init(); // called directly after loading the DLL static void Exit(); // called directly befor unloading the DLL -//UNUSED2008-05 static void FillStatusBar(StatusBar &rBar); static ULONG DetectFilter( SfxMedium& rMedium, const SfxFilter** ppFilter, SfxFilterFlags nMust, SfxFilterFlags nDont ); }; diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx index 9163d6a..1461752 100644 --- a/sc/inc/scmatrix.hxx +++ b/sc/inc/scmatrix.hxx @@ -414,11 +414,6 @@ public: void MatTrans( ScMatrix& mRes) const; void MatCopy ( ScMatrix& mRes) const; -//UNUSED2009-05 /** Copy upper left of this matrix to mRes matrix. -//UNUSED2009-05 This matrix's dimensions must be greater or equal to the mRes matrix -//UNUSED2009-05 dimensions. -//UNUSED2009-05 */ -//UNUSED2009-05 void MatCopyUpperLeft( ScMatrix& mRes) const; // Convert ScInterpreter::CompareMat values (-1,0,1) to boolean values void CompareEqual(); diff --git a/sc/inc/servuno.hxx b/sc/inc/servuno.hxx index a09b1c3..e6a12e8 100644 --- a/sc/inc/servuno.hxx +++ b/sc/inc/servuno.hxx @@ -108,7 +108,6 @@ public: static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > MakeInstance( sal_uInt16 nType, ScDocShell* pDocShell ); static ::com::sun::star::uno::Sequence GetAllServiceNames(); -//UNUSED2008-05 static String GetProviderName(sal_uInt16 nObjectType); static sal_uInt16 GetProviderType(const String& rServiceName); }; diff --git a/sc/inc/stlpool.hxx b/sc/inc/stlpool.hxx index 3cd66e4..69cb284 100644 --- a/sc/inc/stlpool.hxx +++ b/sc/inc/stlpool.hxx @@ -53,14 +53,12 @@ public: void CreateStandardStyles(); void CopyStdStylesFrom( ScStyleSheetPool* pSrcPool ); -//UNUSED2008-05 void UpdateStdNames(); void CopyStyleFrom( ScStyleSheetPool* pSrcPool, const String& rName, SfxStyleFamily eFamily ); ScStyleSheet* FindCaseIns( const String& rName, SfxStyleFamily eFam ); -//UNUSED2009-05 void SetForceStdName( const String* pSet ); const String* GetForceStdName() const { return pForceStdName; } virtual SfxStyleSheetBase& Make( const String&, SfxStyleFamily eFam, diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 0fcda21..e063bdd 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -296,7 +296,6 @@ public: BOOL IsBlockEmpty( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bIgnoreNotes = false ) const; void PutCell( const ScAddress&, ScBaseCell* pCell ); -//UNUSED2009-05 void PutCell( const ScAddress&, ULONG nFormatIndex, ScBaseCell* pCell); void PutCell( SCCOL nCol, SCROW nRow, ScBaseCell* pCell ); void PutCell(SCCOL nCol, SCROW nRow, ULONG nFormatIndex, ScBaseCell* pCell); // TRUE = Zahlformat gesetzt @@ -432,7 +431,6 @@ public: BOOL HasData( SCCOL nCol, SCROW nRow ); BOOL HasStringData( SCCOL nCol, SCROW nRow ); BOOL HasValueData( SCCOL nCol, SCROW nRow ); -//UNUSED2008-05 USHORT GetErrorData(SCCOL nCol, SCROW nRow) const; BOOL HasStringCells( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ) const; @@ -442,7 +440,6 @@ public: aCol[rPos.Col()].GetErrCode( rPos.Row() ) : 0; } -//UNUSED2008-05 USHORT GetErrCode( SCCOL nCol, SCROW nRow ) const; void ResetChanged( const ScRange& rRange ); @@ -471,7 +468,6 @@ public: void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY ); void UpdateInsertTab(SCTAB nTable); -//UNUSED2008-05 void UpdateInsertTabOnlyCells(SCTAB nTable); void UpdateDeleteTab( SCTAB nTable, BOOL bIsMove, ScTable* pRefUndo = NULL ); void UpdateMoveTab(SCTAB nOldPos, SCTAB nNewPos, SCTAB nTabNo, ScProgress& ); void UpdateCompile( BOOL bForceIfNameInUse = FALSE ); @@ -505,7 +501,6 @@ public: const SvxBorderLine** ppLeft, const SvxBorderLine** ppTop, const SvxBorderLine** ppRight, const SvxBorderLine** ppBottom ) const; -//UNUSED2009-05 BOOL HasLines( const ScRange& rRange, Rectangle& rSizes ) const; bool HasAttrib( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, USHORT nMask ) const; BOOL HasAttribSelection( const ScMarkData& rMark, USHORT nMask ) const; BOOL ExtendMerge( SCCOL nStartCol, SCROW nStartRow, @@ -590,8 +585,6 @@ public: void ClearPrintRanges(); /** Adds a new print ranges. */ void AddPrintRange( const ScRange& rNew ); -//UNUSED2009-05 /** Removes all old print ranges and sets the passed print ranges. */ -//UNUSED2009-05 void SetPrintRange( const ScRange& rNew ); /** Marks the specified sheet to be printed completely. Deletes old print ranges! */ void SetPrintEntireSheet(); diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx index 460a5f5..f6a1a99 100644 --- a/sc/inc/viewopti.hxx +++ b/sc/inc/viewopti.hxx @@ -135,7 +135,6 @@ class SC_DLLPUBLIC ScTpViewItem : public SfxPoolItem { public: TYPEINFO(); -//UNUSED2008-05 ScTpViewItem( USHORT nWhich ); ScTpViewItem( USHORT nWhich, const ScViewOptions& rOpt ); ScTpViewItem( const ScTpViewItem& rItem ); ~ScTpViewItem(); diff --git a/sc/inc/xmlwrap.hxx b/sc/inc/xmlwrap.hxx index 33bc4e9..a0c6678 100644 --- a/sc/inc/xmlwrap.hxx +++ b/sc/inc/xmlwrap.hxx @@ -55,8 +55,6 @@ class ScXMLImportWrapper SfxMedium* pMedium; ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > xStorage; -//UNUSED2008-05 com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator> GetStatusIndicator( -//UNUSED2008-05 com::sun::star::uno::Reference< com::sun::star::frame::XModel >& rModel); com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator> GetStatusIndicator(); sal_uInt32 ImportFromComponent(com::sun::star::uno::Reference& xServiceFactory, diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx index d5001ad..7ccba0a 100644 --- a/sc/source/core/data/attarray.cxx +++ b/sc/source/core/data/attarray.cxx @@ -1838,39 +1838,6 @@ BOOL ScAttrArray::IsEmpty() const } -//UNUSED2008-05 SCROW ScAttrArray::GetFirstEntryPos() const -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ASSERT( nCount, "nCount = 0" ); -//UNUSED2008-05 -//UNUSED2008-05 if ( pData[0].pPattern != pDocument->GetDefPattern() ) -//UNUSED2008-05 return 0; -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 if (nCount==1) -//UNUSED2008-05 return 0; // leer -//UNUSED2008-05 else -//UNUSED2008-05 return pData[0].nRow + 1; -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 -//UNUSED2008-05 SCROW ScAttrArray::GetLastEntryPos( BOOL bIncludeBottom ) const -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ASSERT( nCount, "nCount == 0" ); -//UNUSED2008-05 -//UNUSED2008-05 if (bIncludeBottom) -//UNUSED2008-05 bIncludeBottom = ( pData[nCount-1].pPattern != pDocument->GetDefPattern() ); -//UNUSED2008-05 -//UNUSED2008-05 if (bIncludeBottom) -//UNUSED2008-05 return MAXROW; -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 if (nCount<=1) -//UNUSED2008-05 return 0; // leer -//UNUSED2008-05 else -//UNUSED2008-05 return pData[nCount-2].nRow; -//UNUSED2008-05 } -//UNUSED2008-05 } BOOL ScAttrArray::GetFirstVisibleAttr( SCROW& rFirstRow ) const @@ -2603,40 +2570,4 @@ void ScAttrArray::Load( SvStream& /* rStream */ ) #endif -//UNUSED2008-05 void ScAttrArray::ConvertFontsAfterLoad() -//UNUSED2008-05 { -//UNUSED2008-05 ScFontToSubsFontConverter_AutoPtr xFontConverter; -//UNUSED2008-05 const ULONG nFlags = FONTTOSUBSFONT_IMPORT | FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS; -//UNUSED2008-05 SCSIZE nIndex = 0; -//UNUSED2008-05 SCROW nThisRow = 0; -//UNUSED2008-05 -//UNUSED2008-05 while ( nThisRow <= MAXROW ) -//UNUSED2008-05 { -//UNUSED2008-05 const ScPatternAttr* pOldPattern = pData[nIndex].pPattern; -//UNUSED2008-05 const SfxPoolItem* pItem; -//UNUSED2008-05 if( pOldPattern->GetItemSet().GetItemState( ATTR_FONT, FALSE, &pItem ) == SFX_ITEM_SET ) -//UNUSED2008-05 { -//UNUSED2008-05 const SvxFontItem* pFontItem = (const SvxFontItem*) pItem; -//UNUSED2008-05 const String& rOldName = pFontItem->GetFamilyName(); -//UNUSED2008-05 xFontConverter = CreateFontToSubsFontConverter( rOldName, nFlags ); -//UNUSED2008-05 if ( xFontConverter ) -//UNUSED2008-05 { -//UNUSED2008-05 String aNewName( GetFontToSubsFontName( xFontConverter ) ); -//UNUSED2008-05 if ( aNewName != rOldName ) -//UNUSED2008-05 { -//UNUSED2008-05 SCROW nAttrRow = pData[nIndex].nRow; -//UNUSED2008-05 SvxFontItem aNewItem( pFontItem->GetFamily(), aNewName, -//UNUSED2008-05 pFontItem->GetStyleName(), pFontItem->GetPitch(), -//UNUSED2008-05 RTL_TEXTENCODING_DONTKNOW, ATTR_FONT ); -//UNUSED2008-05 ScPatternAttr aNewPattern( *pOldPattern ); -//UNUSED2008-05 aNewPattern.GetItemSet().Put( aNewItem ); -//UNUSED2008-05 SetPatternArea( nThisRow, nAttrRow, &aNewPattern, TRUE ); -//UNUSED2008-05 Search( nThisRow, nIndex ); //! data changed -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 ++nIndex; -//UNUSED2008-05 nThisRow = pData[nIndex-1].nRow+1; -//UNUSED2008-05 } -//UNUSED2008-05 } diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx index 1b06624..dc9070b 100644 --- a/sc/source/core/data/attrib.cxx +++ b/sc/source/core/data/attrib.cxx @@ -519,13 +519,6 @@ ScTableListItem::ScTableListItem( const ScTableListItem& rCpy ) // ----------------------------------------------------------------------- -//UNUSED2008-05 ScTableListItem::ScTableListItem( const USHORT nWhichP, const List& rList ) -//UNUSED2008-05 : SfxPoolItem ( nWhichP ), -//UNUSED2008-05 nCount ( 0 ), -//UNUSED2008-05 pTabArr ( NULL ) -//UNUSED2008-05 { -//UNUSED2008-05 SetTableList( rList ); -//UNUSED2008-05 } // ----------------------------------------------------------------------- @@ -633,32 +626,9 @@ SfxItemPresentation ScTableListItem::GetPresentation // ----------------------------------------------------------------------- -//UNUSED2009-05 BOOL ScTableListItem::GetTableList( List& aList ) const -//UNUSED2009-05 { -//UNUSED2009-05 for ( USHORT i=0; i 0 ); -//UNUSED2009-05 } // ----------------------------------------------------------------------- -//UNUSED2009-05 void ScTableListItem::SetTableList( const List& rList ) -//UNUSED2009-05 { -//UNUSED2009-05 nCount = (USHORT)rList.Count(); -//UNUSED2009-05 -//UNUSED2009-05 delete [] pTabArr; -//UNUSED2009-05 -//UNUSED2009-05 if ( nCount > 0 ) -//UNUSED2009-05 { -//UNUSED2009-05 pTabArr = new SCTAB [nCount]; -//UNUSED2009-05 -//UNUSED2009-05 for ( USHORT i=0; iType() == aExtFileId ) -//UNUSED2009-05 { -//UNUSED2009-05 bConvert = TRUE; -//UNUSED2009-05 nConvPara = nPara; -//UNUSED2009-05 nConvPos = nPos; -//UNUSED2009-05 } -//UNUSED2009-05 return EMPTY_STRING; -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 BOOL ScFieldChangerEditEngine::ConvertFields() -//UNUSED2009-05 { -//UNUSED2009-05 BOOL bConverted = FALSE; -//UNUSED2009-05 do -//UNUSED2009-05 { -//UNUSED2009-05 bConvert = FALSE; -//UNUSED2009-05 UpdateFields(); -//UNUSED2009-05 if ( bConvert ) -//UNUSED2009-05 { -//UNUSED2009-05 ESelection aSel( nConvPara, nConvPos, nConvPara, nConvPos+1 ); -//UNUSED2009-05 QuickInsertField( SvxFieldItem( SvxFileField(), EE_FEATURE_FIELD), aSel ); -//UNUSED2009-05 bConverted = TRUE; -//UNUSED2009-05 } -//UNUSED2009-05 } while ( bConvert ); -//UNUSED2009-05 return bConverted; -//UNUSED2009-05 } void ScPageHFItem::SetLeftArea( const EditTextObject& rNew ) { diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index 622ef83..1d0b876 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -237,11 +237,6 @@ BOOL ScColumn::HasSelectionMatrixFragment(const ScMarkData& rMark) const } -//UNUSED2009-05 BOOL ScColumn::HasLines( SCROW nRow1, SCROW nRow2, Rectangle& rSizes, -//UNUSED2009-05 BOOL bLeft, BOOL bRight ) const -//UNUSED2009-05 { -//UNUSED2009-05 return pAttrArray->HasLines( nRow1, nRow2, rSizes, bLeft, bRight ); -//UNUSED2009-05 } bool ScColumn::HasAttrib( SCROW nRow1, SCROW nRow2, USHORT nMask ) const diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 2d06f5e..d906b0d 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -93,92 +93,9 @@ inline BOOL IsAmbiguousScript( BYTE nScript ) // ----------------------------------------------------------------------------------------- -//UNUSED2008-05 SCROW ScColumn::NoteCount( SCROW nMaxRow ) const -//UNUSED2008-05 { -//UNUSED2008-05 SCROW nNoteCount = 0; -//UNUSED2008-05 SCSIZE i; -//UNUSED2008-05 -//UNUSED2008-05 for (i=0; iGetNotePtr() && pItems[i].nRow<=nMaxRow ) -//UNUSED2008-05 ++nNoteCount; -//UNUSED2008-05 -//UNUSED2008-05 return nNoteCount; -//UNUSED2008-05 } // ----------------------------------------------------------------------------------------- -//UNUSED2008-05 void ScColumn::CorrectSymbolCells( CharSet eStreamCharSet ) -//UNUSED2008-05 { -//UNUSED2008-05 // #99139# find and correct string cells that are formatted with a symbol font, -//UNUSED2008-05 // but are not in the LoadedSymbolStringCellsList -//UNUSED2008-05 // (because CELLTYPE_SYMBOLS wasn't written in the file) -//UNUSED2008-05 -//UNUSED2008-05 ScFontToSubsFontConverter_AutoPtr xFontConverter; -//UNUSED2008-05 const ULONG nFontConverterFlags = FONTTOSUBSFONT_EXPORT | FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS; -//UNUSED2008-05 -//UNUSED2008-05 BOOL bListInitialized = FALSE; -//UNUSED2008-05 ScSymbolStringCellEntry* pCurrentEntry = NULL; -//UNUSED2008-05 -//UNUSED2008-05 ScAttrIterator aAttrIter( pAttrArray, 0, MAXROW ); -//UNUSED2008-05 SCROW nStt, nEnd; -//UNUSED2008-05 const ScPatternAttr* pAttr = aAttrIter.Next( nStt, nEnd ); -//UNUSED2008-05 while ( pAttr ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( (xFontConverter = pAttr->GetSubsFontConverter( nFontConverterFlags )) || -//UNUSED2008-05 pAttr->IsSymbolFont() ) -//UNUSED2008-05 { -//UNUSED2008-05 ScColumnIterator aCellIter( this, nStt, nEnd ); -//UNUSED2008-05 SCROW nRow; -//UNUSED2008-05 ScBaseCell* pCell; -//UNUSED2008-05 while ( aCellIter.Next( nRow, pCell ) ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( pCell->GetCellType() == CELLTYPE_STRING ) -//UNUSED2008-05 { -//UNUSED2008-05 List& rList = pDocument->GetLoadedSymbolStringCellsList(); -//UNUSED2008-05 if (!bListInitialized) -//UNUSED2008-05 { -//UNUSED2008-05 pCurrentEntry = (ScSymbolStringCellEntry*)rList.First(); -//UNUSED2008-05 bListInitialized = TRUE; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 while ( pCurrentEntry && pCurrentEntry->nRow < nRow ) -//UNUSED2008-05 pCurrentEntry = (ScSymbolStringCellEntry*)rList.Next(); -//UNUSED2008-05 -//UNUSED2008-05 if ( pCurrentEntry && pCurrentEntry->nRow == nRow ) -//UNUSED2008-05 { -//UNUSED2008-05 // found -//UNUSED2008-05 } -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 // not in list -> convert and put into list -//UNUSED2008-05 -//UNUSED2008-05 ScStringCell* pStrCell = (ScStringCell*)pCell; -//UNUSED2008-05 String aOldStr; -//UNUSED2008-05 pStrCell->GetString( aOldStr ); -//UNUSED2008-05 -//UNUSED2008-05 // convert back to stream character set (get original data) -//UNUSED2008-05 ByteString aByteStr( aOldStr, eStreamCharSet ); -//UNUSED2008-05 -//UNUSED2008-05 // convert using symbol encoding, as for CELLTYPE_SYMBOLS cells -//UNUSED2008-05 String aNewStr( aByteStr, RTL_TEXTENCODING_SYMBOL ); -//UNUSED2008-05 pStrCell->SetString( aNewStr ); -//UNUSED2008-05 -//UNUSED2008-05 ScSymbolStringCellEntry * pEntry = new ScSymbolStringCellEntry; -//UNUSED2008-05 pEntry->pCell = pStrCell; -//UNUSED2008-05 pEntry->nRow = nRow; -//UNUSED2008-05 -//UNUSED2008-05 if ( pCurrentEntry ) -//UNUSED2008-05 rList.Insert( pEntry ); // before current entry - pCurrentEntry stays valid -//UNUSED2008-05 else -//UNUSED2008-05 rList.Insert( pEntry, LIST_APPEND ); // append if already behind last entry -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 pAttr = aAttrIter.Next( nStt, nEnd ); -//UNUSED2008-05 } -//UNUSED2008-05 } // ----------------------------------------------------------------------------------------- @@ -1193,23 +1110,6 @@ BOOL ScMarkedDataIter::Next( SCSIZE& rIndex ) return TRUE; } -//UNUSED2009-05 USHORT ScColumn::GetErrorData( SCROW nRow ) const -//UNUSED2009-05 { -//UNUSED2009-05 SCSIZE nIndex; -//UNUSED2009-05 if (Search(nRow, nIndex)) -//UNUSED2009-05 { -//UNUSED2009-05 ScBaseCell* pCell = pItems[nIndex].pCell; -//UNUSED2009-05 switch (pCell->GetCellType()) -//UNUSED2009-05 { -//UNUSED2009-05 case CELLTYPE_FORMULA : -//UNUSED2009-05 return ((ScFormulaCell*)pCell)->GetErrCode(); -//UNUSED2009-05 // break; -//UNUSED2009-05 default: -//UNUSED2009-05 return 0; -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 return 0; -//UNUSED2009-05 } //------------ diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx index 1da04e9..b2a50bd 100644 --- a/sc/source/core/data/dociter.cxx +++ b/sc/source/core/data/dociter.cxx @@ -233,46 +233,6 @@ void lcl_IterGetNumberFormat( ULONG& nFormat, const ScAttrArray*& rpArr, } } -//UNUSED2008-05 ScValueIterator::ScValueIterator( ScDocument* pDocument, -//UNUSED2008-05 SCCOL nSCol, SCROW nSRow, SCTAB nSTab, -//UNUSED2008-05 SCCOL nECol, SCROW nERow, SCTAB nETab, -//UNUSED2008-05 BOOL bSTotal, BOOL bTextZero ) : -//UNUSED2008-05 pDoc( pDocument ), -//UNUSED2008-05 nNumFmtIndex(0), -//UNUSED2008-05 nStartCol( nSCol), -//UNUSED2008-05 nStartRow( nSRow), -//UNUSED2008-05 nStartTab( nSTab ), -//UNUSED2008-05 nEndCol( nECol ), -//UNUSED2008-05 nEndRow( nERow), -//UNUSED2008-05 nEndTab( nETab ), -//UNUSED2008-05 nNumFmtType( NUMBERFORMAT_UNDEFINED ), -//UNUSED2008-05 bNumValid( FALSE ), -//UNUSED2008-05 bSubTotal(bSTotal), -//UNUSED2008-05 bNextValid( FALSE ), -//UNUSED2008-05 bCalcAsShown( pDocument->GetDocOptions().IsCalcAsShown() ), -//UNUSED2008-05 bTextAsZero( bTextZero ) -//UNUSED2008-05 { -//UNUSED2008-05 PutInOrder( nStartCol, nEndCol); -//UNUSED2008-05 PutInOrder( nStartRow, nEndRow); -//UNUSED2008-05 PutInOrder( nStartTab, nEndTab ); -//UNUSED2008-05 -//UNUSED2008-05 if (!ValidCol(nStartCol)) nStartCol = MAXCOL; -//UNUSED2008-05 if (!ValidCol(nEndCol)) nEndCol = MAXCOL; -//UNUSED2008-05 if (!ValidRow(nStartRow)) nStartRow = MAXROW; -//UNUSED2008-05 if (!ValidRow(nEndRow)) nEndRow = MAXROW; -//UNUSED2008-05 if (!ValidTab(nStartTab)) nStartTab = MAXTAB; -//UNUSED2008-05 if (!ValidTab(nEndTab)) nEndTab = MAXTAB; -//UNUSED2008-05 -//UNUSED2008-05 nCol = nStartCol; -//UNUSED2008-05 nRow = nStartRow; -//UNUSED2008-05 nTab = nStartTab; -//UNUSED2008-05 -//UNUSED2008-05 nColRow = 0; // wird bei GetFirst initialisiert -//UNUSED2008-05 -//UNUSED2008-05 nNumFormat = 0; // werden bei GetNumberFormat initialisiert -//UNUSED2008-05 pAttrArray = 0; -//UNUSED2008-05 nAttrEndRow = 0; -//UNUSED2008-05 } ScValueIterator::ScValueIterator( ScDocument* pDocument, const ScRange& rRange, BOOL bSTotal, BOOL bTextZero ) : diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx index 1c1cf39..cefddea 100644 --- a/sc/source/core/data/documen2.cxx +++ b/sc/source/core/data/documen2.cxx @@ -553,12 +553,6 @@ ScNoteEditEngine& ScDocument::GetNoteEngine() return *pNoteEngine; } -//UNUSED2009-05 SfxItemPool& ScDocument::GetNoteItemPool() -//UNUSED2009-05 { -//UNUSED2009-05 if ( !pNoteItemPool ) -//UNUSED2009-05 pNoteItemPool = new SfxItemPool(SdrObject::GetGlobalDrawObjectItemPool()); -//UNUSED2009-05 return *pNoteItemPool; -//UNUSED2009-05 } void ScDocument::ResetClip( ScDocument* pSourceDoc, const ScMarkData* pMarks ) { @@ -628,22 +622,6 @@ void ScDocument::PutCell( SCCOL nCol, SCROW nRow, SCTAB nTab, } } -//UNUSED2009-05 void ScDocument::PutCell( const ScAddress& rPos, ScBaseCell* pCell, -//UNUSED2009-05 ULONG nFormatIndex, BOOL bForceTab ) -//UNUSED2009-05 { -//UNUSED2009-05 SCTAB nTab = rPos.Tab(); -//UNUSED2009-05 if ( bForceTab && !pTab[nTab] ) -//UNUSED2009-05 { -//UNUSED2009-05 BOOL bExtras = !bIsUndo; // Spaltenbreiten, Zeilenhoehen, Flags -//UNUSED2009-05 -//UNUSED2009-05 pTab[nTab] = new ScTable(this, nTab, -//UNUSED2009-05 String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("temp")), -//UNUSED2009-05 bExtras, bExtras); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 if (pTab[nTab]) -//UNUSED2009-05 pTab[nTab]->PutCell( rPos, nFormatIndex, pCell ); -//UNUSED2009-05 } BOOL ScDocument::GetPrintArea( SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow, BOOL bNotes ) const diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index 196e6bd..b5160a9 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -105,14 +105,6 @@ void ScDocument::SetRangeName( ScRangeName* pNewRangeName ) pRangeName = pNewRangeName; } -//UNUSED2008-05 ScRangeData* ScDocument::GetRangeAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, -//UNUSED2008-05 BOOL bStartOnly) const -//UNUSED2008-05 { -//UNUSED2008-05 if ( pRangeName ) -//UNUSED2008-05 return pRangeName->GetRangeAtCursor( ScAddress( nCol, nRow, nTab ), bStartOnly ); -//UNUSED2008-05 else -//UNUSED2008-05 return NULL; -//UNUSED2008-05 } ScRangeData* ScDocument::GetRangeAtBlock( const ScRange& rBlock, String* pName ) const { diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx index 92b5fb7..fcf21f2 100644 --- a/sc/source/core/data/documen9.cxx +++ b/sc/source/core/data/documen9.cxx @@ -360,57 +360,6 @@ void ScDocument::StartAnimations( SCTAB nTab, Window* pWin ) } } -//UNUSED2008-05 void ScDocument::RefreshNoteFlags() -//UNUSED2008-05 { -//UNUSED2008-05 if (!pDrawLayer) -//UNUSED2008-05 return; -//UNUSED2008-05 -//UNUSED2008-05 BOOL bAnyIntObj = FALSE; -//UNUSED2008-05 SCTAB nTab; -//UNUSED2008-05 ScPostIt aNote(this); -//UNUSED2008-05 for (nTab=0; nTab<=MAXTAB && pTab[nTab]; nTab++) -//UNUSED2008-05 { -//UNUSED2008-05 SdrPage* pPage = pDrawLayer->GetPage(static_cast(nTab)); -//UNUSED2008-05 DBG_ASSERT(pPage,"Page ?"); -//UNUSED2008-05 if (pPage) -//UNUSED2008-05 { -//UNUSED2008-05 SdrObjListIter aIter( *pPage, IM_FLAT ); -//UNUSED2008-05 SdrObject* pObject = aIter.Next(); -//UNUSED2008-05 while (pObject) -//UNUSED2008-05 { -//UNUSED2008-05 if ( pObject->GetLayer() == SC_LAYER_INTERN ) -//UNUSED2008-05 { -//UNUSED2008-05 bAnyIntObj = TRUE; // for all internal objects, including detective -//UNUSED2008-05 -//UNUSED2008-05 if ( pObject->ISA( SdrCaptionObj ) ) -//UNUSED2008-05 { -//UNUSED2008-05 ScDrawObjData* pData = ScDrawLayer::GetObjData( pObject ); -//UNUSED2008-05 if ( pData ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( GetNote( pData->aStt.Col(), pData->aStt.Row(), nTab, aNote)) -//UNUSED2008-05 if ( !aNote.IsShown() ) -//UNUSED2008-05 { -//UNUSED2008-05 aNote.SetShown(TRUE); -//UNUSED2008-05 SetNote( pData->aStt.Col(), pData->aStt.Row(), nTab, aNote); -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 pObject = aIter.Next(); -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 if (bAnyIntObj) -//UNUSED2008-05 { -//UNUSED2008-05 // update attributes for all note objects and the colors of detective objects -//UNUSED2008-05 // (we don't know with which settings the file was created) -//UNUSED2008-05 -//UNUSED2008-05 ScDetectiveFunc aFunc( this, 0 ); -//UNUSED2008-05 aFunc.UpdateAllComments(); -//UNUSED2008-05 aFunc.UpdateAllArrowColors(); -//UNUSED2008-05 } -//UNUSED2008-05 } BOOL ScDocument::HasBackgroundDraw( SCTAB nTab, const Rectangle& rMMRect ) { diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 26719e5..7ca55a0 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -5195,11 +5195,6 @@ void ScDocument::AddPrintRange( SCTAB nTab, const ScRange& rNew ) } -//UNUSED2009-05 void ScDocument::SetPrintRange( SCTAB nTab, const ScRange& rNew ) -//UNUSED2009-05 { -//UNUSED2009-05 if (ValidTab(nTab) && pTab[nTab]) -//UNUSED2009-05 pTab[nTab]->SetPrintRange( rNew ); -//UNUSED2009-05 } void ScDocument::SetPrintEntireSheet( SCTAB nTab ) diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx index ed334e5..690b91d 100755 --- a/sc/source/core/data/dptabsrc.cxx +++ b/sc/source/core/data/dptabsrc.cxx @@ -1010,16 +1010,6 @@ void ScDPSource::CreateRes_Impl() } } -//UNUSED2009-05 void ScDPSource::DumpState( ScDocument* pDoc, const ScAddress& rPos ) -//UNUSED2009-05 { -//UNUSED2009-05 CreateRes_Impl(); -//UNUSED2009-05 -//UNUSED2009-05 ScAddress aDocPos( rPos ); -//UNUSED2009-05 -//UNUSED2009-05 if (pColResRoot->GetChildDimension()) -//UNUSED2009-05 pColResRoot->GetChildDimension()->DumpState( NULL, pDoc, aDocPos ); -//UNUSED2009-05 pRowResRoot->DumpState( pColResRoot, pDoc, aDocPos ); -//UNUSED2009-05 } void ScDPSource::FillLevelList( USHORT nOrientation, List& rList ) { @@ -1545,13 +1535,6 @@ const ScDPItemData& ScDPDimension::GetSelectedData() return *pSelectedData; } -//UNUSED2009-05 BOOL ScDPDimension::IsValidPage( const ScDPItemData& rData ) -//UNUSED2009-05 { -//UNUSED2009-05 if ( bHasSelectedPage ) -//UNUSED2009-05 return rData.IsCaseInsEqual( GetSelectedData() ); -//UNUSED2009-05 -//UNUSED2009-05 return TRUE; // no selection -> all data -//UNUSED2009-05 } BOOL ScDPDimension::IsVisible( const ScDPItemData& rData ) { diff --git a/sc/source/core/data/global2.cxx b/sc/source/core/data/global2.cxx index 55fa221..bdc120e 100644 --- a/sc/source/core/data/global2.cxx +++ b/sc/source/core/data/global2.cxx @@ -97,17 +97,6 @@ ScImportParam::~ScImportParam() { } -//UNUSED2009-05 void ScImportParam::Clear() -//UNUSED2009-05 { -//UNUSED2009-05 nCol1 = nCol2 = 0; -//UNUSED2009-05 nRow1 = nRow2 = 0; -//UNUSED2009-05 bImport = FALSE; -//UNUSED2009-05 bNative = FALSE; -//UNUSED2009-05 bSql = TRUE; -//UNUSED2009-05 nType = ScDbTable; -//UNUSED2009-05 aDBName.Erase(); -//UNUSED2009-05 aStatement.Erase(); -//UNUSED2009-05 } ScImportParam& ScImportParam::operator=( const ScImportParam& r ) { @@ -621,16 +610,6 @@ __EXPORT ScPivotParam::~ScPivotParam() //------------------------------------------------------------------------ -//UNUSED2009-05 void __EXPORT ScPivotParam::Clear() -//UNUSED2009-05 { -//UNUSED2009-05 nCol = 0; -//UNUSED2009-05 nRow = 0; -//UNUSED2009-05 nTab = 0; -//UNUSED2009-05 bIgnoreEmptyRows = bDetectCategories = FALSE; -//UNUSED2009-05 bMakeTotalCol = bMakeTotalRow = TRUE; -//UNUSED2009-05 ClearLabelData(); -//UNUSED2009-05 ClearPivotArrays(); -//UNUSED2009-05 } void __EXPORT ScPivotParam::ClearPivotArrays() { diff --git a/sc/source/core/data/markarr.cxx b/sc/source/core/data/markarr.cxx index dba34fc..66dc7e5 100644 --- a/sc/source/core/data/markarr.cxx +++ b/sc/source/core/data/markarr.cxx @@ -251,10 +251,6 @@ void ScMarkArray::SetMarkArea( SCROW nStartRow, SCROW nEndRow, BOOL bMarked ) // InfoBox(0, String(nCount) + String(" Eintraege") ).Execute(); } -//UNUSED2009-05 void ScMarkArray::DeleteArea(SCROW nStartRow, SCROW nEndRow) -//UNUSED2009-05 { -//UNUSED2009-05 SetMarkArea(nStartRow, nEndRow, FALSE); -//UNUSED2009-05 } BOOL ScMarkArray::IsAllMarked( SCROW nStartRow, SCROW nEndRow ) const { diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx index 7b63093..2c308de 100644 --- a/sc/source/core/data/patattr.cxx +++ b/sc/source/core/data/patattr.cxx @@ -1239,15 +1239,6 @@ BOOL ScPatternAttr::IsSymbolFont() const return FALSE; } -//UNUSED2008-05 FontToSubsFontConverter ScPatternAttr::GetSubsFontConverter( ULONG nFlags ) const -//UNUSED2008-05 { -//UNUSED2008-05 const SfxPoolItem* pItem; -//UNUSED2008-05 if( GetItemSet().GetItemState( ATTR_FONT, TRUE, &pItem ) == SFX_ITEM_SET ) -//UNUSED2008-05 return CreateFontToSubsFontConverter( -//UNUSED2008-05 ((const SvxFontItem*) pItem)->GetFamilyName(), nFlags ); -//UNUSED2008-05 else -//UNUSED2008-05 return 0; -//UNUSED2008-05 } ULONG ScPatternAttr::GetNumberFormat( SvNumberFormatter* pFormatter ) const diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx index 863ff1c..0f3d678 100644 --- a/sc/source/core/data/stlpool.cxx +++ b/sc/source/core/data/stlpool.cxx @@ -92,10 +92,6 @@ void ScStyleSheetPool::SetDocument( ScDocument* pDocument ) //------------------------------------------------------------------------ -//UNUSED2009-05 void ScStyleSheetPool::SetForceStdName( const String* pSet ) -//UNUSED2009-05 { -//UNUSED2009-05 pForceStdName = pSet; -//UNUSED2009-05 } //------------------------------------------------------------------------ @@ -509,112 +505,6 @@ void ScStyleSheetPool::CreateStandardStyles() //------------------------------------------------------------------------ -//UNUSED2008-05 void ScStyleSheetPool::UpdateStdNames() -//UNUSED2008-05 { -//UNUSED2008-05 // Standard-Styles den richtigen Namen in der Programm-Sprache geben -//UNUSED2008-05 -//UNUSED2008-05 String aHelpFile; -//UNUSED2008-05 sal_uInt32 nCount = aStyles.size(); -//UNUSED2008-05 for (sal_uInt32 n=0; nIsUserDefined()) -//UNUSED2008-05 { -//UNUSED2008-05 String aOldName = pStyle->GetName(); -//UNUSED2008-05 ULONG nHelpId = pStyle->GetHelpId( aHelpFile ); -//UNUSED2008-05 SfxStyleFamily eFam = pStyle->GetFamily(); -//UNUSED2008-05 -//UNUSED2008-05 BOOL bHelpKnown = TRUE; -//UNUSED2008-05 String aNewName; -//UNUSED2008-05 USHORT nNameId = 0; -//UNUSED2008-05 switch( nHelpId ) -//UNUSED2008-05 { -//UNUSED2008-05 case HID_SC_SHEET_CELL_STD: -//UNUSED2008-05 case HID_SC_SHEET_PAGE_STD: nNameId = STR_STYLENAME_STANDARD; break; -//UNUSED2008-05 case HID_SC_SHEET_CELL_ERG: nNameId = STR_STYLENAME_RESULT; break; -//UNUSED2008-05 case HID_SC_SHEET_CELL_ERG1: nNameId = STR_STYLENAME_RESULT1; break; -//UNUSED2008-05 case HID_SC_SHEET_CELL_UEB: nNameId = STR_STYLENAME_HEADLINE; break; -//UNUSED2008-05 case HID_SC_SHEET_CELL_UEB1: nNameId = STR_STYLENAME_HEADLINE1; break; -//UNUSED2008-05 case HID_SC_SHEET_PAGE_REP: nNameId = STR_STYLENAME_REPORT; break; -//UNUSED2008-05 default: -//UNUSED2008-05 // 0 oder falsche (alte) HelpId -//UNUSED2008-05 bHelpKnown = FALSE; -//UNUSED2008-05 } -//UNUSED2008-05 if (bHelpKnown) -//UNUSED2008-05 { -//UNUSED2008-05 if ( nNameId ) -//UNUSED2008-05 aNewName = SCSTR( nNameId ); -//UNUSED2008-05 -//UNUSED2008-05 if ( aNewName.Len() && aNewName != aOldName && !Find( aNewName, eFam ) ) -//UNUSED2008-05 { -//UNUSED2008-05 DBG_TRACE( "Renaming style..." ); -//UNUSED2008-05 -//UNUSED2008-05 pStyle->SetName( aNewName ); // setzt auch Parents um -//UNUSED2008-05 -//UNUSED2008-05 // Styles in Patterns sind schon auf Pointer umgesetzt -//UNUSED2008-05 if (eFam == SFX_STYLE_FAMILY_PAGE) -//UNUSED2008-05 { -//UNUSED2008-05 // Page-Styles umsetzen -//UNUSED2008-05 // TableCount am Doc ist noch nicht initialisiert -//UNUSED2008-05 for (SCTAB nTab=0; nTab<=MAXTAB && pDoc->HasTable(nTab); nTab++) -//UNUSED2008-05 if (pDoc->GetPageStyle(nTab) == aOldName) -//UNUSED2008-05 pDoc->SetPageStyle(nTab, aNewName); -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 // wrong or no HelpId -> set new HelpId -//UNUSED2008-05 -//UNUSED2008-05 // no assertion for wrong HelpIds because this happens -//UNUSED2008-05 // with old files (#67218#) or with old files that were -//UNUSED2008-05 // saved again with a new version in a different language -//UNUSED2008-05 // (so SrcVersion doesn't help) -//UNUSED2008-05 -//UNUSED2008-05 USHORT nNewId = 0; -//UNUSED2008-05 if ( eFam == SFX_STYLE_FAMILY_PARA ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( aOldName == SCSTR( STR_STYLENAME_STANDARD ) ) -//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_STD; -//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_RESULT ) ) -//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_ERG; -//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_RESULT1 ) ) -//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_ERG1; -//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_HEADLINE ) ) -//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_UEB; -//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_HEADLINE1 ) ) -//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_UEB1; -//UNUSED2008-05 } -//UNUSED2008-05 else // PAGE -//UNUSED2008-05 { -//UNUSED2008-05 if ( aOldName == SCSTR( STR_STYLENAME_STANDARD ) ) -//UNUSED2008-05 nNewId = HID_SC_SHEET_PAGE_STD; -//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_REPORT ) ) -//UNUSED2008-05 nNewId = HID_SC_SHEET_PAGE_REP; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 if ( nNewId ) // new ID found from name -> set ID -//UNUSED2008-05 { -//UNUSED2008-05 pStyle->SetHelpId( aHelpFile, nNewId ); -//UNUSED2008-05 } -//UNUSED2008-05 else if ( nHelpId == 0 ) // no old and no new ID -//UNUSED2008-05 { -//UNUSED2008-05 // #71471# probably user defined style without SFXSTYLEBIT_USERDEF set -//UNUSED2008-05 // (from StarCalc 1.0 import), fixed in src563 and above -//UNUSED2008-05 //! may also be default style from a different language -//UNUSED2008-05 //! test if name was generated from StarCalc 1.0 import? -//UNUSED2008-05 DBG_ASSERT(pDoc->GetSrcVersion() <= SC_SUBTOTAL_BUGFIX, -//UNUSED2008-05 "user defined style without SFXSTYLEBIT_USERDEF"); -//UNUSED2008-05 pStyle->SetMask( pStyle->GetMask() | SFXSTYLEBIT_USERDEF ); -//UNUSED2008-05 } -//UNUSED2008-05 // else: wrong old ID and no new ID found: -//UNUSED2008-05 // probably default style from a different language -//UNUSED2008-05 // -> leave unchanged (HelpId will be set if loaded with matching -//UNUSED2008-05 // language version later) -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } //------------------------------------------------------------------------ diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index e2c9701..232be6a 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -1305,10 +1305,6 @@ void ScTable::UpdateInsertTab(SCTAB nTable) SetStreamValid(FALSE); } -//UNUSED2008-05 void ScTable::UpdateInsertTabOnlyCells(SCTAB nTable) -//UNUSED2008-05 { -//UNUSED2008-05 for (SCCOL i=0; i <= MAXCOL; i++) aCol[i].UpdateInsertTabOnlyCells(nTable); -//UNUSED2008-05 } void ScTable::UpdateDeleteTab( SCTAB nTable, BOOL bIsMove, ScTable* pRefUndo ) { @@ -1579,11 +1575,6 @@ void ScTable::AddPrintRange( const ScRange& rNew ) SetStreamValid(FALSE); } -//UNUSED2009-05 void ScTable::SetPrintRange( const ScRange& rNew ) -//UNUSED2009-05 { -//UNUSED2009-05 ClearPrintRanges(); -//UNUSED2009-05 AddPrintRange( rNew ); -//UNUSED2009-05 } void ScTable::SetPrintEntireSheet() { diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 61c8ec8..4ad301f 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -1005,13 +1005,6 @@ void ScTable::PutCell( const ScAddress& rPos, ScBaseCell* pCell ) } -//UNUSED2009-05 void ScTable::PutCell( const ScAddress& rPos, ULONG nFormatIndex, ScBaseCell* pCell ) -//UNUSED2009-05 { -//UNUSED2009-05 if (pCell) -//UNUSED2009-05 aCol[rPos.Col()].Insert( rPos.Row(), nFormatIndex, pCell ); -//UNUSED2009-05 else -//UNUSED2009-05 aCol[rPos.Col()].Delete( rPos.Row() ); -//UNUSED2009-05 } BOOL ScTable::SetString( SCCOL nCol, SCROW nRow, SCTAB nTabP, const String& rString, @@ -1195,12 +1188,6 @@ BOOL ScTable::HasStringCells( SCCOL nStartCol, SCROW nStartRow, } -//UNUSED2008-05 USHORT ScTable::GetErrCode( SCCOL nCol, SCROW nRow ) const -//UNUSED2008-05 { -//UNUSED2008-05 if (ValidColRow( nCol, nRow )) -//UNUSED2008-05 return aCol[nCol].GetErrCode( nRow ); -//UNUSED2008-05 return 0; -//UNUSED2008-05 } void ScTable::SetDirtyVar() @@ -1368,22 +1355,6 @@ bool ScTable::HasAttrib( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, USH } -//UNUSED2009-05 BOOL ScTable::HasLines( const ScRange& rRange, Rectangle& rSizes ) const -//UNUSED2009-05 { -//UNUSED2009-05 SCCOL nCol1 = rRange.aStart.Col(); -//UNUSED2009-05 SCROW nRow1 = rRange.aStart.Row(); -//UNUSED2009-05 SCCOL nCol2 = rRange.aEnd.Col(); -//UNUSED2009-05 SCROW nRow2 = rRange.aEnd.Row(); -//UNUSED2009-05 PutInOrder( nCol1, nCol2 ); -//UNUSED2009-05 PutInOrder( nRow1, nRow2 ); -//UNUSED2009-05 -//UNUSED2009-05 BOOL bFound = FALSE; -//UNUSED2009-05 for (SCCOL i=nCol1; i<=nCol2; i++) -//UNUSED2009-05 if (aCol[i].HasLines( nRow1, nRow2, rSizes, (i==nCol1), (i==nCol2) )) -//UNUSED2009-05 bFound = TRUE; -//UNUSED2009-05 -//UNUSED2009-05 return bFound; -//UNUSED2009-05 } BOOL ScTable::HasAttribSelection( const ScMarkData& rMark, USHORT nMask ) const diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx index 545be2f..cbdc83b 100644 --- a/sc/source/core/data/table4.cxx +++ b/sc/source/core/data/table4.cxx @@ -1902,13 +1902,6 @@ void ScTable::UpdateInsertTabAbs(SCTAB nTable) aCol[i].UpdateInsertTabAbs(nTable); } -//UNUSED2008-05 USHORT ScTable::GetErrorData( SCCOL nCol, SCROW nRow ) const -//UNUSED2008-05 { -//UNUSED2008-05 if (ValidColRow(nCol,nRow)) -//UNUSED2008-05 return aCol[nCol].GetErrorData( nRow ); -//UNUSED2008-05 else -//UNUSED2008-05 return 0; -//UNUSED2008-05 } BOOL ScTable::GetNextSpellingCell(SCCOL& rCol, SCROW& rRow, BOOL bInSel, const ScMarkData& rMark) const diff --git a/sc/source/core/tool/addinhelpid.cxx b/sc/source/core/tool/addinhelpid.cxx index 01a5e77..79312af 100644 --- a/sc/source/core/tool/addinhelpid.cxx +++ b/sc/source/core/tool/addinhelpid.cxx @@ -159,11 +159,6 @@ const ScUnoAddInHelpId pDateFuncHelpIds[] = // ============================================================================ -//UNUSED2008-05 ScUnoAddInHelpIdGenerator::ScUnoAddInHelpIdGenerator() : -//UNUSED2008-05 pCurrHelpIds( NULL ), -//UNUSED2008-05 nArrayCount( 0 ) -//UNUSED2008-05 { -//UNUSED2008-05 } ScUnoAddInHelpIdGenerator::ScUnoAddInHelpIdGenerator( const ::rtl::OUString& rServiceName ) { diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index a4a77c9..41e8314 100644 --- a/sc/source/core/tool/address.cxx +++ b/sc/source/core/tool/address.cxx @@ -56,13 +56,6 @@ ScAddress::Details::Details ( const ScDocument* pDoc, { } -//UNUSED2009-05 void ScAddress::Details::SetPos ( const ScDocument* pDoc, -//UNUSED2009-05 const ScAddress & rAddr ) -//UNUSED2009-05 { -//UNUSED2009-05 nRow = rAddr.Row(); -//UNUSED2009-05 nCol = rAddr.Col(); -//UNUSED2009-05 eConv = pDoc->GetAddressConvention(); -//UNUSED2009-05 } //////////////////////////////////////////////////////////////////////////// diff --git a/sc/source/core/tool/chartpos.cxx b/sc/source/core/tool/chartpos.cxx index fec8c69..2f36710 100644 --- a/sc/source/core/tool/chartpos.cxx +++ b/sc/source/core/tool/chartpos.cxx @@ -613,34 +613,5 @@ ScChartPositionMap::~ScChartPositionMap() } -//UNUSED2009-05 ScRangeListRef ScChartPositionMap::GetColRanges( SCCOL nChartCol ) const -//UNUSED2009-05 { -//UNUSED2009-05 ScRangeListRef xRangeList = new ScRangeList; -//UNUSED2009-05 if ( nChartCol < nColCount ) -//UNUSED2009-05 { -//UNUSED2009-05 ULONG nStop = GetIndex( nChartCol, nRowCount ); -//UNUSED2009-05 for ( ULONG nIndex = GetIndex( nChartCol, 0 ); nIndex < nStop; nIndex++ ) -//UNUSED2009-05 { -//UNUSED2009-05 if ( ppData[ nIndex ] ) -//UNUSED2009-05 xRangeList->Join( *ppData[ nIndex ] ); -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 return xRangeList; -//UNUSED2009-05 } - - -//UNUSED2009-05 ScRangeListRef ScChartPositionMap::GetRowRanges( SCROW nChartRow ) const -//UNUSED2009-05 { -//UNUSED2009-05 ScRangeListRef xRangeList = new ScRangeList; -//UNUSED2009-05 if ( nChartRow < nRowCount ) -//UNUSED2009-05 { -//UNUSED2009-05 ULONG nStop = GetIndex( nColCount, nChartRow ); -//UNUSED2009-05 for ( ULONG nIndex = GetIndex( 0, nChartRow ); nIndex < nStop; -//UNUSED2009-05 nIndex += nRowCount ) -//UNUSED2009-05 { -//UNUSED2009-05 if ( ppData[ nIndex ] ) -//UNUSED2009-05 xRangeList->Join( *ppData[ nIndex ] ); -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 return xRangeList; -//UNUSED2009-05 } + + diff --git a/sc/source/core/tool/collect.cxx b/sc/source/core/tool/collect.cxx index 64bf727..7e31a50 100644 --- a/sc/source/core/tool/collect.cxx +++ b/sc/source/core/tool/collect.cxx @@ -334,23 +334,6 @@ ScDataObject* ScStrCollection::Clone() const // TypedScStrCollection //------------------------------------------------------------------------ -//UNUSED2008-05 TypedStrData::TypedStrData( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nTab, -//UNUSED2008-05 BOOL bAllStrings ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( pDoc->HasValueData( nCol, nRow, nTab ) ) -//UNUSED2008-05 { -//UNUSED2008-05 pDoc->GetValue( nCol, nRow, nTab, nValue ); -//UNUSED2008-05 if (bAllStrings) -//UNUSED2008-05 pDoc->GetString( nCol, nRow, nTab, aStrValue ); -//UNUSED2008-05 nStrType = 0; -//UNUSED2008-05 } -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 pDoc->GetString( nCol, nRow, nTab, aStrValue ); -//UNUSED2008-05 nValue = 0.0; -//UNUSED2008-05 nStrType = 1; //! Typ uebergeben ? -//UNUSED2008-05 } -//UNUSED2008-05 } ScDataObject* TypedStrData::Clone() const diff --git a/sc/source/core/tool/dbcolect.cxx b/sc/source/core/tool/dbcolect.cxx index 07bbba4..2cc3ff2 100644 --- a/sc/source/core/tool/dbcolect.cxx +++ b/sc/source/core/tool/dbcolect.cxx @@ -333,12 +333,6 @@ ScDBData::~ScDBData() } } -//UNUSED2008-05 BOOL ScDBData::IsBeyond(SCROW nMaxRow) const -//UNUSED2008-05 { -//UNUSED2008-05 return ( nStartRow > nMaxRow || -//UNUSED2008-05 nEndRow > nMaxRow || -//UNUSED2008-05 nQueryDestRow > nMaxRow ); -//UNUSED2008-05 } String ScDBData::GetSourceString() const { diff --git a/sc/source/core/tool/docoptio.cxx b/sc/source/core/tool/docoptio.cxx index fcb9a0d..e2995da 100644 --- a/sc/source/core/tool/docoptio.cxx +++ b/sc/source/core/tool/docoptio.cxx @@ -202,9 +202,6 @@ const LocaleDataWrapper& ScDocOptions::GetLocaleDataWrapper() const // ScTpCalcItem - Daten fuer die CalcOptions-TabPage //======================================================================== -//UNUSED2008-05 ScTpCalcItem::ScTpCalcItem( USHORT nWhichP ) : SfxPoolItem( nWhichP ) -//UNUSED2008-05 { -//UNUSED2008-05 } //------------------------------------------------------------------------ diff --git a/sc/source/core/tool/hints.cxx b/sc/source/core/tool/hints.cxx index 4ca62d8..afbc020 100644 --- a/sc/source/core/tool/hints.cxx +++ b/sc/source/core/tool/hints.cxx @@ -79,10 +79,6 @@ ScUpdateRefHint::~ScUpdateRefHint() // ScPointerChangedHint - Pointer ist ungueltig geworden // ----------------------------------------------------------------------- -//UNUSED2008-05 ScPointerChangedHint::ScPointerChangedHint( USHORT nF ) : -//UNUSED2008-05 nFlags( nF ) -//UNUSED2008-05 { -//UNUSED2008-05 } ScPointerChangedHint::~ScPointerChangedHint() { diff --git a/sc/source/core/tool/printopt.cxx b/sc/source/core/tool/printopt.cxx index e952b9e..44a7270 100644 --- a/sc/source/core/tool/printopt.cxx +++ b/sc/source/core/tool/printopt.cxx @@ -87,9 +87,6 @@ int ScPrintOptions::operator!=( const ScPrintOptions& rOpt ) const // ----------------------------------------------------------------------- -//UNUSED2008-05 ScTpPrintItem::ScTpPrintItem( USHORT nWhichP ) : SfxPoolItem( nWhichP ) -//UNUSED2008-05 { -//UNUSED2008-05 } ScTpPrintItem::ScTpPrintItem( USHORT nWhichP, const ScPrintOptions& rOpt ) : SfxPoolItem ( nWhichP ), diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx index 8ac7676..e85714b 100644 --- a/sc/source/core/tool/rangenam.cxx +++ b/sc/source/core/tool/rangenam.cxx @@ -359,19 +359,6 @@ BOOL ScRangeData::operator== (const ScRangeData& rData) const // fuer Undo return TRUE; } -//UNUSED2009-05 BOOL ScRangeData::IsRangeAtCursor( const ScAddress& rPos, BOOL bStartOnly ) const -//UNUSED2009-05 { -//UNUSED2009-05 BOOL bRet = FALSE; -//UNUSED2009-05 ScRange aRange; -//UNUSED2009-05 if ( IsReference(aRange) ) -//UNUSED2009-05 { -//UNUSED2009-05 if ( bStartOnly ) -//UNUSED2009-05 bRet = ( rPos == aRange.aStart ); -//UNUSED2009-05 else -//UNUSED2009-05 bRet = ( aRange.In( rPos ) ); -//UNUSED2009-05 } -//UNUSED2009-05 return bRet; -//UNUSED2009-05 } BOOL ScRangeData::IsRangeAtBlock( const ScRange& rBlock ) const { @@ -791,16 +778,6 @@ ScRangeData* ScRangeName::FindIndex( USHORT nIndex ) return NULL; } -//UNUSED2009-05 ScRangeData* ScRangeName::GetRangeAtCursor( const ScAddress& rPos, BOOL bStartOnly ) const -//UNUSED2009-05 { -//UNUSED2009-05 if ( pItems ) -//UNUSED2009-05 { -//UNUSED2009-05 for ( USHORT i = 0; i < nCount; i++ ) -//UNUSED2009-05 if ( ((ScRangeData*)pItems[i])->IsRangeAtCursor( rPos, bStartOnly ) ) -//UNUSED2009-05 return (ScRangeData*)pItems[i]; -//UNUSED2009-05 } -//UNUSED2009-05 return NULL; -//UNUSED2009-05 } ScRangeData* ScRangeName::GetRangeAtBlock( const ScRange& rBlock ) const { diff --git a/sc/source/core/tool/refdata.cxx b/sc/source/core/tool/refdata.cxx index bc739e2..85342ee 100644 --- a/sc/source/core/tool/refdata.cxx +++ b/sc/source/core/tool/refdata.cxx @@ -82,110 +82,6 @@ void ScSingleRefData::CalcAbsIfRel( const ScAddress& rPos ) } } -//UNUSED2008-05 void ScSingleRefData::OldBoolsToNewFlags( const OldSingleRefBools& rBools ) -//UNUSED2008-05 { -//UNUSED2008-05 switch ( rBools.bRelCol ) -//UNUSED2008-05 { -//UNUSED2008-05 case SR_DELETED : -//UNUSED2008-05 Flags.bColRel = TRUE; // der war verlorengegangen -//UNUSED2008-05 Flags.bColDeleted = TRUE; -//UNUSED2008-05 break; -//UNUSED2008-05 case SR_ABSOLUTE : -//UNUSED2008-05 Flags.bColRel = FALSE; -//UNUSED2008-05 Flags.bColDeleted = FALSE; -//UNUSED2008-05 break; -//UNUSED2008-05 case SR_RELABS : -//UNUSED2008-05 case SR_RELATIVE : -//UNUSED2008-05 default: -//UNUSED2008-05 Flags.bColRel = TRUE; -//UNUSED2008-05 Flags.bColDeleted = FALSE; -//UNUSED2008-05 } -//UNUSED2008-05 switch ( rBools.bRelRow ) -//UNUSED2008-05 { -//UNUSED2008-05 case SR_DELETED : -//UNUSED2008-05 Flags.bRowRel = TRUE; // der war verlorengegangen -//UNUSED2008-05 Flags.bRowDeleted = TRUE; -//UNUSED2008-05 break; -//UNUSED2008-05 case SR_ABSOLUTE : -//UNUSED2008-05 Flags.bRowRel = FALSE; -//UNUSED2008-05 Flags.bRowDeleted = FALSE; -//UNUSED2008-05 break; -//UNUSED2008-05 case SR_RELABS : -//UNUSED2008-05 case SR_RELATIVE : -//UNUSED2008-05 default: -//UNUSED2008-05 Flags.bRowRel = TRUE; -//UNUSED2008-05 Flags.bRowDeleted = FALSE; -//UNUSED2008-05 } -//UNUSED2008-05 switch ( rBools.bRelTab ) -//UNUSED2008-05 { -//UNUSED2008-05 case SR_DELETED : -//UNUSED2008-05 Flags.bTabRel = TRUE; // der war verlorengegangen -//UNUSED2008-05 Flags.bTabDeleted = TRUE; -//UNUSED2008-05 break; -//UNUSED2008-05 case SR_ABSOLUTE : -//UNUSED2008-05 Flags.bTabRel = FALSE; -//UNUSED2008-05 Flags.bTabDeleted = FALSE; -//UNUSED2008-05 break; -//UNUSED2008-05 case SR_RELABS : -//UNUSED2008-05 case SR_RELATIVE : -//UNUSED2008-05 default: -//UNUSED2008-05 Flags.bTabRel = TRUE; -//UNUSED2008-05 Flags.bTabDeleted = FALSE; -//UNUSED2008-05 } -//UNUSED2008-05 Flags.bFlag3D = (rBools.bOldFlag3D & SRF_3D ? TRUE : FALSE); -//UNUSED2008-05 Flags.bRelName = (rBools.bOldFlag3D & SRF_RELNAME ? TRUE : FALSE); -//UNUSED2008-05 if ( !Flags.bFlag3D ) -//UNUSED2008-05 Flags.bTabRel = TRUE; // ist bei einigen aelteren Dokumenten nicht gesetzt -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 -//UNUSED2008-05 /* -//UNUSED2008-05 bis Release 3.1 sah Store so aus -//UNUSED2008-05 -//UNUSED2008-05 BYTE n = ( ( r.bOldFlag3D & 0x03 ) << 6 ) // RelName, 3D -//UNUSED2008-05 | ( ( r.bRelTab & 0x03 ) << 4 ) // Relative, RelAbs -//UNUSED2008-05 | ( ( r.bRelRow & 0x03 ) << 2 ) -//UNUSED2008-05 | ( r.bRelCol & 0x03 ); -//UNUSED2008-05 -//UNUSED2008-05 bis Release 3.1 sah Load so aus -//UNUSED2008-05 -//UNUSED2008-05 r.bRelCol = ( n & 0x03 ); -//UNUSED2008-05 r.bRelRow = ( ( n >> 2 ) & 0x03 ); -//UNUSED2008-05 r.bRelTab = ( ( n >> 4 ) & 0x03 ); -//UNUSED2008-05 r.bOldFlag3D = ( ( n >> 6 ) & 0x03 ); -//UNUSED2008-05 -//UNUSED2008-05 bRelCol == SR_DELETED war identisch mit bRelCol == (SR_RELATIVE | SR_RELABS) -//UNUSED2008-05 leider.. -//UNUSED2008-05 3.1 liest Zukunft: Deleted wird nicht unbedingt erkannt, nur wenn auch Relativ. -//UNUSED2008-05 Aber immer noch nCol > MAXCOL und gut sollte sein.. -//UNUSED2008-05 */ -//UNUSED2008-05 -//UNUSED2008-05 BYTE ScSingleRefData::CreateStoreByteFromFlags() const -//UNUSED2008-05 { -//UNUSED2008-05 return (BYTE)( -//UNUSED2008-05 ( (Flags.bRelName & 0x01) << 7 ) -//UNUSED2008-05 | ( (Flags.bFlag3D & 0x01) << 6 ) -//UNUSED2008-05 | ( (Flags.bTabDeleted & 0x01) << 5 ) -//UNUSED2008-05 | ( (Flags.bTabRel & 0x01) << 4 ) -//UNUSED2008-05 | ( (Flags.bRowDeleted & 0x01) << 3 ) -//UNUSED2008-05 | ( (Flags.bRowRel & 0x01) << 2 ) -//UNUSED2008-05 | ( (Flags.bColDeleted & 0x01) << 1 ) -//UNUSED2008-05 | (Flags.bColRel & 0x01) -//UNUSED2008-05 ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 -//UNUSED2008-05 void ScSingleRefData::CreateFlagsFromLoadByte( BYTE n ) -//UNUSED2008-05 { -//UNUSED2008-05 Flags.bColRel = (n & 0x01 ); -//UNUSED2008-05 Flags.bColDeleted = ( (n >> 1) & 0x01 ); -//UNUSED2008-05 Flags.bRowRel = ( (n >> 2) & 0x01 ); -//UNUSED2008-05 Flags.bRowDeleted = ( (n >> 3) & 0x01 ); -//UNUSED2008-05 Flags.bTabRel = ( (n >> 4) & 0x01 ); -//UNUSED2008-05 Flags.bTabDeleted = ( (n >> 5) & 0x01 ); -//UNUSED2008-05 Flags.bFlag3D = ( (n >> 6) & 0x01 ); -//UNUSED2008-05 Flags.bRelName = ( (n >> 7) & 0x01 ); -//UNUSED2008-05 } BOOL ScSingleRefData::operator==( const ScSingleRefData& r ) const diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index 96fca90..13d6361 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -621,48 +621,6 @@ void ScMatrix::MatTrans(ScMatrix& mRes) const } } -//UNUSED2009-05 void ScMatrix::MatCopyUpperLeft(ScMatrix& mRes) const -//UNUSED2009-05 { -//UNUSED2009-05 if (nColCount < mRes.nColCount || nRowCount < mRes.nRowCount) -//UNUSED2009-05 { -//UNUSED2009-05 DBG_ERRORFILE("ScMatrix::MatCopyUpperLeft: dimension error"); -//UNUSED2009-05 } -//UNUSED2009-05 else -//UNUSED2009-05 { -//UNUSED2009-05 if (mnValType) -//UNUSED2009-05 { -//UNUSED2009-05 ScMatValType nType; -//UNUSED2009-05 mRes.ResetIsString(); -//UNUSED2009-05 for ( SCSIZE i = 0; i < mRes.nColCount; i++ ) -//UNUSED2009-05 { -//UNUSED2009-05 SCSIZE nStart = i * nRowCount; -//UNUSED2009-05 for ( SCSIZE j = 0; j < mRes.nRowCount; j++ ) -//UNUSED2009-05 { -//UNUSED2009-05 if ( IsNonValueType( (nType = mnValType[nStart+j]) )) -//UNUSED2009-05 mRes.PutStringEntry( pMat[nStart+j].pS, nType, -//UNUSED2009-05 i*mRes.nRowCount+j ); -//UNUSED2009-05 else -//UNUSED2009-05 { -//UNUSED2009-05 mRes.pMat[i*mRes.nRowCount+j].fVal = pMat[nStart+j].fVal; -//UNUSED2009-05 mRes.mnValType[i*mRes.nRowCount+j] = nType; -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 else -//UNUSED2009-05 { -//UNUSED2009-05 mRes.DeleteIsString(); -//UNUSED2009-05 for ( SCSIZE i = 0; i < mRes.nColCount; i++ ) -//UNUSED2009-05 { -//UNUSED2009-05 SCSIZE nStart = i * nRowCount; -//UNUSED2009-05 for ( SCSIZE j = 0; j < mRes.nRowCount; j++ ) -//UNUSED2009-05 { -//UNUSED2009-05 mRes.pMat[i*mRes.nRowCount+j].fVal = pMat[nStart+j].fVal; -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 } void ScMatrix::FillDouble( double fVal, SCSIZE nC1, SCSIZE nR1, SCSIZE nC2, SCSIZE nR2 ) { diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index 66665b0..5848416 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -280,35 +280,6 @@ void ScRawToken::SetExternalName( sal_uInt16 nFileId, const String& rName ) extname.cName[n] = 0; } -//UNUSED2008-05 void ScRawToken::SetInt(int rVal) -//UNUSED2008-05 { -//UNUSED2008-05 eOp = ocPush; -//UNUSED2008-05 eType = svDouble; -//UNUSED2008-05 nValue = (double)rVal; -//UNUSED2008-05 nRefCnt = 0; -//UNUSED2008-05 -//UNUSED2008-05 } -//UNUSED2008-05 void ScRawToken::SetMatrix( ScMatrix* p ) -//UNUSED2008-05 { -//UNUSED2008-05 eOp = ocPush; -//UNUSED2008-05 eType = svMatrix; -//UNUSED2008-05 pMat = p; -//UNUSED2008-05 nRefCnt = 0; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 ScComplexRefData& ScRawToken::GetReference() -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ASSERT( lcl_IsReference( eOp, GetType() ), "GetReference: no Ref" ); -//UNUSED2008-05 return aRef; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void ScRawToken::SetReference( ScComplexRefData& rRef ) -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ASSERT( lcl_IsReference( eOp, GetType() ), "SetReference: no Ref" ); -//UNUSED2008-05 aRef = rRef; -//UNUSED2008-05 if( GetType() == svSingleRef ) -//UNUSED2008-05 aRef.Ref2 = aRef.Ref1; -//UNUSED2008-05 } void ScRawToken::SetExternal( const sal_Unicode* pStr ) { diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx index 518f713..c780be7 100644 --- a/sc/source/core/tool/viewopti.cxx +++ b/sc/source/core/tool/viewopti.cxx @@ -242,9 +242,6 @@ SvxGridItem* ScViewOptions::CreateGridItem( USHORT nId /* = SID_ATTR_GRID_OPTION // ScTpViewItem - Daten fuer die ViewOptions-TabPage //======================================================================== -//UNUSED2008-05 ScTpViewItem::ScTpViewItem( USHORT nWhichP ) : SfxPoolItem( nWhichP ) -//UNUSED2008-05 { -//UNUSED2008-05 } //------------------------------------------------------------------------ diff --git a/sc/source/filter/excel/frmbase.cxx b/sc/source/filter/excel/frmbase.cxx index 8d4acc0..a268d65 100644 --- a/sc/source/filter/excel/frmbase.cxx +++ b/sc/source/filter/excel/frmbase.cxx @@ -269,19 +269,6 @@ LotusConverterBase::~LotusConverterBase() { } -//UNUSED2008-05 void LotusConverterBase::Reset( INT32 nLen, const ScAddress& rEingPos ) -//UNUSED2008-05 { -//UNUSED2008-05 ConverterBase::Reset(); -//UNUSED2008-05 nBytesLeft = nLen; -//UNUSED2008-05 aEingPos = rEingPos; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void LotusConverterBase::Reset( INT32 nLen ) -//UNUSED2008-05 { -//UNUSED2008-05 ConverterBase::Reset(); -//UNUSED2008-05 nBytesLeft = nLen; -//UNUSED2008-05 aEingPos.Set( 0, 0, 0 ); -//UNUSED2008-05 } void LotusConverterBase::Reset( const ScAddress& rEingPos ) { diff --git a/sc/source/filter/excel/tokstack.cxx b/sc/source/filter/excel/tokstack.cxx index 0f364ba..7553a6d 100644 --- a/sc/source/filter/excel/tokstack.cxx +++ b/sc/source/filter/excel/tokstack.cxx @@ -205,20 +205,6 @@ void TokenPool::GrowDouble( void ) } -//UNUSED2009-05 void TokenPool::GrowError( void ) -//UNUSED2009-05 { -//UNUSED2009-05 UINT16 nP_ErrNew = nP_Err * 2; -//UNUSED2009-05 -//UNUSED2009-05 USHORT* pP_ErrNew = new USHORT[ nP_ErrNew ]; -//UNUSED2009-05 -//UNUSED2009-05 for( UINT16 nL = 0 ; nL < nP_Err ; nL++ ) -//UNUSED2009-05 pP_ErrNew[ nL ] = pP_Err[ nL ]; -//UNUSED2009-05 -//UNUSED2009-05 nP_Err = nP_ErrNew; -//UNUSED2009-05 -//UNUSED2009-05 delete[] pP_Err; -//UNUSED2009-05 pP_Err = pP_ErrNew; -//UNUSED2009-05 } void TokenPool::GrowTripel( void ) @@ -863,19 +849,6 @@ const String* TokenPool::GetExternal( const TokenId& rId ) const } -//UNUSED2008-05 const String* TokenPool::GetString( const TokenId& r ) const -//UNUSED2008-05 { -//UNUSED2008-05 const String* p = NULL; -//UNUSED2008-05 UINT16 n = (UINT16) r; -//UNUSED2008-05 if( n && n <= nElementAkt ) -//UNUSED2008-05 { -//UNUSED2008-05 n--; -//UNUSED2008-05 if( pType[ n ] == T_Str ) -//UNUSED2008-05 p = ppP_Str[ pElement[ n ] ]; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 return p; -//UNUSED2008-05 } ScMatrix* TokenPool::GetMatrix( unsigned int n ) const { diff --git a/sc/source/filter/excel/xehelper.cxx b/sc/source/filter/excel/xehelper.cxx index a8ef7eb..b40ed7b 100644 --- a/sc/source/filter/excel/xehelper.cxx +++ b/sc/source/filter/excel/xehelper.cxx @@ -255,23 +255,9 @@ bool XclExpAddressConverter::ConvertRange( XclRange& rXclRange, return bValidStart; } -//UNUSED2008-05 XclRange XclExpAddressConverter::CreateValidRange( const ScRange& rScRange, bool bWarn ) -//UNUSED2008-05 { -//UNUSED2008-05 return XclRange( -//UNUSED2008-05 CreateValidAddress( rScRange.aStart, bWarn ), -//UNUSED2008-05 CreateValidAddress( rScRange.aEnd, bWarn ) ); -//UNUSED2008-05 } // cell range list ------------------------------------------------------------ -//UNUSED2008-05 bool XclExpAddressConverter::CheckRangeList( const ScRangeList& rScRanges, bool bWarn ) -//UNUSED2008-05 { -//UNUSED2008-05 for( ULONG nIdx = 0, nSize = rScRanges.Count(); nIdx < nSize; ++nIdx ) -//UNUSED2008-05 if( const ScRange* pScRange = rScRanges.GetObject( nIdx ) ) -//UNUSED2008-05 if( !CheckRange( *pScRange, bWarn ) ) -//UNUSED2008-05 return false; -//UNUSED2008-05 return true; -//UNUSED2008-05 } void XclExpAddressConverter::ValidateRangeList( ScRangeList& rScRanges, bool bWarn ) { diff --git a/sc/source/filter/excel/xelink.cxx b/sc/source/filter/excel/xelink.cxx index 645abc2..7c7f2d5 100644 --- a/sc/source/filter/excel/xelink.cxx +++ b/sc/source/filter/excel/xelink.cxx @@ -798,11 +798,6 @@ SCTAB XclExpTabInfo::GetRealScTab( SCTAB nSortedScTab ) const return (nSortedScTab < mnScCnt) ? maFromSortedVec[ nSortedScTab ] : SCTAB_INVALID; } -//UNUSED2009-05 SCTAB XclExpTabInfo::GetSortedScTab( SCTAB nScTab ) const -//UNUSED2009-05 { -//UNUSED2009-05 DBG_ASSERT( nScTab < mnScCnt, "XclExpTabInfo::GetSortedScTab - sheet out of range" ); -//UNUSED2009-05 return (nScTab < mnScCnt) ? maToSortedVec[ nScTab ] : SCTAB_INVALID; -//UNUSED2009-05 } bool XclExpTabInfo::GetFlag( SCTAB nScTab, sal_uInt8 nFlags ) const { diff --git a/sc/source/filter/excel/xename.cxx b/sc/source/filter/excel/xename.cxx index 2278fcb..a7cbbcc 100644 --- a/sc/source/filter/excel/xename.cxx +++ b/sc/source/filter/excel/xename.cxx @@ -721,10 +721,6 @@ sal_uInt16 XclExpNameManager::InsertDBRange( USHORT nScDBRangeIdx ) return mxImpl->InsertDBRange( nScDBRangeIdx ); } -//UNUSED2009-05 sal_uInt16 XclExpNameManager::InsertBuiltInName( sal_Unicode cBuiltIn, XclTokenArrayRef xTokArr, SCTAB nScTab ) -//UNUSED2009-05 { -//UNUSED2009-05 return mxImpl->InsertBuiltInName( cBuiltIn, xTokArr, nScTab ); -//UNUSED2009-05 } sal_uInt16 XclExpNameManager::InsertBuiltInName( sal_Unicode cBuiltIn, const ScRange& rRange ) { diff --git a/sc/source/filter/excel/xepivot.cxx b/sc/source/filter/excel/xepivot.cxx index 3ee7c6b..efc5431 100644 --- a/sc/source/filter/excel/xepivot.cxx +++ b/sc/source/filter/excel/xepivot.cxx @@ -707,10 +707,6 @@ const XclExpPCField* XclExpPivotCache::GetField( sal_uInt16 nFieldIdx ) const return maFieldList.GetRecord( nFieldIdx ).get(); } -//UNUSED2009-05 const XclExpPCField* XclExpPivotCache::GetField( const String& rFieldName ) const -//UNUSED2009-05 { -//UNUSED2009-05 return const_cast< XclExpPivotCache* >( this )->GetFieldAcc( rFieldName ); -//UNUSED2009-05 } bool XclExpPivotCache::HasAddFields() const { @@ -1025,10 +1021,6 @@ sal_uInt16 XclExpPTField::GetLastDataInfoIndex() const return static_cast< sal_uInt16 >( maDataInfoVec.size() - 1 ); } -//UNUSED2009-05 const XclExpPTItem* XclExpPTField::GetItem( const String& rName ) const -//UNUSED2009-05 { -//UNUSED2009-05 return const_cast< XclExpPTField* >( this )->GetItemAcc( rName ); -//UNUSED2009-05 } sal_uInt16 XclExpPTField::GetItemIndex( const String& rName, sal_uInt16 nDefaultIdx ) const { diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index 51d6d3a..e8b6280 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -296,27 +296,6 @@ sal_Size XclExpStream::CopyFromStream( SvStream& rInStrm, sal_Size nBytes ) return nRet; } -//UNUSED2008-05 void XclExpStream::WriteUnicodeBuffer( const sal_uInt16* pBuffer, sal_Size nChars, sal_uInt8 nFlags ) -//UNUSED2008-05 { -//UNUSED2008-05 SetSliceSize( 0 ); -//UNUSED2008-05 if( pBuffer && (nChars > 0) ) -//UNUSED2008-05 { -//UNUSED2008-05 sal_uInt16 nCharLen = (nFlags & EXC_STRF_16BIT) ? 2 : 1; -//UNUSED2008-05 for( sal_Size nIndex = 0; nIndex < nChars; ++nIndex ) -//UNUSED2008-05 { -//UNUSED2008-05 if( mbInRec && (mnCurrSize + nCharLen > mnCurrMaxSize) ) -//UNUSED2008-05 { -//UNUSED2008-05 StartContinue(); -//UNUSED2008-05 // repeat only 16bit flag -//UNUSED2008-05 operator<<( static_cast< sal_uInt8 >( nFlags & EXC_STRF_16BIT ) ); -//UNUSED2008-05 } -//UNUSED2008-05 if( nCharLen == 2 ) -//UNUSED2008-05 operator<<( pBuffer[ nIndex ] ); -//UNUSED2008-05 else -//UNUSED2008-05 operator<<( static_cast< sal_uInt8 >( pBuffer[ nIndex ] ) ); -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } void XclExpStream::WriteUnicodeBuffer( const ScfUInt16Vec& rBuffer, sal_uInt8 nFlags ) { @@ -339,11 +318,6 @@ void XclExpStream::WriteUnicodeBuffer( const ScfUInt16Vec& rBuffer, sal_uInt8 nF } } -//UNUSED2008-05 void XclExpStream::WriteByteStringBuffer( const ByteString& rString, sal_uInt16 nMaxLen ) -//UNUSED2008-05 { -//UNUSED2008-05 SetSliceSize( 0 ); -//UNUSED2008-05 Write( rString.GetBuffer(), ::std::min< sal_Size >( rString.Len(), nMaxLen ) ); -//UNUSED2008-05 } // ER: #71367# Xcl has an obscure sense of whether starting a new record or not, // and crashes if it encounters the string header at the very end of a record. diff --git a/sc/source/filter/excel/xestring.cxx b/sc/source/filter/excel/xestring.cxx index 93126d5..f3d698b 100644 --- a/sc/source/filter/excel/xestring.cxx +++ b/sc/source/filter/excel/xestring.cxx @@ -125,19 +125,6 @@ XclExpString::XclExpString( const OUString& rString, XclStrFlags nFlags, sal_uIn Assign( rString, nFlags, nMaxLen ); } -//UNUSED2008-05 XclExpString::XclExpString( -//UNUSED2008-05 const String& rString, const XclFormatRunVec& rFormats, -//UNUSED2008-05 XclStrFlags nFlags, sal_uInt16 nMaxLen ) -//UNUSED2008-05 { -//UNUSED2008-05 Assign( rString, rFormats, nFlags, nMaxLen ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 XclExpString::XclExpString( -//UNUSED2008-05 const OUString& rString, const XclFormatRunVec& rFormats, -//UNUSED2008-05 XclStrFlags nFlags, sal_uInt16 nMaxLen ) -//UNUSED2008-05 { -//UNUSED2008-05 Assign( rString, rFormats, nFlags, nMaxLen ); -//UNUSED2008-05 } // assign --------------------------------------------------------------------- @@ -179,19 +166,6 @@ void XclExpString::AssignByte( Build( aByteStr.GetBuffer(), aByteStr.Len(), nFlags, nMaxLen ); } -//UNUSED2008-05 void XclExpString::AssignByte( sal_Unicode cChar, rtl_TextEncoding eTextEnc, XclStrFlags nFlags, sal_uInt16 nMaxLen ) -//UNUSED2008-05 { -//UNUSED2008-05 if( !cChar ) -//UNUSED2008-05 { -//UNUSED2008-05 sal_Char cByteChar = 0; -//UNUSED2008-05 Build( &cByteChar, 1, nFlags, nMaxLen ); -//UNUSED2008-05 } -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 ByteString aByteStr( &cChar, 1, eTextEnc ); // length may be >1 -//UNUSED2008-05 Build( aByteStr.GetBuffer(), aByteStr.Len(), nFlags, nMaxLen ); -//UNUSED2008-05 } -//UNUSED2008-05 } // append --------------------------------------------------------------------- @@ -200,15 +174,6 @@ void XclExpString::Append( const String& rString ) BuildAppend( rString.GetBuffer(), rString.Len() ); } -//UNUSED2008-05 void XclExpString::Append( const ::rtl::OUString& rString ) -//UNUSED2008-05 { -//UNUSED2008-05 BuildAppend( rString.getStr(), rString.getLength() ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void XclExpString::Append( sal_Unicode cChar ) -//UNUSED2008-05 { -//UNUSED2008-05 BuildAppend( &cChar, 1 ); -//UNUSED2008-05 } void XclExpString::AppendByte( const String& rString, rtl_TextEncoding eTextEnc ) { diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index 3800c2f..821b53c 100644 --- a/sc/source/filter/excel/xestyle.cxx +++ b/sc/source/filter/excel/xestyle.cxx @@ -2113,48 +2113,6 @@ XclExpDefaultXF::XclExpDefaultXF( const XclExpRoot& rRoot, bool bCellXF ) : { } -//UNUSED2008-05 void XclExpDefaultXF::SetParent( sal_uInt32 nParentXFId ) -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ASSERT( IsCellXF(), "XclExpDefaultXF::SetParent - not allowed in style XFs" ); -//UNUSED2008-05 if( IsCellXF() ) -//UNUSED2008-05 mnParentXFId = nParentXFId; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void XclExpDefaultXF::SetUsedFlags( -//UNUSED2008-05 bool bProtUsed, bool bFontUsed, bool bFmtUsed, -//UNUSED2008-05 bool bAlignUsed, bool bBorderUsed, bool bAreaUsed ) -//UNUSED2008-05 { -//UNUSED2008-05 mbProtUsed = bProtUsed; -//UNUSED2008-05 mbFontUsed = bFontUsed; -//UNUSED2008-05 mbFmtUsed = bFmtUsed; -//UNUSED2008-05 mbAlignUsed = bAlignUsed; -//UNUSED2008-05 mbBorderUsed = bBorderUsed; -//UNUSED2008-05 mbAreaUsed = bAreaUsed; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void XclExpDefaultXF::SetProtection( const XclExpCellProt& rProtection ) -//UNUSED2008-05 { -//UNUSED2008-05 maProtection = rProtection; -//UNUSED2008-05 mbProtUsed = true; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void XclExpDefaultXF::SetAlignment( const XclExpCellAlign& rAlignment ) -//UNUSED2008-05 { -//UNUSED2008-05 maAlignment = rAlignment; -//UNUSED2008-05 mbAlignUsed = true; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void XclExpDefaultXF::SetBorder( const XclExpCellBorder& rBorder ) -//UNUSED2008-05 { -//UNUSED2008-05 maBorder = rBorder; -//UNUSED2008-05 mbBorderUsed = true; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void XclExpDefaultXF::SetArea( const XclExpCellArea& rArea ) -//UNUSED2008-05 { -//UNUSED2008-05 maArea = rArea; -//UNUSED2008-05 mbAreaUsed = true; -//UNUSED2008-05 } void XclExpDefaultXF::SetFont( sal_uInt16 nXclFont ) { diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index dfed546..5a40a77 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -650,36 +650,6 @@ void XclExpBooleanCell::WriteContents( XclExpStream& rStrm ) // ---------------------------------------------------------------------------- -//UNUSED2009-05 IMPL_FIXEDMEMPOOL_NEWDEL( XclExpErrorCell, 256, 256 ) -//UNUSED2009-05 -//UNUSED2009-05 XclExpErrorCell::XclExpErrorCell( -//UNUSED2009-05 const XclExpRoot rRoot, const XclAddress& rXclPos, -//UNUSED2009-05 const ScPatternAttr* pPattern, sal_uInt32 nForcedXFId, sal_uInt8 nErrCode ) : -//UNUSED2009-05 // #i41210# always use latin script for error cells -//UNUSED2009-05 XclExpSingleCellBase( rRoot, EXC_ID3_BOOLERR, 2, rXclPos, pPattern, ApiScriptType::LATIN, nForcedXFId ), -//UNUSED2009-05 mnErrCode( nErrCode ) -//UNUSED2009-05 { -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 void XclExpErrorCell::SaveXml( XclExpXmlStream& rStrm ) -//UNUSED2009-05 { -//UNUSED2009-05 sax_fastparser::FSHelperPtr& rWorksheet = rStrm.GetCurrentStream(); -//UNUSED2009-05 rWorksheet->startElement( XML_c, -//UNUSED2009-05 XML_r, XclXmlUtils::ToOString( GetXclPos() ).getStr(), -//UNUSED2009-05 XML_s, lcl_GetStyleId( rStrm, *this ).getStr(), -//UNUSED2009-05 XML_t, "e", -//UNUSED2009-05 // OOXTODO: XML_cm, XML_vm, XML_ph -//UNUSED2009-05 FSEND ); -//UNUSED2009-05 rWorksheet->startElement( XML_v, FSEND ); -//UNUSED2009-05 rWorksheet->write( (sal_Int32) mnErrCode ); -//UNUSED2009-05 rWorksheet->endElement( XML_v ); -//UNUSED2009-05 rWorksheet->endElement( XML_c ); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 void XclExpErrorCell::WriteContents( XclExpStream& rStrm ) -//UNUSED2009-05 { -//UNUSED2009-05 rStrm << mnErrCode << EXC_BOOLERR_ERROR; -//UNUSED2009-05 } // ---------------------------------------------------------------------------- diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index 2106ac1..cdf7cca 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -2975,10 +2975,6 @@ void XclImpPictureObj::ReadPictFmla( XclImpStream& rStrm, sal_uInt16 nLinkSize ) // DFF stream conversion ====================================================== -//UNUSED2009-05 void XclImpSolverContainer::ReadSolverContainer( SvStream& rDffStrm ) -//UNUSED2009-05 { -//UNUSED2009-05 rDffStrm >> *this; -//UNUSED2009-05 } void XclImpSolverContainer::InsertSdrObjectInfo( SdrObject& rSdrObj, sal_uInt32 nDffShapeId, sal_uInt32 nDffFlags ) { diff --git a/sc/source/filter/excel/xihelper.cxx b/sc/source/filter/excel/xihelper.cxx index ad04a1f..6c490ab 100644 --- a/sc/source/filter/excel/xihelper.cxx +++ b/sc/source/filter/excel/xihelper.cxx @@ -134,23 +134,9 @@ bool XclImpAddressConverter::ConvertRange( ScRange& rScRange, return bValidStart; } -//UNUSED2009-05 ScRange XclImpAddressConverter::CreateValidRange( -//UNUSED2009-05 const XclRange& rXclRange, SCTAB nScTab1, SCTAB nScTab2, bool bWarn ) -//UNUSED2009-05 { -//UNUSED2009-05 return ScRange( -//UNUSED2009-05 CreateValidAddress( rXclRange.maFirst, nScTab1, bWarn ), -//UNUSED2009-05 CreateValidAddress( rXclRange.maLast, nScTab2, bWarn ) ); -//UNUSED2009-05 } // cell range list ------------------------------------------------------------ -//UNUSED2009-05 bool XclImpAddressConverter::CheckRangeList( const XclRangeList& rXclRanges, bool bWarn ) -//UNUSED2009-05 { -//UNUSED2009-05 for( XclRangeList::const_iterator aIt = rXclRanges.begin(), aEnd = rXclRanges.end(); aIt != aEnd; ++aIt ) -//UNUSED2009-05 if( !CheckRange( *aIt, bWarn ) ) -//UNUSED2009-05 return false; -//UNUSED2009-05 return true; -//UNUSED2009-05 } void XclImpAddressConverter::ConvertRangeList( ScRangeList& rScRanges, const XclRangeList& rXclRanges, SCTAB nScTab, bool bWarn ) @@ -251,11 +237,6 @@ EditTextObject* XclImpStringHelper::CreateTextObject( return lclCreateTextObject( rRoot, rString, EXC_FONTITEM_EDITENG, 0 ); } -//UNUSED2009-05 EditTextObject* XclImpStringHelper::CreateNoteObject( -//UNUSED2009-05 const XclImpRoot& rRoot, const XclImpString& rString ) -//UNUSED2009-05 { -//UNUSED2009-05 return lclCreateTextObject( rRoot, rString, EXC_FONTITEM_NOTE, 0 ); -//UNUSED2009-05 } ScBaseCell* XclImpStringHelper::CreateCell( const XclImpRoot& rRoot, const XclImpString& rString, sal_uInt16 nXFIndex ) diff --git a/sc/source/filter/excel/xilink.cxx b/sc/source/filter/excel/xilink.cxx index df7b2d2..ed6820b 100644 --- a/sc/source/filter/excel/xilink.cxx +++ b/sc/source/filter/excel/xilink.cxx @@ -206,20 +206,9 @@ private: const XclImpXti* GetXti( sal_uInt16 nXtiIndex ) const; /** Returns the specified SUPBOOK (external document). */ const XclImpSupbook* GetSupbook( sal_uInt16 nXtiIndex ) const; -//UNUSED2009-05 /** Returns the SUPBOOK (external workbook) specified by its URL. */ -//UNUSED2009-05 const XclImpSupbook* GetSupbook( const String& rUrl ) const; void LoadCachedValues(); -//UNUSED2009-05 /** Finds the largest range of sheet indexes in a SUPBOOK after a start sheet index. -//UNUSED2009-05 @param rnSBTabFirst (out-param) The first sheet index of the range in SUPBOOK is returned here. -//UNUSED2009-05 @param rnSBTabLast (out-param) The last sheet index of the range in SUPBOOK is returned here (inclusive). -//UNUSED2009-05 @param nSupbook The list index of the SUPBOOK. -//UNUSED2009-05 @param nSBTabStart The first allowed sheet index. Sheet ranges with an earlier start index are ignored. -//UNUSED2009-05 @return true = the return values are valid; false = nothing found. */ -//UNUSED2009-05 bool FindNextTabRange( -//UNUSED2009-05 sal_uInt16& rnSBTabFirst, sal_uInt16& rnSBTabLast, -//UNUSED2009-05 sal_uInt16 nSupbook, sal_uInt16 nSBTabStart ) const; private: typedef ::std::vector< XclImpXti > XclImpXtiVector; @@ -693,13 +682,6 @@ const XclImpSupbook* XclImpLinkManagerImpl::GetSupbook( sal_uInt16 nXtiIndex ) c return pXti ? maSupbookList.GetObject( pXti->mnSupbook ) : 0; } -//UNUSED2009-05 const XclImpSupbook* XclImpLinkManagerImpl::GetSupbook( const String& rUrl ) const -//UNUSED2009-05 { -//UNUSED2009-05 for( const XclImpSupbook* pSupbook = maSupbookList.First(); pSupbook; pSupbook = maSupbookList.Next() ) -//UNUSED2009-05 if( pSupbook->GetXclUrl() == rUrl ) -//UNUSED2009-05 return pSupbook; -//UNUSED2009-05 return 0; -//UNUSED2009-05 } void XclImpLinkManagerImpl::LoadCachedValues() { @@ -714,21 +696,6 @@ void XclImpLinkManagerImpl::LoadCachedValues() } } -//UNUSED2009-05 bool XclImpLinkManagerImpl::FindNextTabRange( -//UNUSED2009-05 sal_uInt16& rnSBTabFirst, sal_uInt16& rnSBTabLast, -//UNUSED2009-05 sal_uInt16 nSupbook, sal_uInt16 nSBTabStart ) const -//UNUSED2009-05 { -//UNUSED2009-05 rnSBTabFirst = rnSBTabLast = EXC_NOTAB; -//UNUSED2009-05 for( const XclImpXti* pXti = maXtiList.First(); pXti; pXti = maXtiList.Next() ) -//UNUSED2009-05 { -//UNUSED2009-05 if( (nSupbook == pXti->mnSupbook) && (nSBTabStart <= pXti->mnSBTabLast) && (pXti->mnSBTabFirst < rnSBTabFirst) ) -//UNUSED2009-05 { -//UNUSED2009-05 rnSBTabFirst = ::std::max( nSBTabStart, pXti->mnSBTabFirst ); -//UNUSED2009-05 rnSBTabLast = pXti->mnSBTabLast; -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 return rnSBTabFirst != EXC_NOTAB; -//UNUSED2009-05 } // ============================================================================ diff --git a/sc/source/filter/excel/xistream.cxx b/sc/source/filter/excel/xistream.cxx index 84f2838..be42611 100644 --- a/sc/source/filter/excel/xistream.cxx +++ b/sc/source/filter/excel/xistream.cxx @@ -474,12 +474,6 @@ void XclImpStream::PopPosition() } } -//UNUSED2008-05 void XclImpStream::RejectPosition() -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ASSERT( !maPosStack.empty(), "XclImpStream::RejectPosition - stack empty" ); -//UNUSED2008-05 if( !maPosStack.empty() ) -//UNUSED2008-05 maPosStack.pop_back(); -//UNUSED2008-05 } void XclImpStream::StoreGlobalPosition() { diff --git a/sc/source/filter/excel/xlpivot.cxx b/sc/source/filter/excel/xlpivot.cxx index 5c8cc57..5a8d0ab 100644 --- a/sc/source/filter/excel/xlpivot.cxx +++ b/sc/source/filter/excel/xlpivot.cxx @@ -293,10 +293,6 @@ bool XclPCField::IsStandardField() const return meFieldType == EXC_PCFIELD_STANDARD; } -//UNUSED2008-05 bool XclPCField::IsCalculatedField() const -//UNUSED2008-05 { -//UNUSED2008-05 return meFieldType == EXC_PCFIELD_CALCED; -//UNUSED2008-05 } bool XclPCField::IsStdGroupField() const { diff --git a/sc/source/filter/excel/xlstyle.cxx b/sc/source/filter/excel/xlstyle.cxx index b820d39..726486e 100644 --- a/sc/source/filter/excel/xlstyle.cxx +++ b/sc/source/filter/excel/xlstyle.cxx @@ -468,11 +468,6 @@ void XclFontData::SetApiFamily( sal_Int16 nApiFamily ) } } -//UNUSED2009-05 void XclFontData::SetApiFontEncoding( sal_Int16 nApiFontEnc ) -//UNUSED2009-05 { -//UNUSED2009-05 // API constants are equal to rtl_TextEncoding constants -//UNUSED2009-05 SetFontEncoding( static_cast< rtl_TextEncoding >( nApiFontEnc ) ); -//UNUSED2009-05 } void XclFontData::SetApiPosture( Awt::FontSlant eApiPosture ) { @@ -1492,11 +1487,6 @@ void XclNumFmtBuffer::InitializeImport() maFmtMap.clear(); } -//UNUSED2008-05 const XclNumFmt* XclNumFmtBuffer::GetFormat( sal_uInt16 nXclNumFmt ) const -//UNUSED2008-05 { -//UNUSED2008-05 XclNumFmtMap::const_iterator aIt = maFmtMap.find( nXclNumFmt ); -//UNUSED2008-05 return (aIt != maFmtMap.end()) ? &aIt->second : 0; -//UNUSED2008-05 } void XclNumFmtBuffer::InsertFormat( sal_uInt16 nXclNumFmt, const String& rFormat ) { diff --git a/sc/source/filter/ftools/fapihelper.cxx b/sc/source/filter/ftools/fapihelper.cxx index 559c0b8..e3d941d 100644 --- a/sc/source/filter/ftools/fapihelper.cxx +++ b/sc/source/filter/ftools/fapihelper.cxx @@ -124,11 +124,6 @@ Reference< XInterface > ScfApiHelper::CreateInstanceWithArgs( return xInt; } -//UNUSED2008-05 Reference< XInterface > ScfApiHelper::CreateInstanceWithArgs( -//UNUSED2008-05 SfxObjectShell* pShell, const OUString& rServiceName, const Sequence< Any >& rArgs ) -//UNUSED2008-05 { -//UNUSED2008-05 return CreateInstanceWithArgs( GetServiceFactory( pShell ), rServiceName, rArgs ); -//UNUSED2008-05 } Reference< XInterface > ScfApiHelper::CreateInstanceWithArgs( const OUString& rServiceName, const Sequence< Any >& rArgs ) diff --git a/sc/source/filter/ftools/fprogressbar.cxx b/sc/source/filter/ftools/fprogressbar.cxx index 643f3b1..a42f8b9 100644 --- a/sc/source/filter/ftools/fprogressbar.cxx +++ b/sc/source/filter/ftools/fprogressbar.cxx @@ -228,11 +228,6 @@ void ScfSimpleProgressBar::Init( sal_Size nSize ) // ============================================================================ -//UNUSED2008-05 ScfStreamProgressBar::ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, const String& rText ) : -//UNUSED2008-05 mrStrm( rStrm ) -//UNUSED2008-05 { -//UNUSED2008-05 Init( pDocShell, rText ); -//UNUSED2008-05 } ScfStreamProgressBar::ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, USHORT nResId ) : mrStrm( rStrm ) diff --git a/sc/source/filter/inc/fapihelper.hxx b/sc/source/filter/inc/fapihelper.hxx index c6c3483..75112c2 100644 --- a/sc/source/filter/inc/fapihelper.hxx +++ b/sc/source/filter/inc/fapihelper.hxx @@ -95,11 +95,6 @@ public: const ::rtl::OUString& rServiceName, const UnoAnySequence& rArgs ); -//UNUSED2008-05 /** Creates an instance from the passed service name, using the service factory of the passed object. */ -//UNUSED2008-05 static XInterfaceRef CreateInstanceWithArgs( -//UNUSED2008-05 SfxObjectShell* pShell, -//UNUSED2008-05 const ::rtl::OUString& rServiceName, -//UNUSED2008-05 const UnoAnySequence& rArgs ); /** Creates an instance from the passed service name, using the process service factory. */ static XInterfaceRef CreateInstanceWithArgs( diff --git a/sc/source/filter/inc/formel.hxx b/sc/source/filter/inc/formel.hxx index d6975ff..fb3a565 100644 --- a/sc/source/filter/inc/formel.hxx +++ b/sc/source/filter/inc/formel.hxx @@ -237,8 +237,6 @@ protected: virtual ~LotusConverterBase(); public: -//UNUSED2008-05 void Reset( INT32 nLen ); -//UNUSED2008-05 void Reset( INT32 nLen, const ScAddress& rEingPos ); void Reset( const ScAddress& rEingPos ); virtual ConvErr Convert( const ScTokenArray*& rpErg, INT32& nRest, diff --git a/sc/source/filter/inc/fprogressbar.hxx b/sc/source/filter/inc/fprogressbar.hxx index 56f0182..1c086b9 100644 --- a/sc/source/filter/inc/fprogressbar.hxx +++ b/sc/source/filter/inc/fprogressbar.hxx @@ -220,7 +220,6 @@ private: class ScfStreamProgressBar { public: -//UNUSED2008-05 explicit ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, const String& rText ); explicit ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, USHORT nResId = STR_LOAD_DOC ); /** Sets the progress bar to the current stream position. */ diff --git a/sc/source/filter/inc/op.h b/sc/source/filter/inc/op.h index 8bcf8ab..a17b01f 100644 --- a/sc/source/filter/inc/op.h +++ b/sc/source/filter/inc/op.h @@ -39,7 +39,6 @@ void OP_EOF( SvStream &aStream, USHORT nLaenge ); void OP_Integer( SvStream &aStream, USHORT nLaenge ); void OP_Number( SvStream &aStream, USHORT nLaenge ); void OP_Label( SvStream &aStream, USHORT nLaenge ); -//UNUSED2009-05 void OP_Text( SvStream &aStream, USHORT nLaenge ); // WK3 void OP_Integer3( SvStream &aStream, USHORT nLaenge ); // WK3 void OP_Number3( SvStream &aStream, USHORT nLaenge ); // WK3 void OP_Formula( SvStream &aStream, USHORT nLaenge ); diff --git a/sc/source/filter/inc/tokstack.hxx b/sc/source/filter/inc/tokstack.hxx index d097278..bdfa55f 100644 --- a/sc/source/filter/inc/tokstack.hxx +++ b/sc/source/filter/inc/tokstack.hxx @@ -176,7 +176,6 @@ class TokenPool void GrowString( void ); void GrowDouble( void ); -//UNUSED2009-05 void GrowError( void ); void GrowTripel( void ); void GrowId( void ); void GrowElement( void ); @@ -195,7 +194,6 @@ class TokenPool inline void operator >>( TokenStack& rStack ); inline const TokenId Store( void ); const TokenId Store( const double& rDouble ); -//UNUSED2008-05 const TokenId StoreError( USHORT nError ); // nur fuer Range-Names const TokenId Store( const UINT16 nIndex ); @@ -218,7 +216,6 @@ class TokenPool inline E_TYPE GetType( const TokenId& nId ) const; BOOL IsSingleOp( const TokenId& nId, const DefTokenId eId ) const; const String* GetExternal( const TokenId& nId ) const; -//UNUSED2008-05 const String* GetString( const TokenId& nId ) const; ScMatrix* GetMatrix( unsigned int n ) const; }; diff --git a/sc/source/filter/inc/xehelper.hxx b/sc/source/filter/inc/xehelper.hxx index 8e4094a..359e534 100644 --- a/sc/source/filter/inc/xehelper.hxx +++ b/sc/source/filter/inc/xehelper.hxx @@ -139,23 +139,9 @@ public: @return true = Cell range returned in rXclRange is valid (original or cropped). */ bool ConvertRange( XclRange& rXclRange, const ScRange& rScRange, bool bWarn ); -//UNUSED2008-05 /** Returns a valid cell range by moving it into allowed dimensions. -//UNUSED2008-05 @descr The start and/or end position of the range may be modified. -//UNUSED2008-05 @param rScRange The Calc cell range to convert. -//UNUSED2008-05 @param bWarn true = Sets the internal flag that produces a warning box -//UNUSED2008-05 after loading/saving the file, if the cell range contains invalid cells. -//UNUSED2008-05 @return The converted Excel cell range. */ -//UNUSED2008-05 XclRange CreateValidRange( const ScRange& rScRange, bool bWarn ); // cell range list -------------------------------------------------------- -//UNUSED2008-05 /** Checks if the passed cell range list is valid. -//UNUSED2008-05 @param rScRanges The Calc cell range list to check. -//UNUSED2008-05 @param bWarn true = Sets the internal flag that produces a warning box -//UNUSED2008-05 after loading/saving the file, if the cell range list contains at -//UNUSED2008-05 least one invalid range. -//UNUSED2008-05 @return true = Cell range list in rScRanges is completly valid. */ -//UNUSED2008-05 bool CheckRangeList( const ScRangeList& rScRanges, bool bWarn ); /** Checks and eventually crops the cell ranges to valid dimensions. @descr The start position of the ranges will not be modified. Cell diff --git a/sc/source/filter/inc/xelink.hxx b/sc/source/filter/inc/xelink.hxx index c70e496..8fdcfa8 100644 --- a/sc/source/filter/inc/xelink.hxx +++ b/sc/source/filter/inc/xelink.hxx @@ -81,8 +81,6 @@ public: /** Returns the Calc sheet index of the nSortedTab-th entry in the sorted sheet names list. */ SCTAB GetRealScTab( SCTAB nSortedScTab ) const; -//UNUSED2009-05 /** Returns the index of the passed Calc sheet in the sorted sheet names list. */ -//UNUSED2009-05 SCTAB GetSortedScTab( SCTAB nScTab ) const; /** Returns the number of Calc sheets. */ inline SCTAB GetScTabCount() const { return mnScCnt; } diff --git a/sc/source/filter/inc/xename.hxx b/sc/source/filter/inc/xename.hxx index d80b51f..99e3672 100644 --- a/sc/source/filter/inc/xename.hxx +++ b/sc/source/filter/inc/xename.hxx @@ -53,8 +53,6 @@ public: /** Inserts the Calc database range with the passed index and returns the Excel NAME index. */ sal_uInt16 InsertDBRange( USHORT nScDBRangeIdx ); -//UNUSED2009-05 /** Inserts a new built-in defined name. */ -//UNUSED2009-05 sal_uInt16 InsertBuiltInName( sal_Unicode cBuiltIn, XclTokenArrayRef xTokArr, SCTAB nScTab ); /** Inserts a new built-in defined name, referring to the passed sheet range. */ sal_uInt16 InsertBuiltInName( sal_Unicode cBuiltIn, const ScRange& rRange ); /** Inserts a new built-in defined name, referring to the passed sheet range list. */ diff --git a/sc/source/filter/inc/xepivot.hxx b/sc/source/filter/inc/xepivot.hxx index 8841a71..746f82e 100644 --- a/sc/source/filter/inc/xepivot.hxx +++ b/sc/source/filter/inc/xepivot.hxx @@ -195,8 +195,6 @@ public: sal_uInt16 GetFieldCount() const; /** Returns the specified pivot cache field. */ const XclExpPCField* GetField( sal_uInt16 nFieldIdx ) const; -//UNUSED2009-05 /** Returns a pivot cache field by its name. */ -//UNUSED2009-05 const XclExpPCField* GetField( const String& rFieldName ) const; /** Returns true, if this pivot cache contains non-standard fields (e.g. grouping fields). */ bool HasAddFields() const; @@ -298,8 +296,6 @@ public: /** Returns the index of the last inserted data info struct. */ sal_uInt16 GetLastDataInfoIndex() const; -//UNUSED2009-05 /** Returns an item by its name. */ -//UNUSED2009-05 const XclExpPTItem* GetItem( const String& rName ) const; /** Returns the list index of an item by its name. @param nDefaultIdx This value will be returned, if the item could not be found. */ sal_uInt16 GetItemIndex( const String& rName, sal_uInt16 nDefaultIdx ) const; diff --git a/sc/source/filter/inc/xestream.hxx b/sc/source/filter/inc/xestream.hxx index a8fae8f..5101517 100644 --- a/sc/source/filter/inc/xestream.hxx +++ b/sc/source/filter/inc/xestream.hxx @@ -133,8 +133,6 @@ public: // *** unicode string export is realized with helper class XclExpString *** // (slice length setting has no effect here -> disabled automatically) -//UNUSED2008-05 /** Writes Unicode buffer as 8/16 bit, repeats nFlags at start of a CONTINUE record. */ -//UNUSED2008-05 void WriteUnicodeBuffer( const sal_uInt16* pBuffer, sal_Size nChars, sal_uInt8 nFlags ); /** Writes Unicode buffer as 8/16 bit, repeats nFlags at start of a CONTINUE record. */ void WriteUnicodeBuffer( const ScfUInt16Vec& rBuffer, sal_uInt8 nFlags ); @@ -142,10 +140,6 @@ public: // *** write 8-bit-strings *** // (slice length setting has no effect here -> disabled automatically) -//UNUSED2008-05 /** Writes ByteString buffer (without string length field). */ -//UNUSED2008-05 void WriteByteStringBuffer( -//UNUSED2008-05 const ByteString& rString, -//UNUSED2008-05 sal_uInt16 nMaxLen = 0x00FF ); /** Writes string length field and ByteString buffer. */ void WriteByteString( diff --git a/sc/source/filter/inc/xestring.hxx b/sc/source/filter/inc/xestring.hxx index c612f3d..6c0d56e 100644 --- a/sc/source/filter/inc/xestring.hxx +++ b/sc/source/filter/inc/xestring.hxx @@ -79,25 +79,6 @@ public: const ::rtl::OUString& rString, XclStrFlags nFlags = EXC_STR_DEFAULT, sal_uInt16 nMaxLen = EXC_STR_MAXLEN ); -//UNUSED2008-05 /** Constructs a formatted BIFF8 Unicode string. -//UNUSED2008-05 @param rFormats The formatting runs. -//UNUSED2008-05 @param nFlags Modifiers for string export. -//UNUSED2008-05 @param nMaxLen The maximum number of characters to store in this string. */ -//UNUSED2008-05 explicit XclExpString( -//UNUSED2008-05 const String& rString, -//UNUSED2008-05 const XclFormatRunVec& rFormats, -//UNUSED2008-05 XclStrFlags nFlags = EXC_STR_DEFAULT, -//UNUSED2008-05 sal_uInt16 nMaxLen = EXC_STR_MAXLEN ); -//UNUSED2008-05 -//UNUSED2008-05 /** Constructs a formatted BIFF8 Unicode string. -//UNUSED2008-05 @param rFormats The formatting runs. -//UNUSED2008-05 @param nFlags Modifiers for string export. -//UNUSED2008-05 @param nMaxLen The maximum number of characters to store in this string. */ -//UNUSED2008-05 explicit XclExpString( -//UNUSED2008-05 const ::rtl::OUString& rString, -//UNUSED2008-05 const XclFormatRunVec& rFormats, -//UNUSED2008-05 XclStrFlags nFlags = EXC_STR_DEFAULT, -//UNUSED2008-05 sal_uInt16 nMaxLen = EXC_STR_MAXLEN ); // assign ----------------------------------------------------------------- @@ -150,14 +131,6 @@ public: XclStrFlags nFlags = EXC_STR_DEFAULT, sal_uInt16 nMaxLen = EXC_STR_MAXLEN ); -//UNUSED2008-05 /** Assigns a character, converts this object to a BIFF2-BIFF7 byte string. -//UNUSED2008-05 @param nFlags Modifiers for string export. -//UNUSED2008-05 @param nMaxLen The maximum number of characters to store in this string (for appending). */ -//UNUSED2008-05 void AssignByte( -//UNUSED2008-05 sal_Unicode cChar, -//UNUSED2008-05 rtl_TextEncoding eTextEnc, -//UNUSED2008-05 XclStrFlags nFlags = EXC_STR_DEFAULT, -//UNUSED2008-05 sal_uInt16 nMaxLen = EXC_STR_MAXLEN ); // append ----------------------------------------------------------------- @@ -165,12 +138,6 @@ public: @descr This object must be a BIFF8 Unicode string. */ void Append( const String& rString ); -//UNUSED2008-05 /** Appends a string. Uses the string flags used in constructor or last Assign(). -//UNUSED2008-05 @descr This object must be a BIFF8 Unicode string. */ -//UNUSED2008-05 void Append( const ::rtl::OUString& rString ); -//UNUSED2008-05 /** Appends a character. Uses the string flags used in constructor or last Assign(). -//UNUSED2008-05 @descr This object must be a BIFF8 Unicode string. */ -//UNUSED2008-05 void Append( sal_Unicode cChar ); /** Appends a string. Uses the string flags used in constructor or last Assign(). @descr This object must be a BIFF2-BIFF7 byte string. */ diff --git a/sc/source/filter/inc/xestyle.hxx b/sc/source/filter/inc/xestyle.hxx index 81caa30..f133b14 100644 --- a/sc/source/filter/inc/xestyle.hxx +++ b/sc/source/filter/inc/xestyle.hxx @@ -569,22 +569,6 @@ class XclExpDefaultXF : public XclExpXF public: explicit XclExpDefaultXF( const XclExpRoot& rRoot, bool bCellXF ); -//UNUSED2008-05 /** Sets the parent XF ID. Only allowed for cell XFs. */ -//UNUSED2008-05 void SetParent( sal_uInt32 nParentXFId ); -//UNUSED2008-05 -//UNUSED2008-05 /** Sets all "attribute used" flags explicitely. -//UNUSED2008-05 @descr The following Set***() functions set the appropriate flag too. */ -//UNUSED2008-05 void SetUsedFlags( -//UNUSED2008-05 bool bProtUsed, bool bFontUsed, bool bFmtUsed, -//UNUSED2008-05 bool bAlignUsed, bool bBorderUsed, bool bAreaUsed ); -//UNUSED2008-05 /** Sets the cell protection flags. */ -//UNUSED2008-05 void SetProtection( const XclExpCellProt& rProtection ); -//UNUSED2008-05 /** Sets cell alignment attributes. */ -//UNUSED2008-05 void SetAlignment( const XclExpCellAlign& rAlignment ); -//UNUSED2008-05 /** Sets a cell border style. */ -//UNUSED2008-05 void SetBorder( const XclExpCellBorder& rBorder ); -//UNUSED2008-05 /** Sets a cell area style. */ -//UNUSED2008-05 void SetArea( const XclExpCellArea& rArea ); /** Sets the Excel font index. */ void SetFont( sal_uInt16 nXclFont ); diff --git a/sc/source/filter/inc/xetable.hxx b/sc/source/filter/inc/xetable.hxx index dcb7823..d1ba0f8 100644 --- a/sc/source/filter/inc/xetable.hxx +++ b/sc/source/filter/inc/xetable.hxx @@ -406,23 +406,6 @@ private: // ---------------------------------------------------------------------------- -//UNUSED2009-05 /** Represents a BOOLERR record that describes a cell with an error code. */ -//UNUSED2009-05 class XclExpErrorCell : public XclExpSingleCellBase -//UNUSED2009-05 { -//UNUSED2009-05 DECL_FIXEDMEMPOOL_NEWDEL( XclExpErrorCell ) -//UNUSED2009-05 -//UNUSED2009-05 public: -//UNUSED2009-05 explicit XclExpErrorCell( const XclExpRoot rRoot, const XclAddress& rXclPos, -//UNUSED2009-05 const ScPatternAttr* pPattern, sal_uInt32 nForcedXFId, -//UNUSED2009-05 sal_uInt8 nErrCode ); -//UNUSED2009-05 -//UNUSED2009-05 virtual void SaveXml( XclExpXmlStream& rStrm ); -//UNUSED2009-05 private: -//UNUSED2009-05 virtual void WriteContents( XclExpStream& rStrm ); -//UNUSED2009-05 -//UNUSED2009-05 private: -//UNUSED2009-05 sal_uInt8 mnErrCode; /// The error code. -//UNUSED2009-05 }; // ---------------------------------------------------------------------------- diff --git a/sc/source/filter/inc/xiescher.hxx b/sc/source/filter/inc/xiescher.hxx index b845207..2d1ae84 100644 --- a/sc/source/filter/inc/xiescher.hxx +++ b/sc/source/filter/inc/xiescher.hxx @@ -922,8 +922,6 @@ private: class XclImpSolverContainer : public SvxMSDffSolverContainer { public: -//UNUSED2009-05 /** Reads the entire solver container. Stream must point to begin of container header. */ -//UNUSED2009-05 void ReadSolverContainer( SvStream& rDffStrm ); /** Inserts information about a new SdrObject. */ void InsertSdrObjectInfo( SdrObject& rSdrObj, sal_uInt32 nDffShapeId, sal_uInt32 nDffFlags ); diff --git a/sc/source/filter/inc/xihelper.hxx b/sc/source/filter/inc/xihelper.hxx index 05412c3..ac7a268 100644 --- a/sc/source/filter/inc/xihelper.hxx +++ b/sc/source/filter/inc/xihelper.hxx @@ -86,24 +86,9 @@ public: bool ConvertRange( ScRange& rScRange, const XclRange& rXclRange, SCTAB nScTab1, SCTAB nScTab2, bool bWarn ); -//UNUSED2009-05 /** Returns a valid cell range by moving it into allowed dimensions. -//UNUSED2009-05 @descr The start and/or end position of the range may be modified. -//UNUSED2009-05 @param rXclRange The Excel cell range to convert. -//UNUSED2009-05 @param bWarn true = Sets the internal flag that produces a warning box -//UNUSED2009-05 after loading/saving the file, if the cell range contains invalid cells. -//UNUSED2009-05 @return The converted Calc cell range. */ -//UNUSED2009-05 ScRange CreateValidRange( const XclRange& rXclRange, -//UNUSED2009-05 SCTAB nScTab1, SCTAB nScTab2, bool bWarn ); // cell range list -------------------------------------------------------- -//UNUSED2009-05 /** Checks if the passed cell range list is valid. -//UNUSED2009-05 @param rXclRanges The Excel cell range list to check. -//UNUSED2009-05 @param bWarn true = Sets the internal flag that produces a warning box -//UNUSED2009-05 after loading/saving the file, if the cell range list contains at -//UNUSED2009-05 least one invalid range. -//UNUSED2009-05 @return true = Cell range list in rScRanges is completly valid. */ -//UNUSED2009-05 bool CheckRangeList( const XclRangeList& rXclRanges, bool bWarn ); /** Converts the passed Excel cell range list to a Calc cell range list. @descr The start position of the ranges will not be modified. Cell @@ -136,11 +121,6 @@ public: const XclImpRoot& rRoot, const XclImpString& rString ); -//UNUSED2009-05 /** Returns a new edit engine text object for a cell note. -//UNUSED2009-05 @param nXFIndex Index to XF for first text portion (for escapement). */ -//UNUSED2009-05 static EditTextObject* CreateNoteObject( -//UNUSED2009-05 const XclImpRoot& rRoot, -//UNUSED2009-05 const XclImpString& rString ); /** Creates a new text cell or edit cell for a Calc document. @param nXFIndex Index to XF for first text portion (for escapement). */ diff --git a/sc/source/filter/inc/xistream.hxx b/sc/source/filter/inc/xistream.hxx index de4e86b..65b24d0 100644 --- a/sc/source/filter/inc/xistream.hxx +++ b/sc/source/filter/inc/xistream.hxx @@ -304,8 +304,6 @@ public: /** Seeks to last position from user position stack. @descr This position will be removed from the stack. */ void PopPosition(); -//UNUSED2008-05 /** Removes last position from user position stack, but does not seek to it. */ -//UNUSED2008-05 void RejectPosition(); /** Stores current position. This position keeps valid in all records. */ void StoreGlobalPosition(); diff --git a/sc/source/filter/inc/xlpivot.hxx b/sc/source/filter/inc/xlpivot.hxx index b79218c..1959a18 100644 --- a/sc/source/filter/inc/xlpivot.hxx +++ b/sc/source/filter/inc/xlpivot.hxx @@ -527,8 +527,6 @@ public: /** Returns true, if this is a standard field build directly from source data. */ bool IsStandardField() const; -//UNUSED2008-05 /** Returns true, if the items of the field are calculated from a formula. */ -//UNUSED2008-05 bool IsCalculatedField() const; /** Returns true, if this field is a grouping field. */ bool IsStdGroupField() const; diff --git a/sc/source/filter/inc/xlstyle.hxx b/sc/source/filter/inc/xlstyle.hxx index b7d0857..5371429 100644 --- a/sc/source/filter/inc/xlstyle.hxx +++ b/sc/source/filter/inc/xlstyle.hxx @@ -377,8 +377,6 @@ struct XclFontData void SetApiHeight( float fPoint ); /** Sets the API font family. */ void SetApiFamily( sal_Int16 nApiFamily ); -//UNUSED2009-05 /** Sets the API font text encoding. */ -//UNUSED2009-05 void SetApiFontEncoding( sal_Int16 nApiFontEnc ); /** Sets the API font posture. */ void SetApiPosture( ::com::sun::star::awt::FontSlant eApiPosture ); /** Sets the API font weight. */ @@ -475,8 +473,6 @@ protected: /** Returns the current number format map. */ inline const XclNumFmtMap& GetFormatMap() const { return maFmtMap; } -//UNUSED2008-05 /** Returns the number format with the specified Excel format index. */ -//UNUSED2008-05 const XclNumFmt* GetFormat( sal_uInt16 nXclNumFmt ) const; /** Inserts a new number format for the specified Excel format index. */ void InsertFormat( sal_uInt16 nXclNumFmt, const String& rFormat ); diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx index b51774f..4a7fd15 100644 --- a/sc/source/filter/lotus/op.cxx +++ b/sc/source/filter/lotus/op.cxx @@ -168,20 +168,6 @@ void OP_Label( SvStream& r, UINT16 n ) } -//UNUSED2009-05 void OP_Text( SvStream& r, UINT16 n ) // WK3 -//UNUSED2009-05 { -//UNUSED2009-05 UINT16 nRow; -//UNUSED2009-05 BYTE nCol, nTab; -//UNUSED2009-05 sal_Char pText[ 256 ]; -//UNUSED2009-05 -//UNUSED2009-05 r >> nRow >> nTab >> nCol; -//UNUSED2009-05 n -= 4; -//UNUSED2009-05 -//UNUSED2009-05 r.Read( pText, n ); -//UNUSED2009-05 pText[ n ] = 0; // zur Sicherheit Nullterminator anhaengen -//UNUSED2009-05 -//UNUSED2009-05 PutFormString( static_cast (nCol), static_cast (nRow), static_cast (nTab), pText ); -//UNUSED2009-05 } void OP_Formula( SvStream& r, UINT16 /*n*/ ) diff --git a/sc/source/filter/xml/XMLConverter.cxx b/sc/source/filter/xml/XMLConverter.cxx index ee14e3b..a61346c 100644 --- a/sc/source/filter/xml/XMLConverter.cxx +++ b/sc/source/filter/xml/XMLConverter.cxx @@ -353,12 +353,6 @@ void ScXMLConverter::ConvertDateTimeToString(const DateTime& aDateTime, rtl::OUS SvXMLUnitConverter::convertDateTime(sDate, aAPIDateTime); } -//UNUSED2008-05 void ScXMLConverter::ConvertStringToDateTime(const rtl::OUString& sDate, DateTime& aDateTime, SvXMLUnitConverter* /* pUnitConverter */) -//UNUSED2008-05 { -//UNUSED2008-05 com::sun::star::util::DateTime aAPIDateTime; -//UNUSED2008-05 SvXMLUnitConverter::convertDateTime(aAPIDateTime, sDate); -//UNUSED2008-05 ConvertAPIToCoreDateTime(aAPIDateTime, aDateTime); -//UNUSED2008-05 } void ScXMLConverter::ConvertCoreToAPIDateTime(const DateTime& aDateTime, util::DateTime& rDateTime) { diff --git a/sc/source/filter/xml/XMLConverter.hxx b/sc/source/filter/xml/XMLConverter.hxx index 3cbb085..c51c837 100644 --- a/sc/source/filter/xml/XMLConverter.hxx +++ b/sc/source/filter/xml/XMLConverter.hxx @@ -108,8 +108,6 @@ public: const sal_Bool bIsFormula = sal_True); // EXPORT: Core Date Time static void ConvertDateTimeToString(const DateTime& aDateTime, rtl::OUStringBuffer& sDate); -//UNUSED2008-05 // IMPORT: Core Date Time -//UNUSED2008-05 static void ConvertStringToDateTime(const rtl::OUString& sDate, DateTime& aDateTime, SvXMLUnitConverter* pUnitConverter); static void ConvertCoreToAPIDateTime(const DateTime& aDateTime, com::sun::star::util::DateTime& rDateTime); diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index d46080d..00f23c7 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -2768,24 +2768,6 @@ void ScXMLExport::CollectInternalShape( uno::Reference< drawing::XShape > xShape } } -//UNUSED2008-05 sal_Bool ScXMLExport::GetMerge (const uno::Reference & xTable, -//UNUSED2008-05 const sal_Int32 nCol, const sal_Int32 nRow, -//UNUSED2008-05 table::CellRangeAddress& aCellAddress) -//UNUSED2008-05 { -//UNUSED2008-05 uno::Reference xSheetCellRange(xTable->getCellRangeByPosition(nCol, nRow, nCol, nRow), uno::UNO_QUERY); -//UNUSED2008-05 if (xSheetCellRange.is()) -//UNUSED2008-05 { -//UNUSED2008-05 uno::Reference xCursor(xTable->createCursorByRange(xSheetCellRange)); -//UNUSED2008-05 if (xCursor.is()) -//UNUSED2008-05 { -//UNUSED2008-05 uno::Reference xCellAddress (xCursor, uno::UNO_QUERY); -//UNUSED2008-05 xCursor->collapseToMergedArea(); -//UNUSED2008-05 aCellAddress = xCellAddress->getRangeAddress(); -//UNUSED2008-05 return sal_True; -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 return sal_False; -//UNUSED2008-05 } sal_Bool ScXMLExport::GetMerged (const table::CellRangeAddress* pCellAddress, const uno::Reference & xTable) @@ -2832,50 +2814,6 @@ sal_Bool ScXMLExport::GetMerged (const table::CellRangeAddress* pCellAddress, return !bReady; } -//UNUSED2008-05 sal_Bool ScXMLExport::IsMatrix (const uno::Reference & xCellRange, -//UNUSED2008-05 const uno::Reference & xTable, -//UNUSED2008-05 const sal_Int32 nCol, const sal_Int32 nRow, -//UNUSED2008-05 table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const -//UNUSED2008-05 { -//UNUSED2008-05 bIsFirst = sal_False; -//UNUSED2008-05 uno::Reference xArrayFormulaRange (xCellRange->getCellRangeByPosition(nCol,nRow,nCol,nRow), uno::UNO_QUERY); -//UNUSED2008-05 if (xArrayFormulaRange.is()) -//UNUSED2008-05 { -//UNUSED2008-05 rtl::OUString sArrayFormula(xArrayFormulaRange->getArrayFormula()); -//UNUSED2008-05 if (sArrayFormula.getLength()) -//UNUSED2008-05 { -//UNUSED2008-05 uno::Reference xMatrixSheetCellRange (xArrayFormulaRange, uno::UNO_QUERY); -//UNUSED2008-05 if (xMatrixSheetCellRange.is()) -//UNUSED2008-05 { -//UNUSED2008-05 uno::Reference xMatrixSheetCursor(xTable->createCursorByRange(xMatrixSheetCellRange)); -//UNUSED2008-05 if (xMatrixSheetCursor.is()) -//UNUSED2008-05 { -//UNUSED2008-05 xMatrixSheetCursor->collapseToCurrentArray(); -//UNUSED2008-05 uno::Reference xMatrixCellAddress (xMatrixSheetCursor, uno::UNO_QUERY); -//UNUSED2008-05 if (xMatrixCellAddress.is()) -//UNUSED2008-05 { -//UNUSED2008-05 aCellAddress = xMatrixCellAddress->getRangeAddress(); -//UNUSED2008-05 if ((aCellAddress.StartColumn == nCol && aCellAddress.StartRow == nRow) && -//UNUSED2008-05 (aCellAddress.EndColumn > nCol || aCellAddress.EndRow > nRow)) -//UNUSED2008-05 { -//UNUSED2008-05 bIsFirst = sal_True; -//UNUSED2008-05 return sal_True; -//UNUSED2008-05 } -//UNUSED2008-05 else if (aCellAddress.StartColumn != nCol || aCellAddress.StartRow != nRow || -//UNUSED2008-05 aCellAddress.EndColumn != nCol || aCellAddress.EndRow != nRow) -//UNUSED2008-05 return sal_True; -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 bIsFirst = sal_True; -//UNUSED2008-05 return sal_True; -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 return sal_False; -//UNUSED2008-05 } sal_Bool ScXMLExport::IsMatrix (const ScAddress& aCell, table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const @@ -3566,13 +3504,6 @@ sal_Bool ScXMLExport::IsEditCell(const com::sun::star::table::CellAddress& aAddr return sal_False; } -//UNUSED2008-05 sal_Bool ScXMLExport::IsEditCell(const com::sun::star::uno::Reference & xCell) const -//UNUSED2008-05 { -//UNUSED2008-05 uno::Reference xAddressable (xCell, uno::UNO_QUERY); -//UNUSED2008-05 if ( xAddressable.is() ) -//UNUSED2008-05 return IsEditCell(xAddressable->getCellAddress()); -//UNUSED2008-05 return sal_False; -//UNUSED2008-05 } sal_Bool ScXMLExport::IsEditCell(ScMyCell& rCell) const { @@ -3610,43 +3541,6 @@ sal_Bool ScXMLExport::IsMultiLineFormulaCell(ScMyCell& rCell) const return static_cast(rCell.pBaseCell)->IsMultilineResult(); } -//UNUSED2008-05 sal_Bool ScXMLExport::IsAnnotationEqual(const uno::Reference& /* xCell1 */, -//UNUSED2008-05 const uno::Reference& /* xCell2 */) -//UNUSED2008-05 { -//UNUSED2008-05 // no longer compareable, because the position and size and other attributes can also differ -//UNUSED2008-05 -//UNUSED2008-05 /* uno::Reference xSheetAnnotationAnchor1(xCell1, uno::UNO_QUERY); -//UNUSED2008-05 uno::Reference xSheetAnnotationAnchor2(xCell2, uno::UNO_QUERY); -//UNUSED2008-05 if (xSheetAnnotationAnchor1.is() && xSheetAnnotationAnchor2.is()) -//UNUSED2008-05 { -//UNUSED2008-05 uno::Reference xSheetAnnotation1(xSheetAnnotationAnchor1->getAnnotation()); -//UNUSED2008-05 uno::Reference xSheetAnnotation2(xSheetAnnotationAnchor2->getAnnotation()); -//UNUSED2008-05 uno::Reference xSimpleText1(xSheetAnnotation1, uno::UNO_QUERY); -//UNUSED2008-05 uno::Reference xSimpleText2(xSheetAnnotation2, uno::UNO_QUERY); -//UNUSED2008-05 if (xSheetAnnotation1.is() && xSimpleText1.is() && -//UNUSED2008-05 xSheetAnnotation2.is() && xSimpleText2.is()) -//UNUSED2008-05 { -//UNUSED2008-05 rtl::OUString sText1(xSimpleText1->getString()); -//UNUSED2008-05 rtl::OUString sText2(xSimpleText2->getString()); -//UNUSED2008-05 sal_Int32 nLength1(sText1.getLength()); -//UNUSED2008-05 sal_Int32 nLength2(sText2.getLength()); -//UNUSED2008-05 if (nLength1 && nLength2) -//UNUSED2008-05 if (sText1 == sText2 && -//UNUSED2008-05 xSheetAnnotation1->getAuthor() == xSheetAnnotation2->getAuthor() && -//UNUSED2008-05 xSheetAnnotation1->getDate() == xSheetAnnotation2->getDate() && -//UNUSED2008-05 xSheetAnnotation1->getIsVisible() == xSheetAnnotation2->getIsVisible()) -//UNUSED2008-05 return sal_True; -//UNUSED2008-05 else -//UNUSED2008-05 return sal_False; -//UNUSED2008-05 else -//UNUSED2008-05 if (nLength1 || nLength2) -//UNUSED2008-05 return sal_False; -//UNUSED2008-05 else -//UNUSED2008-05 return sal_True; -//UNUSED2008-05 } -//UNUSED2008-05 }*/ -//UNUSED2008-05 return sal_False; -//UNUSED2008-05 } sal_Bool ScXMLExport::IsCellEqual (ScMyCell& aCell1, ScMyCell& aCell2) { diff --git a/sc/source/filter/xml/xmlexprt.hxx b/sc/source/filter/xml/xmlexprt.hxx index f8003c4..b3c89b5 100644 --- a/sc/source/filter/xml/xmlexprt.hxx +++ b/sc/source/filter/xml/xmlexprt.hxx @@ -173,9 +173,6 @@ class ScXMLExport : public SvXMLExport void FillFieldGroup(ScOutlineArray* pFields, ScMyOpenCloseColumnRowGroup* pGroups); void FillColumnRowGroups(); -//UNUSED2008-05 sal_Bool GetMerge (const com::sun::star::uno::Reference & xTable, -//UNUSED2008-05 sal_Int32 nCol, sal_Int32 nRow, -//UNUSED2008-05 com::sun::star::table::CellRangeAddress& aCellAddress); sal_Bool GetMerged (const com::sun::star::table::CellRangeAddress* pCellRange, const com::sun::star::uno::Reference & xTable); @@ -193,11 +190,8 @@ class ScXMLExport : public SvXMLExport sal_Bool IsCellTypeEqual (const ScMyCell& aCell1, const ScMyCell& aCell2) const; sal_Bool IsEditCell(const com::sun::star::table::CellAddress& aAddress, ScMyCell* pMyCell = NULL) const; -//UNUSED2008-05 sal_Bool IsEditCell(const com::sun::star::uno::Reference & xCell) const; sal_Bool IsEditCell(ScMyCell& rCell) const; sal_Bool IsMultiLineFormulaCell(ScMyCell& rCell) const; -//UNUSED2008-05 sal_Bool IsAnnotationEqual(const com::sun::star::uno::Reference& xCell1, -//UNUSED2008-05 const com::sun::star::uno::Reference& xCell2); sal_Bool IsCellEqual (ScMyCell& aCell1, ScMyCell& aCell2); void WriteCalculationSettings(const com::sun::star::uno::Reference & xSpreadDoc); @@ -242,10 +236,6 @@ public: static sal_Int16 GetFieldUnit(); inline ScDocument* GetDocument() { return pDoc; } inline const ScDocument* GetDocument() const { return pDoc; } -//UNUSED2008-05 sal_Bool IsMatrix (const com::sun::star::uno::Reference & xCellRange, -//UNUSED2008-05 const com::sun::star::uno::Reference & xTable, -//UNUSED2008-05 const sal_Int32 nCol, const sal_Int32 nRow, -//UNUSED2008-05 com::sun::star::table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const; sal_Bool IsMatrix (const ScAddress& aCell, com::sun::star::table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const; diff --git a/sc/source/filter/xml/xmlimprt.hxx b/sc/source/filter/xml/xmlimprt.hxx index 7ef0e65..472904f 100644 --- a/sc/source/filter/xml/xmlimprt.hxx +++ b/sc/source/filter/xml/xmlimprt.hxx @@ -859,9 +859,6 @@ public: // SvXMLImportContextRef GetStyles() const { return xStyles; } const SvXMLTokenMap& GetDocElemTokenMap(); -//UNUSED2008-05 const SvXMLTokenMap& GetStylesElemTokenMap(); -//UNUSED2008-05 const SvXMLTokenMap& GetStylesAttrTokenMap(); -//UNUSED2008-05 const SvXMLTokenMap& GetStyleElemTokenMap(); const SvXMLTokenMap& GetBodyElemTokenMap(); const SvXMLTokenMap& GetContentValidationsElemTokenMap(); const SvXMLTokenMap& GetContentValidationElemTokenMap(); diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 327bf67..c880698 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -97,34 +97,6 @@ ScXMLImportWrapper::ScXMLImportWrapper(ScDocument& rD, SfxMedium* pM, const uno: DBG_ASSERT( pMedium || xStorage.is(), "ScXMLImportWrapper: Medium or Storage must be set" ); } -//UNUSED2008-05 uno::Reference ScXMLImportWrapper::GetStatusIndicator( -//UNUSED2008-05 uno::Reference < frame::XModel> & rModel) -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ERROR( "The status indicator from medium must be used!" ); -//UNUSED2008-05 -//UNUSED2008-05 uno::Reference xStatusIndicator; -//UNUSED2008-05 -//UNUSED2008-05 if (rModel.is()) -//UNUSED2008-05 { -//UNUSED2008-05 uno::Reference xController( rModel->getCurrentController()); -//UNUSED2008-05 if ( xController.is()) -//UNUSED2008-05 { -//UNUSED2008-05 uno::Reference xFactory( xController->getFrame(), uno::UNO_QUERY ); -//UNUSED2008-05 if ( xFactory.is()) -//UNUSED2008-05 { -//UNUSED2008-05 try -//UNUSED2008-05 { -//UNUSED2008-05 xStatusIndicator.set(xFactory->createStatusIndicator()); -//UNUSED2008-05 } -//UNUSED2008-05 catch ( lang::DisposedException e ) -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ERROR("Exception while trying to get a Status Indicator"); -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 return xStatusIndicator; -//UNUSED2008-05 } uno::Reference ScXMLImportWrapper::GetStatusIndicator() { diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index 60a0b46..b562360 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -735,7 +735,6 @@ private: ::accessibility::AccessibleShape* GetAccShape(const ScShapeChild& rShape) const; ::accessibility::AccessibleShape* GetAccShape(const ScShapeChildVec& rShapes, sal_Int32 nIndex) const; void FillShapes(const Rectangle& aPixelPaintRect, const MapMode& aMapMode, sal_uInt8 nRangeId); -//UNUSED2008-05 sal_Bool FindShape(ScShapeChildVec& rShapes, const uno::Reference & xShape, ScShapeChildVec::iterator& rItr) const; // void AddShape(const uno::Reference& xShape, SdrLayerID aLayerID); // void RemoveShape(const uno::Reference& xShape, SdrLayerID aLayerID); @@ -1201,21 +1200,6 @@ void ScShapeChilds::FillShapes(const Rectangle& aPixelPaintRect, const MapMode& } } -//UNUSED2008-05 sal_Bool ScShapeChilds::FindShape(ScShapeChildVec& rShapes, const uno::Reference & xShape, ScShapeChildVec::iterator& rItr) const -//UNUSED2008-05 { -//UNUSED2008-05 sal_Bool bResult(sal_False); -//UNUSED2008-05 ScShapeChild aShape; -//UNUSED2008-05 aShape.mxShape = xShape; -//UNUSED2008-05 rItr = std::lower_bound(rShapes.begin(), rShapes.end(), aShape, ScShapeChildLess()); -//UNUSED2008-05 if (rItr->mxShape.get() == xShape.get()) -//UNUSED2008-05 bResult = sal_True; // if the shape is found -//UNUSED2008-05 -//UNUSED2008-05 /*#ifdef DBG_UTIL // test whether it finds truly the correct shape (perhaps it is not really sorted) -//UNUSED2008-05 ScShapeChildVec::iterator aDebugItr = std::find(rShapes.begin(), rShapes.end(), aShape); -//UNUSED2008-05 DBG_ASSERT(rItr == aDebugItr, "wrong Shape found"); -//UNUSED2008-05 #endif*/ -//UNUSED2008-05 return bResult; -//UNUSED2008-05 } /*void ScShapeChilds::AddShape(const uno::Reference& xShape, SdrLayerID aLayerID) { @@ -1903,40 +1887,4 @@ ScShapeChilds* ScAccessibleDocumentPagePreview::GetShapeChilds() return mpShapeChilds; } -//UNUSED2009-05 uno::Reference < XAccessible > ScAccessibleDocumentPagePreview::GetCurrentAccessibleTable() -//UNUSED2009-05 { -//UNUSED2009-05 if (!mpTable) -//UNUSED2009-05 { -//UNUSED2009-05 if ( mpViewShell ) -//UNUSED2009-05 { -//UNUSED2009-05 const ScPreviewLocationData& rData = mpViewShell->GetLocationData(); -//UNUSED2009-05 ScPagePreviewCountData aCount( rData, mpViewShell->GetWindow(), GetNotesChilds(), GetShapeChilds() ); -//UNUSED2009-05 //! order is background shapes, header, table or notes, footer, foreground shapes, controls -//UNUSED2009-05 sal_Int32 nIndex (aCount.nBackShapes + aCount.nHeaders); -//UNUSED2009-05 -//UNUSED2009-05 mpTable = new ScAccessiblePreviewTable( this, mpViewShell, nIndex ); -//UNUSED2009-05 mpTable->acquire(); -//UNUSED2009-05 mpTable->Init(); -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 return mpTable; -//UNUSED2009-05 } - -//UNUSED2009-05 void ScAccessibleDocumentPagePreview::ChildCountChanged() -//UNUSED2009-05 { -//UNUSED2009-05 if (mpViewShell) -//UNUSED2009-05 { -//UNUSED2009-05 const ScPreviewLocationData& rData = mpViewShell->GetLocationData(); -//UNUSED2009-05 ScPagePreviewCountData aCount( rData, mpViewShell->GetWindow(), GetNotesChilds(), GetShapeChilds() ); -//UNUSED2009-05 //! order is background shapes, header, table or notes, footer, foreground shapes, controls -//UNUSED2009-05 if(mpHeader) -//UNUSED2009-05 mpHeader->SetCurrentIndexInParent(aCount.nBackShapes); -//UNUSED2009-05 if (mpTable) -//UNUSED2009-05 mpTable->SetCurrentIndexInParent(aCount.nBackShapes + aCount.nHeaders); -//UNUSED2009-05 if (mpFooter) -//UNUSED2009-05 mpFooter->SetCurrentIndexInParent(aCount.nBackShapes + aCount.nHeaders + aCount.nTables + aCount.nNoteParagraphs); -//UNUSED2009-05 -//UNUSED2009-05 if (mpNotesChilds) -//UNUSED2009-05 mpNotesChilds->SetOffset(aCount.nBackShapes + aCount.nHeaders); -//UNUSED2009-05 } -//UNUSED2009-05 } + diff --git a/sc/source/ui/Accessibility/AccessibleText.cxx b/sc/source/ui/Accessibility/AccessibleText.cxx index 50e2484..9957e95 100644 --- a/sc/source/ui/Accessibility/AccessibleText.cxx +++ b/sc/source/ui/Accessibility/AccessibleText.cxx @@ -1407,18 +1407,6 @@ SvxViewForwarder* ScAccessiblePreviewCellTextData::GetViewForwarder() return mpViewForwarder; } -//UNUSED2008-05 IMPL_LINK(ScAccessiblePreviewCellTextData, NotifyHdl, EENotify*, aNotify) -//UNUSED2008-05 { -//UNUSED2008-05 if( aNotify ) -//UNUSED2008-05 { -//UNUSED2008-05 ::std::auto_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( aNotify); -//UNUSED2008-05 -//UNUSED2008-05 if( aHint.get() ) -//UNUSED2008-05 GetBroadcaster().Broadcast( *aHint.get() ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 return 0; -//UNUSED2008-05 } ScDocShell* ScAccessiblePreviewCellTextData::GetDocShell(ScPreviewShell* pViewShell) { @@ -1535,18 +1523,6 @@ SvxViewForwarder* ScAccessiblePreviewHeaderCellTextData::GetViewForwarder() return mpViewForwarder; } -//UNUSED2008-05 IMPL_LINK(ScAccessiblePreviewHeaderCellTextData, NotifyHdl, EENotify*, aNotify) -//UNUSED2008-05 { -//UNUSED2008-05 if( aNotify ) -//UNUSED2008-05 { -//UNUSED2008-05 ::std::auto_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( aNotify); -//UNUSED2008-05 -//UNUSED2008-05 if( aHint.get() ) -//UNUSED2008-05 GetBroadcaster().Broadcast( *aHint.get() ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 return 0; -//UNUSED2008-05 } ScDocShell* ScAccessiblePreviewHeaderCellTextData::GetDocShell(ScPreviewShell* pViewShell) { diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 2a832cd..f58b6f2 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -611,19 +611,6 @@ String __EXPORT ScInputWindow::GetText() const } -//UNUSED2008-05 EditView* ScInputWindow::ActivateEdit( const String& rText, -//UNUSED2008-05 const ESelection& rSel ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( !aTextWindow.IsInputActive() ) -//UNUSED2008-05 { -//UNUSED2008-05 aTextWindow.StartEditEngine(); -//UNUSED2008-05 aTextWindow.GrabFocus(); -//UNUSED2008-05 aTextWindow.SetTextString( rText ); -//UNUSED2008-05 aTextWindow.GetEditView()->SetSelection( rSel ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 return aTextWindow.GetEditView(); -//UNUSED2008-05 } BOOL ScInputWindow::IsInputActive() { diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx index 77c22bd..e32729b 100644 --- a/sc/source/ui/app/scdll.cxx +++ b/sc/source/ui/app/scdll.cxx @@ -130,31 +130,6 @@ //------------------------------------------------------------------ -//UNUSED2008-05 // filter detection can't use ScFilterOptions (in sc-dll), -//UNUSED2008-05 // so access to wk3 flag must be implemented here again -//UNUSED2008-05 -//UNUSED2008-05 class ScLibOptions : public utl::ConfigItem -//UNUSED2008-05 { -//UNUSED2008-05 BOOL bWK3Flag; -//UNUSED2008-05 -//UNUSED2008-05 public: -//UNUSED2008-05 ScLibOptions(); -//UNUSED2008-05 BOOL GetWK3Flag() const { return bWK3Flag; } -//UNUSED2008-05 }; -//UNUSED2008-05 -//UNUSED2008-05 #define CFGPATH_LIBFILTER "Office.Calc/Filter/Import/Lotus123" -//UNUSED2008-05 #define ENTRYSTR_WK3 "WK3" -//UNUSED2008-05 -//UNUSED2008-05 ScLibOptions::ScLibOptions() : -//UNUSED2008-05 ConfigItem( rtl::OUString::createFromAscii( CFGPATH_LIBFILTER ) ), -//UNUSED2008-05 bWK3Flag( FALSE ) -//UNUSED2008-05 { -//UNUSED2008-05 com::sun::star::uno::Sequence aNames(1); -//UNUSED2008-05 aNames[0] = rtl::OUString::createFromAscii( ENTRYSTR_WK3 ); -//UNUSED2008-05 com::sun::star::uno::Sequence aValues = GetProperties(aNames); -//UNUSED2008-05 if ( aValues.getLength() == 1 && aValues[0].hasValue() ) -//UNUSED2008-05 bWK3Flag = comphelper::getBOOL( aValues[0] ); -//UNUSED2008-05 } //------------------------------------------------------------------ @@ -367,51 +342,6 @@ void ScDLL::Exit() #define TEXT_WIDTH(s) rStatusBar.GetTextWidth((s)) -//UNUSED2008-05 void ScDLL::FillStatusBar(StatusBar &rStatusBar) -//UNUSED2008-05 { -//UNUSED2008-05 // Dokumentposition (Tabelle x / y) -//UNUSED2008-05 rStatusBar.InsertItem( SID_STATUS_DOCPOS, -//UNUSED2008-05 TEXT_WIDTH( String().Fill( 10, 'X' ) ), -//UNUSED2008-05 SIB_LEFT|SIB_AUTOSIZE ); -//UNUSED2008-05 -//UNUSED2008-05 // Seitenvorlage -//UNUSED2008-05 rStatusBar.InsertItem( SID_STATUS_PAGESTYLE, -//UNUSED2008-05 TEXT_WIDTH( String().Fill( 15, 'X' ) ), -//UNUSED2008-05 SIB_LEFT|SIB_AUTOSIZE ); -//UNUSED2008-05 -//UNUSED2008-05 // Ma"sstab -//UNUSED2008-05 rStatusBar.InsertItem( SID_ATTR_ZOOM, -//UNUSED2008-05 SvxZoomStatusBarControl::GetDefItemWidth(rStatusBar), -//UNUSED2008-05 SIB_CENTER ); -//UNUSED2008-05 -//UNUSED2008-05 // Einfuege-/Ueberschreibmodus -//UNUSED2008-05 rStatusBar.InsertItem( SID_ATTR_INSERT, -//UNUSED2008-05 SvxInsertStatusBarControl::GetDefItemWidth(rStatusBar), -//UNUSED2008-05 SIB_CENTER ); -//UNUSED2008-05 -//UNUSED2008-05 // Selektionsmodus -//UNUSED2008-05 rStatusBar.InsertItem( SID_STATUS_SELMODE, -//UNUSED2008-05 SvxSelectionModeControl::GetDefItemWidth(rStatusBar), -//UNUSED2008-05 SIB_CENTER ); -//UNUSED2008-05 -//UNUSED2008-05 // Dokument geaendert -//UNUSED2008-05 rStatusBar.InsertItem( SID_DOC_MODIFIED, -//UNUSED2008-05 SvxModifyControl::GetDefItemWidth(rStatusBar)); -//UNUSED2008-05 -//UNUSED2008-05 // signatures -//UNUSED2008-05 rStatusBar.InsertItem( SID_SIGNATURE, XmlSecStatusBarControl::GetDefItemWidth( rStatusBar ), SIB_USERDRAW ); -//UNUSED2008-05 rStatusBar.SetHelpId(SID_SIGNATURE, SID_SIGNATURE); -//UNUSED2008-05 -//UNUSED2008-05 // Mail -//UNUSED2008-05 rStatusBar.InsertItem( SID_MAIL_NOTIFY, -//UNUSED2008-05 TEXT_WIDTH( String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("Mail")) ), -//UNUSED2008-05 SIB_CENTER ); -//UNUSED2008-05 -//UNUSED2008-05 // den aktuellen Kontext anzeigen Uhrzeit / FramePos / TabellenInfo / Errors -//UNUSED2008-05 rStatusBar.InsertItem( SID_ATTR_SIZE, -//UNUSED2008-05 SvxPosSizeStatusBarControl::GetDefItemWidth(rStatusBar), -//UNUSED2008-05 SIB_AUTOSIZE|SIB_LEFT|SIB_USERDRAW); -//UNUSED2008-05 } #undef TEXT_WIDTH diff --git a/sc/source/ui/app/uiitems.cxx b/sc/source/ui/app/uiitems.cxx index 36eab35..f22338f 100644 --- a/sc/source/ui/app/uiitems.cxx +++ b/sc/source/ui/app/uiitems.cxx @@ -57,21 +57,6 @@ TYPEINIT1(ScIndexHint, SfxHint); // ScInputStatusItem - Status-Update fuer Eingabezeile // ----------------------------------------------------------------------- -//UNUSED2008-05 ScInputStatusItem::ScInputStatusItem( USHORT nWhichP, -//UNUSED2008-05 SCTAB nTab, -//UNUSED2008-05 SCCOL nCol, SCROW nRow, -//UNUSED2008-05 SCCOL nStartCol, SCROW nStartRow, -//UNUSED2008-05 SCCOL nEndCol, SCROW nEndRow, -//UNUSED2008-05 const String& rString, const EditTextObject* pData ) -//UNUSED2008-05 -//UNUSED2008-05 : SfxPoolItem ( nWhichP ), -//UNUSED2008-05 aCursorPos ( nCol, nRow, nTab ), -//UNUSED2008-05 aStartPos ( nStartCol, nStartRow, nTab ), -//UNUSED2008-05 aEndPos ( nEndCol, nEndRow, nTab ), -//UNUSED2008-05 aString ( rString ), -//UNUSED2008-05 pEditData ( pData ? pData->Clone() : NULL ) -//UNUSED2008-05 { -//UNUSED2008-05 } ScInputStatusItem::ScInputStatusItem( USHORT nWhichP, const ScAddress& rCurPos, diff --git a/sc/source/ui/dbgui/csvtablebox.cxx b/sc/source/ui/dbgui/csvtablebox.cxx index cbb4f8e..6395a7f 100644 --- a/sc/source/ui/dbgui/csvtablebox.cxx +++ b/sc/source/ui/dbgui/csvtablebox.cxx @@ -39,16 +39,6 @@ // ============================================================================ -//UNUSED2009-05 ScCsvTableBox::ScCsvTableBox( Window* pParent ) : -//UNUSED2009-05 ScCsvControl( pParent, maData, WB_BORDER | WB_TABSTOP | WB_DIALOGCONTROL ), -//UNUSED2009-05 maRuler( *this ), -//UNUSED2009-05 maGrid( *this ), -//UNUSED2009-05 maHScroll( this, WB_HORZ | WB_DRAG ), -//UNUSED2009-05 maVScroll( this, WB_VERT | WB_DRAG ), -//UNUSED2009-05 maScrollBox( this ) -//UNUSED2009-05 { -//UNUSED2009-05 Init(); -//UNUSED2009-05 } ScCsvTableBox::ScCsvTableBox( Window* pParent, const ResId& rResId ) : ScCsvControl( pParent, maData, rResId ), @@ -222,24 +212,6 @@ void ScCsvTableBox::SetUniStrings( EnableRepaint(); } -//UNUSED2009-05 void ScCsvTableBox::SetByteStrings( -//UNUSED2009-05 const ByteString* pTextLines, CharSet eCharSet, -//UNUSED2009-05 const String& rSepChars, sal_Unicode cTextSep, bool bMergeSep ) -//UNUSED2009-05 { -//UNUSED2009-05 // assuming that pTextLines is a string array with size CSV_PREVIEW_LINES -//UNUSED2009-05 // -> will be dynamic sometime -//UNUSED2009-05 DisableRepaint(); -//UNUSED2009-05 sal_Int32 nEndLine = GetFirstVisLine() + CSV_PREVIEW_LINES; -//UNUSED2009-05 const ByteString* pString = pTextLines; -//UNUSED2009-05 for( sal_Int32 nLine = GetFirstVisLine(); nLine < nEndLine; ++nLine, ++pString ) -//UNUSED2009-05 { -//UNUSED2009-05 if( mbFixedMode ) -//UNUSED2009-05 maGrid.ImplSetTextLineFix( nLine, String( *pString, eCharSet ) ); -//UNUSED2009-05 else -//UNUSED2009-05 maGrid.ImplSetTextLineSep( nLine, String( *pString, eCharSet ), rSepChars, cTextSep, bMergeSep ); -//UNUSED2009-05 } -//UNUSED2009-05 EnableRepaint(); -//UNUSED2009-05 } // column settings ------------------------------------------------------------ diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index bec1b90..9517405 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -2977,42 +2977,6 @@ BOOL ScDocFunc::SetLayoutRTL( SCTAB nTab, BOOL bRTL, BOOL /* bApi */ ) return TRUE; } -//UNUSED2009-05 BOOL ScDocFunc::SetGrammar( formula::FormulaGrammar::Grammar eGrammar ) -//UNUSED2009-05 { -//UNUSED2009-05 ScDocument* pDoc = rDocShell.GetDocument(); -//UNUSED2009-05 -//UNUSED2009-05 if ( pDoc->GetGrammar() == eGrammar ) -//UNUSED2009-05 return TRUE; -//UNUSED2009-05 -//UNUSED2009-05 BOOL bUndo(pDoc->IsUndoEnabled()); -//UNUSED2009-05 ScDocShellModificator aModificator( rDocShell ); -//UNUSED2009-05 -//UNUSED2009-05 pDoc->SetGrammar( eGrammar ); -//UNUSED2009-05 -//UNUSED2009-05 if (bUndo) -//UNUSED2009-05 { -//UNUSED2009-05 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoSetGrammar( &rDocShell, eGrammar ) ); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 rDocShell.PostPaint( 0,0,0,MAXCOL,MAXROW,MAXTAB, PAINT_ALL ); -//UNUSED2009-05 -//UNUSED2009-05 ScTabViewShell* pViewSh = ScTabViewShell::GetActiveViewShell(); -//UNUSED2009-05 if (NULL != pViewSh) -//UNUSED2009-05 { -//UNUSED2009-05 pViewSh->UpdateInputHandler( FALSE, FALSE ); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 aModificator.SetDocumentModified(); -//UNUSED2009-05 -//UNUSED2009-05 SfxBindings* pBindings = rDocShell.GetViewBindings(); -//UNUSED2009-05 if (pBindings) -//UNUSED2009-05 { -//UNUSED2009-05 // erAck: 2006-09-07T22:19+0200 commented out in CWS scr1c1 -//UNUSED2009-05 //pBindings->Invalidate( FID_TAB_USE_R1C1 ); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 return TRUE; -//UNUSED2009-05 } BOOL ScDocFunc::RenameTable( SCTAB nTab, const String& rName, BOOL bRecord, BOOL bApi ) { diff --git a/sc/source/ui/inc/AccessibleDocumentPagePreview.hxx b/sc/source/ui/inc/AccessibleDocumentPagePreview.hxx index eb7c5c3..06b024d 100644 --- a/sc/source/ui/inc/AccessibleDocumentPagePreview.hxx +++ b/sc/source/ui/inc/AccessibleDocumentPagePreview.hxx @@ -113,10 +113,7 @@ public: ///===== internal ======================================================== -//UNUSED2009-05 com::sun::star::uno::Reference < com::sun::star::accessibility::XAccessible > -//UNUSED2009-05 GetCurrentAccessibleTable(); -//UNUSED2009-05 void ChildCountChanged(); protected: /// Return this object's description. diff --git a/sc/source/ui/inc/AccessibleText.hxx b/sc/source/ui/inc/AccessibleText.hxx index cc3d70a..5ec117d 100644 --- a/sc/source/ui/inc/AccessibleText.hxx +++ b/sc/source/ui/inc/AccessibleText.hxx @@ -203,7 +203,6 @@ public: virtual SvxViewForwarder* GetViewForwarder(); virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; } -//UNUSED2008-05 DECL_LINK( NotifyHdl, EENotify* ); private: ScPreviewViewForwarder* mpViewForwarder; ScPreviewShell* mpViewShell; @@ -233,7 +232,6 @@ public: virtual SvxViewForwarder* GetViewForwarder(); virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; } -//UNUSED2008-05 DECL_LINK( NotifyHdl, EENotify* ); private: ScPreviewViewForwarder* mpViewForwarder; ScPreviewShell* mpViewShell; diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx index 6593dc5..9958d0e 100644 --- a/sc/source/ui/inc/acredlin.hxx +++ b/sc/source/ui/inc/acredlin.hxx @@ -173,7 +173,6 @@ private: void Init(); void InitFilter(); -//UNUSED2008-05 void SetMyStaticData(); DECL_LINK( FilterHandle, SvxTPFilter* ); DECL_LINK( RefHandle, SvxTPFilter* ); diff --git a/sc/source/ui/inc/conflictsdlg.hxx b/sc/source/ui/inc/conflictsdlg.hxx index 454ef70..1b02510 100644 --- a/sc/source/ui/inc/conflictsdlg.hxx +++ b/sc/source/ui/inc/conflictsdlg.hxx @@ -82,7 +82,6 @@ private: static void Transform_Impl( ScChangeActionList& rActionList, ScChangeActionMergeMap* pMergeMap ); public: -//UNUSED2008-05 static bool HasSharedAction( ScConflictsList& rConflictsList, ULONG nSharedAction ); static bool HasOwnAction( ScConflictsList& rConflictsList, ULONG nOwnAction ); static ScConflictsListEntry* GetSharedActionEntry( ScConflictsList& rConflictsList, ULONG nSharedAction ); @@ -148,11 +147,9 @@ class ScConflictsListBox: public SvxRedlinTable private: public: -//UNUSED2008-05 ScConflictsListBox( Window* pParent, WinBits nBits = WB_BORDER ); ScConflictsListBox( Window* pParent, const ResId& rResId ); ~ScConflictsListBox(); -//UNUSED2008-05 ULONG GetRootEntryPos( const SvLBoxEntry* pRootEntry ) const; }; //============================================================================= diff --git a/sc/source/ui/inc/content.hxx b/sc/source/ui/inc/content.hxx index 929df0f..2c20aef 100644 --- a/sc/source/ui/inc/content.hxx +++ b/sc/source/ui/inc/content.hxx @@ -110,7 +110,6 @@ class ScContentTree : public SvTreeListBox ULONG GetChildIndex( SvLBoxEntry* pEntry ) const; void DoDrag(); -//UNUSED2008-05 void AdjustTitle(); ScDocument* GetSourceDocument(); diff --git a/sc/source/ui/inc/csvtablebox.hxx b/sc/source/ui/inc/csvtablebox.hxx index a0a1e20..2e74882 100644 --- a/sc/source/ui/inc/csvtablebox.hxx +++ b/sc/source/ui/inc/csvtablebox.hxx @@ -74,7 +74,6 @@ private: // ------------------------------------------------------------------------ public: -//UNUSED2009-05 explicit ScCsvTableBox( Window* pParent ); explicit ScCsvTableBox( Window* pParent, const ResId& rResId ); // common table box handling ---------------------------------------------- @@ -109,10 +108,6 @@ public: void SetUniStrings( const String* pTextLines, const String& rSepChars, sal_Unicode cTextSep, bool bMergeSep ); -//UNUSED2009-05 /** Fills all cells of all lines with the passed texts (ByteStrings). */ -//UNUSED2009-05 void SetByteStrings( -//UNUSED2009-05 const ByteString* pLineTexts, CharSet eCharSet, -//UNUSED2009-05 const String& rSepChars, sal_Unicode cTextSep, bool bMergeSep ); // column settings -------------------------------------------------------- public: diff --git a/sc/source/ui/inc/dbfunc.hxx b/sc/source/ui/inc/dbfunc.hxx index 581c861..5acf57d 100644 --- a/sc/source/ui/inc/dbfunc.hxx +++ b/sc/source/ui/inc/dbfunc.hxx @@ -52,7 +52,6 @@ private: public: ScDBFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell ); -//UNUSED2008-05 ScDBFunc( Window* pParent, const ScDBFunc& rDBFunc, ScTabViewShell* pViewShell ); virtual ~ScDBFunc(); // nur UISort wiederholt bei Bedarf die Teilergebnisse diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx index b2bb683..97288d1 100644 --- a/sc/source/ui/inc/docfunc.hxx +++ b/sc/source/ui/inc/docfunc.hxx @@ -132,7 +132,6 @@ public: BOOL SetLayoutRTL( SCTAB nTab, BOOL bRTL, BOOL bApi ); -//UNUSED2009-05 BOOL SetGrammar( formula::FormulaGrammar::Grammar eGrammar ); SC_DLLPUBLIC BOOL SetWidthOrHeight( BOOL bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges, SCTAB nTab, ScSizeMode eMode, USHORT nSizeTwips, diff --git a/sc/source/ui/inc/drawview.hxx b/sc/source/ui/inc/drawview.hxx index b86c8d1..918dcab 100644 --- a/sc/source/ui/inc/drawview.hxx +++ b/sc/source/ui/inc/drawview.hxx @@ -111,7 +111,6 @@ public: void SetMarkedOriginalSize(); BOOL SelectObject( const String& rName ); -//UNUSED2008-05 String GetSelectedChartName() const; bool HasMarkedControl() const; bool HasMarkedInternal() const; @@ -140,7 +139,6 @@ public: inline void UnlockInternalLayer() { LockInternalLayer( false ); } SdrEndTextEditKind ScEndTextEdit(); // ruft SetDrawTextUndo(0) -//UNUSED2009-05 void CaptionTextDirection(USHORT nSlot); ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > CopyToTransferable(); }; diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx index 64e21cf..71a6904 100644 --- a/sc/source/ui/inc/gridwin.hxx +++ b/sc/source/ui/inc/gridwin.hxx @@ -366,7 +366,6 @@ public: void InvertSimple( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, BOOL bTestMerge = FALSE, BOOL bRepeat = FALSE ); -//UNUSED2008-05 void DrawDragRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 ); void CreateAnchorHandle(SdrHdlList& rHdl, const ScAddress& rAddress); diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx index 856a972..8f27d35 100644 --- a/sc/source/ui/inc/inputwin.hxx +++ b/sc/source/ui/inc/inputwin.hxx @@ -170,8 +170,6 @@ public: BOOL IsInputActive(); EditView* GetEditView(); -//UNUSED2008-05 EditView* ActivateEdit( const String& rText, -//UNUSED2008-05 const ESelection& rSel ); void TextGrabFocus(); void TextInvalidate(); diff --git a/sc/source/ui/inc/lbseldlg.hxx b/sc/source/ui/inc/lbseldlg.hxx index 6b42043..09865bb 100644 --- a/sc/source/ui/inc/lbseldlg.hxx +++ b/sc/source/ui/inc/lbseldlg.hxx @@ -61,7 +61,6 @@ public: ~ScSelEntryDlg(); String GetSelectEntry() const; -//UNUSED2008-05 USHORT GetSelectEntryPos() const; }; diff --git a/sc/source/ui/inc/prevloc.hxx b/sc/source/ui/inc/prevloc.hxx index 1e34d96..f2eb4c9 100644 --- a/sc/source/ui/inc/prevloc.hxx +++ b/sc/source/ui/inc/prevloc.hxx @@ -101,7 +101,6 @@ class ScPreviewLocationData SCTAB nPrintTab; List aEntries; -//UNUSED2008-05 ScAddress GetCellFromRange( const Size& rOffsetPixel, const ScRange& rRange ) const; Rectangle GetOffsetPixel( const ScAddress& rCellPos, const ScRange& rRange ) const; public: diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx index d8890f2..f817772 100644 --- a/sc/source/ui/inc/tabview.hxx +++ b/sc/source/ui/inc/tabview.hxx @@ -224,7 +224,6 @@ protected: public: ScTabView( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell ); -//UNUSED2009-05 ScTabView( Window* pParent, const ScTabView& rScTabView, ScTabViewShell* pViewShell ); ~ScTabView(); void MakeDrawLayer(); @@ -268,7 +267,6 @@ public: void DrawDeselectAll(); void DrawMarkListHasChanged(); void UpdateAnchorHandles(); -//UNUSED2008-05 String GetSelectedChartName() const; ScPageBreakData* GetPageBreakData() { return pPageBreakData; } ScHighlightRanges* GetHighlightRanges() { return pHighlightRanges; } @@ -308,7 +306,6 @@ public: void UpdateRef( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ ); void StopRefMode(); -//UNUSED2008-05 void EndSelection(); void StopMarking(); void FakeButtonUp( ScSplitPos eWhich ); @@ -318,12 +315,8 @@ public: ScSplitPos FindWindow( Window* pWindow ) const; void SetActivePointer( const Pointer& rPointer ); -//UNUSED2008-05 void SetActivePointer( const ResId& rId ); void ActiveGrabFocus(); -//UNUSED2008-05 void ActiveCaptureMouse(); -//UNUSED2008-05 void ActiveReleaseMouse(); -//UNUSED2008-05 Point ActivePixelToLogic( const Point& rDevicePoint ); void ClickCursor( SCCOL nPosX, SCROW nPosY, BOOL bControl ); @@ -412,11 +405,6 @@ public: void InvertBlockMark(SCCOL nBlockStartX, SCROW nBlockStartY, SCCOL nBlockEndX, SCROW nBlockEndY); -//UNUSED2008-05 void DrawDragRect( SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY, -//UNUSED2008-05 ScSplitPos ePos ); -//UNUSED2008-05 void PaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab ); -//UNUSED2008-05 void PaintLeftRow( SCROW nRow ); -//UNUSED2008-05 void PaintTopCol( SCCOL nCol ); void PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, ScUpdateMode eMode = SC_UPDATE_ALL ); diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx index 91add9d..161c5e5 100644 --- a/sc/source/ui/inc/tabvwsh.hxx +++ b/sc/source/ui/inc/tabvwsh.hxx @@ -169,7 +169,6 @@ private: SbxObject* pScSbxObject; -//UNUSED2008-05 BOOL bChartDlgIsEdit; // Datenbereich aendern BOOL bChartAreaValid; // wenn Chart aufgezogen wird String aEditChartName; ScRangeListRef aChartSource; @@ -185,7 +184,6 @@ private: private: void Construct( BYTE nForceDesignMode = SC_FORCEMODE_NONE ); -//UNUSED2008-05 void SetMySubShell( SfxShell* pShell ); SfxShell* GetMySubShell() const; void DoReadUserData( const String& rData ); @@ -241,8 +239,6 @@ public: // -> Clone-Methode fuer Factory -//UNUSED2008-05 ScTabViewShell( SfxViewFrame* pViewFrame, -//UNUSED2008-05 const ScTabViewShell& rWin ); // aus einer allgemeinen Shell konstruieren und // soviel wie moeglich uebernehmen (SliderPos etc.): @@ -268,8 +264,6 @@ public: SvxBorderLine* GetDefaultFrameLine() const { return pCurFrameLine; } void SetDefaultFrameLine(const SvxBorderLine* pLine ); -//UNUSED2008-05 void ExecuteShowNIY( SfxRequest& rReq ); -//UNUSED2008-05 void StateDisabled( SfxItemSet& rSet ); SC_DLLPUBLIC void Execute( SfxRequest& rReq ); SC_DLLPUBLIC void GetState( SfxItemSet& rSet ); @@ -351,15 +345,11 @@ public: void FillFieldData( ScHeaderFieldData& rData ); -//UNUSED2008-05 void ResetChartArea(); void SetChartArea( const ScRangeListRef& rSource, const Rectangle& rDest ); BOOL GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const; -//UNUSED2008-05 BOOL IsChartDlgEdit() const; -//UNUSED2008-05 void SetChartDlgEdit(BOOL bFlag){bChartDlgIsEdit=bFlag;} void SetEditChartName(const String& aStr){aEditChartName=aStr;} -//UNUSED2008-05 const String& GetEditChartName() const; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); diff --git a/sc/source/ui/inc/uiitems.hxx b/sc/source/ui/inc/uiitems.hxx index 579f9df..842603a 100644 --- a/sc/source/ui/inc/uiitems.hxx +++ b/sc/source/ui/inc/uiitems.hxx @@ -54,13 +54,6 @@ class ScInputStatusItem : public SfxPoolItem public: TYPEINFO(); -//UNUSED2008-05 ScInputStatusItem( USHORT nWhich, -//UNUSED2008-05 SCTAB nTab, -//UNUSED2008-05 SCCOL nCol, SCROW nRow, -//UNUSED2008-05 SCCOL nStartCol, SCROW nStartRow, -//UNUSED2008-05 SCCOL nEndCol, SCROW nSEndRow, -//UNUSED2008-05 const String& rString, -//UNUSED2008-05 const EditTextObject* pData ); ScInputStatusItem( USHORT nWhich, const ScAddress& rCurPos, diff --git a/sc/source/ui/inc/undodat.hxx b/sc/source/ui/inc/undodat.hxx index 81da22e..af53290 100644 --- a/sc/source/ui/inc/undodat.hxx +++ b/sc/source/ui/inc/undodat.hxx @@ -406,39 +406,6 @@ private: BOOL bQuerySize; }; -//UNUSED2008-05 class ScUndoPivot: public ScSimpleUndo -//UNUSED2008-05 { -//UNUSED2008-05 public: -//UNUSED2008-05 TYPEINFO(); -//UNUSED2008-05 ScUndoPivot( ScDocShell* pNewDocShell, -//UNUSED2008-05 const ScArea& rOld, const ScArea& rNew, -//UNUSED2008-05 ScDocument* pOldDoc, ScDocument* pNewDoc, -//UNUSED2008-05 const ScPivot* pOldPivot, const ScPivot* pNewPivot ); -//UNUSED2008-05 virtual ~ScUndoPivot(); -//UNUSED2008-05 -//UNUSED2008-05 virtual void Undo(); -//UNUSED2008-05 virtual void Redo(); -//UNUSED2008-05 virtual void Repeat(SfxRepeatTarget& rTarget); -//UNUSED2008-05 virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; -//UNUSED2008-05 -//UNUSED2008-05 virtual String GetComment() const; -//UNUSED2008-05 -//UNUSED2008-05 private: -//UNUSED2008-05 ScArea aOldArea; -//UNUSED2008-05 ScArea aNewArea; -//UNUSED2008-05 ScDocument* pOldUndoDoc; -//UNUSED2008-05 ScDocument* pNewUndoDoc; -//UNUSED2008-05 ScPivotParam aOldParam; // fuer Redo -//UNUSED2008-05 ScQueryParam aOldQuery; -//UNUSED2008-05 ScArea aOldSrc; -//UNUSED2008-05 ScPivotParam aNewParam; // fuer Undo in Collection -//UNUSED2008-05 ScQueryParam aNewQuery; -//UNUSED2008-05 ScArea aNewSrc; -//UNUSED2008-05 String aOldName; -//UNUSED2008-05 String aOldTag; -//UNUSED2008-05 String aNewName; -//UNUSED2008-05 String aNewTag; -//UNUSED2008-05 }; class ScUndoDataPilot: public ScSimpleUndo { diff --git a/sc/source/ui/inc/undotab.hxx b/sc/source/ui/inc/undotab.hxx index 1be7962..12ed51d 100644 --- a/sc/source/ui/inc/undotab.hxx +++ b/sc/source/ui/inc/undotab.hxx @@ -518,26 +518,6 @@ private: }; -//UNUSED2009-05 class ScUndoSetGrammar : public ScSimpleUndo -//UNUSED2009-05 { -//UNUSED2009-05 public: -//UNUSED2009-05 TYPEINFO(); -//UNUSED2009-05 ScUndoSetGrammar( ScDocShell* pShell, -//UNUSED2009-05 formula::FormulaGrammar::Grammar eGrammar ); -//UNUSED2009-05 virtual ~ScUndoSetGrammar(); -//UNUSED2009-05 -//UNUSED2009-05 virtual void Undo(); -//UNUSED2009-05 virtual void Redo(); -//UNUSED2009-05 virtual void Repeat(SfxRepeatTarget& rTarget); -//UNUSED2009-05 virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; -//UNUSED2009-05 -//UNUSED2009-05 virtual String GetComment() const; -//UNUSED2009-05 -//UNUSED2009-05 private: -//UNUSED2009-05 formula::FormulaGrammar::Grammar meNewGrammar, meOldGrammar; -//UNUSED2009-05 -//UNUSED2009-05 void DoChange( formula::FormulaGrammar::Grammar eGrammar ); -//UNUSED2009-05 }; #endif diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx index 879a5f8..3b32d98 100644 --- a/sc/source/ui/inc/viewdata.hxx +++ b/sc/source/ui/inc/viewdata.hxx @@ -242,8 +242,6 @@ public: ~ScViewData(); void InitData( ScDocument* pDocument ); -//UNUSED2008-05 void InitFrom( const ScViewData* pRef ); -//UNUSED2008-05 void SetDocShell( ScDocShell* pShell ); ScDocShell* GetDocShell() const { return pDocShell; } @@ -461,11 +459,8 @@ public: SCROW VisibleCellsY( ScVSplitPos eWhichY ) const; SCCOL PrevCellsX( ScHSplitPos eWhichX ) const; // Zellen auf der vorgehenden Seite SCROW PrevCellsY( ScVSplitPos eWhichY ) const; -//UNUSED2008-05 SCCOL LastCellsX( ScHSplitPos eWhichX ) const; // Zellen auf der letzten Seite -//UNUSED2008-05 SCROW LastCellsY( ScVSplitPos eWhichY ) const; BOOL IsOle(); -//UNUSED2008-05 void UpdateOle( ScSplitPos eWhich ); void SetScreen( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); void SetScreen( const Rectangle& rVisArea ); void SetScreenPos( const Point& rVisAreaStart ); diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx index 8a5aeee..9753b58 100644 --- a/sc/source/ui/inc/viewfunc.hxx +++ b/sc/source/ui/inc/viewfunc.hxx @@ -83,7 +83,6 @@ private: public: ScViewFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell ); -//UNUSED2008-05 ScViewFunc( Window* pParent, const ScViewFunc& rViewFunc, ScTabViewShell* pViewShell ); ~ScViewFunc(); const ScPatternAttr* GetSelectionPattern (); @@ -307,10 +306,8 @@ public: void ReplaceNote( const ScAddress& rPos, const String& rNoteText, const String* pAuthor, const String* pDate ); void DoRefConversion( BOOL bRecord = TRUE ); -//UNUSED2008-05 void DoSpellingChecker( BOOL bRecord = TRUE ); void DoHangulHanjaConversion( BOOL bRecord = TRUE ); void DoThesaurus( BOOL bRecord = TRUE ); -//UNUSED2008-05 DECL_LINK( SpellError, void * ); /** Generic implementation of sheet conversion functions. */ void DoSheetConversion( const ScConversionParam& rParam, BOOL bRecord = TRUE ); @@ -345,7 +342,6 @@ protected: const SvxBorderLine* pSrcLine, BOOL bColor ); -//UNUSED2008-05 void PaintWidthHeight( BOOL bColumns, SCCOLROW nStart, SCCOLROW nEnd ); private: diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx index efeab20..d91ef2a 100644 --- a/sc/source/ui/miscdlgs/acredlin.cxx +++ b/sc/source/ui/miscdlgs/acredlin.cxx @@ -2037,9 +2037,6 @@ void ScAcceptChgDlg::InitFilter() } } -//UNUSED2008-05 void ScAcceptChgDlg::SetMyStaticData() -//UNUSED2008-05 { -//UNUSED2008-05 } IMPL_LINK( ScAcceptChgDlg, FilterModified, SvxTPFilter*, EMPTYARG ) { diff --git a/sc/source/ui/miscdlgs/conflictsdlg.cxx b/sc/source/ui/miscdlgs/conflictsdlg.cxx index 161c647..48b660d 100644 --- a/sc/source/ui/miscdlgs/conflictsdlg.cxx +++ b/sc/source/ui/miscdlgs/conflictsdlg.cxx @@ -76,19 +76,6 @@ bool ScConflictsListEntry::HasOwnAction( ULONG nOwnAction ) const // class ScConflictsListHelper //============================================================================= -//UNUSED2008-05 bool ScConflictsListHelper::HasSharedAction( ScConflictsList& rConflictsList, ULONG nSharedAction ) -//UNUSED2008-05 { -//UNUSED2008-05 ScConflictsList::const_iterator aEnd = rConflictsList.end(); -//UNUSED2008-05 for ( ScConflictsList::const_iterator aItr = rConflictsList.begin(); aItr != aEnd; ++aItr ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( aItr->HasSharedAction( nSharedAction ) ) -//UNUSED2008-05 { -//UNUSED2008-05 return true; -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 return false; -//UNUSED2008-05 } bool ScConflictsListHelper::HasOwnAction( ScConflictsList& rConflictsList, ULONG nOwnAction ) { @@ -430,10 +417,6 @@ void ScConflictsResolver::HandleAction( ScChangeAction* pAction, bool bIsSharedA // class ScConflictsListBox //============================================================================= -//UNUSED2008-05 ScConflictsListBox::ScConflictsListBox( Window* pParent, WinBits nBits ) -//UNUSED2008-05 :SvxRedlinTable( pParent, nBits ) -//UNUSED2008-05 { -//UNUSED2008-05 } ScConflictsListBox::ScConflictsListBox( Window* pParent, const ResId& rResId ) :SvxRedlinTable( pParent, rResId ) @@ -444,21 +427,6 @@ ScConflictsListBox::~ScConflictsListBox() { } -//UNUSED2008-05 ULONG ScConflictsListBox::GetRootEntryPos( const SvLBoxEntry* pRootEntry ) const -//UNUSED2008-05 { -//UNUSED2008-05 ULONG nPos = 0; -//UNUSED2008-05 SvLBoxEntry* pEntry = GetRootLevelParent( First() ); -//UNUSED2008-05 while ( pEntry ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( pEntry == pRootEntry ) -//UNUSED2008-05 { -//UNUSED2008-05 return nPos; -//UNUSED2008-05 } -//UNUSED2008-05 pEntry = NextSibling( pEntry ); -//UNUSED2008-05 ++nPos; -//UNUSED2008-05 } -//UNUSED2008-05 return 0xffffffff; -//UNUSED2008-05 } //============================================================================= diff --git a/sc/source/ui/miscdlgs/lbseldlg.cxx b/sc/source/ui/miscdlgs/lbseldlg.cxx index eb010b4..e79abcc 100644 --- a/sc/source/ui/miscdlgs/lbseldlg.cxx +++ b/sc/source/ui/miscdlgs/lbseldlg.cxx @@ -84,10 +84,6 @@ String ScSelEntryDlg::GetSelectEntry() const //------------------------------------------------------------------------ -//UNUSED2008-05 USHORT ScSelEntryDlg::GetSelectEntryPos() const -//UNUSED2008-05 { -//UNUSED2008-05 return aLb.GetSelectEntryPos(); -//UNUSED2008-05 } //------------------------------------------------------------------------ diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index 5d2ecff..61b9956 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -1282,16 +1282,6 @@ IMPL_STATIC_LINK(ScContentTree, ExecDragHdl, void*, EMPTYARG) return 0; } -//UNUSED2008-05 void ScContentTree::AdjustTitle() -//UNUSED2008-05 { -//UNUSED2008-05 String aTitle = pParentWindow->aTitleBase; -//UNUSED2008-05 if (bHiddenDoc) -//UNUSED2008-05 { -//UNUSED2008-05 aTitle.AppendAscii(RTL_CONSTASCII_STRINGPARAM( " - " )); -//UNUSED2008-05 aTitle += aHiddenTitle; -//UNUSED2008-05 } -//UNUSED2008-05 pParentWindow->SetText(aTitle); -//UNUSED2008-05 } BOOL ScContentTree::LoadFile( const String& rUrl ) { diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx index d42dc64..39127ce 100644 --- a/sc/source/ui/undo/undodat.cxx +++ b/sc/source/ui/undo/undodat.cxx @@ -68,7 +68,6 @@ TYPEINIT1(ScUndoAutoFilter, ScDBFuncUndo); TYPEINIT1(ScUndoDBData, ScSimpleUndo); TYPEINIT1(ScUndoImportData, ScSimpleUndo); TYPEINIT1(ScUndoRepeatDB, ScSimpleUndo); -//UNUSED2008-05 TYPEINIT1(ScUndoPivot, ScSimpleUndo); TYPEINIT1(ScUndoDataPilot, ScSimpleUndo); TYPEINIT1(ScUndoConsolidate, ScSimpleUndo); TYPEINIT1(ScUndoChartData, ScSimpleUndo); @@ -1631,163 +1630,6 @@ BOOL __EXPORT ScUndoRepeatDB::CanRepeat(SfxRepeatTarget& rTarget) const return (rTarget.ISA(ScTabViewTarget)); } -//UNUSED2008-05 // -//UNUSED2008-05 // Pivot-Tabellen -//UNUSED2008-05 // -//UNUSED2008-05 -//UNUSED2008-05 ScUndoPivot::ScUndoPivot( ScDocShell* pNewDocShell, -//UNUSED2008-05 const ScArea& rOld, const ScArea& rNew, -//UNUSED2008-05 ScDocument* pOldDoc, ScDocument* pNewDoc, -//UNUSED2008-05 const ScPivot* pOldPivot, const ScPivot* pNewPivot ) : -//UNUSED2008-05 ScSimpleUndo( pNewDocShell ), -//UNUSED2008-05 aOldArea( rOld ), -//UNUSED2008-05 aNewArea( rNew ), -//UNUSED2008-05 pOldUndoDoc( pOldDoc ), -//UNUSED2008-05 pNewUndoDoc( pNewDoc ) -//UNUSED2008-05 { -//UNUSED2008-05 if (pNewPivot) -//UNUSED2008-05 { -//UNUSED2008-05 pNewPivot->GetParam( aNewParam, aNewQuery, aNewSrc ); -//UNUSED2008-05 aNewName = pNewPivot->GetName(); -//UNUSED2008-05 aNewTag = pNewPivot->GetTag(); -//UNUSED2008-05 } -//UNUSED2008-05 if (pOldPivot) -//UNUSED2008-05 { -//UNUSED2008-05 pOldPivot->GetParam( aOldParam, aOldQuery, aOldSrc ); -//UNUSED2008-05 aOldName = pOldPivot->GetName(); -//UNUSED2008-05 aOldTag = pOldPivot->GetTag(); -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 __EXPORT ScUndoPivot::~ScUndoPivot() -//UNUSED2008-05 { -//UNUSED2008-05 delete pOldUndoDoc; -//UNUSED2008-05 delete pNewUndoDoc; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 String __EXPORT ScUndoPivot::GetComment() const -//UNUSED2008-05 { -//UNUSED2008-05 USHORT nIndex; -//UNUSED2008-05 if ( pOldUndoDoc && pNewUndoDoc ) -//UNUSED2008-05 nIndex = STR_UNDO_PIVOT_MODIFY; -//UNUSED2008-05 else if ( pNewUndoDoc ) -//UNUSED2008-05 nIndex = STR_UNDO_PIVOT_NEW; -//UNUSED2008-05 else -//UNUSED2008-05 nIndex = STR_UNDO_PIVOT_DELETE; -//UNUSED2008-05 -//UNUSED2008-05 return ScGlobal::GetRscString( nIndex ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void __EXPORT ScUndoPivot::Undo() -//UNUSED2008-05 { -//UNUSED2008-05 BeginUndo(); -//UNUSED2008-05 -//UNUSED2008-05 ScDocument* pDoc = pDocShell->GetDocument(); -//UNUSED2008-05 -//UNUSED2008-05 if (pNewUndoDoc) -//UNUSED2008-05 { -//UNUSED2008-05 pDoc->DeleteAreaTab( aNewArea.nColStart,aNewArea.nRowStart, -//UNUSED2008-05 aNewArea.nColEnd,aNewArea.nRowEnd, aNewArea.nTab, IDF_ALL ); -//UNUSED2008-05 pNewUndoDoc->CopyToDocument( aNewArea.nColStart, aNewArea.nRowStart, aNewArea.nTab, -//UNUSED2008-05 aNewArea.nColEnd, aNewArea.nRowEnd, aNewArea.nTab, -//UNUSED2008-05 IDF_ALL, FALSE, pDoc ); -//UNUSED2008-05 } -//UNUSED2008-05 if (pOldUndoDoc) -//UNUSED2008-05 { -//UNUSED2008-05 pDoc->DeleteAreaTab( aOldArea.nColStart,aOldArea.nRowStart, -//UNUSED2008-05 aOldArea.nColEnd,aOldArea.nRowEnd, aOldArea.nTab, IDF_ALL ); -//UNUSED2008-05 pOldUndoDoc->CopyToDocument( aOldArea.nColStart, aOldArea.nRowStart, aOldArea.nTab, -//UNUSED2008-05 aOldArea.nColEnd, aOldArea.nRowEnd, aOldArea.nTab, -//UNUSED2008-05 IDF_ALL, FALSE, pDoc ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 ScPivotCollection* pPivotCollection = pDoc->GetPivotCollection(); -//UNUSED2008-05 if ( pNewUndoDoc ) -//UNUSED2008-05 { -//UNUSED2008-05 ScPivot* pNewPivot = pPivotCollection->GetPivotAtCursor( -//UNUSED2008-05 aNewParam.nCol, aNewParam.nRow, aNewParam.nTab ); -//UNUSED2008-05 if (pNewPivot) -//UNUSED2008-05 pPivotCollection->Free( pNewPivot ); -//UNUSED2008-05 } -//UNUSED2008-05 if ( pOldUndoDoc ) -//UNUSED2008-05 { -//UNUSED2008-05 ScPivot* pOldPivot = new ScPivot( pDoc ); -//UNUSED2008-05 pOldPivot->SetParam( aOldParam, aOldQuery, aOldSrc ); -//UNUSED2008-05 pOldPivot->SetName( aOldName ); -//UNUSED2008-05 pOldPivot->SetTag( aOldTag ); -//UNUSED2008-05 if (pOldPivot->CreateData()) // Felder berechnen -//UNUSED2008-05 pOldPivot->ReleaseData(); -//UNUSED2008-05 pPivotCollection->Insert( pOldPivot ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 // erack! it's broadcasted -//UNUSED2008-05 // pDoc->SetDirty(); -//UNUSED2008-05 if (pNewUndoDoc) -//UNUSED2008-05 pDocShell->PostPaint( aNewArea.nColStart, aNewArea.nRowStart, aNewArea.nTab, -//UNUSED2008-05 aNewArea.nColEnd, aNewArea.nRowEnd, aNewArea.nTab, -//UNUSED2008-05 PAINT_GRID, SC_PF_LINES ); -//UNUSED2008-05 if (pOldUndoDoc) -//UNUSED2008-05 pDocShell->PostPaint( aOldArea.nColStart, aOldArea.nRowStart, aOldArea.nTab, -//UNUSED2008-05 aOldArea.nColEnd, aOldArea.nRowEnd, aOldArea.nTab, -//UNUSED2008-05 PAINT_GRID, SC_PF_LINES ); -//UNUSED2008-05 pDocShell->PostDataChanged(); -//UNUSED2008-05 -//UNUSED2008-05 ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); -//UNUSED2008-05 if (pViewShell) -//UNUSED2008-05 { -//UNUSED2008-05 SCTAB nTab = pViewShell->GetViewData()->GetTabNo(); -//UNUSED2008-05 if ( pOldUndoDoc ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( nTab != aOldArea.nTab ) -//UNUSED2008-05 pViewShell->SetTabNo( aOldArea.nTab ); -//UNUSED2008-05 } -//UNUSED2008-05 else if ( pNewUndoDoc ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( nTab != aNewArea.nTab ) -//UNUSED2008-05 pViewShell->SetTabNo( aNewArea.nTab ); -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 EndUndo(); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void __EXPORT ScUndoPivot::Redo() -//UNUSED2008-05 { -//UNUSED2008-05 BeginRedo(); -//UNUSED2008-05 -//UNUSED2008-05 ScDocument* pDoc = pDocShell->GetDocument(); -//UNUSED2008-05 ScPivotCollection* pPivotCollection = pDoc->GetPivotCollection(); -//UNUSED2008-05 ScPivot* pOldPivot = pPivotCollection->GetPivotAtCursor( -//UNUSED2008-05 aOldParam.nCol, aOldParam.nRow, aOldParam.nTab ); -//UNUSED2008-05 -//UNUSED2008-05 ScPivot* pNewPivot = NULL; -//UNUSED2008-05 if (pNewUndoDoc) -//UNUSED2008-05 { -//UNUSED2008-05 pNewPivot = new ScPivot( pDoc ); -//UNUSED2008-05 pNewPivot->SetParam( aNewParam, aNewQuery, aNewSrc ); -//UNUSED2008-05 pNewPivot->SetName( aNewName ); -//UNUSED2008-05 pNewPivot->SetTag( aNewTag ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 pDocShell->PivotUpdate( pOldPivot, pNewPivot, FALSE ); -//UNUSED2008-05 -//UNUSED2008-05 EndRedo(); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void __EXPORT ScUndoPivot::Repeat(SfxRepeatTarget& rTarget) -//UNUSED2008-05 { -//UNUSED2008-05 // Wiederholen: nur loeschen -//UNUSED2008-05 -//UNUSED2008-05 if ( pOldUndoDoc && !pNewUndoDoc && rTarget.ISA(ScTabViewTarget) ) -//UNUSED2008-05 ((ScTabViewTarget&)rTarget).GetViewShell()->DeletePivotTable(); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 BOOL __EXPORT ScUndoPivot::CanRepeat(SfxRepeatTarget& rTarget) const -//UNUSED2008-05 { -//UNUSED2008-05 // Wiederholen: nur loeschen -//UNUSED2008-05 -//UNUSED2008-05 return ( pOldUndoDoc && !pNewUndoDoc && rTarget.ISA(ScTabViewTarget) ); -//UNUSED2008-05 } // // data pilot diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx index 1b4f945..6815804 100644 --- a/sc/source/ui/undo/undotab.cxx +++ b/sc/source/ui/undo/undotab.cxx @@ -78,7 +78,6 @@ TYPEINIT1(ScUndoPrintRange, SfxUndoAction); TYPEINIT1(ScUndoScenarioFlags, SfxUndoAction); TYPEINIT1(ScUndoRenameObject, SfxUndoAction); TYPEINIT1(ScUndoLayoutRTL, SfxUndoAction); -//UNUSED2009-05 TYPEINIT1(ScUndoSetGrammar, SfxUndoAction); TYPEINIT1(ScUndoTabColor, SfxUndoAction); @@ -1672,54 +1671,4 @@ String ScUndoLayoutRTL::GetComment() const // Set the grammar used for the sheet // -//UNUSED2009-05 ScUndoSetGrammar::ScUndoSetGrammar( ScDocShell* pShell, -//UNUSED2009-05 formula::FormulaGrammar::Grammar eGrammar ) : -//UNUSED2009-05 ScSimpleUndo( pShell ), -//UNUSED2009-05 meNewGrammar( eGrammar ) -//UNUSED2009-05 { -//UNUSED2009-05 meOldGrammar = pDocShell->GetDocument()->GetGrammar(); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 __EXPORT ScUndoSetGrammar::~ScUndoSetGrammar() -//UNUSED2009-05 { -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 void ScUndoSetGrammar::DoChange( formula::FormulaGrammar::Grammar eGrammar ) -//UNUSED2009-05 { -//UNUSED2009-05 pDocShell->SetInUndo( TRUE ); -//UNUSED2009-05 ScDocument* pDoc = pDocShell->GetDocument(); -//UNUSED2009-05 pDoc->SetGrammar( eGrammar ); -//UNUSED2009-05 pDocShell->SetDocumentModified(); -//UNUSED2009-05 pDocShell->SetInUndo( FALSE ); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 void __EXPORT ScUndoSetGrammar::Undo() -//UNUSED2009-05 { -//UNUSED2009-05 DoChange( meOldGrammar ); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 void __EXPORT ScUndoSetGrammar::Redo() -//UNUSED2009-05 { -//UNUSED2009-05 DoChange( meNewGrammar ); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 void __EXPORT ScUndoSetGrammar::Repeat(SfxRepeatTarget& /* rTarget */) -//UNUSED2009-05 { -//UNUSED2009-05 #if 0 -//UNUSED2009-05 // erAck: 2006-09-07T23:00+0200 commented out in CWS scr1c1 -//UNUSED2009-05 if (rTarget.ISA(ScTabViewTarget)) -//UNUSED2009-05 ((ScTabViewTarget&)rTarget).GetViewShell()->GetViewData()->GetDispatcher(). -//UNUSED2009-05 Execute( FID_TAB_USE_R1C1, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD); -//UNUSED2009-05 #endif -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 BOOL __EXPORT ScUndoSetGrammar::CanRepeat(SfxRepeatTarget& rTarget) const -//UNUSED2009-05 { -//UNUSED2009-05 return (rTarget.ISA(ScTabViewTarget)); -//UNUSED2009-05 } -//UNUSED2009-05 -//UNUSED2009-05 String __EXPORT ScUndoSetGrammar::GetComment() const -//UNUSED2009-05 { -//UNUSED2009-05 return ScGlobal::GetRscString( STR_UNDO_TAB_R1C1 ); -//UNUSED2009-05 } diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index ccf3ddf..683f22c 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -3354,11 +3354,6 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScTableRowsObj ) //------------------------------------------------------------------------ -//UNUSED2008-05 ScSpreadsheetSettingsObj::ScSpreadsheetSettingsObj(ScDocShell* pDocSh) : -//UNUSED2008-05 pDocShell( pDocSh ) -//UNUSED2008-05 { -//UNUSED2008-05 pDocShell->GetDocument()->AddUnoObject(*this); -//UNUSED2008-05 } ScSpreadsheetSettingsObj::~ScSpreadsheetSettingsObj() { diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index 94e22b6..cda5bfa 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -432,13 +432,6 @@ void SAL_CALL ScCellFieldsObj::removeRefreshListener( const uno::Reference SAL_CALL ScEmptyEnumerationAccess::createEnumeration() -//UNUSED2008-05 throw(uno::RuntimeException) -//UNUSED2008-05 { -//UNUSED2008-05 ScUnoGuard aGuard; -//UNUSED2008-05 return new ScEmptyEnumeration; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 uno::Type SAL_CALL ScEmptyEnumerationAccess::getElementType() throw(uno::RuntimeException) -//UNUSED2008-05 { -//UNUSED2008-05 ScUnoGuard aGuard; -//UNUSED2008-05 return getCppuType((uno::Reference*)0); // or what? -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 sal_Bool SAL_CALL ScEmptyEnumerationAccess::hasElements() throw(uno::RuntimeException) -//UNUSED2008-05 { -//UNUSED2008-05 return FALSE; -//UNUSED2008-05 } //------------------------------------------------------------------------ -//UNUSED2008-05 ScEmptyEnumeration::ScEmptyEnumeration() -//UNUSED2008-05 { -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 ScEmptyEnumeration::~ScEmptyEnumeration() -//UNUSED2008-05 { -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 // XEnumeration -//UNUSED2008-05 -//UNUSED2008-05 sal_Bool SAL_CALL ScEmptyEnumeration::hasMoreElements() throw(uno::RuntimeException) -//UNUSED2008-05 { -//UNUSED2008-05 ScUnoGuard aGuard; -//UNUSED2008-05 return FALSE; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 uno::Any SAL_CALL ScEmptyEnumeration::nextElement() throw(container::NoSuchElementException, -//UNUSED2008-05 lang::WrappedTargetException, uno::RuntimeException) -//UNUSED2008-05 { -//UNUSED2008-05 ScUnoGuard aGuard; -//UNUSED2008-05 return uno::Any(); -//UNUSED2008-05 } //------------------------------------------------------------------------ @@ -382,40 +329,6 @@ sal_Bool SAL_CALL ScNameToIndexAccess::hasElements( ) throw(::com::sun::star::u //------------------------------------------------------------------------ -//UNUSED2008-05 ScPrintSettingsObj::ScPrintSettingsObj() -//UNUSED2008-05 { -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 ScPrintSettingsObj::~ScPrintSettingsObj() -//UNUSED2008-05 { -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 // XPropertySet -//UNUSED2008-05 -//UNUSED2008-05 uno::Reference SAL_CALL ScPrintSettingsObj::getPropertySetInfo() -//UNUSED2008-05 throw(uno::RuntimeException) -//UNUSED2008-05 { -//UNUSED2008-05 return NULL; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void SAL_CALL ScPrintSettingsObj::setPropertyValue( -//UNUSED2008-05 const rtl::OUString& /* aPropertyName */, const uno::Any& /* aValue */ ) -//UNUSED2008-05 throw(beans::UnknownPropertyException, beans::PropertyVetoException, -//UNUSED2008-05 lang::IllegalArgumentException, lang::WrappedTargetException, -//UNUSED2008-05 uno::RuntimeException) -//UNUSED2008-05 { -//UNUSED2008-05 //! later... -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 uno::Any SAL_CALL ScPrintSettingsObj::getPropertyValue( const rtl::OUString& /* aPropertyName */ ) -//UNUSED2008-05 throw(beans::UnknownPropertyException, lang::WrappedTargetException, -//UNUSED2008-05 uno::RuntimeException) -//UNUSED2008-05 { -//UNUSED2008-05 //! later... -//UNUSED2008-05 return uno::Any(); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 SC_IMPL_DUMMY_PROPERTY_LISTENER( ScPrintSettingsObj ) //------------------------------------------------------------------------ diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index a9a83b7..a12ca58 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -350,13 +350,6 @@ static const sal_Char* __FAR_DATA aOldNames[SC_SERVICE_COUNT] = // alles static -//UNUSED2008-05 String ScServiceProvider::GetProviderName(sal_uInt16 nObjectType) -//UNUSED2008-05 { -//UNUSED2008-05 String sRet; -//UNUSED2008-05 if (nObjectType < SC_SERVICE_COUNT) -//UNUSED2008-05 sRet = String::CreateFromAscii( aProvNames[nObjectType] ); -//UNUSED2008-05 return sRet; -//UNUSED2008-05 } sal_uInt16 ScServiceProvider::GetProviderType(const String& rServiceName) { diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index e3936b7..5ec4a79 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1087,12 +1087,6 @@ void SAL_CALL ScStyleFamilyObj::removeVetoableChangeListener( const ::rtl::OUStr // Default-ctor wird fuer die Reflection gebraucht -//UNUSED2008-05 ScStyleObj::ScStyleObj() : -//UNUSED2008-05 aPropSet( lcl_GetCellStyleMap() ), -//UNUSED2008-05 pDocShell( NULL ), -//UNUSED2008-05 eFamily( SFX_STYLE_FAMILY_PARA ) -//UNUSED2008-05 { -//UNUSED2008-05 } ScStyleObj::ScStyleObj(ScDocShell* pDocSh, SfxStyleFamily eFam, const String& rName) : pPropSet( (eFam == SFX_STYLE_FAMILY_PARA) ? lcl_GetCellStyleSet() : lcl_GetPageStyleSet() ), diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx index 0a3fe3f..7974464 100644 --- a/sc/source/ui/unoobj/viewuno.cxx +++ b/sc/source/ui/unoobj/viewuno.cxx @@ -464,16 +464,6 @@ void SAL_CALL ScViewPaneObj::release() throw() // Default-ctor wird fuer SMART_REFLECTION_IMPLEMENTATION gebraucht -//UNUSED2008-05 ScTabViewObj::ScTabViewObj() : -//UNUSED2008-05 ScViewPaneBase( NULL, SC_VIEWPANE_ACTIVE ), -//UNUSED2008-05 SfxBaseController( NULL ), -//UNUSED2008-05 aPropSet( lcl_GetViewOptPropertyMap() ), -//UNUSED2008-05 aMouseClickHandlers( 0 ), -//UNUSED2008-05 aActivationListeners( 0 ), -//UNUSED2008-05 bDrawSelModeSet(sal_False), -//UNUSED2008-05 bFilteredRangeSelection(sal_True) -//UNUSED2008-05 { -//UNUSED2008-05 } ScTabViewObj::ScTabViewObj( ScTabViewShell* pViewSh ) : ScViewPaneBase( pViewSh, SC_VIEWPANE_ACTIVE ), diff --git a/sc/source/ui/view/dbfunc.cxx b/sc/source/ui/view/dbfunc.cxx index 891cf0e..cfa51fd 100644 --- a/sc/source/ui/view/dbfunc.cxx +++ b/sc/source/ui/view/dbfunc.cxx @@ -57,10 +57,6 @@ ScDBFunc::ScDBFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewSh { } -//UNUSED2008-05 ScDBFunc::ScDBFunc( Window* pParent, const ScDBFunc& rDBFunc, ScTabViewShell* pViewShell ) : -//UNUSED2008-05 ScViewFunc( pParent, rDBFunc, pViewShell ) -//UNUSED2008-05 { -//UNUSED2008-05 } ScDBFunc::~ScDBFunc() { diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx index 921f256..cd28dfe 100644 --- a/sc/source/ui/view/drawview.cxx +++ b/sc/source/ui/view/drawview.cxx @@ -695,22 +695,6 @@ BOOL ScDrawView::SelectObject( const String& rName ) return ( pFound != NULL ); } -//UNUSED2008-05 String ScDrawView::GetSelectedChartName() const -//UNUSED2008-05 { -//UNUSED2008-05 // used for modifying a chart's data area - PersistName must always be used -//UNUSED2008-05 // (as in ScDocument::FindChartData and UpdateChartArea) -//UNUSED2008-05 -//UNUSED2008-05 const SdrMarkList& rMarkList = GetMarkedObjectList(); -//UNUSED2008-05 if (rMarkList.GetMarkCount() == 1) -//UNUSED2008-05 { -//UNUSED2008-05 SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); -//UNUSED2008-05 if (pObj->GetObjIdentifier() == OBJ_OLE2) -//UNUSED2008-05 if ( pDoc->IsChart(pObj) ) -//UNUSED2008-05 return static_cast(pObj)->GetPersistName(); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 return EMPTY_STRING; // nichts gefunden -//UNUSED2008-05 } FASTBOOL ScDrawView::InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV, ULONG nOptions) { @@ -822,28 +806,3 @@ void ScDrawView::MarkDropObj( SdrObject* pObj ) } } -//UNUSED2009-05 void ScDrawView::CaptionTextDirection( USHORT nSlot ) -//UNUSED2009-05 { -//UNUSED2009-05 if(nSlot != SID_TEXTDIRECTION_LEFT_TO_RIGHT && nSlot != SID_TEXTDIRECTION_TOP_TO_BOTTOM) -//UNUSED2009-05 return; -//UNUSED2009-05 -//UNUSED2009-05 SdrObject* pObject = GetTextEditObject(); -//UNUSED2009-05 if ( ScDrawLayer::IsNoteCaption( pObject ) ) -//UNUSED2009-05 { -//UNUSED2009-05 if( SdrCaptionObj* pCaption = dynamic_cast< SdrCaptionObj* >( pObject ) ) -//UNUSED2009-05 { -//UNUSED2009-05 SfxItemSet aAttr(pCaption->GetMergedItemSet()); -//UNUSED2009-05 aAttr.Put( SvxWritingModeItem( -//UNUSED2009-05 nSlot == SID_TEXTDIRECTION_LEFT_TO_RIGHT ? -//UNUSED2009-05 com::sun::star::text::WritingMode_LR_TB : com::sun::star::text::WritingMode_TB_RL, -//UNUSED2009-05 SDRATTR_TEXTDIRECTION ) ); -//UNUSED2009-05 pCaption->SetMergedItemSet(aAttr); -//UNUSED2009-05 FuPoor* pPoor = pViewData->GetView()->GetDrawFuncPtr(); -//UNUSED2009-05 if ( pPoor ) -//UNUSED2009-05 { -//UNUSED2009-05 FuText* pText = static_cast(pPoor); -//UNUSED2009-05 pText->StopEditMode(TRUE); -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 } -//UNUSED2009-05 } diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 94aa9dc..365acfd 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -1833,72 +1833,6 @@ void ScGridWindow::GetSelectionRects( ::std::vector< Rectangle >& rPixelRects ) // ------------------------------------------------------------------------- -//UNUSED2008-05 void ScGridWindow::DrawDragRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( nX2 < pViewData->GetPosX(eHWhich) || nY2 < pViewData->GetPosY(eVWhich) ) -//UNUSED2008-05 return; -//UNUSED2008-05 -//UNUSED2008-05 Update(); // wegen XOR -//UNUSED2008-05 -//UNUSED2008-05 MapMode aOld = GetMapMode(); SetMapMode(MAP_PIXEL); -//UNUSED2008-05 -//UNUSED2008-05 SCTAB nTab = pViewData->GetTabNo(); -//UNUSED2008-05 -//UNUSED2008-05 SCCOL nPosX = pViewData->GetPosX(WhichH(eWhich)); -//UNUSED2008-05 SCROW nPosY = pViewData->GetPosY(WhichV(eWhich)); -//UNUSED2008-05 if (nX1 < nPosX) nX1 = nPosX; -//UNUSED2008-05 if (nX2 < nPosX) nX2 = nPosX; -//UNUSED2008-05 if (nY1 < nPosY) nY1 = nPosY; -//UNUSED2008-05 if (nY2 < nPosY) nY2 = nPosY; -//UNUSED2008-05 -//UNUSED2008-05 Point aScrPos( pViewData->GetScrPos( nX1, nY1, eWhich ) ); -//UNUSED2008-05 -//UNUSED2008-05 long nSizeXPix=0; -//UNUSED2008-05 long nSizeYPix=0; -//UNUSED2008-05 ScDocument* pDoc = pViewData->GetDocument(); -//UNUSED2008-05 double nPPTX = pViewData->GetPPTX(); -//UNUSED2008-05 double nPPTY = pViewData->GetPPTY(); -//UNUSED2008-05 SCCOLROW i; -//UNUSED2008-05 -//UNUSED2008-05 BOOL bLayoutRTL = pDoc->IsLayoutRTL( nTab ); -//UNUSED2008-05 long nLayoutSign = bLayoutRTL ? -1 : 1; -//UNUSED2008-05 -//UNUSED2008-05 if (ValidCol(nX2) && nX2>=nX1) -//UNUSED2008-05 for (i=nX1; i<=nX2; i++) -//UNUSED2008-05 nSizeXPix += ScViewData::ToPixel( pDoc->GetColWidth( static_cast(i), nTab ), nPPTX ); -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 aScrPos.X() -= nLayoutSign; -//UNUSED2008-05 nSizeXPix += 2; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 if (ValidRow(nY2) && nY2>=nY1) -//UNUSED2008-05 for (i=nY1; i<=nY2; i++) -//UNUSED2008-05 nSizeYPix += ScViewData::ToPixel( pDoc->GetRowHeight( i, nTab ), nPPTY ); -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 aScrPos.Y() -= 1; -//UNUSED2008-05 nSizeYPix += 2; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 aScrPos.X() -= 2 * nLayoutSign; -//UNUSED2008-05 aScrPos.Y() -= 2; -//UNUSED2008-05 // Rectangle aRect( aScrPos, Size( nSizeXPix + 3, nSizeYPix + 3 ) ); -//UNUSED2008-05 Rectangle aRect( aScrPos.X(), aScrPos.Y(), -//UNUSED2008-05 aScrPos.X() + ( nSizeXPix + 2 ) * nLayoutSign, aScrPos.Y() + nSizeYPix + 2 ); -//UNUSED2008-05 if ( bLayoutRTL ) -//UNUSED2008-05 { -//UNUSED2008-05 aRect.Left() = aRect.Right(); // end position is left -//UNUSED2008-05 aRect.Right() = aScrPos.X(); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 Invert(Rectangle( aRect.Left(), aRect.Top(), aRect.Left()+2, aRect.Bottom() )); -//UNUSED2008-05 Invert(Rectangle( aRect.Right()-2, aRect.Top(), aRect.Right(), aRect.Bottom() )); -//UNUSED2008-05 Invert(Rectangle( aRect.Left()+3, aRect.Top(), aRect.Right()-3, aRect.Top()+2 )); -//UNUSED2008-05 Invert(Rectangle( aRect.Left()+3, aRect.Bottom()-2, aRect.Right()-3, aRect.Bottom() )); -//UNUSED2008-05 -//UNUSED2008-05 SetMapMode(aOld); -//UNUSED2008-05 } // ------------------------------------------------------------------------- diff --git a/sc/source/ui/view/prevloc.cxx b/sc/source/ui/view/prevloc.cxx index a5fd77c..eeb54a4 100644 --- a/sc/source/ui/view/prevloc.cxx +++ b/sc/source/ui/view/prevloc.cxx @@ -294,44 +294,6 @@ ScPreviewLocationEntry* lcl_GetEntryByAddress( const List& rEntries, const ScAdd return NULL; } -//UNUSED2008-05 ScAddress ScPreviewLocationData::GetCellFromRange( const Size& rOffsetPixel, const ScRange& rRange ) const -//UNUSED2008-05 { -//UNUSED2008-05 const double nScaleX = HMM_PER_TWIPS; -//UNUSED2008-05 const double nScaleY = HMM_PER_TWIPS; -//UNUSED2008-05 -//UNUSED2008-05 Size aOffsetLogic = pWindow->PixelToLogic( rOffsetPixel, aCellMapMode ); -//UNUSED2008-05 SCTAB nTab = rRange.aStart.Tab(); -//UNUSED2008-05 -//UNUSED2008-05 long nPosX = 0; -//UNUSED2008-05 SCCOL nCol = rRange.aStart.Col(); -//UNUSED2008-05 SCCOL nEndCol = rRange.aEnd.Col(); -//UNUSED2008-05 while ( nCol <= nEndCol && nPosX < aOffsetLogic.Width() ) -//UNUSED2008-05 { -//UNUSED2008-05 USHORT nDocW = pDoc->GetColWidth( nCol, nTab ); -//UNUSED2008-05 if (nDocW) -//UNUSED2008-05 nPosX += (long) (nDocW * nScaleX); -//UNUSED2008-05 ++nCol; -//UNUSED2008-05 } -//UNUSED2008-05 if ( nCol > rRange.aStart.Col() ) -//UNUSED2008-05 --nCol; -//UNUSED2008-05 -//UNUSED2008-05 long nPosY = 0; -//UNUSED2008-05 ScCoupledCompressedArrayIterator< SCROW, BYTE, USHORT> aIter( -//UNUSED2008-05 pDoc->GetRowFlagsArray( nTab), rRange.aStart.Row(), -//UNUSED2008-05 rRange.aEnd.Row(), CR_HIDDEN, 0, pDoc->GetRowHeightArray( nTab)); -//UNUSED2008-05 while ( aIter && nPosY < aOffsetLogic.Height() ) -//UNUSED2008-05 { -//UNUSED2008-05 USHORT nDocH = *aIter; -//UNUSED2008-05 if (nDocH) -//UNUSED2008-05 nPosY += (long) (nDocH * nScaleY); -//UNUSED2008-05 ++aIter; -//UNUSED2008-05 } -//UNUSED2008-05 SCROW nRow = aIter.GetPos(); -//UNUSED2008-05 if ( nRow > rRange.aStart.Row() ) -//UNUSED2008-05 --nRow; -//UNUSED2008-05 -//UNUSED2008-05 return ScAddress( nCol, nRow, nTab ); -//UNUSED2008-05 } Rectangle ScPreviewLocationData::GetOffsetPixel( const ScAddress& rCellPos, const ScRange& rRange ) const { diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index f192d7b..84a58af 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -397,22 +397,6 @@ ScTabView::ScTabView( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pView Init(); } -//UNUSED2009-05 ScTabView::ScTabView( Window* pParent, const ScTabView& rScTabView, ScTabViewShell* pViewShell ) : -//UNUSED2009-05 pFrameWin( pParent ), -//UNUSED2009-05 aViewData( rScTabView.aViewData ), -//UNUSED2009-05 TABVIEW_INIT -//UNUSED2009-05 { -//UNUSED2009-05 RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScTabView::ScTabView" ); -//UNUSED2009-05 -//UNUSED2009-05 aViewData.SetViewShell( pViewShell ); -//UNUSED2009-05 Init(); -//UNUSED2009-05 -//UNUSED2009-05 UpdateShow(); -//UNUSED2009-05 if ( aViewData.GetActivePart() != SC_SPLIT_BOTTOMLEFT ) -//UNUSED2009-05 pGridWin[SC_SPLIT_BOTTOMLEFT]->Show(); -//UNUSED2009-05 -//UNUSED2009-05 InvalidateSplit(); -//UNUSED2009-05 } void ScTabView::InitScrollBar( ScrollBar& rScrollBar, long nMaxVal ) { @@ -1085,10 +1069,6 @@ void ScTabView::SetActivePointer( const Pointer& rPointer ) */ } -//UNUSED2008-05 void ScTabView::SetActivePointer( const ResId& ) -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ERRORFILE( "keine Pointer mit ResId!" ); -//UNUSED2008-05 } void ScTabView::ActiveGrabFocus() { @@ -1097,28 +1077,6 @@ void ScTabView::ActiveGrabFocus() pGridWin[ePos]->GrabFocus(); } -//UNUSED2008-05 void ScTabView::ActiveCaptureMouse() -//UNUSED2008-05 { -//UNUSED2008-05 ScSplitPos ePos = aViewData.GetActivePart(); -//UNUSED2008-05 if (pGridWin[ePos]) -//UNUSED2008-05 pGridWin[ePos]->CaptureMouse(); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void ScTabView::ActiveReleaseMouse() -//UNUSED2008-05 { -//UNUSED2008-05 ScSplitPos ePos = aViewData.GetActivePart(); -//UNUSED2008-05 if (pGridWin[ePos]) -//UNUSED2008-05 pGridWin[ePos]->ReleaseMouse(); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 Point ScTabView::ActivePixelToLogic( const Point& rDevicePoint ) -//UNUSED2008-05 { -//UNUSED2008-05 ScSplitPos ePos = aViewData.GetActivePart(); -//UNUSED2008-05 if (pGridWin[ePos]) -//UNUSED2008-05 return pGridWin[ePos]->PixelToLogic(rDevicePoint); -//UNUSED2008-05 else -//UNUSED2008-05 return Point(); -//UNUSED2008-05 } ScSplitPos ScTabView::FindWindow( Window* pWindow ) const { diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index 961f526..f7f799b 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -2164,43 +2164,6 @@ void ScTabView::DoChartSelection( // DrawDragRect - Drag&Drop-Rechteck zeichnen (XOR) -//UNUSED2008-05 void ScTabView::DrawDragRect( SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY, -//UNUSED2008-05 ScSplitPos ePos ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( aViewData.GetHSplitMode() == SC_SPLIT_FIX || aViewData.GetVSplitMode() == SC_SPLIT_FIX ) -//UNUSED2008-05 { -//UNUSED2008-05 for (USHORT i=0; i<4; i++) -//UNUSED2008-05 if (pGridWin[i]) -//UNUSED2008-05 if (pGridWin[i]->IsVisible()) -//UNUSED2008-05 pGridWin[i]->DrawDragRect( nStartX, nStartY, nEndX, nEndY ); -//UNUSED2008-05 } -//UNUSED2008-05 else -//UNUSED2008-05 pGridWin[ePos]->DrawDragRect( nStartX, nStartY, nEndX, nEndY ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 // PaintCell - einzelne Zelle neu zeichnen -//UNUSED2008-05 -//UNUSED2008-05 void ScTabView::PaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab ) -//UNUSED2008-05 { -//UNUSED2008-05 if ( aViewData.GetTabNo() == nTab ) -//UNUSED2008-05 { -//UNUSED2008-05 USHORT i; -//UNUSED2008-05 for (i=0; i<4; i++) -//UNUSED2008-05 if (pGridWin[i]) -//UNUSED2008-05 if (pGridWin[i]->IsVisible()) -//UNUSED2008-05 pGridWin[i]->Draw( nCol, nRow, nCol, nRow ); -//UNUSED2008-05 } -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void ScTabView::PaintLeftRow( SCROW nRow ) -//UNUSED2008-05 { -//UNUSED2008-05 PaintLeftArea( nRow, nRow ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void ScTabView::PaintTopCol( SCCOL nCol ) -//UNUSED2008-05 { -//UNUSED2008-05 PaintTopArea( nCol, nCol ); -//UNUSED2008-05 } // PaintGrid - Datenbereiche neu zeichnen diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx index 0eb8851..5eb70d0 100644 --- a/sc/source/ui/view/tabview4.cxx +++ b/sc/source/ui/view/tabview4.cxx @@ -333,13 +333,6 @@ void ScTabView::InitRefMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScRefType eT } } -//UNUSED2008-05 void ScTabView::EndSelection() -//UNUSED2008-05 { -//UNUSED2008-05 ScModule* pScMod = SC_MOD(); -//UNUSED2008-05 BOOL bRefMode = pScMod->IsFormulaMode(); -//UNUSED2008-05 if ( bRefMode ) -//UNUSED2008-05 pScMod->EndReference(); -//UNUSED2008-05 } // static void ScTabView::SetScrollBar( ScrollBar& rScroll, long nRangeMax, long nVisible, long nPos, BOOL bLayoutRTL ) diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index a42ff86..6b8aa2e 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -406,13 +406,6 @@ BOOL ScTabView::IsDrawTextEdit() const return FALSE; } -//UNUSED2008-05 String ScTabView::GetSelectedChartName() const -//UNUSED2008-05 { -//UNUSED2008-05 if (pDrawView) -//UNUSED2008-05 return pDrawView->GetSelectedChartName(); -//UNUSED2008-05 else -//UNUSED2008-05 return EMPTY_STRING; -//UNUSED2008-05 } SvxZoomType ScTabView::GetZoomType() const { diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx index 7b4bc68..b8af5b3 100644 --- a/sc/source/ui/view/tabvwsh2.cxx +++ b/sc/source/ui/view/tabvwsh2.cxx @@ -318,7 +318,6 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq) break; case SID_DRAW_CHART: -//UNUSED2008-05 bChartDlgIsEdit = FALSE; pTabView->SetDrawFuncPtr(new FuMarkRect(this, pWin, pView, pDoc, aNewReq)); break; diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 095a6f3..d37c5df 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -646,24 +646,6 @@ void ScTabViewShell::DoReadUserData( const String& rData ) //------------------------------------------------------------------ -//UNUSED2008-05 void ScTabViewShell::ExecuteShowNIY( SfxRequest& /* rReq */ ) -//UNUSED2008-05 { -//UNUSED2008-05 ErrorMessage(STR_BOX_YNI); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 //------------------------------------------------------------------ -//UNUSED2008-05 -//UNUSED2008-05 void ScTabViewShell::StateDisabled( SfxItemSet& rSet ) -//UNUSED2008-05 { -//UNUSED2008-05 SfxWhichIter aIter( rSet ); -//UNUSED2008-05 USHORT nWhich = aIter.FirstWhich(); -//UNUSED2008-05 -//UNUSED2008-05 while ( nWhich ) -//UNUSED2008-05 { -//UNUSED2008-05 rSet.DisableItem( nWhich ); -//UNUSED2008-05 nWhich = aIter.NextWhich(); -//UNUSED2008-05 } -//UNUSED2008-05 } void ScTabViewShell::SetDrawShellOrSub() { @@ -1102,17 +1084,6 @@ SfxShell* ScTabViewShell::GetMySubShell() const return NULL; // keine von meinen dabei } -//UNUSED2008-05 void ScTabViewShell::SetMySubShell( SfxShell* pShell ) -//UNUSED2008-05 { -//UNUSED2008-05 SfxShell* pOld = GetMySubShell(); -//UNUSED2008-05 if ( pOld != pShell ) -//UNUSED2008-05 { -//UNUSED2008-05 if (pOld) -//UNUSED2008-05 RemoveSubShell(pOld); // alte SubShell entfernen -//UNUSED2008-05 if (pShell) -//UNUSED2008-05 AddSubShell(*pShell); // neue setzen -//UNUSED2008-05 } -//UNUSED2008-05 } BOOL ScTabViewShell::IsDrawTextShell() const { @@ -1883,29 +1854,6 @@ void ScTabViewShell::Construct( BYTE nForceDesignMode ) //------------------------------------------------------------------ -//UNUSED2008-05 ScTabViewShell::ScTabViewShell( SfxViewFrame* pViewFrame, -//UNUSED2008-05 const ScTabViewShell& rWin ) : -//UNUSED2008-05 SfxViewShell( pViewFrame, SFX_VIEW_MAXIMIZE_FIRST | SFX_VIEW_CAN_PRINT | SFX_VIEW_HAS_PRINTOPTIONS ), -//UNUSED2008-05 ScDBFunc( &pViewFrame->GetWindow(), rWin, this ), -//UNUSED2008-05 __INIT_ScTabViewShell -//UNUSED2008-05 { -//UNUSED2008-05 RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScTabViewShell::ScTabViewShell" ); -//UNUSED2008-05 -//UNUSED2008-05 Construct(); -//UNUSED2008-05 -//UNUSED2008-05 UpdatePageBreakData(); -//UNUSED2008-05 -//UNUSED2008-05 /*uno::Reference xFrame = pViewFrame->GetFrame().GetFrameInterface(); -//UNUSED2008-05 if (xFrame.is()) -//UNUSED2008-05 xFrame->setComponent( uno::Reference(), new ScTabViewObj( this ) );*/ -//UNUSED2008-05 // make Controller known to SFX -//UNUSED2008-05 new ScTabViewObj( this ); -//UNUSED2008-05 -//UNUSED2008-05 SetCurSubShell(OST_Cell); -//UNUSED2008-05 SvBorder aBorder; -//UNUSED2008-05 GetBorderSize( aBorder, Size() ); -//UNUSED2008-05 SetBorderPixel( aBorder ); -//UNUSED2008-05 } //------------------------------------------------------------------ @@ -2048,10 +1996,6 @@ void ScTabViewShell::SetChartArea( const ScRangeListRef& rSource, const Rectangl nChartDestTab = GetViewData()->GetTabNo(); } -//UNUSED2008-05 void ScTabViewShell::ResetChartArea() -//UNUSED2008-05 { -//UNUSED2008-05 bChartAreaValid = FALSE; -//UNUSED2008-05 } BOOL ScTabViewShell::GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const { @@ -2061,15 +2005,6 @@ BOOL ScTabViewShell::GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SC return bChartAreaValid; } -//UNUSED2008-05 BOOL ScTabViewShell::IsChartDlgEdit() const -//UNUSED2008-05 { -//UNUSED2008-05 return bChartDlgIsEdit; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 const String& ScTabViewShell::GetEditChartName() const -//UNUSED2008-05 { -//UNUSED2008-05 return aEditChartName; -//UNUSED2008-05 } ScNavigatorSettings* ScTabViewShell::GetNavigatorSettings() { diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index 4ca36e4..1bc57f7 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -430,51 +430,6 @@ void ScViewData::InitData( ScDocument* pDocument ) *pOptions = pDoc->GetViewOptions(); } -//UNUSED2008-05 void ScViewData::InitFrom( const ScViewData* pRef ) -//UNUSED2008-05 { -//UNUSED2008-05 if (pRef==NULL) -//UNUSED2008-05 { -//UNUSED2008-05 DBG_ERROR("ScViewData::InitFrom mit NULL"); -//UNUSED2008-05 return; -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 aScrSize = pRef->aScrSize; -//UNUSED2008-05 nTabNo = pRef->nTabNo; -//UNUSED2008-05 eDefZoomType = pRef->eDefZoomType; -//UNUSED2008-05 aDefZoomX = pRef->aDefZoomX; -//UNUSED2008-05 aDefZoomY = pRef->aDefZoomY; -//UNUSED2008-05 aDefPageZoomX = pRef->aDefPageZoomX; -//UNUSED2008-05 aDefPageZoomY = pRef->aDefPageZoomY; -//UNUSED2008-05 bPagebreak = pRef->bPagebreak; -//UNUSED2008-05 aLogicMode = pRef->aLogicMode; -//UNUSED2008-05 -//UNUSED2008-05 SetGridMode ( pRef->IsGridMode() ); -//UNUSED2008-05 SetSyntaxMode ( pRef->IsSyntaxMode() ); -//UNUSED2008-05 SetHeaderMode ( pRef->IsHeaderMode() ); -//UNUSED2008-05 SetTabMode ( pRef->IsTabMode() ); -//UNUSED2008-05 SetVScrollMode ( pRef->IsVScrollMode() ); -//UNUSED2008-05 SetHScrollMode ( pRef->IsHScrollMode() ); -//UNUSED2008-05 SetOutlineMode ( pRef->IsOutlineMode() ); -//UNUSED2008-05 -//UNUSED2008-05 for (SCTAB i=0; i<=MAXTAB; i++) -//UNUSED2008-05 { -//UNUSED2008-05 delete pTabData[i]; -//UNUSED2008-05 if (pRef->pTabData[i]) -//UNUSED2008-05 pTabData[i] = new ScViewDataTable( *pRef->pTabData[i] ); -//UNUSED2008-05 else -//UNUSED2008-05 pTabData[i] = NULL; -//UNUSED2008-05 } -//UNUSED2008-05 pThisTab = pTabData[nTabNo]; -//UNUSED2008-05 CalcPPT(); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 void ScViewData::SetDocShell( ScDocShell* pShell ) -//UNUSED2008-05 { -//UNUSED2008-05 pDocShell = pShell; -//UNUSED2008-05 pDoc = pDocShell->GetDocument(); -//UNUSED2008-05 *pOptions = pDoc->GetViewOptions(); -//UNUSED2008-05 CalcPPT(); -//UNUSED2008-05 } ScDocument* ScViewData::GetDocument() const { @@ -593,10 +548,6 @@ void ScViewData::MoveTab( SCTAB nSrcTab, SCTAB nDestTab ) aMarkData.InsertTab( nInsTab ); // ggf. angepasst } -//UNUSED2008-05 void ScViewData::UpdateOle( ScSplitPos /* eWhich */ ) -//UNUSED2008-05 { -//UNUSED2008-05 GetDocShell()->UpdateOle(this); -//UNUSED2008-05 } void ScViewData::SetViewShell( ScTabViewShell* pViewSh ) { @@ -1762,15 +1713,6 @@ SCROW ScViewData::PrevCellsY( ScVSplitPos eWhichY ) const return CellsAtY( GetPosY( eWhichY ), -1, eWhichY, SC_SIZE_NONE ); } -//UNUSED2008-05 SCCOL ScViewData::LastCellsX( ScHSplitPos eWhichX ) const -//UNUSED2008-05 { -//UNUSED2008-05 return CellsAtX( MAXCOL+1, -1, eWhichX, SC_SIZE_NONE ); -//UNUSED2008-05 } -//UNUSED2008-05 -//UNUSED2008-05 SCROW ScViewData::LastCellsY( ScVSplitPos eWhichY ) const -//UNUSED2008-05 { -//UNUSED2008-05 return CellsAtY( MAXROW+1, -1, eWhichY, SC_SIZE_NONE ); -//UNUSED2008-05 } BOOL ScViewData::GetMergeSizePixel( SCCOL nX, SCROW nY, long& rSizeXPix, long& rSizeYPix ) { diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index c341e8e..a5bc085 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -835,36 +835,6 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData //---------------------------------------------------------------------------- -//UNUSED2008-05 void ScViewFunc::PaintWidthHeight( BOOL bColumns, SCCOLROW nStart, SCCOLROW nEnd ) -//UNUSED2008-05 { -//UNUSED2008-05 SCTAB nTab = GetViewData()->GetTabNo(); -//UNUSED2008-05 ScDocument* pDoc = GetViewData()->GetDocument(); -//UNUSED2008-05 -//UNUSED2008-05 USHORT nParts = PAINT_GRID; -//UNUSED2008-05 SCCOL nStartCol = 0; -//UNUSED2008-05 SCROW nStartRow = 0; -//UNUSED2008-05 SCCOL nEndCol = MAXCOL; // fuer Test auf Merge -//UNUSED2008-05 SCROW nEndRow = MAXROW; -//UNUSED2008-05 if ( bColumns ) -//UNUSED2008-05 { -//UNUSED2008-05 nParts |= PAINT_TOP; -//UNUSED2008-05 nStartCol = static_cast(nStart); -//UNUSED2008-05 nEndCol = static_cast(nEnd); -//UNUSED2008-05 } -//UNUSED2008-05 else -//UNUSED2008-05 { -//UNUSED2008-05 nParts |= PAINT_LEFT; -//UNUSED2008-05 nStartRow = nStart; -//UNUSED2008-05 nEndRow = nEnd; -//UNUSED2008-05 } -//UNUSED2008-05 if (pDoc->HasAttrib( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab, -//UNUSED2008-05 HASATTR_MERGED | HASATTR_OVERLAPPED )) -//UNUSED2008-05 { -//UNUSED2008-05 nStartCol = 0; -//UNUSED2008-05 nStartRow = 0; -//UNUSED2008-05 } -//UNUSED2008-05 GetViewData()->GetDocShell()->PostPaint( nStartCol,nStartRow,nTab, MAXCOL,MAXROW,nTab, nParts ); -//UNUSED2008-05 } //---------------------------------------------------------------------------- diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx index 5b997d2..57699ef 100644 --- a/sc/source/ui/view/viewfun4.cxx +++ b/sc/source/ui/view/viewfun4.cxx @@ -458,11 +458,6 @@ void ScViewFunc::DoThesaurus( BOOL bRecord ) pDocSh->PostPaintGridAll(); } -//UNUSED2008-05 // Spelling Checker - Undo ok -//UNUSED2008-05 void ScViewFunc::DoSpellingChecker( BOOL bRecord ) -//UNUSED2008-05 { -//UNUSED2008-05 DoSheetConversion( ScConversionParam( SC_CONVERSION_SPELLCHECK ), bRecord ); -//UNUSED2008-05 } void ScViewFunc::DoHangulHanjaConversion( BOOL bRecord ) { @@ -609,16 +604,6 @@ void ScViewFunc::DoSheetConversion( const ScConversionParam& rConvParam, BOOL bR } -//UNUSED2008-05 IMPL_LINK_INLINE_START( ScViewFunc, SpellError, void *, nLang ) -//UNUSED2008-05 { -//UNUSED2008-05 SvtLanguageTable aLangTab; -//UNUSED2008-05 String aErr = aLangTab.GetString((LanguageType) (ULONG) nLang); -//UNUSED2008-05 ErrorHandler::HandleError(*new StringErrorInfo( -//UNUSED2008-05 ERRCODE_SVX_LINGU_LANGUAGENOTEXISTS, aErr) ); -//UNUSED2008-05 -//UNUSED2008-05 return 0; -//UNUSED2008-05 } -//UNUSED2008-05 IMPL_LINK_INLINE_END( ScViewFunc, SpellError, void *, nLang ) // Pasten von FORMAT_FILE-Items // wird nicht direkt aus Drop aufgerufen, sondern asynchron -> Dialoge sind erlaubt diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index b5dc1be..82bfaba 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -98,11 +98,6 @@ ScViewFunc::ScViewFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pVi { } -//UNUSED2008-05 ScViewFunc::ScViewFunc( Window* pParent, const ScViewFunc& rViewFunc, ScTabViewShell* pViewShell ) : -//UNUSED2008-05 ScTabView( pParent, rViewFunc, pViewShell ), -//UNUSED2008-05 bFormatValid( FALSE ) -//UNUSED2008-05 { -//UNUSED2008-05 } ScViewFunc::~ScViewFunc() {