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
8d44385b
Kaydet (Commit)
8d44385b
authored
Eki 16, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I48893ac7130ad671864faa5eb55409b21cdda77e
üst
e324766d
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
35 additions
and
49 deletions
+35
-49
SpellDialog.cxx
cui/source/dialogs/SpellDialog.cxx
+3
-5
SpellDialog.hxx
cui/source/inc/SpellDialog.hxx
+1
-1
optlingu.hxx
cui/source/inc/optlingu.hxx
+6
-6
optlingu.cxx
cui/source/options/optlingu.cxx
+2
-4
dp_gui_dialog2.cxx
desktop/source/deployment/gui/dp_gui_dialog2.cxx
+4
-8
dp_gui_dialog2.hxx
desktop/source/deployment/gui/dp_gui_dialog2.hxx
+2
-2
dp_gui_extlistbox.hxx
desktop/source/deployment/gui/dp_gui_extlistbox.hxx
+2
-2
dp_gui_updatedialog.cxx
desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+4
-8
dp_gui_updatedialog.hxx
desktop/source/deployment/gui/dp_gui_updatedialog.hxx
+1
-1
breadcrumb.hxx
include/svtools/breadcrumb.hxx
+1
-1
fixedhyper.hxx
include/vcl/fixedhyper.hxx
+5
-5
breadcrumb.cxx
svtools/source/control/breadcrumb.cxx
+2
-4
fixedhyper.cxx
vcl/source/control/fixedhyper.cxx
+2
-2
No files found.
cui/source/dialogs/SpellDialog.cxx
Dosyayı görüntüle @
8d44385b
...
@@ -2016,13 +2016,13 @@ void SentenceEditWindow_Impl::SetUndoEditMode(bool bSet)
...
@@ -2016,13 +2016,13 @@ void SentenceEditWindow_Impl::SetUndoEditMode(bool bSet)
pSpellDialog
->
m_pChangePB
->
Enable
();
pSpellDialog
->
m_pChangePB
->
Enable
();
}
}
IMPL_LINK
(
SpellDialog
,
HandleHyperlink
,
FixedHyperlink
*
,
pHyperlink
)
IMPL_LINK
_TYPED
(
SpellDialog
,
HandleHyperlink
,
FixedHyperlink
&
,
rHyperlink
,
void
)
{
{
OUString
sURL
=
pHyperlink
->
GetURL
();
OUString
sURL
=
rHyperlink
.
GetURL
();
OUString
sTitle
=
GetText
();
OUString
sTitle
=
GetText
();
if
(
sURL
.
isEmpty
()
)
// Nothing to do, when the URL is empty
if
(
sURL
.
isEmpty
()
)
// Nothing to do, when the URL is empty
return
1
;
return
;
try
try
{
{
uno
::
Reference
<
css
::
system
::
XSystemShellExecute
>
xSystemShellExecute
(
uno
::
Reference
<
css
::
system
::
XSystemShellExecute
>
xSystemShellExecute
(
...
@@ -2038,8 +2038,6 @@ IMPL_LINK( SpellDialog, HandleHyperlink, FixedHyperlink*, pHyperlink )
...
@@ -2038,8 +2038,6 @@ IMPL_LINK( SpellDialog, HandleHyperlink, FixedHyperlink*, pHyperlink )
aErrorBox
->
SetText
(
sTitle
);
aErrorBox
->
SetText
(
sTitle
);
aErrorBox
->
Execute
();
aErrorBox
->
Execute
();
}
}
return
1
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/inc/SpellDialog.hxx
Dosyayı görüntüle @
8d44385b
...
@@ -185,7 +185,7 @@ private:
...
@@ -185,7 +185,7 @@ private:
DECL_LINK_TYPED
(
AddToDictClickHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
AddToDictClickHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
LanguageSelectHdl
,
ListBox
&
,
void
);
DECL_LINK_TYPED
(
LanguageSelectHdl
,
ListBox
&
,
void
);
DECL_LINK_TYPED
(
DialogUndoHdl
,
SpellUndoAction_Impl
&
,
void
);
DECL_LINK_TYPED
(
DialogUndoHdl
,
SpellUndoAction_Impl
&
,
void
);
DECL_LINK
(
HandleHyperlink
,
FixedHyperlink
*
);
DECL_LINK
_TYPED
(
HandleHyperlink
,
FixedHyperlink
&
,
void
);
DECL_LINK_TYPED
(
InitHdl
,
void
*
,
void
);
DECL_LINK_TYPED
(
InitHdl
,
void
*
,
void
);
...
...
cui/source/inc/optlingu.hxx
Dosyayı görüntüle @
8d44385b
...
@@ -74,14 +74,14 @@ class SvxEditModulesDlg : public ModalDialog
...
@@ -74,14 +74,14 @@ class SvxEditModulesDlg : public ModalDialog
SvTreeListEntry
*
CreateEntry
(
OUString
&
rTxt
,
sal_uInt16
nCol
);
SvTreeListEntry
*
CreateEntry
(
OUString
&
rTxt
,
sal_uInt16
nCol
);
DECL_LINK_TYPED
(
SelectHdl_Impl
,
SvTreeListBox
*
,
void
);
DECL_LINK_TYPED
(
SelectHdl_Impl
,
SvTreeListBox
*
,
void
);
DECL_LINK_TYPED
(
UpDownHdl_Impl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
UpDownHdl_Impl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
ClickHdl_Impl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
ClickHdl_Impl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
BackHdl_Impl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
BackHdl_Impl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
LangSelectListBoxHdl_Impl
,
ListBox
&
,
void
);
DECL_LINK_TYPED
(
LangSelectListBoxHdl_Impl
,
ListBox
&
,
void
);
DECL_LINK_TYPED
(
BoxCheckButtonHdl_Impl2
,
SvLBoxButtonData
*
,
void
);
DECL_LINK_TYPED
(
BoxCheckButtonHdl_Impl2
,
SvLBoxButtonData
*
,
void
);
DECL_LINK_TYPED
(
BoxCheckButtonHdl_Impl
,
SvTreeListBox
*
,
void
);
DECL_LINK_TYPED
(
BoxCheckButtonHdl_Impl
,
SvTreeListBox
*
,
void
);
DECL_LINK
(
OpenURLHdl_Impl
,
void
*
);
DECL_LINK
_TYPED
(
OpenURLHdl_Impl
,
FixedHyperlink
&
,
void
);
void
LangSelectHdl_Impl
(
ListBox
*
);
void
LangSelectHdl_Impl
(
ListBox
*
);
public
:
public
:
...
@@ -143,7 +143,7 @@ private:
...
@@ -143,7 +143,7 @@ private:
DECL_LINK_TYPED
(
BoxDoubleClickHdl_Impl
,
SvTreeListBox
*
,
bool
);
DECL_LINK_TYPED
(
BoxDoubleClickHdl_Impl
,
SvTreeListBox
*
,
bool
);
DECL_LINK_TYPED
(
BoxCheckButtonHdl_Impl
,
SvTreeListBox
*
,
void
);
DECL_LINK_TYPED
(
BoxCheckButtonHdl_Impl
,
SvTreeListBox
*
,
void
);
DECL_LINK_TYPED
(
PostDblClickHdl_Impl
,
void
*
,
void
);
DECL_LINK_TYPED
(
PostDblClickHdl_Impl
,
void
*
,
void
);
DECL_LINK
(
OpenURLHdl_Impl
,
void
*
);
DECL_LINK
_TYPED
(
OpenURLHdl_Impl
,
FixedHyperlink
&
,
void
);
void
UpdateModulesBox_Impl
();
void
UpdateModulesBox_Impl
();
void
UpdateDicBox_Impl
();
void
UpdateDicBox_Impl
();
...
...
cui/source/options/optlingu.cxx
Dosyayı görüntüle @
8d44385b
...
@@ -1540,11 +1540,10 @@ IMPL_LINK_NOARG_TYPED(SvxLinguTabPage, PostDblClickHdl_Impl, void*, void)
...
@@ -1540,11 +1540,10 @@ IMPL_LINK_NOARG_TYPED(SvxLinguTabPage, PostDblClickHdl_Impl, void*, void)
IMPL_LINK_NOARG
(
SvxLinguTabPage
,
OpenURLHdl_Impl
)
IMPL_LINK_NOARG
_TYPED
(
SvxLinguTabPage
,
OpenURLHdl_Impl
,
FixedHyperlink
&
,
void
)
{
{
OUString
sURL
(
m_pMoreDictsLink
->
GetURL
()
);
OUString
sURL
(
m_pMoreDictsLink
->
GetURL
()
);
lcl_OpenURL
(
sURL
);
lcl_OpenURL
(
sURL
);
return
0
;
}
}
...
@@ -2312,11 +2311,10 @@ IMPL_LINK_NOARG_TYPED(SvxEditModulesDlg, BackHdl_Impl, Button*, void)
...
@@ -2312,11 +2311,10 @@ IMPL_LINK_NOARG_TYPED(SvxEditModulesDlg, BackHdl_Impl, Button*, void)
IMPL_LINK_NOARG
(
SvxEditModulesDlg
,
OpenURLHdl_Impl
)
IMPL_LINK_NOARG
_TYPED
(
SvxEditModulesDlg
,
OpenURLHdl_Impl
,
FixedHyperlink
&
,
void
)
{
{
OUString
sURL
(
m_pMoreDictsLink
->
GetURL
()
);
OUString
sURL
(
m_pMoreDictsLink
->
GetURL
()
);
lcl_OpenURL
(
sURL
);
lcl_OpenURL
(
sURL
);
return
0
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
desktop/source/deployment/gui/dp_gui_dialog2.cxx
Dosyayı görüntüle @
8d44385b
...
@@ -1072,11 +1072,9 @@ IMPL_LINK_NOARG_TYPED(ExtMgrDialog, HandleUpdateBtn, Button*, void)
...
@@ -1072,11 +1072,9 @@ IMPL_LINK_NOARG_TYPED(ExtMgrDialog, HandleUpdateBtn, Button*, void)
}
}
IMPL_LINK
(
ExtMgrDialog
,
HandleHyperlink
,
FixedHyperlink
*
,
pHyperlink
)
IMPL_LINK
_TYPED
(
ExtMgrDialog
,
HandleHyperlink
,
FixedHyperlink
&
,
rHyperlink
,
void
)
{
{
openWebBrowser
(
pHyperlink
->
GetURL
(),
GetText
()
);
openWebBrowser
(
rHyperlink
.
GetURL
(),
GetText
()
);
return
1
;
}
}
...
@@ -1404,11 +1402,9 @@ IMPL_LINK_NOARG_TYPED(UpdateRequiredDialog, HandleCloseBtn, Button*, void)
...
@@ -1404,11 +1402,9 @@ IMPL_LINK_NOARG_TYPED(UpdateRequiredDialog, HandleCloseBtn, Button*, void)
}
}
IMPL_LINK
(
UpdateRequiredDialog
,
HandleHyperlink
,
FixedHyperlink
*
,
pHyperlink
)
IMPL_LINK
_TYPED
(
UpdateRequiredDialog
,
HandleHyperlink
,
FixedHyperlink
&
,
rHyperlink
,
void
)
{
{
openWebBrowser
(
pHyperlink
->
GetURL
(),
GetText
()
);
openWebBrowser
(
rHyperlink
.
GetURL
(),
GetText
()
);
return
1
;
}
}
...
...
desktop/source/deployment/gui/dp_gui_dialog2.hxx
Dosyayı görüntüle @
8d44385b
...
@@ -136,7 +136,7 @@ class ExtMgrDialog : public ModelessDialog,
...
@@ -136,7 +136,7 @@ class ExtMgrDialog : public ModelessDialog,
DECL_DLLPRIVATE_LINK_TYPED
(
HandleCancelBtn
,
Button
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
HandleCancelBtn
,
Button
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
HandleCloseBtn
,
Button
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
HandleCloseBtn
,
Button
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
HandleExtTypeCbx
,
Button
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
HandleExtTypeCbx
,
Button
*
,
void
);
DECL_DLLPRIVATE_LINK
(
HandleHyperlink
,
FixedHyperlink
*
);
DECL_DLLPRIVATE_LINK
_TYPED
(
HandleHyperlink
,
FixedHyperlink
&
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
TimeOutHdl
,
Idle
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
TimeOutHdl
,
Idle
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
startProgress
,
void
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
startProgress
,
void
*
,
void
);
...
@@ -202,7 +202,7 @@ class UpdateRequiredDialog : public ModalDialog,
...
@@ -202,7 +202,7 @@ class UpdateRequiredDialog : public ModalDialog,
DECL_DLLPRIVATE_LINK_TYPED
(
HandleCancelBtn
,
Button
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
HandleCancelBtn
,
Button
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
TimeOutHdl
,
Idle
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
TimeOutHdl
,
Idle
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
startProgress
,
void
*
,
void
);
DECL_DLLPRIVATE_LINK_TYPED
(
startProgress
,
void
*
,
void
);
DECL_DLLPRIVATE_LINK
(
HandleHyperlink
,
FixedHyperlink
*
);
DECL_DLLPRIVATE_LINK
_TYPED
(
HandleHyperlink
,
FixedHyperlink
&
,
void
);
static
bool
isEnabled
(
const
css
::
uno
::
Reference
<
css
::
deployment
::
XPackage
>
&
xPackage
);
static
bool
isEnabled
(
const
css
::
uno
::
Reference
<
css
::
deployment
::
XPackage
>
&
xPackage
);
static
bool
checkDependencies
(
const
css
::
uno
::
Reference
<
css
::
deployment
::
XPackage
>
&
xPackage
);
static
bool
checkDependencies
(
const
css
::
uno
::
Reference
<
css
::
deployment
::
XPackage
>
&
xPackage
);
...
...
desktop/source/deployment/gui/dp_gui_extlistbox.hxx
Dosyayı görüntüle @
8d44385b
...
@@ -126,7 +126,7 @@ class ExtensionBox_Impl : public ::svt::IExtensionListBox
...
@@ -126,7 +126,7 @@ class ExtensionBox_Impl : public ::svt::IExtensionListBox
Image
m_aWarningImage
;
Image
m_aWarningImage
;
Image
m_aDefaultImage
;
Image
m_aDefaultImage
;
Link
<>
m_aClickHdl
;
Link
<
FixedHyperlink
&
,
void
>
m_aClickHdl
;
VclPtr
<
ScrollBar
>
m_pScrollBar
;
VclPtr
<
ScrollBar
>
m_pScrollBar
;
...
@@ -190,7 +190,7 @@ public:
...
@@ -190,7 +190,7 @@ public:
long
PointToPos
(
const
Point
&
rPos
);
long
PointToPos
(
const
Point
&
rPos
);
void
SetScrollHdl
(
const
Link
<
ScrollBar
*
,
void
>&
rLink
);
void
SetScrollHdl
(
const
Link
<
ScrollBar
*
,
void
>&
rLink
);
void
DoScroll
(
long
nDelta
);
void
DoScroll
(
long
nDelta
);
void
SetHyperlinkHdl
(
const
Link
<>&
rLink
){
m_aClickHdl
=
rLink
;
}
void
SetHyperlinkHdl
(
const
Link
<
FixedHyperlink
&
,
void
>&
rLink
){
m_aClickHdl
=
rLink
;
}
virtual
void
RecalcAll
();
virtual
void
RecalcAll
();
void
RemoveUnlocked
();
void
RemoveUnlocked
();
...
...
desktop/source/deployment/gui/dp_gui_updatedialog.cxx
Dosyayı görüntüle @
8d44385b
...
@@ -922,7 +922,7 @@ void UpdateDialog::initDescription()
...
@@ -922,7 +922,7 @@ void UpdateDialog::initDescription()
m_pReleaseNotesLabel
->
Hide
();
m_pReleaseNotesLabel
->
Hide
();
m_pReleaseNotesLink
->
Hide
();
m_pReleaseNotesLink
->
Hide
();
Link
<>
aLink
=
LINK
(
this
,
UpdateDialog
,
hyperlink_clicked
);
Link
<
FixedHyperlink
&
,
void
>
aLink
=
LINK
(
this
,
UpdateDialog
,
hyperlink_clicked
);
m_pPublisherLink
->
SetClickHdl
(
aLink
);
m_pPublisherLink
->
SetClickHdl
(
aLink
);
m_pReleaseNotesLink
->
SetClickHdl
(
aLink
);
m_pReleaseNotesLink
->
SetClickHdl
(
aLink
);
}
}
...
@@ -1319,13 +1319,11 @@ IMPL_LINK_NOARG_TYPED(UpdateDialog, closeHandler, Button*, void)
...
@@ -1319,13 +1319,11 @@ IMPL_LINK_NOARG_TYPED(UpdateDialog, closeHandler, Button*, void)
EndDialog
();
EndDialog
();
}
}
IMPL_LINK
(
UpdateDialog
,
hyperlink_clicked
,
FixedHyperlink
*
,
pHyperlink
)
IMPL_LINK
_TYPED
(
UpdateDialog
,
hyperlink_clicked
,
FixedHyperlink
&
,
rHyperlink
,
void
)
{
{
OUString
sURL
;
OUString
sURL
=
rHyperlink
.
GetURL
();
if
(
pHyperlink
)
sURL
=
OUString
(
pHyperlink
->
GetURL
()
);
if
(
sURL
.
isEmpty
()
)
if
(
sURL
.
isEmpty
()
)
return
0
;
return
;
try
try
{
{
...
@@ -1337,8 +1335,6 @@ IMPL_LINK( UpdateDialog, hyperlink_clicked, FixedHyperlink*, pHyperlink )
...
@@ -1337,8 +1335,6 @@ IMPL_LINK( UpdateDialog, hyperlink_clicked, FixedHyperlink*, pHyperlink )
catch
(
const
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
{
}
}
return
1
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
desktop/source/deployment/gui/dp_gui_updatedialog.hxx
Dosyayı görüntüle @
8d44385b
...
@@ -163,7 +163,7 @@ private:
...
@@ -163,7 +163,7 @@ private:
DECL_LINK_TYPED
(
allHandler
,
CheckBox
&
,
void
);
DECL_LINK_TYPED
(
allHandler
,
CheckBox
&
,
void
);
DECL_LINK_TYPED
(
okHandler
,
Button
*
,
void
);
DECL_LINK_TYPED
(
okHandler
,
Button
*
,
void
);
DECL_LINK_TYPED
(
closeHandler
,
Button
*
,
void
);
DECL_LINK_TYPED
(
closeHandler
,
Button
*
,
void
);
DECL_LINK
(
hyperlink_clicked
,
FixedHyperlink
*
);
DECL_LINK
_TYPED
(
hyperlink_clicked
,
FixedHyperlink
&
,
void
);
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
m_context
;
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
m_context
;
VclPtr
<
FixedText
>
m_pchecking
;
VclPtr
<
FixedText
>
m_pchecking
;
...
...
include/svtools/breadcrumb.hxx
Dosyayı görüntüle @
8d44385b
...
@@ -46,7 +46,7 @@ class SVT_DLLPUBLIC Breadcrumb : public VclHBox
...
@@ -46,7 +46,7 @@ class SVT_DLLPUBLIC Breadcrumb : public VclHBox
void
appendField
();
void
appendField
();
bool
showField
(
unsigned
int
nIndex
,
unsigned
int
nWidthMax
);
bool
showField
(
unsigned
int
nIndex
,
unsigned
int
nWidthMax
);
DECL_LINK
(
ClickLinkHdl
,
FixedHyperlink
*
);
DECL_LINK
_TYPED
(
ClickLinkHdl
,
FixedHyperlink
&
,
void
);
public
:
public
:
Breadcrumb
(
vcl
::
Window
*
pParent
,
WinBits
nWinStyle
=
0
);
Breadcrumb
(
vcl
::
Window
*
pParent
,
WinBits
nWinStyle
=
0
);
...
...
include/vcl/fixedhyper.hxx
Dosyayı görüntüle @
8d44385b
...
@@ -28,7 +28,7 @@ class VCL_DLLPUBLIC FixedHyperlink : public FixedText
...
@@ -28,7 +28,7 @@ class VCL_DLLPUBLIC FixedHyperlink : public FixedText
private
:
private
:
long
m_nTextLen
;
long
m_nTextLen
;
Pointer
m_aOldPointer
;
Pointer
m_aOldPointer
;
Link
<
>
m_aClickHdl
;
Link
<
FixedHyperlink
&
,
void
>
m_aClickHdl
;
OUString
m_sURL
;
OUString
m_sURL
;
/** initializes the font (link color and underline).
/** initializes the font (link color and underline).
...
@@ -91,22 +91,22 @@ class VCL_DLLPUBLIC FixedHyperlink : public FixedText
...
@@ -91,22 +91,22 @@ class VCL_DLLPUBLIC FixedHyperlink : public FixedText
m_aClickHdl is called if the text is clicked.
m_aClickHdl is called if the text is clicked.
*/
*/
inline
void
SetClickHdl
(
const
Link
<>&
rLink
)
{
m_aClickHdl
=
rLink
;
}
inline
void
SetClickHdl
(
const
Link
<
FixedHyperlink
&
,
void
>&
rLink
)
{
m_aClickHdl
=
rLink
;
}
// ::FixedHyperbaseLink
// ::FixedHyperbaseLink
/** sets the URL of the hyperlink and uses it as tooltip. */
/** sets the URL of the hyperlink and uses it as tooltip. */
void
SetURL
(
const
OUString
&
rNewURL
);
void
SetURL
(
const
OUString
&
rNewURL
);
/** returns the URL of the hyperlink.
/** returns the URL of the hyperlink.
@return
@return
m_sURL
m_sURL
*/
*/
const
OUString
&
GetURL
()
const
{
return
m_sURL
;}
const
OUString
&
GetURL
()
const
{
return
m_sURL
;}
/** sets new text and recalculates the text length. */
/** sets new text and recalculates the text length. */
virtual
void
SetText
(
const
OUString
&
rNewDescription
)
override
;
virtual
void
SetText
(
const
OUString
&
rNewDescription
)
override
;
};
};
#endif
#endif
...
...
svtools/source/control/breadcrumb.cxx
Dosyayı görüntüle @
8d44385b
...
@@ -273,12 +273,10 @@ bool Breadcrumb::showField( unsigned int nIndex, unsigned int nWidthMax )
...
@@ -273,12 +273,10 @@ bool Breadcrumb::showField( unsigned int nIndex, unsigned int nWidthMax )
return
true
;
return
true
;
}
}
IMPL_LINK
(
Breadcrumb
,
ClickLinkHdl
,
FixedHyperlink
*
,
pLink
)
IMPL_LINK
_TYPED
(
Breadcrumb
,
ClickLinkHdl
,
FixedHyperlink
&
,
rLink
,
void
)
{
{
m_sClickedURL
=
pLink
->
GetURL
();
m_sClickedURL
=
rLink
.
GetURL
();
m_aClickHdl
.
Call
(
this
);
m_aClickHdl
.
Call
(
this
);
return
1
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/source/control/fixedhyper.cxx
Dosyayı görüntüle @
8d44385b
...
@@ -77,7 +77,7 @@ void FixedHyperlink::MouseButtonUp( const MouseEvent& )
...
@@ -77,7 +77,7 @@ void FixedHyperlink::MouseButtonUp( const MouseEvent& )
{
{
// calls the link if the control is enabled and the mouse is over the text.
// calls the link if the control is enabled and the mouse is over the text.
if
(
IsEnabled
()
&&
ImplIsOverText
(
GetPointerPosPixel
())
)
if
(
IsEnabled
()
&&
ImplIsOverText
(
GetPointerPosPixel
())
)
ImplCallEventListenersAndHandler
(
VCLEVENT_BUTTON_CLICK
,
[
this
]
()
{
m_aClickHdl
.
Call
(
this
);
}
);
ImplCallEventListenersAndHandler
(
VCLEVENT_BUTTON_CLICK
,
[
this
]
()
{
m_aClickHdl
.
Call
(
*
this
);
}
);
}
}
void
FixedHyperlink
::
RequestHelp
(
const
HelpEvent
&
rHEvt
)
void
FixedHyperlink
::
RequestHelp
(
const
HelpEvent
&
rHEvt
)
...
@@ -106,7 +106,7 @@ void FixedHyperlink::KeyInput( const KeyEvent& rKEvt )
...
@@ -106,7 +106,7 @@ void FixedHyperlink::KeyInput( const KeyEvent& rKEvt )
{
{
case
KEY_SPACE
:
case
KEY_SPACE
:
case
KEY_RETURN
:
case
KEY_RETURN
:
m_aClickHdl
.
Call
(
this
);
m_aClickHdl
.
Call
(
*
this
);
break
;
break
;
default
:
default
:
...
...
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