xref: /aoo41x/main/cui/source/inc/hlmailtp.hxx (revision c4eee24d)
1*c4eee24dSAndrew Rist /**************************************************************
2*c4eee24dSAndrew Rist  *
3*c4eee24dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*c4eee24dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*c4eee24dSAndrew Rist  * distributed with this work for additional information
6*c4eee24dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*c4eee24dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*c4eee24dSAndrew Rist  * "License"); you may not use this file except in compliance
9*c4eee24dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*c4eee24dSAndrew Rist  *
11*c4eee24dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*c4eee24dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*c4eee24dSAndrew Rist  * software distributed under the License is distributed on an
15*c4eee24dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*c4eee24dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*c4eee24dSAndrew Rist  * specific language governing permissions and limitations
18*c4eee24dSAndrew Rist  * under the License.
19*c4eee24dSAndrew Rist  *
20*c4eee24dSAndrew Rist  *************************************************************/
21*c4eee24dSAndrew Rist 
22*c4eee24dSAndrew Rist 
23cdf0e10cSrcweir #ifndef _SVX_TABPAGE_MAIL_HYPERLINK_HXX
24cdf0e10cSrcweir #define _SVX_TABPAGE_MAIL_HYPERLINK_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include "hltpbase.hxx"
27cdf0e10cSrcweir 
28cdf0e10cSrcweir /*************************************************************************
29cdf0e10cSrcweir |*
30cdf0e10cSrcweir |* Tabpage : Hyperlink - Mail & News
31cdf0e10cSrcweir |*
32cdf0e10cSrcweir \************************************************************************/
33cdf0e10cSrcweir 
34cdf0e10cSrcweir class SvxHyperlinkMailTp : public SvxHyperlinkTabPageBase
35cdf0e10cSrcweir {
36cdf0e10cSrcweir private:
37cdf0e10cSrcweir 	FixedLine			maGrpMailNews;
38cdf0e10cSrcweir 	RadioButton			maRbtMail;
39cdf0e10cSrcweir 	RadioButton			maRbtNews;
40cdf0e10cSrcweir 	FixedText			maFtReceiver;
41cdf0e10cSrcweir 	SvxHyperURLBox		maCbbReceiver;
42cdf0e10cSrcweir 	ImageButton			maBtAdrBook;
43cdf0e10cSrcweir 	FixedText			maFtSubject;
44cdf0e10cSrcweir 	Edit				maEdSubject;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	DECL_LINK (Click_SmartProtocol_Impl, void * );		// Radiobutton clicked: Type EMAIl or News
47cdf0e10cSrcweir 	DECL_LINK (ClickAdrBookHdl_Impl  , void * );		// Button : Address book
48cdf0e10cSrcweir 	DECL_LINK (ModifiedReceiverHdl_Impl, void * );		// Combobox "receiver" modified
49cdf0e10cSrcweir 
50cdf0e10cSrcweir     void    SetScheme( const String& aScheme );
51cdf0e10cSrcweir     void    RemoveImproperProtocol(const String& aProperScheme);
52cdf0e10cSrcweir     String  GetSchemeFromButtons() const;
53cdf0e10cSrcweir     INetProtocol GetSmartProtocolFromButtons() const;
54cdf0e10cSrcweir 
55cdf0e10cSrcweir     String  CreateAbsoluteURL() const;
56cdf0e10cSrcweir 
57cdf0e10cSrcweir protected:
58cdf0e10cSrcweir 	virtual void FillDlgFields     ( String& aStrURL );
59cdf0e10cSrcweir 	virtual void GetCurentItemData ( String& aStrURL, String& aStrName,
60cdf0e10cSrcweir 		                             String& aStrIntName, String& aStrFrame,
61cdf0e10cSrcweir 									 SvxLinkInsertMode& eMode );
62cdf0e10cSrcweir 
63cdf0e10cSrcweir public:
64cdf0e10cSrcweir 	SvxHyperlinkMailTp ( Window *pParent, const SfxItemSet& rItemSet);
65cdf0e10cSrcweir 	~SvxHyperlinkMailTp ();
66cdf0e10cSrcweir 
67cdf0e10cSrcweir 	static  IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	virtual void		SetInitFocus();
70cdf0e10cSrcweir };
71cdf0e10cSrcweir 
72cdf0e10cSrcweir 
73cdf0e10cSrcweir #endif // _SVX_TABPAGE_MAIL_HYPERLINK_HXX
74