1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SVX_TABPAGE_MAIL_HYPERLINK_HXX
20 #define _SVX_TABPAGE_MAIL_HYPERLINK_HXX
22 #include "hltpbase.hxx"
24 /*************************************************************************
26 |* Tabpage : Hyperlink - Mail & News
28 \************************************************************************/
30 class SvxHyperlinkMailTp
: public SvxHyperlinkTabPageBase
33 FixedLine maGrpMailNews
;
34 RadioButton maRbtMail
;
35 RadioButton maRbtNews
;
36 FixedText maFtReceiver
;
37 SvxHyperURLBox maCbbReceiver
;
38 ImageButton maBtAdrBook
;
39 FixedText maFtSubject
;
42 DECL_LINK (Click_SmartProtocol_Impl
, void * ); ///< Radiobutton clicked: Type EMAIl or News
43 DECL_LINK (ClickAdrBookHdl_Impl
, void * ); ///< Button : Address book
44 DECL_LINK (ModifiedReceiverHdl_Impl
, void * ); ///< Combobox "receiver" modified
46 void SetScheme( const String
& aScheme
);
47 void RemoveImproperProtocol(const String
& aProperScheme
);
48 String
GetSchemeFromButtons() const;
49 INetProtocol
GetSmartProtocolFromButtons() const;
51 String
CreateAbsoluteURL() const;
54 virtual void FillDlgFields ( String
& aStrURL
);
55 virtual void GetCurentItemData ( String
& aStrURL
, String
& aStrName
,
56 String
& aStrIntName
, String
& aStrFrame
,
57 SvxLinkInsertMode
& eMode
);
60 SvxHyperlinkMailTp ( Window
*pParent
, const SfxItemSet
& rItemSet
);
61 ~SvxHyperlinkMailTp ();
63 static IconChoicePage
* Create( Window
* pWindow
, const SfxItemSet
& rItemSet
);
65 virtual void SetInitFocus();
69 #endif // _SVX_TABPAGE_MAIL_HYPERLINK_HXX
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */