summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-10 14:53:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-10 15:42:53 +0000
commitea1fa6963d1f45130a3dc3d635e5b37120bf364b (patch)
treefaf9361fae977f504e9d4ce795c3f6225bff67fb /sw
parent4e022ca124bbedfc6464f67edd11f3edd51d24e8 (diff)
Remove unused code
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/calbck.hxx1
-rw-r--r--sw/inc/swmodule.hxx4
-rw-r--r--sw/source/core/attr/calbck.cxx13
-rw-r--r--sw/source/ui/app/swmodul1.cxx20
-rw-r--r--sw/source/ui/docvw/FrameControlsManager.cxx5
-rw-r--r--sw/source/ui/inc/FrameControlsManager.hxx1
-rw-r--r--sw/source/ui/vba/vbatablehelper.cxx15
-rw-r--r--sw/source/ui/vba/vbatablehelper.hxx1
8 files changed, 0 insertions, 60 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index 09d6fcbff3ed..e962d568a120 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -179,7 +179,6 @@ public:
void CheckCaching( const sal_uInt16 nWhich );
bool IsLastDepend() { return pRoot && pRoot->IsLast(); }
- int GetClientCount() const;
};
// ----------
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx
index 72f026a0255e..64584f5651f3 100644
--- a/sw/inc/swmodule.hxx
+++ b/sw/inc/swmodule.hxx
@@ -207,13 +207,9 @@ public:
const Color& GetRedlineMarkColor();
SvxCompareMode GetCompareMode() const;
- void SetCompareMode( SvxCompareMode eMode );
sal_Bool IsUseRsid() const;
- void SetUseRsid( sal_Bool b );
sal_Bool IsIgnorePieces() const;
- void SetIgnorePieces( sal_Bool b );
sal_uInt16 GetPieceLen() const;
- void SetPieceLen( sal_uInt16 nLen );
// Return defined DocStat - WordDelimiter.
const String& GetDocStatWordDelim() const;
diff --git a/sw/source/core/attr/calbck.cxx b/sw/source/core/attr/calbck.cxx
index 76aaa46f07fc..6d63fb032276 100644
--- a/sw/source/core/attr/calbck.cxx
+++ b/sw/source/core/attr/calbck.cxx
@@ -312,19 +312,6 @@ SwClient* SwModify::Remove(SwClient * pDepend)
return pDepend;
}
-int SwModify::GetClientCount() const
-{
- int nRet=0;
- SwClientIter aIter( *this );
- SwClient *pLast = aIter.GoStart();
- if( pLast )
- do
- {
- ++nRet;
- } while( 0 != ( pLast = aIter++ ));
- return nRet;
-}
-
void SwModify::CheckCaching( const sal_uInt16 nWhich )
{
if (isCHRATR(nWhich))
diff --git a/sw/source/ui/app/swmodul1.cxx b/sw/source/ui/app/swmodul1.cxx
index 3998e422dd16..2ed478efbf41 100644
--- a/sw/source/ui/app/swmodul1.cxx
+++ b/sw/source/ui/app/swmodul1.cxx
@@ -660,39 +660,19 @@ SvxCompareMode SwModule::GetCompareMode() const
return pModuleConfig->GetCompareMode();
}
-void SwModule::SetCompareMode( SvxCompareMode eMode )
-{
- pModuleConfig->SetCompareMode( eMode );
-}
-
sal_Bool SwModule::IsUseRsid() const
{
return pModuleConfig->IsUseRsid();
}
-void SwModule::SetUseRsid( sal_Bool b )
-{
- pModuleConfig->SetUseRsid( b );
-}
-
sal_Bool SwModule::IsIgnorePieces() const
{
return pModuleConfig->IsIgnorePieces();
}
-void SwModule::SetIgnorePieces( sal_Bool b )
-{
- pModuleConfig->SetIgnorePieces( b );
-}
-
sal_uInt16 SwModule::GetPieceLen() const
{
return pModuleConfig->GetPieceLen();
}
-void SwModule::SetPieceLen( sal_uInt16 nLen )
-{
- pModuleConfig->SetPieceLen( nLen );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/docvw/FrameControlsManager.cxx b/sw/source/ui/docvw/FrameControlsManager.cxx
index b2621325b360..cd76e723482f 100644
--- a/sw/source/ui/docvw/FrameControlsManager.cxx
+++ b/sw/source/ui/docvw/FrameControlsManager.cxx
@@ -98,11 +98,6 @@ SwFrameControlPtr SwFrameControlsManager::GetControl( FrameControlType eType, co
return pControl;
}
-std::vector< SwFrameControlPtr >& SwFrameControlsManager::GetControls( FrameControlType eType )
-{
- return m_aControls[eType];
-}
-
void SwFrameControlsManager::AddControl( FrameControlType eType, SwFrameControlPtr pControl )
{
m_aControls[eType].push_back( pControl );
diff --git a/sw/source/ui/inc/FrameControlsManager.hxx b/sw/source/ui/inc/FrameControlsManager.hxx
index 06e618ce8fcb..5ae6c73d35c5 100644
--- a/sw/source/ui/inc/FrameControlsManager.hxx
+++ b/sw/source/ui/inc/FrameControlsManager.hxx
@@ -58,7 +58,6 @@ class SwFrameControlsManager
const SwFrameControlsManager& operator=( const SwFrameControlsManager& rCopy );
SwFrameControlPtr GetControl( FrameControlType eType, const SwFrm* pFrm );
- std::vector< SwFrameControlPtr >& GetControls( FrameControlType eType );
void AddControl( FrameControlType eType, SwFrameControlPtr pControl );
void RemoveControls( const SwFrm* pFrm );
void RemoveControlsByType( FrameControlType eType, const SwFrm* pFrm );
diff --git a/sw/source/ui/vba/vbatablehelper.cxx b/sw/source/ui/vba/vbatablehelper.cxx
index de37466c1853..d07225b08e61 100644
--- a/sw/source/ui/vba/vbatablehelper.cxx
+++ b/sw/source/ui/vba/vbatablehelper.cxx
@@ -146,21 +146,6 @@ sal_Int32 SwVbaTableHelper::getTableWidth( ) throw (uno::RuntimeException)
return nWidth;
}
-void SwVbaTableHelper::setTableWidth( sal_Int32 _width ) throw (uno::RuntimeException)
-{
- sal_Bool isWidthRelatvie = sal_False;
- uno::Reference< beans::XPropertySet > xTableProps( mxTextTable, uno::UNO_QUERY_THROW );
- xTableProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("IsWidthRelative") ) ) >>= isWidthRelatvie;
- if( isWidthRelatvie )
- {
- xTableProps->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("RelativeWidth") ), uno::makeAny( _width ));
- }
- else
- {
- xTableProps->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Width") ), uno::makeAny( _width ) );
- }
-}
-
SwTableBox* SwVbaTableHelper::GetTabBox( sal_Int32 nCol, sal_Int32 nRow ) throw (css::uno::RuntimeException)
{
SwTableLines& rLines = pTable->GetTabLines();
diff --git a/sw/source/ui/vba/vbatablehelper.hxx b/sw/source/ui/vba/vbatablehelper.hxx
index 0dcd630d07b8..72fc09bd1331 100644
--- a/sw/source/ui/vba/vbatablehelper.hxx
+++ b/sw/source/ui/vba/vbatablehelper.hxx
@@ -56,7 +56,6 @@ public:
sal_Int32 getTabRowIndex( const rtl::OUString& sCellName ) throw (css::uno::RuntimeException);
sal_Int32 getTabColIndex( const rtl::OUString& sCellName ) throw (css::uno::RuntimeException);
sal_Int32 getTableWidth( ) throw (css::uno::RuntimeException);
- void setTableWidth( sal_Int32 _width ) throw (css::uno::RuntimeException);
sal_Int32 GetColWidth( sal_Int32 nCol, sal_Int32 nRow = 0, sal_Bool bCurRowOnly = sal_False ) throw (css::uno::RuntimeException);
void SetColWidth( sal_Int32 _width, sal_Int32 nCol, sal_Int32 nRow = 0, sal_Bool bCurRowOnly = sal_False ) throw (css::uno::RuntimeException);