summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoftn.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unoftn.cxx')
-rw-r--r--sw/source/core/unocore/unoftn.cxx83
1 files changed, 2 insertions, 81 deletions
diff --git a/sw/source/core/unocore/unoftn.cxx b/sw/source/core/unocore/unoftn.cxx
index b5db26084fe9..db9e36bd2a6d 100644
--- a/sw/source/core/unocore/unoftn.cxx
+++ b/sw/source/core/unocore/unoftn.cxx
@@ -57,7 +57,6 @@ using ::rtl::OUString;
/******************************************************************
* SwXFootnote
******************************************************************/
-
class SwXFootnote::Impl
: public SwClient
{
@@ -105,9 +104,6 @@ public:
};
-/* -----------------------------07.01.00 12:39--------------------------------
-
- ---------------------------------------------------------------------------*/
void SwXFootnote::Impl::Invalidate()
{
if (GetRegisteredIn())
@@ -119,9 +115,6 @@ void SwXFootnote::Impl::Invalidate()
m_rThis.SetDoc(0);
}
-/* -----------------18.01.99 09:12-------------------
- *
- * --------------------------------------------------*/
void SwXFootnote::Impl::Modify(SfxPoolItem *pOld, SfxPoolItem *pNew)
{
ClientModify(this, pOld, pNew);
@@ -145,25 +138,18 @@ void SwXFootnote::Impl::Modify(SfxPoolItem *pOld, SfxPoolItem *pNew)
}
}
-/*-- 10.12.98 15:31:44---------------------------------------------------
-
- -----------------------------------------------------------------------*/
SwXFootnote::SwXFootnote(const bool bEndnote)
: SwXText(0, CURSOR_FOOTNOTE)
, m_pImpl( new SwXFootnote::Impl(*this, 0, 0, bEndnote) )
{
}
-/*-- 10.12.98 15:31:45---------------------------------------------------
- -----------------------------------------------------------------------*/
SwXFootnote::SwXFootnote(SwDoc & rDoc, const SwFmtFtn& rFmt)
: SwXText(& rDoc, CURSOR_FOOTNOTE)
, m_pImpl( new SwXFootnote::Impl(*this, &rDoc, &rFmt, rFmt.IsEndNote()) )
{
}
-/*-- 10.12.98 15:31:45---------------------------------------------------
- -----------------------------------------------------------------------*/
SwXFootnote::~SwXFootnote()
{
}
@@ -208,17 +194,12 @@ SwXFootnote::CreateXFootnote(SwDoc & rDoc, SwFmtFtn const& rFootnoteFmt)
: new SwXFootnote(rDoc, rFootnoteFmt);
}
-/* -----------------------------13.03.00 12:15--------------------------------
-
- ---------------------------------------------------------------------------*/
const uno::Sequence< sal_Int8 > & SwXFootnote::getUnoTunnelId()
{
static uno::Sequence< sal_Int8 > aSeq = ::CreateUnoTunnelId();
return aSeq;
}
-/* -----------------------------10.03.00 18:04--------------------------------
- ---------------------------------------------------------------------------*/
sal_Int64 SAL_CALL
SwXFootnote::getSomething(const uno::Sequence< sal_Int8 >& rId)
throw (uno::RuntimeException)
@@ -227,18 +208,12 @@ throw (uno::RuntimeException)
return (nRet) ? nRet : SwXText::getSomething(rId);
}
-/* -----------------------------06.04.00 16:36--------------------------------
-
- ---------------------------------------------------------------------------*/
OUString SAL_CALL
SwXFootnote::getImplementationName() throw (uno::RuntimeException)
{
return C2U("SwXFootnote");
}
-/* -----------------------------06.04.00 16:36--------------------------------
-
- ---------------------------------------------------------------------------*/
static char const*const g_ServicesFootnote[] =
{
"com.sun.star.text.TextContent",
@@ -246,8 +221,10 @@ static char const*const g_ServicesFootnote[] =
"com.sun.star.text.Text",
"com.sun.star.text.Endnote", // NB: only supported for endnotes!
};
+
static const size_t g_nServicesEndnote(
SAL_N_ELEMENTS(g_ServicesFootnote));
+
static const size_t g_nServicesFootnote( g_nServicesEndnote - 1 ); // NB: omit!
sal_Bool SAL_CALL SwXFootnote::supportsService(const OUString& rServiceName)
@@ -268,9 +245,6 @@ SwXFootnote::getSupportedServiceNames() throw (uno::RuntimeException)
g_ServicesFootnote);
}
-/* -----------------------------21.03.00 15:39--------------------------------
-
- ---------------------------------------------------------------------------*/
uno::Sequence< uno::Type > SAL_CALL
SwXFootnote::getTypes() throw (uno::RuntimeException)
{
@@ -279,9 +253,6 @@ SwXFootnote::getTypes() throw (uno::RuntimeException)
return ::comphelper::concatSequences(aTypes, aTextTypes);
}
-/* -----------------------------21.03.00 15:39--------------------------------
-
- ---------------------------------------------------------------------------*/
uno::Sequence< sal_Int8 > SAL_CALL
SwXFootnote::getImplementationId() throw (uno::RuntimeException)
{
@@ -295,9 +266,7 @@ SwXFootnote::getImplementationId() throw (uno::RuntimeException)
}
return aId;
}
-/* -----------------------------21.03.00 15:46--------------------------------
- ---------------------------------------------------------------------------*/
uno::Any SAL_CALL
SwXFootnote::queryInterface(const uno::Type& rType)
throw (uno::RuntimeException)
@@ -308,9 +277,6 @@ throw (uno::RuntimeException)
: ret;
}
-/*-- 10.12.98 15:31:47---------------------------------------------------
-
- -----------------------------------------------------------------------*/
OUString SAL_CALL SwXFootnote::getLabel() throw (uno::RuntimeException)
{
vos::OGuard aGuard(Application::GetSolarMutex());
@@ -332,9 +298,6 @@ OUString SAL_CALL SwXFootnote::getLabel() throw (uno::RuntimeException)
return sRet;
}
-/*-- 10.12.98 15:31:48---------------------------------------------------
-
- -----------------------------------------------------------------------*/
void SAL_CALL
SwXFootnote::setLabel(const OUString& aLabel) throw (uno::RuntimeException)
{
@@ -360,9 +323,6 @@ SwXFootnote::setLabel(const OUString& aLabel) throw (uno::RuntimeException)
}
}
-/* -----------------18.02.99 13:32-------------------
- *
- * --------------------------------------------------*/
void SAL_CALL
SwXFootnote::attach(const uno::Reference< text::XTextRange > & xTextRange)
throw (lang::IllegalArgumentException, uno::RuntimeException)
@@ -432,9 +392,6 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
SetDoc(pNewDoc);
}
-/*-- 10.12.98 15:31:48---------------------------------------------------
-
- -----------------------------------------------------------------------*/
uno::Reference< text::XTextRange > SAL_CALL
SwXFootnote::getAnchor() throw (uno::RuntimeException)
{
@@ -451,9 +408,7 @@ SwXFootnote::getAnchor() throw (uno::RuntimeException)
SwXTextRange::CreateXTextRange(*GetDoc(), *aPam.Start(), aPam.End());
return xRet;
}
-/*-- 10.12.98 15:31:49---------------------------------------------------
- -----------------------------------------------------------------------*/
void SAL_CALL SwXFootnote::dispose() throw (uno::RuntimeException)
{
vos::OGuard aGuard(Application::GetSolarMutex());
@@ -468,9 +423,6 @@ void SAL_CALL SwXFootnote::dispose() throw (uno::RuntimeException)
GetDoc()->DeleteAndJoin( aPam );
}
-/*-- 10.12.98 15:31:49---------------------------------------------------
-
- -----------------------------------------------------------------------*/
void SAL_CALL
SwXFootnote::addEventListener(
const uno::Reference< lang::XEventListener > & xListener)
@@ -484,9 +436,7 @@ throw (uno::RuntimeException)
}
m_pImpl->m_ListenerContainer.AddListener(xListener);
}
-/*-- 10.12.98 15:31:50---------------------------------------------------
- -----------------------------------------------------------------------*/
void SAL_CALL
SwXFootnote::removeEventListener(
const uno::Reference< lang::XEventListener > & xListener)
@@ -501,9 +451,6 @@ throw (uno::RuntimeException)
}
}
-/* -----------------06.05.99 15:31-------------------
- *
- * --------------------------------------------------*/
const SwStartNode *SwXFootnote::GetStartNode() const
{
SwFmtFtn const*const pFmt = m_pImpl->GetFootnoteFormat();
@@ -524,9 +471,6 @@ SwXFootnote::CreateCursor() throw (uno::RuntimeException)
return createTextCursor();
}
-/*-- 10.12.98 15:31:50---------------------------------------------------
-
- -----------------------------------------------------------------------*/
uno::Reference< text::XTextCursor > SAL_CALL
SwXFootnote::createTextCursor() throw (uno::RuntimeException)
{
@@ -545,9 +489,6 @@ SwXFootnote::createTextCursor() throw (uno::RuntimeException)
return xRet;
}
-/*-- 10.12.98 15:31:51---------------------------------------------------
-
- -----------------------------------------------------------------------*/
uno::Reference< text::XTextCursor > SAL_CALL
SwXFootnote::createTextCursorByRange(
const uno::Reference< text::XTextRange > & xTextPosition)
@@ -579,9 +520,6 @@ throw (uno::RuntimeException)
return xRet;
}
-/*-- 13.06.00 14:28:23---------------------------------------------------
-
- -----------------------------------------------------------------------*/
uno::Reference< container::XEnumeration > SAL_CALL
SwXFootnote::createEnumeration() throw (uno::RuntimeException)
{
@@ -599,24 +537,16 @@ SwXFootnote::createEnumeration() throw (uno::RuntimeException)
return xRet;
}
-/*-- 13.06.00 14:28:24---------------------------------------------------
-
- -----------------------------------------------------------------------*/
uno::Type SAL_CALL SwXFootnote::getElementType() throw (uno::RuntimeException)
{
return text::XTextRange::static_type();
}
-/*-- 13.06.00 14:28:24---------------------------------------------------
- -----------------------------------------------------------------------*/
sal_Bool SAL_CALL SwXFootnote::hasElements() throw (uno::RuntimeException)
{
return sal_True;
}
-/*-- 11.09.00 13:12:03---------------------------------------------------
-
- -----------------------------------------------------------------------*/
uno::Reference< beans::XPropertySetInfo > SAL_CALL
SwXFootnote::getPropertySetInfo()
throw (uno::RuntimeException)
@@ -628,9 +558,6 @@ throw (uno::RuntimeException)
return xRet;
}
-/*-- 11.09.00 13:12:04---------------------------------------------------
-
- -----------------------------------------------------------------------*/
void SAL_CALL
SwXFootnote::setPropertyValue(const ::rtl::OUString&, const uno::Any&)
throw (beans::UnknownPropertyException, beans::PropertyVetoException,
@@ -640,9 +567,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
//no values to be set
throw lang::IllegalArgumentException();
}
-/*-- 11.09.00 13:12:04---------------------------------------------------
- -----------------------------------------------------------------------*/
uno::Any SAL_CALL
SwXFootnote::getPropertyValue(const OUString& rPropertyName)
throw (beans::UnknownPropertyException, lang::WrappedTargetException,
@@ -683,9 +608,6 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
return aRet;
}
-/*-- 11.09.00 13:12:04---------------------------------------------------
-
- -----------------------------------------------------------------------*/
void SAL_CALL
SwXFootnote::addPropertyChangeListener(
const ::rtl::OUString& /*rPropertyName*/,
@@ -729,4 +651,3 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
OSL_ENSURE(false,
"SwXFootnote::removeVetoableChangeListener(): not implemented");
}
-