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