xref: /AOO41X/main/sw/source/ui/inc/mailmergehelper.hxx (revision 1d2dbeb0b7301723c6d13094e87a8714ef81a328)
1*1d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1d2dbeb0SAndrew Rist  * distributed with this work for additional information
6*1d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
9*1d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*1d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*1d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
15*1d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
18*1d2dbeb0SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*1d2dbeb0SAndrew Rist  *************************************************************/
21*1d2dbeb0SAndrew Rist 
22*1d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _MAILMERGEHELPER_HXX
24cdf0e10cSrcweir #define _MAILMERGEHELPER_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <svtools/stdctrl.hxx>
27cdf0e10cSrcweir #include <unotools/configitem.hxx>
28cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.h>
29cdf0e10cSrcweir #include "com/sun/star/mail/XAuthenticator.hpp"
30cdf0e10cSrcweir #include "com/sun/star/mail/XConnectionListener.hpp"
31cdf0e10cSrcweir #include "com/sun/star/uno/XCurrentContext.hpp"
32cdf0e10cSrcweir #include "com/sun/star/mail/XMailMessage.hpp"
33cdf0e10cSrcweir #include "com/sun/star/datatransfer/XTransferable.hpp"
34cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
35cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx>
36cdf0e10cSrcweir #include <cppuhelper/compbase1.hxx>
37cdf0e10cSrcweir #include <cppuhelper/compbase2.hxx>
38cdf0e10cSrcweir #include <vcl/scrbar.hxx>
39cdf0e10cSrcweir #include "swdllapi.h"
40cdf0e10cSrcweir 
41cdf0e10cSrcweir 
42cdf0e10cSrcweir class SwMailMergeConfigItem;
43cdf0e10cSrcweir namespace com{ namespace sun{ namespace star{
44cdf0e10cSrcweir     namespace uno{
45cdf0e10cSrcweir         class XComponentContext;
46cdf0e10cSrcweir     }
47cdf0e10cSrcweir     namespace lang{
48cdf0e10cSrcweir         class XMultiServiceFactory;
49cdf0e10cSrcweir     }
50cdf0e10cSrcweir     namespace mail{
51cdf0e10cSrcweir         class XSmtpService;
52cdf0e10cSrcweir         class XMailService;
53cdf0e10cSrcweir     }
54cdf0e10cSrcweir }}}
55cdf0e10cSrcweir /*-- 14.06.2004 12:27:42---------------------------------------------------
56cdf0e10cSrcweir 
57cdf0e10cSrcweir   -----------------------------------------------------------------------*/
58cdf0e10cSrcweir namespace SwMailMergeHelper
59cdf0e10cSrcweir {
60cdf0e10cSrcweir     SW_DLLPUBLIC String  CallSaveAsDialog(String& rFilter);
61cdf0e10cSrcweir     SW_DLLPUBLIC bool    CheckMailAddress( const ::rtl::OUString& rMailAddress );
62cdf0e10cSrcweir     SW_DLLPUBLIC com::sun::star::uno::Reference< com::sun::star::mail::XSmtpService >
63cdf0e10cSrcweir                          ConnectToSmtpServer( SwMailMergeConfigItem& rConfigItem,
64cdf0e10cSrcweir                             com::sun::star::uno::Reference< com::sun::star::mail::XMailService >&  xInMailService,
65cdf0e10cSrcweir                             const String& rInMailServerPassword,
66cdf0e10cSrcweir                             const String& rOutMailServerPassword,
67cdf0e10cSrcweir                             Window* pDialogParentWindow = 0 );
68cdf0e10cSrcweir }
69cdf0e10cSrcweir /* -----------------06.04.2004 10:29-----------------
70cdf0e10cSrcweir 
71cdf0e10cSrcweir  --------------------------------------------------*/
72cdf0e10cSrcweir class SW_DLLPUBLIC SwBoldFixedInfo : public FixedInfo
73cdf0e10cSrcweir {
74cdf0e10cSrcweir public:
75cdf0e10cSrcweir     SwBoldFixedInfo(Window* pParent, const ResId& rResId);
76cdf0e10cSrcweir     ~SwBoldFixedInfo();
77cdf0e10cSrcweir };
78cdf0e10cSrcweir struct SwAddressPreview_Impl;
79cdf0e10cSrcweir namespace com{namespace sun{namespace star{
80cdf0e10cSrcweir     namespace container{
81cdf0e10cSrcweir         class XNameAccess;
82cdf0e10cSrcweir     }
83cdf0e10cSrcweir }}}
84cdf0e10cSrcweir 
85cdf0e10cSrcweir /*-- 27.04.2004 13:20:00---------------------------------------------------
86cdf0e10cSrcweir     Preview window used to show the possible selection of address blocks
87cdf0e10cSrcweir     and also the resulting address filled with database data
88cdf0e10cSrcweir   -----------------------------------------------------------------------*/
89cdf0e10cSrcweir class SW_DLLPUBLIC SwAddressPreview : public Window
90cdf0e10cSrcweir {
91cdf0e10cSrcweir     ScrollBar               aVScrollBar;
92cdf0e10cSrcweir     SwAddressPreview_Impl*  pImpl;
93cdf0e10cSrcweir     Link                    m_aSelectHdl;
94cdf0e10cSrcweir 
95cdf0e10cSrcweir     void DrawText_Impl( const ::rtl::OUString& rAddress, const Point& rTopLeft, const Size& rSize, bool bIsSelected);
96cdf0e10cSrcweir 
97cdf0e10cSrcweir     virtual void        Paint(const Rectangle&);
98cdf0e10cSrcweir     virtual void        MouseButtonDown( const MouseEvent& rMEvt );
99cdf0e10cSrcweir     virtual void        KeyInput( const KeyEvent& rKEvt );
100cdf0e10cSrcweir     virtual void        StateChanged( StateChangedType nStateChange );
101cdf0e10cSrcweir     void                UpdateScrollBar();
102cdf0e10cSrcweir 
103cdf0e10cSrcweir     DECL_LINK(ScrollHdl, ScrollBar*);
104cdf0e10cSrcweir 
105cdf0e10cSrcweir public:
106cdf0e10cSrcweir     SwAddressPreview(Window* pParent, const ResId rResId);
107cdf0e10cSrcweir     ~SwAddressPreview();
108cdf0e10cSrcweir 
109cdf0e10cSrcweir     /** The address string is a list of address elements separated by spaces
110cdf0e10cSrcweir     and breaks. The addresses fit into the given layout. If more addresses then
111cdf0e10cSrcweir     rows/columns should be used a scrollbar will be added.
112cdf0e10cSrcweir 
113cdf0e10cSrcweir      AddAddress appends the new address to the already added ones.
114cdf0e10cSrcweir      Initially the first added address will be selected
115cdf0e10cSrcweir     */
116cdf0e10cSrcweir     void                    AddAddress(const ::rtl::OUString& rAddress);
117cdf0e10cSrcweir     //  for preview mode - replaces the currently used address by the given one
118cdf0e10cSrcweir     void                    SetAddress(const ::rtl::OUString& rAddress);
119cdf0e10cSrcweir     // removes all addresses
120cdf0e10cSrcweir     void                    Clear();
121cdf0e10cSrcweir 
122cdf0e10cSrcweir     // returns the selected address
123cdf0e10cSrcweir     sal_uInt16              GetSelectedAddress() const;
124cdf0e10cSrcweir     void                    SelectAddress(sal_uInt16 nSelect);
125cdf0e10cSrcweir     void                    ReplaceSelectedAddress(const ::rtl::OUString&);
126cdf0e10cSrcweir     void                    RemoveSelectedAddress();
127cdf0e10cSrcweir 
128cdf0e10cSrcweir     // set the number of rows and columns of addresses
129cdf0e10cSrcweir     void                    SetLayout(sal_uInt16 nRows, sal_uInt16 nColumns);
130cdf0e10cSrcweir     void                    EnableScrollBar(bool bEnable = true);
131cdf0e10cSrcweir 
132cdf0e10cSrcweir     // fill the actual data into a string (address block or greeting)
133cdf0e10cSrcweir     static String FillData(
134cdf0e10cSrcweir             const ::rtl::OUString& rAddress,
135cdf0e10cSrcweir             SwMailMergeConfigItem& rConfigItem,
136cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< ::rtl::OUString>* pAssignments = 0);
137cdf0e10cSrcweir 
SetSelectHdl(const Link & rLink)138cdf0e10cSrcweir     void    SetSelectHdl (const Link& rLink) {m_aSelectHdl = rLink;}
139cdf0e10cSrcweir };
140cdf0e10cSrcweir 
141cdf0e10cSrcweir /*-- 11.05.2004 15:39:59---------------------------------------------------
142cdf0e10cSrcweir     iterate over an address block or a greeting line
143cdf0e10cSrcweir     the iterator returns the parts either as pure string
144cdf0e10cSrcweir     or as column
145cdf0e10cSrcweir   -----------------------------------------------------------------------*/
146cdf0e10cSrcweir struct SwMergeAddressItem
147cdf0e10cSrcweir {
148cdf0e10cSrcweir     String  sText;
149cdf0e10cSrcweir     bool    bIsColumn;
150cdf0e10cSrcweir     bool    bIsReturn;
SwMergeAddressItemSwMergeAddressItem151cdf0e10cSrcweir     SwMergeAddressItem() :
152cdf0e10cSrcweir         bIsColumn(false),
153cdf0e10cSrcweir         bIsReturn(false) {}
154cdf0e10cSrcweir };
155cdf0e10cSrcweir class SW_DLLPUBLIC   SwAddressIterator
156cdf0e10cSrcweir {
157cdf0e10cSrcweir     String sAddress;
158cdf0e10cSrcweir public:
SwAddressIterator(const String & rAddress)159cdf0e10cSrcweir     SwAddressIterator(const String& rAddress) :
160cdf0e10cSrcweir         sAddress(rAddress){}
161cdf0e10cSrcweir 
162cdf0e10cSrcweir     SwMergeAddressItem  Next();
HasMore() const163cdf0e10cSrcweir     bool                HasMore() const{return sAddress.Len() > 0;}
164cdf0e10cSrcweir };
165cdf0e10cSrcweir 
166cdf0e10cSrcweir /*-- 21.05.2004 10:31:15---------------------------------------------------
167cdf0e10cSrcweir 
168cdf0e10cSrcweir   -----------------------------------------------------------------------*/
169cdf0e10cSrcweir class SW_DLLPUBLIC SwAuthenticator :
170cdf0e10cSrcweir     public cppu::WeakImplHelper1< ::com::sun::star::mail::XAuthenticator>
171cdf0e10cSrcweir {
172cdf0e10cSrcweir     ::rtl::OUString m_aUserName;
173cdf0e10cSrcweir     ::rtl::OUString m_aPassword;
174cdf0e10cSrcweir     Window*         m_pParentWindow;
175cdf0e10cSrcweir public:
SwAuthenticator()176cdf0e10cSrcweir     SwAuthenticator() : m_pParentWindow(0) {}
SwAuthenticator(const::rtl::OUString & username,const::rtl::OUString & password,Window * pParent)177cdf0e10cSrcweir     SwAuthenticator(const ::rtl::OUString& username, const ::rtl::OUString& password, Window* pParent) :
178cdf0e10cSrcweir         m_aUserName(username),
179cdf0e10cSrcweir         m_aPassword(password),
180cdf0e10cSrcweir         m_pParentWindow( pParent )
181cdf0e10cSrcweir     {}
182cdf0e10cSrcweir     ~SwAuthenticator();
183cdf0e10cSrcweir 
184cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getUserName( ) throw (::com::sun::star::uno::RuntimeException);
185cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getPassword(  ) throw (::com::sun::star::uno::RuntimeException);
186cdf0e10cSrcweir 
187cdf0e10cSrcweir };
188cdf0e10cSrcweir /*-- 25.08.2004 12:48:47---------------------------------------------------
189cdf0e10cSrcweir 
190cdf0e10cSrcweir   -----------------------------------------------------------------------*/
191cdf0e10cSrcweir class SW_DLLPUBLIC SwConnectionContext :
192cdf0e10cSrcweir     public cppu::WeakImplHelper1< ::com::sun::star::uno::XCurrentContext >
193cdf0e10cSrcweir {
194cdf0e10cSrcweir     ::rtl::OUString     m_sMailServer;
195cdf0e10cSrcweir     sal_Int16           m_nPort;
196cdf0e10cSrcweir     ::rtl::OUString     m_sConnectionType;
197cdf0e10cSrcweir 
198cdf0e10cSrcweir public:
199cdf0e10cSrcweir     SwConnectionContext(const ::rtl::OUString& rMailServer, sal_Int16 nPort, const ::rtl::OUString& rConnectionType);
200cdf0e10cSrcweir     ~SwConnectionContext();
201cdf0e10cSrcweir 
202cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL     getValueByName( const ::rtl::OUString& Name )
203cdf0e10cSrcweir                                                             throw (::com::sun::star::uno::RuntimeException);
204cdf0e10cSrcweir };
205cdf0e10cSrcweir /*-- 21.05.2004 10:39:20---------------------------------------------------
206cdf0e10cSrcweir 
207cdf0e10cSrcweir   -----------------------------------------------------------------------*/
208cdf0e10cSrcweir class SwMutexBase
209cdf0e10cSrcweir {
210cdf0e10cSrcweir public:
211cdf0e10cSrcweir     osl::Mutex m_aMutex;
212cdf0e10cSrcweir };
213cdf0e10cSrcweir /*-- 21.05.2004 10:39:20---------------------------------------------------
214cdf0e10cSrcweir 
215cdf0e10cSrcweir   -----------------------------------------------------------------------*/
216cdf0e10cSrcweir class SW_DLLPUBLIC SwConnectionListener :
217cdf0e10cSrcweir         public SwMutexBase,
218cdf0e10cSrcweir         public cppu::WeakComponentImplHelper1< ::com::sun::star::mail::XConnectionListener >
219cdf0e10cSrcweir {
220cdf0e10cSrcweir     using cppu::WeakComponentImplHelperBase::disposing;
221cdf0e10cSrcweir 
222cdf0e10cSrcweir public:
SwConnectionListener()223cdf0e10cSrcweir     SwConnectionListener() :
224cdf0e10cSrcweir         cppu::WeakComponentImplHelper1< ::com::sun::star::mail::XConnectionListener>(m_aMutex)
225cdf0e10cSrcweir     {}
226cdf0e10cSrcweir     ~SwConnectionListener();
227cdf0e10cSrcweir 
228cdf0e10cSrcweir     virtual void SAL_CALL connected(const ::com::sun::star::lang::EventObject& aEvent)
229cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
230cdf0e10cSrcweir 
231cdf0e10cSrcweir     virtual void SAL_CALL disconnected(const ::com::sun::star::lang::EventObject& aEvent)
232cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
233cdf0e10cSrcweir 
234cdf0e10cSrcweir     virtual void SAL_CALL disposing(const com::sun::star::lang::EventObject& aEvent)
235cdf0e10cSrcweir         throw(com::sun::star::uno::RuntimeException);
236cdf0e10cSrcweir };
237cdf0e10cSrcweir 
238cdf0e10cSrcweir /*-- 13.07.2004 09:02:12---------------------------------------------------
239cdf0e10cSrcweir 
240cdf0e10cSrcweir   -----------------------------------------------------------------------*/
241cdf0e10cSrcweir class SwMailTransferable :
242cdf0e10cSrcweir         public SwMutexBase,
243cdf0e10cSrcweir         public cppu::WeakComponentImplHelper2
244cdf0e10cSrcweir         <
245cdf0e10cSrcweir             ::com::sun::star::datatransfer::XTransferable,
246cdf0e10cSrcweir             ::com::sun::star::beans::XPropertySet
247cdf0e10cSrcweir         >
248cdf0e10cSrcweir {
249cdf0e10cSrcweir     rtl::OUString  m_aMimeType;
250cdf0e10cSrcweir     rtl::OUString  m_sBody;
251cdf0e10cSrcweir     rtl::OUString  m_aURL;
252cdf0e10cSrcweir     rtl::OUString  m_aName;
253cdf0e10cSrcweir     bool           m_bIsBody;
254cdf0e10cSrcweir 
255cdf0e10cSrcweir     public:
256cdf0e10cSrcweir     SwMailTransferable(const rtl::OUString& rURL, const rtl::OUString& rName, const rtl::OUString& rMimeType);
257cdf0e10cSrcweir     SwMailTransferable(const rtl::OUString& rBody, const rtl::OUString& rMimeType);
258cdf0e10cSrcweir     ~SwMailTransferable();
259cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL
260cdf0e10cSrcweir                         getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
261cdf0e10cSrcweir                             throw (::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
262cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL
263cdf0e10cSrcweir                         getTransferDataFlavors(  )
264cdf0e10cSrcweir                             throw (::com::sun::star::uno::RuntimeException) ;
265cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL
266cdf0e10cSrcweir                         isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
267cdf0e10cSrcweir                             throw (::com::sun::star::uno::RuntimeException);
268cdf0e10cSrcweir 
269cdf0e10cSrcweir     //XPropertySet
270cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
271cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
272cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
273cdf0e10cSrcweir     virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
274cdf0e10cSrcweir     virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
275cdf0e10cSrcweir     virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
276cdf0e10cSrcweir     virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
277cdf0e10cSrcweir 
278cdf0e10cSrcweir };
279cdf0e10cSrcweir 
280cdf0e10cSrcweir /*-- 22.06.2004 16:38:34---------------------------------------------------
281cdf0e10cSrcweir 
282cdf0e10cSrcweir   -----------------------------------------------------------------------*/
283cdf0e10cSrcweir class SwMailMessage :
284cdf0e10cSrcweir         public SwMutexBase,
285cdf0e10cSrcweir         public cppu::WeakComponentImplHelper1< ::com::sun::star::mail::XMailMessage >
286cdf0e10cSrcweir {
287cdf0e10cSrcweir     ::rtl::OUString                                                                         m_sSenderName;
288cdf0e10cSrcweir     ::rtl::OUString                                                                         m_sSenderAddress;
289cdf0e10cSrcweir     ::rtl::OUString                                                                         m_sReplyToAddress;
290cdf0e10cSrcweir     ::rtl::OUString                                                                         m_sSubject;
291cdf0e10cSrcweir 
292cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable>        m_xBody;
293cdf0e10cSrcweir //    ::com::sun::star::mail::MailMessageBody                                                 m_aBody;
294cdf0e10cSrcweir 
295cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString >                                      m_aRecipients;
296cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString >                                      m_aCcRecipients;
297cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString >                                      m_aBccRecipients;
298cdf0e10cSrcweir //    ::com::sun::star::uno::Sequence< ::com::sun::star::mail::MailAttachmentDescriptor >     m_aAttachments;
299cdf0e10cSrcweir     ::com::sun::star::uno::Sequence<  ::com::sun::star::mail::MailAttachment >              m_aAttachments;
300cdf0e10cSrcweir public:
301cdf0e10cSrcweir     SwMailMessage();
302cdf0e10cSrcweir     ~SwMailMessage();
303cdf0e10cSrcweir 
304cdf0e10cSrcweir     // Attributes
305cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL    getSenderName() throw (::com::sun::star::uno::RuntimeException);
306cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL    getSenderAddress() throw (::com::sun::star::uno::RuntimeException);
307cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL    getReplyToAddress() throw (::com::sun::star::uno::RuntimeException);
308cdf0e10cSrcweir     virtual void SAL_CALL               setReplyToAddress( const ::rtl::OUString& _replytoaddress ) throw (::com::sun::star::uno::RuntimeException);
309cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL    getSubject() throw (::com::sun::star::uno::RuntimeException);
310cdf0e10cSrcweir     virtual void SAL_CALL               setSubject( const ::rtl::OUString& _subject ) throw (::com::sun::star::uno::RuntimeException);
311cdf0e10cSrcweir 
312cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL
313cdf0e10cSrcweir                                         getBody()
314cdf0e10cSrcweir                                                 throw (::com::sun::star::uno::RuntimeException);
315cdf0e10cSrcweir     virtual void SAL_CALL               setBody( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& _body )
316cdf0e10cSrcweir                                                 throw (::com::sun::star::uno::RuntimeException);
317cdf0e10cSrcweir 
318cdf0e10cSrcweir     // Methods
319cdf0e10cSrcweir     virtual void SAL_CALL               addRecipient( const ::rtl::OUString& sRecipientAddress ) throw (::com::sun::star::uno::RuntimeException);
320cdf0e10cSrcweir     virtual void SAL_CALL               addCcRecipient( const ::rtl::OUString& sRecipientAddress ) throw (::com::sun::star::uno::RuntimeException);
321cdf0e10cSrcweir     virtual void SAL_CALL               addBccRecipient( const ::rtl::OUString& sRecipientAddress ) throw (::com::sun::star::uno::RuntimeException);
322cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
323cdf0e10cSrcweir                                         getRecipients(  ) throw (::com::sun::star::uno::RuntimeException);
324cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
325cdf0e10cSrcweir                                         getCcRecipients(  ) throw (::com::sun::star::uno::RuntimeException);
326cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
327cdf0e10cSrcweir                                         getBccRecipients(  ) throw (::com::sun::star::uno::RuntimeException);
328cdf0e10cSrcweir     virtual void SAL_CALL               addAttachment( const ::com::sun::star::mail::MailAttachment& aMailAttachment )
329cdf0e10cSrcweir                                             throw (::com::sun::star::uno::RuntimeException);
330cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::mail::MailAttachment > SAL_CALL
331cdf0e10cSrcweir                                         getAttachments(  ) throw (::com::sun::star::uno::RuntimeException);
SetSenderName(const::rtl::OUString & rSenderName)332cdf0e10cSrcweir     void                                SetSenderName(const ::rtl::OUString& rSenderName)
333cdf0e10cSrcweir                                                 {m_sSenderName = rSenderName;}
SetSenderAddress(const::rtl::OUString & rSenderAddress)334cdf0e10cSrcweir     void                                SetSenderAddress(const ::rtl::OUString& rSenderAddress)
335cdf0e10cSrcweir                                                 {m_sSenderAddress = rSenderAddress;}
336cdf0e10cSrcweir };
337cdf0e10cSrcweir /*-- 21.05.2004 10:17:22---------------------------------------------------
338cdf0e10cSrcweir 
339cdf0e10cSrcweir   -----------------------------------------------------------------------*/
340cdf0e10cSrcweir SW_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext>
341cdf0e10cSrcweir         getCurrentCmpCtx(
342cdf0e10cSrcweir             ::com::sun::star::uno::Reference<
343cdf0e10cSrcweir                 ::com::sun::star::lang::XMultiServiceFactory> rSrvMgr);
344cdf0e10cSrcweir #endif
345cdf0e10cSrcweir 
346