Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
6d089a4c
Kaydet (Commit)
6d089a4c
authored
Nis 01, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Kill INetProtocol::News
Change-Id: I393edc816aaf189b1001e630c76f67dd53fd5be3
üst
52417882
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
9 additions
and
114 deletions
+9
-114
cuihyperdlg.cxx
cui/source/dialogs/cuihyperdlg.cxx
+0
-1
hlmailtp.cxx
cui/source/dialogs/hlmailtp.cxx
+3
-46
hltpbase.cxx
cui/source/dialogs/hltpbase.cxx
+0
-4
hyperdlg.src
cui/source/dialogs/hyperdlg.src
+2
-2
hlmailtp.hxx
cui/source/inc/hlmailtp.hxx
+1
-6
hyperlinkmailpage.ui
cui/uiconfig/ui/hyperlinkmailpage.ui
+1
-49
urlobj.hxx
include/tools/urlobj.hxx
+0
-3
htmlexp.cxx
sc/source/filter/html/htmlexp.cxx
+1
-1
docfile.cxx
sfx2/source/doc/docfile.cxx
+0
-1
fmpage.cxx
svx/source/form/fmpage.cxx
+1
-1
urlobj.cxx
tools/source/fsys/urlobj.cxx
+0
-0
No files found.
cui/source/dialogs/cuihyperdlg.cxx
Dosyayı görüntüle @
6d089a4c
...
...
@@ -313,7 +313,6 @@ sal_uInt16 SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem )
nPageId
=
RID_SVXPAGE_HYPERLINK_DOCUMENT
;
break
;
case
INetProtocol
:
:
Mailto
:
case
INetProtocol
:
:
News
:
nPageId
=
RID_SVXPAGE_HYPERLINK_MAIL
;
break
;
default
:
...
...
cui/source/dialogs/hlmailtp.cxx
Dosyayı görüntüle @
6d089a4c
...
...
@@ -41,8 +41,6 @@ SvxHyperlinkMailTp::SvxHyperlinkMailTp ( vcl::Window *pParent, IconChoiceDialog*
:
SvxHyperlinkTabPageBase
(
pParent
,
pDlg
,
"HyperlinkMailPage"
,
"cui/ui/hyperlinkmailpage.ui"
,
rItemSet
)
{
get
(
m_pRbtMail
,
"linktyp_mail"
);
get
(
m_pRbtNews
,
"linktyp_news"
);
get
(
m_pCbbReceiver
,
"receiver"
);
m_pCbbReceiver
->
SetSmartProtocol
(
INetProtocol
::
Mailto
);
get
(
m_pBtAdrBook
,
"adressbook"
);
...
...
@@ -60,12 +58,7 @@ SvxHyperlinkMailTp::SvxHyperlinkMailTp ( vcl::Window *pParent, IconChoiceDialog*
SetExchangeSupport
();
// set defaults
m_pRbtMail
->
Check
();
// set handlers
m_pRbtMail
->
SetClickHdl
(
LINK
(
this
,
SvxHyperlinkMailTp
,
Click_SmartProtocol_Impl
)
);
m_pRbtNews
->
SetClickHdl
(
LINK
(
this
,
SvxHyperlinkMailTp
,
Click_SmartProtocol_Impl
)
);
m_pBtAdrBook
->
SetClickHdl
(
LINK
(
this
,
SvxHyperlinkMailTp
,
ClickAdrBookHdl_Impl
)
);
m_pCbbReceiver
->
SetModifyHdl
(
LINK
(
this
,
SvxHyperlinkMailTp
,
ModifiedReceiverHdl_Impl
)
);
...
...
@@ -141,7 +134,7 @@ OUString SvxHyperlinkMailTp::CreateAbsoluteURL() const
if
(
aURL
.
GetProtocol
()
==
INetProtocol
::
NotValid
)
{
aURL
.
SetSmartProtocol
(
GetSmartProtocolFromButtons
()
);
aURL
.
SetSmartProtocol
(
INetProtocol
::
Mailto
);
aURL
.
SetSmartURL
(
aStrURL
);
}
...
...
@@ -189,18 +182,11 @@ void SvxHyperlinkMailTp::SetInitFocus()
void
SvxHyperlinkMailTp
::
SetScheme
(
const
OUString
&
rScheme
)
{
//if rScheme is empty or unknown the default beaviour is like it where MAIL
const
sal_Char
sNewsScheme
[]
=
INET_NEWS_SCHEME
;
bool
bMail
=
!
rScheme
.
startsWith
(
sNewsScheme
);
//update protocol button selection:
m_pRbtMail
->
Check
(
bMail
);
m_pRbtNews
->
Check
(
!
bMail
);
const
bool
bMail
=
true
;
//update target:
RemoveImproperProtocol
(
rScheme
);
m_pCbbReceiver
->
SetSmartProtocol
(
GetSmartProtocolFromButtons
()
);
m_pCbbReceiver
->
SetSmartProtocol
(
INetProtocol
::
Mailto
);
//show/hide special fields for MAIL:
m_pBtAdrBook
->
Enable
(
bMail
);
...
...
@@ -227,35 +213,6 @@ void SvxHyperlinkMailTp::RemoveImproperProtocol(const OUString& aProperScheme)
}
}
OUString
SvxHyperlinkMailTp
::
GetSchemeFromButtons
()
const
{
if
(
m_pRbtNews
->
IsChecked
()
)
return
OUString
(
INET_NEWS_SCHEME
);
return
OUString
(
INET_MAILTO_SCHEME
);
}
INetProtocol
SvxHyperlinkMailTp
::
GetSmartProtocolFromButtons
()
const
{
if
(
m_pRbtNews
->
IsChecked
()
)
{
return
INetProtocol
::
News
;
}
return
INetProtocol
::
Mailto
;
}
/*************************************************************************
|*
|* Click on radiobutton : Type EMail
|*
|************************************************************************/
IMPL_LINK_NOARG
(
SvxHyperlinkMailTp
,
Click_SmartProtocol_Impl
)
{
OUString
aScheme
=
GetSchemeFromButtons
();
SetScheme
(
aScheme
);
return
0L
;
}
/*************************************************************************
|*
|* Contens of editfield "receiver" modified
...
...
cui/source/dialogs/hltpbase.cxx
Dosyayı görüntüle @
6d089a4c
...
...
@@ -401,10 +401,6 @@ OUString SvxHyperlinkTabPageBase::GetSchemeFromURL( const OUString& rStrURL )
{
aStrScheme
=
INET_MAILTO_SCHEME
;
}
else
if
(
rStrURL
.
startsWithIgnoreAsciiCase
(
INET_NEWS_SCHEME
)
)
{
aStrScheme
=
INET_NEWS_SCHEME
;
}
}
else
aStrScheme
=
INetURLObject
::
GetScheme
(
aProtocol
);
...
...
cui/source/dialogs/hyperdlg.src
Dosyayı görüntüle @
6d089a4c
...
...
@@ -60,11 +60,11 @@ String RID_SVXSTR_HYPERDLG_HLINETTP_HELP
String RID_SVXSTR_HYPERDLG_HLMAILTP
{
Text [ en-US ] = "Mail
& News
" ;
Text [ en-US ] = "Mail" ;
};
String RID_SVXSTR_HYPERDLG_HLMAILTP_HELP
{
Text [ en-US ] = "This is where you create a hyperlink to an e-mail address
or newsgroup
." ;
Text [ en-US ] = "This is where you create a hyperlink to an e-mail address." ;
};
String RID_SVXSTR_HYPERDLG_HLDOCTP
...
...
cui/source/inc/hlmailtp.hxx
Dosyayı görüntüle @
6d089a4c
...
...
@@ -23,28 +23,23 @@
/*************************************************************************
|*
|* Tabpage : Hyperlink - Mail
& News
|* Tabpage : Hyperlink - Mail
|*
\************************************************************************/
class
SvxHyperlinkMailTp
:
public
SvxHyperlinkTabPageBase
{
private
:
RadioButton
*
m_pRbtMail
;
RadioButton
*
m_pRbtNews
;
SvxHyperURLBox
*
m_pCbbReceiver
;
PushButton
*
m_pBtAdrBook
;
FixedText
*
m_pFtSubject
;
Edit
*
m_pEdSubject
;
DECL_LINK
(
Click_SmartProtocol_Impl
,
void
*
);
///< Radiobutton clicked: Type EMAIl or News
DECL_LINK
(
ClickAdrBookHdl_Impl
,
void
*
);
///< Button : Address book
DECL_LINK
(
ModifiedReceiverHdl_Impl
,
void
*
);
///< Combobox "receiver" modified
void
SetScheme
(
const
OUString
&
rScheme
);
void
RemoveImproperProtocol
(
const
OUString
&
aProperScheme
);
OUString
GetSchemeFromButtons
()
const
;
INetProtocol
GetSmartProtocolFromButtons
()
const
;
OUString
CreateAbsoluteURL
()
const
;
...
...
cui/uiconfig/ui/hyperlinkmailpage.ui
Dosyayı görüntüle @
6d089a4c
...
...
@@ -30,54 +30,6 @@
<property
name=
"vexpand"
>
True
</property>
<property
name=
"row_spacing"
>
6
</property>
<property
name=
"column_spacing"
>
12
</property>
<child>
<object
class=
"GtkGrid"
id=
"grid2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"row_spacing"
>
6
</property>
<property
name=
"column_spacing"
>
12
</property>
<child>
<object
class=
"GtkRadioButton"
id=
"linktyp_mail"
>
<property
name=
"label"
translatable=
"yes"
>
_E-mail
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"active"
>
True
</property>
<property
name=
"draw_indicator"
>
True
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkRadioButton"
id=
"linktyp_news"
>
<property
name=
"label"
translatable=
"yes"
>
_News
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"active"
>
True
</property>
<property
name=
"draw_indicator"
>
True
</property>
<property
name=
"group"
>
linktyp_mail
</property>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
0
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"receiver_label"
>
<property
name=
"visible"
>
True
</property>
...
...
@@ -164,7 +116,7 @@
<object
class=
"GtkLabel"
id=
"label2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Mail
&
News
</property>
<property
name=
"label"
translatable=
"yes"
>
Mail
</property>
<attributes>
<attribute
name=
"weight"
value=
"bold"
/>
</attributes>
...
...
include/tools/urlobj.hxx
Dosyayı görüntüle @
6d089a4c
...
...
@@ -40,7 +40,6 @@ namespace com { namespace sun { namespace star { namespace util {
#define INET_HTTPS_SCHEME "https://"
#define INET_FILE_SCHEME "file://"
#define INET_MAILTO_SCHEME "mailto:"
#define INET_NEWS_SCHEME "news:"
#define INET_HID_SCHEME "hid:"
#define URL_PREFIX_PRIV_SOFFICE "private:"
...
...
@@ -72,7 +71,6 @@ enum class INetProtocol
File
,
Mailto
,
VndSunStarWebdav
,
News
,
PrivSoffice
,
VndSunStarHelp
,
Https
,
...
...
@@ -882,7 +880,6 @@ public:
PART_UNAMBIGUOUS
=
0x08000
,
PART_URIC_NO_SLASH
=
0x10000
,
PART_HTTP_QUERY
=
0x20000
,
//TODO! unused?
PART_NEWS_ARTICLE_LOCALPART
=
0x40000
};
enum
EscapeType
...
...
sc/source/filter/html/htmlexp.cxx
Dosyayı görüntüle @
6d089a4c
...
...
@@ -1240,7 +1240,7 @@ bool ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm,
(
(
bFileToFile
&&
INetProtocol
::
File
==
aTargetUrl
.
GetProtocol
())
||
(
!
bFileToFile
&&
INetProtocol
::
File
!=
aTargetUrl
.
GetProtocol
()
&&
INetProtocol
::
Ftp
<=
aTargetUrl
.
GetProtocol
()
&&
INetProtocol
::
News
>=
aTargetUrl
.
GetProtocol
())
)
)
INetProtocol
::
Javascript
>=
aTargetUrl
.
GetProtocol
())
)
)
{
if
(
pFileNameMap
)
{
...
...
sfx2/source/doc/docfile.cxx
Dosyayı görüntüle @
6d089a4c
...
...
@@ -2683,7 +2683,6 @@ void SfxMedium::SetIsRemote_Impl()
case
INetProtocol
:
:
Ftp
:
case
INetProtocol
:
:
Http
:
case
INetProtocol
:
:
Https
:
case
INetProtocol
:
:
News
:
case
INetProtocol
:
:
Vim
:
pImp
->
m_bRemote
=
true
;
break
;
...
...
svx/source/form/fmpage.cxx
Dosyayı görüntüle @
6d089a4c
...
...
@@ -191,7 +191,7 @@ bool FmFormPage::RequestHelp( vcl::Window* pWindow, SdrView* pView,
// testen, ob es ein Protokoll-Typ ist, den ich anzeigen will
INetProtocol
aProtocol
=
aUrl
.
GetProtocol
();
static
const
INetProtocol
s_aQuickHelpSupported
[]
=
{
INetProtocol
::
Ftp
,
INetProtocol
::
Http
,
INetProtocol
::
File
,
INetProtocol
::
Mailto
,
INetProtocol
::
News
,
{
INetProtocol
::
Ftp
,
INetProtocol
::
Http
,
INetProtocol
::
File
,
INetProtocol
::
Mailto
,
INetProtocol
::
Https
,
INetProtocol
::
Javascript
,
INetProtocol
::
Vim
,
INetProtocol
::
Ldap
};
...
...
tools/source/fsys/urlobj.cxx
Dosyayı görüntüle @
6d089a4c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment