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
11c4f58f
Kaydet (Commit)
11c4f58f
authored
Eyl 15, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I2573b42143078c4e72ab201392c69ee296f4974e
üst
34c55149
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
25 deletions
+23
-25
linkdlg.cxx
cui/source/dialogs/linkdlg.cxx
+4
-5
linkdlg.hxx
cui/source/inc/linkdlg.hxx
+1
-1
lnkbase.hxx
include/sfx2/lnkbase.hxx
+1
-1
arealink.hxx
sc/inc/arealink.hxx
+1
-1
externalrefmgr.hxx
sc/inc/externalrefmgr.hxx
+1
-1
tablink.hxx
sc/inc/tablink.hxx
+2
-2
arealink.cxx
sc/source/ui/docshell/arealink.cxx
+1
-1
externalrefmgr.cxx
sc/source/ui/docshell/externalrefmgr.cxx
+2
-2
tablink.cxx
sc/source/ui/docshell/tablink.cxx
+6
-7
lnkbase2.cxx
sfx2/source/appl/lnkbase2.cxx
+4
-4
No files found.
cui/source/dialogs/linkdlg.cxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -519,12 +519,12 @@ IMPL_LINK_NOARG_TYPED( SvBaseLinksDlg, UpdateWaitingHdl, Idle*, void )
m_pTbLinks
->
SetUpdateMode
(
true
);
}
IMPL_LINK
(
SvBaseLinksDlg
,
EndEditHdl
,
sfx2
::
SvBaseLink
*
,
_pLink
)
IMPL_LINK
_TYPED
(
SvBaseLinksDlg
,
EndEditHdl
,
sfx2
::
SvBaseLink
&
,
_rLink
,
void
)
{
sal_uLong
nPos
;
GetSelEntry
(
&
nPos
);
if
(
_
pLink
&&
_pLink
->
WasLastEditOK
()
)
if
(
_
rLink
.
WasLastEditOK
()
)
{
// StarImpress/Draw swap the LinkObjects themselves!
// So search for the link in the manager; if it does not exist
...
...
@@ -532,7 +532,7 @@ IMPL_LINK( SvBaseLinksDlg, EndEditHdl, sfx2::SvBaseLink*, _pLink )
// edited link needs to be refreshed.
bool
bLinkFnd
=
false
;
for
(
size_t
n
=
pLinkMgr
->
GetLinks
().
size
();
n
;
)
if
(
_p
Link
==
&
(
*
pLinkMgr
->
GetLinks
()[
--
n
])
)
if
(
&
_r
Link
==
&
(
*
pLinkMgr
->
GetLinks
()[
--
n
])
)
{
bLinkFnd
=
true
;
break
;
...
...
@@ -543,7 +543,7 @@ IMPL_LINK( SvBaseLinksDlg, EndEditHdl, sfx2::SvBaseLink*, _pLink )
m_pTbLinks
->
SetUpdateMode
(
false
);
m_pTbLinks
->
GetModel
()
->
Remove
(
m_pTbLinks
->
GetEntry
(
nPos
)
);
SvTreeListEntry
*
pToUnselect
=
m_pTbLinks
->
FirstSelected
();
InsertEntry
(
*
_p
Link
,
nPos
,
true
);
InsertEntry
(
_r
Link
,
nPos
,
true
);
if
(
pToUnselect
)
m_pTbLinks
->
Select
(
pToUnselect
,
false
);
m_pTbLinks
->
SetUpdateMode
(
true
);
...
...
@@ -557,7 +557,6 @@ IMPL_LINK( SvBaseLinksDlg, EndEditHdl, sfx2::SvBaseLink*, _pLink )
if
(
pLinkMgr
&&
pLinkMgr
->
GetPersist
())
pLinkMgr
->
GetPersist
()
->
SetModified
();
}
return
0
;
}
OUString
SvBaseLinksDlg
::
ImplGetStateStr
(
const
SvBaseLink
&
rLnk
)
...
...
cui/source/inc/linkdlg.hxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -72,7 +72,7 @@ class SvBaseLinksDlg : public ModalDialog
DECL_LINK_TYPED
(
ChangeSourceClickHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
BreakLinkClickHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
UpdateWaitingHdl
,
Idle
*
,
void
);
DECL_LINK
(
EndEditHdl
,
sfx2
::
SvBaseLink
*
);
DECL_LINK
_TYPED
(
EndEditHdl
,
sfx2
::
SvBaseLink
&
,
void
);
sfx2
::
SvBaseLink
*
GetSelEntry
(
sal_uLong
*
pPos
);
OUString
ImplGetStateStr
(
const
sfx2
::
SvBaseLink
&
);
void
SetType
(
sfx2
::
SvBaseLink
&
rLink
,
sal_uLong
nPos
,
SfxLinkUpdateMode
nType
);
...
...
include/sfx2/lnkbase.hxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -146,7 +146,7 @@ public:
void
Disconnect
();
// Link impl: DECL_LINK( MyEndDialogHdl, SvBaseLink* ); <= param is this
virtual
void
Edit
(
vcl
::
Window
*
,
const
Link
<>&
rEndEditHdl
);
virtual
void
Edit
(
vcl
::
Window
*
,
const
Link
<
SvBaseLink
&
,
void
>&
rEndEditHdl
);
// should the link appear in the dialog? (to the left in the link in the...)
bool
IsVisible
()
const
{
return
bVisible
;
}
...
...
sc/inc/arealink.hxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -54,7 +54,7 @@ public:
virtual
::
sfx2
::
SvBaseLink
::
UpdateResult
DataChanged
(
const
OUString
&
rMimeType
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
rValue
)
SAL_OVERRIDE
;
virtual
void
Edit
(
vcl
::
Window
*
,
const
Link
<>&
rEndEditHdl
)
SAL_OVERRIDE
;
virtual
void
Edit
(
vcl
::
Window
*
,
const
Link
<
SvBaseLink
&
,
void
>&
rEndEditHdl
)
SAL_OVERRIDE
;
bool
Refresh
(
const
OUString
&
rNewFile
,
const
OUString
&
rNewFilter
,
const
OUString
&
rNewArea
,
sal_uLong
nNewRefresh
);
...
...
sc/inc/externalrefmgr.hxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -70,7 +70,7 @@ public:
virtual
void
Closed
()
SAL_OVERRIDE
;
virtual
::
sfx2
::
SvBaseLink
::
UpdateResult
DataChanged
(
const
OUString
&
rMimeType
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
rValue
)
SAL_OVERRIDE
;
virtual
void
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<>&
rEndEditHdl
)
SAL_OVERRIDE
;
virtual
void
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<
SvBaseLink
&
,
void
>&
rEndEditHdl
)
SAL_OVERRIDE
;
void
SetDoReferesh
(
bool
b
);
...
...
sc/inc/tablink.hxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -52,7 +52,7 @@ public:
virtual
::
sfx2
::
SvBaseLink
::
UpdateResult
DataChanged
(
const
OUString
&
rMimeType
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
rValue
)
SAL_OVERRIDE
;
virtual
void
Edit
(
vcl
::
Window
*
,
const
Link
<>&
rEndEditHdl
)
SAL_OVERRIDE
;
virtual
void
Edit
(
vcl
::
Window
*
,
const
Link
<
SvBaseLink
&
,
void
>&
rEndEditHdl
)
SAL_OVERRIDE
;
bool
Refresh
(
const
OUString
&
rNewFile
,
const
OUString
&
rNewFilter
,
const
OUString
*
pNewOptions
/* = NULL */
,
sal_uLong
nNewRefresh
);
...
...
@@ -66,7 +66,7 @@ public:
bool
IsUsed
()
const
;
DECL_LINK_TYPED
(
RefreshHdl
,
Timer
*
,
void
);
DECL_LINK
(
TableEndEditHdl
,
::
sfx2
::
SvBaseLink
*
);
DECL_LINK
_TYPED
(
TableEndEditHdl
,
::
sfx2
::
SvBaseLink
&
,
void
);
};
class
ScDocument
;
...
...
sc/source/ui/docshell/arealink.cxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -84,7 +84,7 @@ ScAreaLink::~ScAreaLink()
delete
pImpl
;
}
void
ScAreaLink
::
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<>&
/* rEndEditHdl */
)
void
ScAreaLink
::
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<
SvBaseLink
&
,
void
>&
/* rEndEditHdl */
)
{
// use own dialog instead of SvBaseLink::Edit...
// DefModalDialogParent setzen, weil evtl. aus der DocShell beim ConvertFrom
...
...
sc/source/ui/docshell/externalrefmgr.cxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -1327,9 +1327,9 @@ void ScExternalRefLink::Closed()
return
SUCCESS
;
}
void
ScExternalRefLink
::
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<>&
/*rEndEditHdl*/
)
void
ScExternalRefLink
::
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<
SvBaseLink
&
,
void
>&
/*rEndEditHdl*/
)
{
SvBaseLink
::
Edit
(
pParent
,
Link
<>
());
SvBaseLink
::
Edit
(
pParent
,
Link
<
SvBaseLink
&
,
void
>
());
}
void
ScExternalRefLink
::
SetDoReferesh
(
bool
b
)
...
...
sc/source/ui/docshell/tablink.cxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -47,9 +47,9 @@
struct
TableLink_Impl
{
ScDocShell
*
m_pDocSh
;
VclPtr
<
vcl
::
Window
>
m_pOldParent
;
Link
<
>
m_aEndEditLink
;
ScDocShell
*
m_pDocSh
;
VclPtr
<
vcl
::
Window
>
m_pOldParent
;
Link
<
sfx2
::
SvBaseLink
&
,
void
>
m_aEndEditLink
;
TableLink_Impl
()
:
m_pDocSh
(
NULL
),
m_pOldParent
(
NULL
)
{}
};
...
...
@@ -105,7 +105,7 @@ ScTableLink::~ScTableLink()
delete
pImpl
;
}
void
ScTableLink
::
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<>&
rEndEditHdl
)
void
ScTableLink
::
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<
SvBaseLink
&
,
void
>&
rEndEditHdl
)
{
// DefModalDialogParent setzen, weil evtl. aus der DocShell beim ConvertFrom
// ein Optionen-Dialog kommt...
...
...
@@ -418,13 +418,12 @@ IMPL_LINK_NOARG_TYPED(ScTableLink, RefreshHdl, Timer *, void)
Refresh
(
aFileName
,
aFilterName
,
NULL
,
GetRefreshDelay
()
);
}
IMPL_LINK
(
ScTableLink
,
TableEndEditHdl
,
::
sfx2
::
SvBaseLink
*
,
pLink
)
IMPL_LINK
_TYPED
(
ScTableLink
,
TableEndEditHdl
,
::
sfx2
::
SvBaseLink
&
,
rLink
,
void
)
{
if
(
pImpl
->
m_aEndEditLink
.
IsSet
()
)
pImpl
->
m_aEndEditLink
.
Call
(
p
Link
);
pImpl
->
m_aEndEditLink
.
Call
(
r
Link
);
bInEdit
=
false
;
Application
::
SetDefDialogParent
(
pImpl
->
m_pOldParent
);
return
0
;
}
// === ScDocumentLoader ==================================================
...
...
sfx2/source/appl/lnkbase2.cxx
Dosyayı görüntüle @
11c4f58f
...
...
@@ -44,7 +44,7 @@ class ImplDdeItem;
struct
BaseLink_Impl
{
Link
<
>
m_aEndEditLink
;
Link
<
SvBaseLink
&
,
void
>
m_aEndEditLink
;
LinkManager
*
m_pLinkMgr
;
VclPtr
<
vcl
::
Window
>
m_pParentWin
;
FileDialogHelper
*
m_pFileDlg
;
...
...
@@ -254,7 +254,7 @@ IMPL_LINK_TYPED( SvBaseLink, EndEditHdl, const OUString&, _rNewName, void )
sNewName
.
clear
();
bWasLastEditOK
=
!
sNewName
.
isEmpty
();
if
(
pImpl
->
m_aEndEditLink
.
IsSet
()
)
pImpl
->
m_aEndEditLink
.
Call
(
this
);
pImpl
->
m_aEndEditLink
.
Call
(
*
this
);
}
...
...
@@ -472,7 +472,7 @@ SvBaseLink::UpdateResult SvBaseLink::DataChanged( const OUString &, const ::com:
return
SUCCESS
;
}
void
SvBaseLink
::
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<>&
rEndEditHdl
)
void
SvBaseLink
::
Edit
(
vcl
::
Window
*
pParent
,
const
Link
<
SvBaseLink
&
,
void
>&
rEndEditHdl
)
{
pImpl
->
m_pParentWin
=
pParent
;
pImpl
->
m_aEndEditLink
=
rEndEditHdl
;
...
...
@@ -506,7 +506,7 @@ void SvBaseLink::Edit( vcl::Window* pParent, const Link<>& rEndEditHdl )
ExecuteEdit
(
OUString
()
);
bWasLastEditOK
=
false
;
if
(
pImpl
->
m_aEndEditLink
.
IsSet
()
)
pImpl
->
m_aEndEditLink
.
Call
(
this
);
pImpl
->
m_aEndEditLink
.
Call
(
*
this
);
}
}
...
...
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