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
81105c7a
Kaydet (Commit)
81105c7a
authored
Eyl 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: I34e15999ecc73c5a330f637338ca9d8fce31b5d2
üst
f5b57774
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
20 deletions
+18
-20
dbwizsetup.cxx
dbaccess/source/ui/dlg/dbwizsetup.cxx
+3
-5
generalpage.cxx
dbaccess/source/ui/dlg/generalpage.cxx
+4
-4
generalpage.hxx
dbaccess/source/ui/dlg/generalpage.hxx
+8
-8
dbwizsetup.hxx
dbaccess/source/ui/inc/dbwizsetup.hxx
+3
-3
No files found.
dbaccess/source/ui/dlg/dbwizsetup.cxx
Dosyayı görüntüle @
81105c7a
...
@@ -605,22 +605,20 @@ IMPL_LINK_TYPED(ODbTypeWizDialogSetup, ImplClickHdl, OMySQLIntroPageSetup*, _pMy
...
@@ -605,22 +605,20 @@ IMPL_LINK_TYPED(ODbTypeWizDialogSetup, ImplClickHdl, OMySQLIntroPageSetup*, _pMy
activatePath
(
static_cast
<
PathId
>
(
m_pCollection
->
getIndexOf
(
sURLPrefix
)
+
1
),
true
);
activatePath
(
static_cast
<
PathId
>
(
m_pCollection
->
getIndexOf
(
sURLPrefix
)
+
1
),
true
);
}
}
IMPL_LINK_NOARG_TYPED
(
ODbTypeWizDialogSetup
,
OnChangeCreationMode
,
OGeneralPageWizard
*
,
void
)
IMPL_LINK_NOARG_TYPED
(
ODbTypeWizDialogSetup
,
OnChangeCreationMode
,
OGeneralPageWizard
&
,
void
)
{
{
activateDatabasePath
();
activateDatabasePath
();
}
}
IMPL_LINK
(
ODbTypeWizDialogSetup
,
OnRecentDocumentSelected
,
OGeneralPageWizard
*
,
/*_pGeneralPage*/
)
IMPL_LINK
_NOARG_TYPED
(
ODbTypeWizDialogSetup
,
OnRecentDocumentSelected
,
OGeneralPageWizard
&
,
void
)
{
{
enableButtons
(
WizardButtonFlags
::
FINISH
,
!
m_pGeneralPage
->
GetSelectedDocument
().
sURL
.
isEmpty
()
);
enableButtons
(
WizardButtonFlags
::
FINISH
,
!
m_pGeneralPage
->
GetSelectedDocument
().
sURL
.
isEmpty
()
);
return
0L
;
}
}
IMPL_LINK
(
ODbTypeWizDialogSetup
,
OnSingleDocumentChosen
,
OGeneralPageWizard
*
,
/*_pGeneralPage*/
)
IMPL_LINK
_NOARG_TYPED
(
ODbTypeWizDialogSetup
,
OnSingleDocumentChosen
,
OGeneralPageWizard
&
,
void
)
{
{
if
(
prepareLeaveCurrentState
(
eFinish
)
)
if
(
prepareLeaveCurrentState
(
eFinish
)
)
onFinish
();
onFinish
();
return
0L
;
}
}
void
ODbTypeWizDialogSetup
::
enterState
(
WizardState
_nState
)
void
ODbTypeWizDialogSetup
::
enterState
(
WizardState
_nState
)
...
...
dbaccess/source/ui/dlg/generalpage.cxx
Dosyayı görüntüle @
81105c7a
...
@@ -702,7 +702,7 @@ namespace dbaui
...
@@ -702,7 +702,7 @@ namespace dbaui
IMPL_LINK_NOARG_TYPED
(
OGeneralPageWizard
,
OnCreateDatabaseModeSelected
,
Button
*
,
void
)
IMPL_LINK_NOARG_TYPED
(
OGeneralPageWizard
,
OnCreateDatabaseModeSelected
,
Button
*
,
void
)
{
{
if
(
m_aCreationModeHandler
.
IsSet
()
)
if
(
m_aCreationModeHandler
.
IsSet
()
)
m_aCreationModeHandler
.
Call
(
this
);
m_aCreationModeHandler
.
Call
(
*
this
);
OnEmbeddedDBTypeSelected
(
m_pEmbeddedDBType
);
OnEmbeddedDBTypeSelected
(
m_pEmbeddedDBType
);
}
}
...
@@ -710,13 +710,13 @@ namespace dbaui
...
@@ -710,13 +710,13 @@ namespace dbaui
IMPL_LINK_NOARG_TYPED
(
OGeneralPageWizard
,
OnSetupModeSelected
,
Button
*
,
void
)
IMPL_LINK_NOARG_TYPED
(
OGeneralPageWizard
,
OnSetupModeSelected
,
Button
*
,
void
)
{
{
if
(
m_aCreationModeHandler
.
IsSet
()
)
if
(
m_aCreationModeHandler
.
IsSet
()
)
m_aCreationModeHandler
.
Call
(
this
);
m_aCreationModeHandler
.
Call
(
*
this
);
OnDatasourceTypeSelected
(
m_pDatasourceType
);
OnDatasourceTypeSelected
(
m_pDatasourceType
);
}
}
IMPL_LINK
(
OGeneralPageWizard
,
OnDocumentSelected
,
ListBox
*
,
/*_pBox*/
)
IMPL_LINK
(
OGeneralPageWizard
,
OnDocumentSelected
,
ListBox
*
,
/*_pBox*/
)
{
{
m_aDocumentSelectionHandler
.
Call
(
this
);
m_aDocumentSelectionHandler
.
Call
(
*
this
);
return
0L
;
return
0L
;
}
}
...
@@ -744,7 +744,7 @@ namespace dbaui
...
@@ -744,7 +744,7 @@ namespace dbaui
}
}
m_aBrowsedDocument
.
sURL
=
sPath
;
m_aBrowsedDocument
.
sURL
=
sPath
;
m_aBrowsedDocument
.
sFilter
.
clear
();
m_aBrowsedDocument
.
sFilter
.
clear
();
m_aChooseDocumentHandler
.
Call
(
this
);
m_aChooseDocumentHandler
.
Call
(
*
this
);
}
}
}
}
...
...
dbaccess/source/ui/dlg/generalpage.hxx
Dosyayı görüntüle @
81105c7a
...
@@ -148,12 +148,12 @@ namespace dbaui
...
@@ -148,12 +148,12 @@ namespace dbaui
VclPtr
<
OpenDocumentButton
>
m_pPB_OpenDatabase
;
VclPtr
<
OpenDocumentButton
>
m_pPB_OpenDatabase
;
// state
// state
DocumentDescriptor
m_aBrowsedDocument
;
DocumentDescriptor
m_aBrowsedDocument
;
CreationMode
m_eOriginalCreationMode
;
CreationMode
m_eOriginalCreationMode
;
Link
<
OGeneralPageWizard
*
,
void
>
m_aCreationModeHandler
;
/// to be called if a new type is selected
Link
<
OGeneralPageWizard
&
,
void
>
m_aCreationModeHandler
;
/// to be called if a new type is selected
Link
<
>
m_aDocumentSelectionHandler
;
/// to be called when a document in the RecentDoc list is selected
Link
<
OGeneralPageWizard
&
,
void
>
m_aDocumentSelectionHandler
;
/// to be called when a document in the RecentDoc list is selected
Link
<
>
m_aChooseDocumentHandler
;
/// to be called when a recent document has been definitely chosen
Link
<
OGeneralPageWizard
&
,
void
>
m_aChooseDocumentHandler
;
/// to be called when a recent document has been definitely chosen
::
svt
::
ControlDependencyManager
::
svt
::
ControlDependencyManager
m_aControlDependencies
;
m_aControlDependencies
;
...
@@ -162,11 +162,11 @@ namespace dbaui
...
@@ -162,11 +162,11 @@ namespace dbaui
void
insertEmbeddedDBTypeEntryData
(
const
OUString
&
_sType
,
const
OUString
&
sDisplayName
);
void
insertEmbeddedDBTypeEntryData
(
const
OUString
&
_sType
,
const
OUString
&
sDisplayName
);
public
:
public
:
void
SetCreationModeHandler
(
const
Link
<
OGeneralPageWizard
*
,
void
>&
_rHandler
)
{
m_aCreationModeHandler
=
_rHandler
;
}
void
SetCreationModeHandler
(
const
Link
<
OGeneralPageWizard
&
,
void
>&
_rHandler
)
{
m_aCreationModeHandler
=
_rHandler
;
}
CreationMode
GetDatabaseCreationMode
()
const
;
CreationMode
GetDatabaseCreationMode
()
const
;
void
SetDocumentSelectionHandler
(
const
Link
<>&
_rHandler
)
{
m_aDocumentSelectionHandler
=
_rHandler
;
}
void
SetDocumentSelectionHandler
(
const
Link
<
OGeneralPageWizard
&
,
void
>&
_rHandler
)
{
m_aDocumentSelectionHandler
=
_rHandler
;
}
void
SetChooseDocumentHandler
(
const
Link
<>&
_rHandler
)
{
m_aChooseDocumentHandler
=
_rHandler
;
}
void
SetChooseDocumentHandler
(
const
Link
<
OGeneralPageWizard
&
,
void
>&
_rHandler
)
{
m_aChooseDocumentHandler
=
_rHandler
;
}
DocumentDescriptor
GetSelectedDocument
()
const
;
DocumentDescriptor
GetSelectedDocument
()
const
;
protected
:
protected
:
...
...
dbaccess/source/ui/inc/dbwizsetup.hxx
Dosyayı görüntüle @
81105c7a
...
@@ -176,9 +176,9 @@ private:
...
@@ -176,9 +176,9 @@ private:
bool
callSaveAsDialog
();
bool
callSaveAsDialog
();
bool
IsConnectionUrlRequired
();
bool
IsConnectionUrlRequired
();
DECL_LINK_TYPED
(
OnTypeSelected
,
OGeneralPage
&
,
void
);
DECL_LINK_TYPED
(
OnTypeSelected
,
OGeneralPage
&
,
void
);
DECL_LINK_TYPED
(
OnChangeCreationMode
,
OGeneralPageWizard
*
,
void
);
DECL_LINK_TYPED
(
OnChangeCreationMode
,
OGeneralPageWizard
&
,
void
);
DECL_LINK
(
OnRecentDocumentSelected
,
OGeneralPageWizard
*
);
DECL_LINK
_TYPED
(
OnRecentDocumentSelected
,
OGeneralPageWizard
&
,
void
);
DECL_LINK
(
OnSingleDocumentChosen
,
OGeneralPageWizard
*
);
DECL_LINK
_TYPED
(
OnSingleDocumentChosen
,
OGeneralPageWizard
&
,
void
);
DECL_LINK_TYPED
(
ImplClickHdl
,
OMySQLIntroPageSetup
*
,
void
);
DECL_LINK_TYPED
(
ImplClickHdl
,
OMySQLIntroPageSetup
*
,
void
);
DECL_LINK_TYPED
(
ImplModifiedHdl
,
OGenericAdministrationPage
const
*
,
void
);
DECL_LINK_TYPED
(
ImplModifiedHdl
,
OGenericAdministrationPage
const
*
,
void
);
};
};
...
...
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