diff options
author | Prashant Shah <pshah.mumbai@gmail.com> | 2010-10-11 17:38:56 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-11 17:38:56 -0500 |
commit | ecb8af14da097ef7ab4625b5ee46a435b2e0d678 (patch) | |
tree | 79a63a6ee99ba3cb915f9ae0d456f04822039baf /sw/source/ui/dbui/mailmergehelper.cxx | |
parent | 99f933972a0491907b33a116e15ceb88d863b99a (diff) |
Remove bogus comment in sw
Diffstat (limited to 'sw/source/ui/dbui/mailmergehelper.cxx')
-rw-r--r-- | sw/source/ui/dbui/mailmergehelper.cxx | 140 |
1 files changed, 2 insertions, 138 deletions
diff --git a/sw/source/ui/dbui/mailmergehelper.cxx b/sw/source/ui/dbui/mailmergehelper.cxx index 0214054b7c4e..f37dfe7858dd 100644 --- a/sw/source/ui/dbui/mailmergehelper.cxx +++ b/sw/source/ui/dbui/mailmergehelper.cxx @@ -63,9 +63,6 @@ using rtl::OUString; namespace SwMailMergeHelper { -/*-- 14.06.2004 12:29:19--------------------------------------------------- - - -----------------------------------------------------------------------*/ String CallSaveAsDialog(String& rFilter) { ErrCode nRet; @@ -84,6 +81,7 @@ String CallSaveAsDialog(String& rFilter) } return sRet; } + /*-- 20.08.2004 09:39:18--------------------------------------------------- simple address check: check for '@' for at least one '.' after the '@' @@ -102,9 +100,6 @@ bool CheckMailAddress( const ::rtl::OUString& rMailAddress ) return true; } -/*-- 28.12.2004 10:16:02--------------------------------------------------- - - -----------------------------------------------------------------------*/ uno::Reference< mail::XSmtpService > ConnectToSmtpServer( SwMailMergeConfigItem& rConfigItem, uno::Reference< mail::XMailService >& rxInMailService, @@ -189,9 +184,6 @@ uno::Reference< mail::XSmtpService > ConnectToSmtpServer( } //namespace -/*-- 06.04.2004 10:31:27--------------------------------------------------- - - -----------------------------------------------------------------------*/ SwBoldFixedInfo::SwBoldFixedInfo(Window* pParent, const ResId& rResId) : FixedInfo(pParent, rResId) { @@ -199,12 +191,11 @@ SwBoldFixedInfo::SwBoldFixedInfo(Window* pParent, const ResId& rResId) : aFont.SetWeight( WEIGHT_BOLD ); SetFont( aFont ); } -/*-- 06.04.2004 10:31:27--------------------------------------------------- - -----------------------------------------------------------------------*/ SwBoldFixedInfo::~SwBoldFixedInfo() { } + struct SwAddressPreview_Impl { ::std::vector< ::rtl::OUString > aAdresses; @@ -221,9 +212,7 @@ struct SwAddressPreview_Impl { } }; -/*-- 27.04.2004 14:01:22--------------------------------------------------- - -----------------------------------------------------------------------*/ SwAddressPreview::SwAddressPreview(Window* pParent, const ResId rResId) : Window( pParent, rResId ), aVScrollBar(this, WB_VSCROLL), @@ -238,31 +227,23 @@ SwAddressPreview::SwAddressPreview(Window* pParent, const ResId rResId) : aVScrollBar.SetPosPixel(aSrollPos); Show(); } -/*-- 27.04.2004 14:01:22--------------------------------------------------- - -----------------------------------------------------------------------*/ SwAddressPreview::~SwAddressPreview() { } -/*-- 25.06.2004 11:50:55--------------------------------------------------- - -----------------------------------------------------------------------*/ IMPL_LINK(SwAddressPreview, ScrollHdl, ScrollBar*, EMPTYARG) { Invalidate(); return 0; } -/*-- 27.04.2004 14:01:22--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::AddAddress(const ::rtl::OUString& rAddress) { pImpl->aAdresses.push_back(rAddress); UpdateScrollBar(); } -/*-- 27.04.2004 14:01:23--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::SetAddress(const ::rtl::OUString& rAddress) { pImpl->aAdresses.clear(); @@ -270,17 +251,13 @@ void SwAddressPreview::SetAddress(const ::rtl::OUString& rAddress) aVScrollBar.Show(FALSE); Invalidate(); } -/*-- 27.04.2004 14:01:23--------------------------------------------------- - -----------------------------------------------------------------------*/ sal_uInt16 SwAddressPreview::GetSelectedAddress()const { DBG_ASSERT(pImpl->nSelectedAddress < pImpl->aAdresses.size(), "selection invalid"); return pImpl->nSelectedAddress; } -/*-- 25.06.2004 10:32:48--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::SelectAddress(sal_uInt16 nSelect) { DBG_ASSERT(pImpl->nSelectedAddress < pImpl->aAdresses.size(), "selection invalid"); @@ -291,26 +268,20 @@ void SwAddressPreview::SelectAddress(sal_uInt16 nSelect) if( (nSelectRow < nStartRow) || (nSelectRow >= (nStartRow + pImpl->nRows) )) aVScrollBar.SetThumbPos( nSelectRow ); } -/*-- 25.06.2004 11:00:40--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::Clear() { pImpl->aAdresses.clear(); pImpl->nSelectedAddress = 0; UpdateScrollBar(); } -/*-- 28.04.2004 12:05:50--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::ReplaceSelectedAddress(const ::rtl::OUString& rNew) { pImpl->aAdresses[pImpl->nSelectedAddress] = rNew; Invalidate(); } -/*-- 25.06.2004 11:30:41--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::RemoveSelectedAddress() { pImpl->aAdresses.erase(pImpl->aAdresses.begin() + pImpl->nSelectedAddress); @@ -319,25 +290,19 @@ void SwAddressPreview::RemoveSelectedAddress() UpdateScrollBar(); Invalidate(); } -/*-- 27.04.2004 14:01:23--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::SetLayout(sal_uInt16 nRows, sal_uInt16 nColumns) { pImpl->nRows = nRows; pImpl->nColumns = nColumns; UpdateScrollBar(); } -/*-- 25.06.2004 13:54:03--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::EnableScrollBar(bool bEnable) { pImpl->bEnableScrollBar = bEnable; } -/*-- 25.06.2004 11:55:52--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::UpdateScrollBar() { if(pImpl->nColumns) @@ -351,9 +316,7 @@ void SwAddressPreview::UpdateScrollBar() aVScrollBar.SetThumbPos(nResultingRows); } } -/*-- 27.04.2004 14:01:23--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::Paint(const Rectangle&) { const StyleSettings& rSettings = GetSettings().GetStyleSettings(); @@ -398,9 +361,6 @@ void SwAddressPreview::Paint(const Rectangle&) SetClipRegion(); } -/*-- 07.06.2004 15:44:15--------------------------------------------------- - - -----------------------------------------------------------------------*/ void SwAddressPreview::MouseButtonDown( const MouseEvent& rMEvt ) { Window::MouseButtonDown(rMEvt); @@ -427,9 +387,7 @@ void SwAddressPreview::MouseButtonDown( const MouseEvent& rMEvt ) Invalidate(); } } -/*-- 01.07.2004 12:33:59--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::KeyInput( const KeyEvent& rKEvt ) { USHORT nKey = rKEvt.GetKeyCode().GetCode(); @@ -469,18 +427,14 @@ void SwAddressPreview::KeyInput( const KeyEvent& rKEvt ) else Window::KeyInput(rKEvt); } -/*-- 05.07.2004 12:02:28--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::StateChanged( StateChangedType nStateChange ) { if(nStateChange == STATE_CHANGE_ENABLE) Invalidate(); Window::StateChanged(nStateChange); } -/*-- 27.04.2004 14:01:23--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwAddressPreview::DrawText_Impl( const ::rtl::OUString& rAddress, const Point& rTopLeft, const Size& rSize, bool bIsSelected) { @@ -503,9 +457,7 @@ void SwAddressPreview::DrawText_Impl( aStart.Y() += nHeight; } } -/*-- 29.04.2004 11:24:47--------------------------------------------------- - -----------------------------------------------------------------------*/ String SwAddressPreview::FillData( const ::rtl::OUString& rAddress, SwMailMergeConfigItem& rConfigItem, @@ -605,9 +557,6 @@ String SwAddressPreview::FillData( return sAddress; } -/*-- 11.05.2004 15:42:08--------------------------------------------------- - - -----------------------------------------------------------------------*/ SwMergeAddressItem SwAddressIterator::Next() { //currently the string may either start with a '<' then it's a column @@ -658,22 +607,16 @@ SwMergeAddressItem SwAddressIterator::Next() return aRet; } -/*-- 21.05.2004 10:36:20--------------------------------------------------- - -----------------------------------------------------------------------*/ SwAuthenticator::~SwAuthenticator() { } -/*-- 21.05.2004 10:36:20--------------------------------------------------- - -----------------------------------------------------------------------*/ OUString SwAuthenticator::getUserName( ) throw (RuntimeException) { return m_aUserName; } -/*-- 21.05.2004 10:36:20--------------------------------------------------- - -----------------------------------------------------------------------*/ OUString SwAuthenticator::getPassword( ) throw (RuntimeException) { if(m_aUserName.getLength() && !m_aPassword.getLength() && m_pParentWindow) @@ -686,9 +629,7 @@ OUString SwAuthenticator::getPassword( ) throw (RuntimeException) } return m_aPassword; } -/*-- 25.08.2004 12:53:03--------------------------------------------------- - -----------------------------------------------------------------------*/ SwConnectionContext::SwConnectionContext( const ::rtl::OUString& rMailServer, sal_Int16 nPort, const ::rtl::OUString& rConnectionType) : @@ -697,15 +638,11 @@ SwConnectionContext::SwConnectionContext( m_sConnectionType(rConnectionType) { } -/*-- 25.08.2004 12:53:03--------------------------------------------------- - -----------------------------------------------------------------------*/ SwConnectionContext::~SwConnectionContext() { } -/*-- 25.08.2004 12:53:03--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Any SwConnectionContext::getValueByName( const ::rtl::OUString& rName ) throw (uno::RuntimeException) { @@ -718,38 +655,28 @@ uno::Any SwConnectionContext::getValueByName( const ::rtl::OUString& rName ) aRet <<= m_sConnectionType; return aRet; } -/*-- 21.05.2004 10:45:33--------------------------------------------------- - -----------------------------------------------------------------------*/ SwConnectionListener::~SwConnectionListener() { } -/*-- 21.05.2004 10:45:33--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwConnectionListener::connected(const lang::EventObject& /*aEvent*/) throw (uno::RuntimeException) { //OSL_ENSURE(false, "Connection opened"); } -/*-- 21.05.2004 10:45:33--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwConnectionListener::disconnected(const lang::EventObject& /*aEvent*/) throw (uno::RuntimeException) { //OSL_ENSURE(false, "Connection closed"); } -/*-- 21.05.2004 10:45:33--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwConnectionListener::disposing(const lang::EventObject& /*aEvent*/) throw(uno::RuntimeException) { } -/*-- 21.05.2004 10:17:22--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Reference< uno::XComponentContext> getCurrentCmpCtx( uno::Reference<lang::XMultiServiceFactory> rSrvMgr) { @@ -760,9 +687,7 @@ uno::Reference< uno::XComponentContext> getCurrentCmpCtx( aAny >>= rCmpCtx; return rCmpCtx; } -/*-- 13.07.2004 09:07:01--------------------------------------------------- - -----------------------------------------------------------------------*/ SwMailTransferable::SwMailTransferable(const rtl::OUString& rBody, const rtl::OUString& rMimeType) : cppu::WeakComponentImplHelper2< datatransfer::XTransferable, beans::XPropertySet >(m_aMutex), m_aMimeType( rMimeType ), @@ -770,9 +695,7 @@ SwMailTransferable::SwMailTransferable(const rtl::OUString& rBody, const rtl::OU m_bIsBody( true ) { } -/*-- 13.07.2004 09:07:01--------------------------------------------------- - -----------------------------------------------------------------------*/ SwMailTransferable::SwMailTransferable(const rtl::OUString& rURL, const rtl::OUString& rName, const rtl::OUString& rMimeType) : cppu::WeakComponentImplHelper2< datatransfer::XTransferable, beans::XPropertySet >(m_aMutex), @@ -782,15 +705,11 @@ SwMailTransferable::SwMailTransferable(const rtl::OUString& rURL, m_bIsBody( false ) { } -/*-- 13.07.2004 09:07:08--------------------------------------------------- - -----------------------------------------------------------------------*/ SwMailTransferable::~SwMailTransferable() { } -/*-- 13.07.2004 09:07:08--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Any SwMailTransferable::getTransferData( const datatransfer::DataFlavor& /*aFlavor*/ ) throw (datatransfer::UnsupportedFlavorException, io::IOException, uno::RuntimeException) @@ -815,9 +734,7 @@ uno::Any SwMailTransferable::getTransferData( const datatransfer::DataFlavor& /* } return aRet; } -/*-- 13.07.2004 09:07:08--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Sequence< datatransfer::DataFlavor > SwMailTransferable::getTransferDataFlavors( ) throw (uno::RuntimeException) { @@ -834,33 +751,25 @@ uno::Sequence< datatransfer::DataFlavor > SwMailTransferable::getTransferDataFla } return aRet; } -/*-- 13.07.2004 09:07:08--------------------------------------------------- - -----------------------------------------------------------------------*/ sal_Bool SwMailTransferable::isDataFlavorSupported( const datatransfer::DataFlavor& aFlavor ) throw (uno::RuntimeException) { return (aFlavor.MimeType == ::rtl::OUString(m_aMimeType)); } -/*-- 28.04.2004 09:52:05--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Reference< beans::XPropertySetInfo > SwMailTransferable::getPropertySetInfo( ) throw(uno::RuntimeException) { return uno::Reference< beans::XPropertySetInfo >(); } -/*-- 28.04.2004 09:52:05--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailTransferable::setPropertyValue( const ::rtl::OUString& , const uno::Any& ) throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) { } -/*-- 28.04.2004 09:52:05--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Any SwMailTransferable::getPropertyValue( const ::rtl::OUString& rPropertyName ) throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { @@ -869,35 +778,27 @@ uno::Any SwMailTransferable::getPropertyValue( const ::rtl::OUString& rPropertyN aRet <<= m_aURL; return aRet; } -/*-- 28.04.2004 09:52:05--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailTransferable::addPropertyChangeListener( const ::rtl::OUString&, const uno::Reference< beans::XPropertyChangeListener >& ) throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { } -/*-- 28.04.2004 09:52:05--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailTransferable::removePropertyChangeListener( const ::rtl::OUString&, const uno::Reference< beans::XPropertyChangeListener >& ) throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { } -/*-- 28.04.2004 09:52:05--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailTransferable::addVetoableChangeListener( const ::rtl::OUString&, const uno::Reference< beans::XVetoableChangeListener >& ) throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { } -/*-- 28.04.2004 09:52:05--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailTransferable::removeVetoableChangeListener( const ::rtl::OUString& , const uno::Reference< beans::XVetoableChangeListener >& ) @@ -905,89 +806,64 @@ void SwMailTransferable::removeVetoableChangeListener( { } -/*-- 22.06.2004 16:46:05--------------------------------------------------- - - -----------------------------------------------------------------------*/ SwMailMessage::SwMailMessage() : cppu::WeakComponentImplHelper1< mail::XMailMessage>(m_aMutex) { } -/*-- 22.06.2004 16:46:06--------------------------------------------------- - -----------------------------------------------------------------------*/ SwMailMessage::~SwMailMessage() { } -/*-- 02.07.2007 16:00:07--------------------------------------------------- - -----------------------------------------------------------------------*/ ::rtl::OUString SwMailMessage::getSenderName() throw (uno::RuntimeException) { return m_sSenderName; } -/*-- 22.06.2004 16:46:06--------------------------------------------------- - -----------------------------------------------------------------------*/ ::rtl::OUString SwMailMessage::getSenderAddress() throw (uno::RuntimeException) { return m_sSenderAddress; } -/*-- 22.06.2004 16:46:06--------------------------------------------------- - -----------------------------------------------------------------------*/ ::rtl::OUString SwMailMessage::getReplyToAddress() throw (uno::RuntimeException) { return m_sReplyToAddress; } -/*-- 22.06.2004 16:46:07--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailMessage::setReplyToAddress( const ::rtl::OUString& _replytoaddress ) throw (uno::RuntimeException) { m_sReplyToAddress = _replytoaddress; } -/*-- 22.06.2004 16:46:07--------------------------------------------------- - -----------------------------------------------------------------------*/ ::rtl::OUString SwMailMessage::getSubject() throw (uno::RuntimeException) { return m_sSubject; } -/*-- 22.06.2004 16:46:07--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailMessage::setSubject( const ::rtl::OUString& _subject ) throw (uno::RuntimeException) { m_sSubject = _subject; } -/*-- 13.07.2004 09:57:18--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Reference< datatransfer::XTransferable > SwMailMessage::getBody() throw (uno::RuntimeException) { return m_xBody; } -/*-- 13.07.2004 09:57:18--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailMessage::setBody( const uno::Reference< datatransfer::XTransferable >& rBody ) throw (uno::RuntimeException) { m_xBody = rBody; } -/*-- 22.06.2004 16:46:08--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailMessage::addRecipient( const ::rtl::OUString& rRecipientAddress ) throw (uno::RuntimeException) { m_aRecipients.realloc(m_aRecipients.getLength() + 1); m_aRecipients[m_aRecipients.getLength() - 1] = rRecipientAddress; } -/*-- 22.06.2004 16:46:09--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailMessage::addCcRecipient( const ::rtl::OUString& rRecipientAddress ) throw (uno::RuntimeException) { @@ -995,47 +871,35 @@ void SwMailMessage::addCcRecipient( const ::rtl::OUString& rRecipientAddress ) m_aCcRecipients[m_aCcRecipients.getLength() - 1] = rRecipientAddress; } -/*-- 22.06.2004 16:46:09--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailMessage::addBccRecipient( const ::rtl::OUString& rRecipientAddress ) throw (uno::RuntimeException) { m_aBccRecipients.realloc(m_aBccRecipients.getLength() + 1); m_aBccRecipients[m_aBccRecipients.getLength() - 1] = rRecipientAddress; } -/*-- 22.06.2004 16:46:09--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Sequence< ::rtl::OUString > SwMailMessage::getRecipients( ) throw (uno::RuntimeException) { return m_aRecipients; } -/*-- 22.06.2004 16:46:10--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Sequence< ::rtl::OUString > SwMailMessage::getCcRecipients( ) throw (uno::RuntimeException) { return m_aCcRecipients; } -/*-- 22.06.2004 16:46:10--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Sequence< ::rtl::OUString > SwMailMessage::getBccRecipients( ) throw (uno::RuntimeException) { return m_aBccRecipients; } -/*-- 13.07.2004 09:59:48--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwMailMessage::addAttachment( const mail::MailAttachment& rMailAttachment ) throw (uno::RuntimeException) { m_aAttachments.realloc(m_aAttachments.getLength() + 1); m_aAttachments[m_aAttachments.getLength() - 1] = rMailAttachment; } -/*-- 13.07.2004 09:59:48--------------------------------------------------- - -----------------------------------------------------------------------*/ uno::Sequence< mail::MailAttachment > SwMailMessage::getAttachments( ) throw (uno::RuntimeException) { |