Patch to remove some comments from binfilter/bf_sw/source/core/unocore/ Graeme
From 2534fd28c101cdf9b578010f9f4500458c2272df Mon Sep 17 00:00:00 2001 From: J. Graeme Lingard <jgraeme+...@gmail.com> Date: Sun, 24 Oct 2010 22:47:06 +0100 Subject: [PATCH] Clean up some comments in binfilter/bf_sw/source/core/unocore/
--- .../source/core/unocore/sw_TextCursorHelper.cxx | 6 +-- binfilter/bf_sw/source/core/unocore/sw_unobkm.cxx | 57 +------------------ .../bf_sw/source/core/unocore/sw_unoclbck.cxx | 15 ----- .../bf_sw/source/core/unocore/sw_unorefmk.cxx | 56 ------------------- 4 files changed, 4 insertions(+), 130 deletions(-) diff --git a/binfilter/bf_sw/source/core/unocore/sw_TextCursorHelper.cxx b/binfilter/bf_sw/source/core/unocore/sw_TextCursorHelper.cxx index efd2aaa..e9a737e 100644 --- a/binfilter/bf_sw/source/core/unocore/sw_TextCursorHelper.cxx +++ b/binfilter/bf_sw/source/core/unocore/sw_TextCursorHelper.cxx @@ -25,6 +25,7 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ + #include "TextCursorHelper.hxx" #include <errhdl.hxx> @@ -33,17 +34,13 @@ namespace binfilter { using namespace ::com::sun::star; -/* -----------------------------03.03.03 11:07-------------------------------- - ---------------------------------------------------------------------------*/ const uno::Sequence< sal_Int8 > & OTextCursorHelper::getUnoTunnelId() { static uno::Sequence< sal_Int8 > aSeq = ::binfilter::CreateUnoTunnelId(); return aSeq; } -/* -----------------------------03.03.03 11:07-------------------------------- - ---------------------------------------------------------------------------*/ //XUnoTunnel sal_Int64 SAL_CALL OTextCursorHelper::getSomething( const uno::Sequence< sal_Int8 >& rId ) @@ -57,7 +54,6 @@ sal_Int64 SAL_CALL OTextCursorHelper::getSomething( } return 0; } -// ----------------------------------------------------------------------------- } diff --git a/binfilter/bf_sw/source/core/unocore/sw_unobkm.cxx b/binfilter/bf_sw/source/core/unocore/sw_unobkm.cxx index 7c52b40..51aac41 100644 --- a/binfilter/bf_sw/source/core/unocore/sw_unobkm.cxx +++ b/binfilter/bf_sw/source/core/unocore/sw_unobkm.cxx @@ -26,7 +26,6 @@ * ************************************************************************/ - #ifdef _MSC_VER #pragma hdrstop #endif @@ -59,17 +58,13 @@ using namespace ::rtl; * SwXBookmark ******************************************************************/ TYPEINIT1(SwXBookmark, SwClient) -/* -----------------------------13.03.00 12:15-------------------------------- - ---------------------------------------------------------------------------*/ const uno::Sequence< sal_Int8 > & SwXBookmark::getUnoTunnelId() { static uno::Sequence< sal_Int8 > aSeq = ::binfilter::CreateUnoTunnelId(); return aSeq; } -/* -----------------------------10.03.00 18:04-------------------------------- - ---------------------------------------------------------------------------*/ sal_Int64 SAL_CALL SwXBookmark::getSomething( const uno::Sequence< sal_Int8 >& rId ) throw(uno::RuntimeException) { @@ -81,9 +76,7 @@ sal_Int64 SAL_CALL SwXBookmark::getSomething( const uno::Sequence< sal_Int8 >& r } return 0; } -/* -----------------10.12.98 10:16------------------- - * - * --------------------------------------------------*/ + SwXBookmark::SwXBookmark(SwBookmark* pBkm, SwDoc* pDc) : pDoc(pDc), bIsDescriptor(0 == pBkm), @@ -92,16 +85,11 @@ SwXBookmark::SwXBookmark(SwBookmark* pBkm, SwDoc* pDc) : if(pBkm) pBkm->Add(this); } -/*-- 10.12.98 10:14:29--------------------------------------------------- - -----------------------------------------------------------------------*/ SwXBookmark::~SwXBookmark() { - } -/*-- 10.12.98 10:14:39--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::attachToRange(const uno::Reference< text::XTextRange > & xTextRange) throw( lang::IllegalArgumentException, uno::RuntimeException ) { @@ -113,7 +101,6 @@ void SwXBookmark::attachToRange(const uno::Reference< text::XTextRange > & xText OTextCursorHelper* pCursor = 0; if(xRangeTunnel.is()) { - pRange = (SwXTextRange*)xRangeTunnel->getSomething( SwXTextRange::getUnoTunnelId()); pCursor = (OTextCursorHelper*)xRangeTunnel->getSomething( @@ -145,18 +132,14 @@ void SwXBookmark::attachToRange(const uno::Reference< text::XTextRange > & xText else throw lang::IllegalArgumentException(); } -/* -----------------18.02.99 13:31------------------- - * - * --------------------------------------------------*/ + void SwXBookmark::attach(const uno::Reference< text::XTextRange > & xTextRange) throw( lang::IllegalArgumentException, uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); attachToRange( xTextRange ); } -/*-- 10.12.98 10:14:39--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Reference< text::XTextRange > SwXBookmark::getAnchor(void) throw( uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); @@ -173,12 +156,8 @@ uno::Reference< text::XTextRange > SwXBookmark::getAnchor(void) throw( uno::Run else throw uno::RuntimeException(); return aRet; - - } -/*-- 10.12.98 10:14:40--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::dispose(void) throw( uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); @@ -188,9 +167,7 @@ void SwXBookmark::dispose(void) throw( uno::RuntimeException ) else throw uno::RuntimeException(); } -/*-- 10.12.98 10:14:40--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::addEventListener(const uno::Reference< lang::XEventListener > & aListener) throw( uno::RuntimeException ) { @@ -198,18 +175,14 @@ void SwXBookmark::addEventListener(const uno::Reference< lang::XEventListener > throw uno::RuntimeException(); aLstnrCntnr.AddListener(aListener); } -/*-- 10.12.98 10:14:41--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::removeEventListener(const uno::Reference< lang::XEventListener > & aListener) throw( uno::RuntimeException ) { if(!GetRegisteredIn() || !aLstnrCntnr.RemoveListener(aListener)) throw uno::RuntimeException(); } -/*-- 10.12.98 10:14:41--------------------------------------------------- - -----------------------------------------------------------------------*/ OUString SwXBookmark::getName(void) throw( uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); @@ -223,9 +196,7 @@ OUString SwXBookmark::getName(void) throw( uno::RuntimeException ) throw uno::RuntimeException(); return sRet; } -/*-- 10.12.98 10:14:42--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::setName(const OUString& rName) throw( uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); @@ -255,16 +226,11 @@ void SwXBookmark::setName(const OUString& rName) throw( uno::RuntimeException ) throw uno::RuntimeException(); } -/* -----------------02.11.99 11:30------------------- - - --------------------------------------------------*/ OUString SwXBookmark::getImplementationName(void) throw( uno::RuntimeException ) { return C2U("SwXBookmark"); } -/* -----------------02.11.99 11:30------------------- - --------------------------------------------------*/ sal_Bool SwXBookmark::supportsService(const OUString& rServiceName) throw( uno::RuntimeException ) { return !rServiceName.compareToAscii("com.sun.star.text.Bookmark") || @@ -272,9 +238,7 @@ sal_Bool SwXBookmark::supportsService(const OUString& rServiceName) throw( uno:: !rServiceName.compareToAscii("com.sun.star.text.TextContent"); ; } -/* -----------------02.11.99 11:30------------------- - --------------------------------------------------*/ uno::Sequence< OUString > SwXBookmark::getSupportedServiceNames(void) throw( uno::RuntimeException ) { uno::Sequence< OUString > aRet(3); @@ -284,9 +248,7 @@ uno::Sequence< OUString > SwXBookmark::getSupportedServiceNames(void) throw( uno pArr[2] = C2U("com.sun.star.text.TextContent"); return aRet; } -/*-- 10.12.98 10:14:42--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::Modify( SfxPoolItem *pOld, SfxPoolItem *pNew) { ClientModify(this, pOld, pNew); @@ -296,9 +258,7 @@ void SwXBookmark::Modify( SfxPoolItem *pOld, SfxPoolItem *pNew) aLstnrCntnr.Disposing(); } } -/*-- 30.03.99 16:02:58--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Reference< beans::XPropertySetInfo > SwXBookmark::getPropertySetInfo(void) throw( uno::RuntimeException ) { static uno::Reference< beans::XPropertySetInfo > aRef; @@ -314,9 +274,7 @@ uno::Reference< beans::XPropertySetInfo > SwXBookmark::getPropertySetInfo(void) } return aRef; } -/*-- 30.03.99 16:02:59--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::setPropertyValue(const OUString& PropertyName, const uno::Any& aValue) throw( beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException ) @@ -324,9 +282,7 @@ void SwXBookmark::setPropertyValue(const OUString& PropertyName, const uno::Any& throw IllegalArgumentException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Property is read-only: " ) ) + PropertyName, static_cast < cppu::OWeakObject * > ( this ), 0 ); //hier gibt es nichts zu setzen } -/*-- 30.03.99 16:02:59--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Any SwXBookmark::getPropertyValue(const OUString& rPropertyName) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException ) { uno::Any aRet; @@ -337,36 +293,29 @@ uno::Any SwXBookmark::getPropertyValue(const OUString& rPropertyName) throw( bea } return aRet; } -/*-- 30.03.99 16:02:59--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::addPropertyChangeListener(const OUString& PropertyName, const uno::Reference< beans::XPropertyChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException ) { } -/*-- 30.03.99 16:02:59--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::removePropertyChangeListener(const OUString& PropertyName, const uno::Reference< beans::XPropertyChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException ) { } -/*-- 30.03.99 16:03:00--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::addVetoableChangeListener(const OUString& PropertyName, const uno::Reference< beans::XVetoableChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException ) { } -/*-- 30.03.99 16:03:00--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXBookmark::removeVetoableChangeListener(const OUString& PropertyName, const uno::Reference< beans::XVetoableChangeListener > & aListener) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException ) { } + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sw/source/core/unocore/sw_unoclbck.cxx b/binfilter/bf_sw/source/core/unocore/sw_unoclbck.cxx index 902c0f2..f568d76 100644 --- a/binfilter/bf_sw/source/core/unocore/sw_unoclbck.cxx +++ b/binfilter/bf_sw/source/core/unocore/sw_unoclbck.cxx @@ -30,9 +30,6 @@ #pragma hdrstop #endif - - - #include <errhdl.hxx> #include <unoidx.hxx> @@ -43,22 +40,15 @@ #include <doc.hxx> namespace binfilter { -/* -----------------------------06.01.00 13:51-------------------------------- - - ---------------------------------------------------------------------------*/ SwUnoCallBack::SwUnoCallBack(SwModify *pToRegisterIn) : SwModify(pToRegisterIn) { } -/* -----------------------------06.01.00 13:51-------------------------------- - ---------------------------------------------------------------------------*/ SwUnoCallBack::~SwUnoCallBack() { } -/* -----------------------------01.09.00 12:03-------------------------------- - ---------------------------------------------------------------------------*/ SwXReferenceMark* SwUnoCallBack::GetRefMark(const SwFmtRefMark& rMark) { SwClientIter aIter( *this ); @@ -76,9 +66,7 @@ SwXReferenceMark* SwUnoCallBack::GetRefMark(const SwFmtRefMark& rMark) } return 0; } -/* -----------------------------05.09.00 12:38-------------------------------- - ---------------------------------------------------------------------------*/ SwXFootnote* SwUnoCallBack::GetFootnote(const SwFmtFtn& rMark) { SwClientIter aIter( *this ); @@ -97,9 +85,6 @@ SwXFootnote* SwUnoCallBack::GetFootnote(const SwFmtFtn& rMark) return 0; } -/* -----------------------------27.11.00 17:15-------------------------------- - - ---------------------------------------------------------------------------*/ SwXDocumentIndexMark* SwUnoCallBack::GetTOXMark(const SwTOXMark& rMark) { SwClientIter aIter( *this ); diff --git a/binfilter/bf_sw/source/core/unocore/sw_unorefmk.cxx b/binfilter/bf_sw/source/core/unocore/sw_unorefmk.cxx index 55e3720..9c6db7e 100644 --- a/binfilter/bf_sw/source/core/unocore/sw_unorefmk.cxx +++ b/binfilter/bf_sw/source/core/unocore/sw_unorefmk.cxx @@ -26,7 +26,6 @@ * ************************************************************************/ - #ifdef _MSC_VER #pragma hdrstop #endif @@ -60,18 +59,12 @@ using namespace ::rtl; /****************************************************************** * SwXReferenceMark ******************************************************************/ - -/* -----------------------------13.03.00 12:15-------------------------------- - - ---------------------------------------------------------------------------*/ const uno::Sequence< sal_Int8 > & SwXReferenceMark::getUnoTunnelId() { static uno::Sequence< sal_Int8 > aSeq = ::binfilter::CreateUnoTunnelId(); return aSeq; } -/* -----------------------------10.03.00 18:04-------------------------------- - ---------------------------------------------------------------------------*/ sal_Int64 SAL_CALL SwXReferenceMark::getSomething( const uno::Sequence< sal_Int8 >& rId ) throw(uno::RuntimeException) { @@ -83,24 +76,18 @@ sal_Int64 SAL_CALL SwXReferenceMark::getSomething( const uno::Sequence< sal_Int8 } return 0; } -/* -----------------------------06.04.00 16:41-------------------------------- - ---------------------------------------------------------------------------*/ OUString SwXReferenceMark::getImplementationName(void) throw( RuntimeException ) { return C2U("SwXReferenceMark"); } -/* -----------------------------06.04.00 16:41-------------------------------- - ---------------------------------------------------------------------------*/ BOOL SwXReferenceMark::supportsService(const OUString& rServiceName) throw( RuntimeException ) { return !rServiceName.compareToAscii("com.sun.star.text.ReferenceMark")|| !rServiceName.compareToAscii("com.sun.star.text.TextContent"); } -/* -----------------------------06.04.00 16:41-------------------------------- - ---------------------------------------------------------------------------*/ Sequence< OUString > SwXReferenceMark::getSupportedServiceNames(void) throw( RuntimeException ) { Sequence< OUString > aRet(2); @@ -109,9 +96,7 @@ Sequence< OUString > SwXReferenceMark::getSupportedServiceNames(void) throw( Run pArray[1] = C2U("com.sun.star.text.TextContent"); return aRet; } -/*-- 11.12.98 10:28:32--------------------------------------------------- - -----------------------------------------------------------------------*/ TYPEINIT1(SwXReferenceMark, SwClient); SwXReferenceMark::SwXReferenceMark(SwDoc* pDc, const SwFmtRefMark* pRefMark) : @@ -125,16 +110,11 @@ SwXReferenceMark::SwXReferenceMark(SwDoc* pDc, const SwFmtRefMark* pRefMark) : if(pDoc) pDoc->GetUnoCallBack()->Add(this); } -/*-- 11.12.98 10:28:33--------------------------------------------------- - -----------------------------------------------------------------------*/ SwXReferenceMark::~SwXReferenceMark() { - } -/* -----------------03.11.99 14:14------------------- - --------------------------------------------------*/ void SwXReferenceMark::InsertRefMark(SwPaM& rPam, SwDoc* pDoc) { UnoActionContext aCont(pDoc); @@ -161,9 +141,6 @@ void SwXReferenceMark::InsertRefMark(SwPaM& rPam, SwDoc* pDoc) pDoc->GetUnoCallBack()->Add(this); } -/* -----------------18.02.99 13:33------------------- - * - * --------------------------------------------------*/ void SwXReferenceMark::attachToRange(const uno::Reference< text::XTextRange > & xTextRange) throw( lang::IllegalArgumentException, uno::RuntimeException ) { @@ -193,18 +170,14 @@ void SwXReferenceMark::attachToRange(const uno::Reference< text::XTextRange > & else throw lang::IllegalArgumentException(); } -/*-- 11.12.98 10:28:34--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::attach(const uno::Reference< text::XTextRange > & xTextRange) throw( lang::IllegalArgumentException, uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); attachToRange( xTextRange ); } -/*-- 11.12.98 10:28:34--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Reference< text::XTextRange > SwXReferenceMark::getAnchor(void) throw( uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); @@ -233,9 +206,7 @@ uno::Reference< text::XTextRange > SwXReferenceMark::getAnchor(void) throw( uno } return xRet; } -/*-- 11.12.98 10:28:35--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::dispose(void) throw( uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); @@ -261,26 +232,20 @@ void SwXReferenceMark::dispose(void) throw( uno::RuntimeException ) else throw uno::RuntimeException(); } -/*-- 11.12.98 10:28:35--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::addEventListener(const uno::Reference< lang::XEventListener > & aListener) throw( uno::RuntimeException ) { if(!GetRegisteredIn()) throw uno::RuntimeException(); aLstnrCntnr.AddListener(aListener); } -/*-- 11.12.98 10:28:35--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::removeEventListener(const uno::Reference< lang::XEventListener > & aListener) throw( uno::RuntimeException ) { if(!GetRegisteredIn() || !aLstnrCntnr.RemoveListener(aListener)) throw uno::RuntimeException(); } -/*-- 11.12.98 10:28:36--------------------------------------------------- - -----------------------------------------------------------------------*/ OUString SwXReferenceMark::getName(void) throw( uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); @@ -290,9 +255,7 @@ OUString SwXReferenceMark::getName(void) throw( uno::RuntimeException ) } return sMarkName; } -/*-- 11.12.98 10:28:36--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::setName(const OUString& Name_) throw( uno::RuntimeException ) { vos::OGuard aGuard(Application::GetSolarMutex()); @@ -330,9 +293,7 @@ void SwXReferenceMark::setName(const OUString& Name_) throw( uno::RuntimeExcepti } } } -/* -----------------------------07.01.00 12:51-------------------------------- - ---------------------------------------------------------------------------*/ void SwXReferenceMark::Invalidate() { if(GetRegisteredIn()) @@ -343,9 +304,7 @@ void SwXReferenceMark::Invalidate() pMark = 0; } } -/*-- 11.12.98 10:28:37--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::Modify( SfxPoolItem *pOld, SfxPoolItem *pNew) { switch( pOld ? pOld->Which() : 0 ) @@ -368,9 +327,6 @@ void SwXReferenceMark::Modify( SfxPoolItem *pOld, SfxPoolItem *pNew) } } -/*-- 12.09.00 12:58:20--------------------------------------------------- - - -----------------------------------------------------------------------*/ Reference< XPropertySetInfo > SwXReferenceMark::getPropertySetInfo( ) throw(RuntimeException) { static uno::Reference< beans::XPropertySetInfo > xRef = @@ -378,18 +334,14 @@ Reference< XPropertySetInfo > SwXReferenceMark::getPropertySetInfo( ) throw(Run getPropertySetInfo(); return xRef; } -/*-- 12.09.00 12:58:20--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::setPropertyValue( const OUString& aPropertyName, const Any& aValue ) throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException) { throw IllegalArgumentException(); } -/*-- 12.09.00 12:58:20--------------------------------------------------- - -----------------------------------------------------------------------*/ Any SwXReferenceMark::getPropertyValue( const OUString& rPropertyName ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException) { @@ -398,33 +350,25 @@ Any SwXReferenceMark::getPropertyValue( const OUString& rPropertyName ) throw UnknownPropertyException(); return aRet; } -/*-- 12.09.00 12:58:20--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::addPropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& xListener ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException) { } -/*-- 12.09.00 12:58:20--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::removePropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& aListener ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException) { } -/*-- 12.09.00 12:58:20--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::addVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException) { } -/*-- 12.09.00 12:58:21--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwXReferenceMark::removeVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException) -- 1.7.1
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice