38 , m_xCbbReceiver(new
SvxHyperURLBox(xBuilder->weld_combo_box(
"receiver")))
39 , m_xBtAdrBook(xBuilder->weld_button(
"addressbook"))
40 , m_xEdSubject(xBuilder->weld_entry(
"subject"))
74 OUString aStrURLc (rStrURL);
79 OUString aStrSubject, aStrTmp( aStrURLc );
81 sal_Int32
nPos = aStrTmp.toAsciiLowerCase().indexOf(
"subject" );
87 aStrSubject = aStrURLc.copy(
nPos+1 );
89 nPos = aStrURLc.indexOf(
'?' );
92 aStrURLc = aStrURLc.copy( 0,
nPos );
112 OUString& aStrIntName, OUString& aStrFrame,
125 if(
aURL.GetProtocol() == INetProtocol::Mailto )
129 OUString aQuery =
"subject=" +
m_xEdSubject->get_text();
130 aURL.SetParam(aQuery);
134 if (
aURL.GetProtocol() != INetProtocol::NotValid )
148 return std::make_unique<SvxHyperlinkMailTp>(pWindow, pDlg, pItemSet);
182 if ( !aStrURL.isEmpty() )
185 if ( !aStrScheme.isEmpty() && aStrScheme != aProperScheme )
187 aStrURL = aStrURL.copy( aStrScheme.getLength() );
200 OUString aScheme = GetSchemeFromURL( m_xCbbReceiver->get_active_text() );
201 if(!aScheme.isEmpty())
202 SetScheme( aScheme );
215 SfxRequest aReq(SID_VIEW_DATA_SOURCE_BROWSER, SfxCallMode::SLOT, rPool);
216 pViewFrame->ExecuteSlot( aReq,
true );
void SetExchangeSupport()
static SAL_WARN_UNUSED_RESULT SfxViewFrame * Current()
ComboBox-Control for URL's with History and Autocompletion.
std::unique_ptr< SvxHyperURLBox > m_xCbbReceiver
OUString CreateAbsoluteURL() const
void SetScheme(std::u16string_view rScheme)
SvxHyperlinkMailTp(weld::Container *pParent, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
std::unique_ptr< weld::Button > m_xBtAdrBook
virtual void FillDlgFields(const OUString &rStrURL) override
virtual void SetInitFocus() override
static std::unique_ptr< IconChoicePage > Create(weld::Container *pWindow, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
std::unique_ptr< weld::Entry > m_xEdSubject
virtual ~SvxHyperlinkMailTp() override
virtual void GetCurrentItemData(OUString &rStrURL, OUString &aStrName, OUString &aStrIntName, OUString &aStrFrame, SvxLinkInsertMode &eMode) override
void RemoveImproperProtocol(std::u16string_view aProperScheme)
static OUString GetSchemeFromURL(const OUString &rStrURL)
void GetDataFromCommonFields(OUString &aStrName, OUString &aStrIntName, OUString &aStrFrame, SvxLinkInsertMode &eMode)
IMPL_STATIC_LINK_NOARG(SvxHyperlinkMailTp, ClickAdrBookHdl_Impl, weld::Button &, void)
IMPL_LINK_NOARG(SvxHyperlinkMailTp, ModifiedReceiverHdl_Impl, weld::ComboBox &, void)
#define LINK(Instance, Class, Member)
constexpr OUStringLiteral INET_MAILTO_SCHEME