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
f9bea19e
Kaydet (Commit)
f9bea19e
authored
Ock 18, 2015
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Typo: sDatasouce->sDatasource
Change-Id: I4ffaf4195ae17ecf86dffc9c44e4672c4b2835d7
üst
8d758d07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
fmgridcl.cxx
svx/source/fmcomp/fmgridcl.cxx
+9
-9
No files found.
svx/source/fmcomp/fmgridcl.cxx
Dosyayı görüntüle @
f9bea19e
...
...
@@ -237,7 +237,7 @@ sal_Int8 FmGridHeader::ExecuteDrop( const ExecuteDropEvent& _rEvt )
}
// extract the descriptor
OUString
sDatasouce
,
sCommand
,
sFieldName
,
sDatabaseLocation
,
sConnnectionResource
;
OUString
sDatasou
r
ce
,
sCommand
,
sFieldName
,
sDatabaseLocation
,
sConnnectionResource
;
sal_Int32
nCommandType
=
CommandType
::
COMMAND
;
Reference
<
XPreparedStatement
>
xStatement
;
Reference
<
XResultSet
>
xResultSet
;
...
...
@@ -245,7 +245,7 @@ sal_Int8 FmGridHeader::ExecuteDrop( const ExecuteDropEvent& _rEvt )
Reference
<
XConnection
>
xConnection
;
ODataAccessDescriptor
aColumn
=
OColumnTransferable
::
extractColumnDescriptor
(
aDroppedData
);
if
(
aColumn
.
has
(
daDataSource
))
aColumn
[
daDataSource
]
>>=
sDatasouce
;
if
(
aColumn
.
has
(
daDataSource
))
aColumn
[
daDataSource
]
>>=
sDatasou
r
ce
;
if
(
aColumn
.
has
(
daDatabaseLocation
))
aColumn
[
daDatabaseLocation
]
>>=
sDatabaseLocation
;
if
(
aColumn
.
has
(
daConnectionResource
))
aColumn
[
daConnectionResource
]
>>=
sConnnectionResource
;
if
(
aColumn
.
has
(
daCommand
))
aColumn
[
daCommand
]
>>=
sCommand
;
...
...
@@ -256,7 +256,7 @@ sal_Int8 FmGridHeader::ExecuteDrop( const ExecuteDropEvent& _rEvt )
if
(
sFieldName
.
isEmpty
()
||
sCommand
.
isEmpty
()
||
(
sDatasouce
.
isEmpty
()
||
(
sDatasou
r
ce
.
isEmpty
()
&&
sDatabaseLocation
.
isEmpty
()
&&
!
xConnection
.
is
()
)
...
...
@@ -273,12 +273,12 @@ sal_Int8 FmGridHeader::ExecuteDrop( const ExecuteDropEvent& _rEvt )
{
// the transferable did not contain the connection -> build an own one
try
{
OUString
sSignificantSource
(
sDatasou
ce
.
isEmpty
()
?
sDatabaseLocation
:
sDatasou
ce
);
OUString
sSignificantSource
(
sDatasou
rce
.
isEmpty
()
?
sDatabaseLocation
:
sDatasour
ce
);
xConnection
=
OStaticDataAccessTools
().
getConnection_withFeedback
(
sSignificantSource
,
OUString
(),
OUString
(),
static_cast
<
FmGridControl
*>
(
GetParent
())
->
getContext
()
);
}
catch
(
NoSuchElementException
&
)
{
// allowed, means sDatasouce isn't a valid data source name ....
{
// allowed, means sDatasou
r
ce isn't a valid data source name ....
}
catch
(
Exception
&
)
{
...
...
@@ -374,8 +374,8 @@ IMPL_LINK( FmGridHeader, OnAsyncExecuteDrop, void*, /*NOTINTERESTEDIN*/ )
Reference
<
XPropertySet
>
xField
;
Reference
<
XConnection
>
xConnection
;
OUString
sDatasouce
=
m_pImpl
->
aDropData
.
getDataSource
();
if
(
sDatasouce
.
isEmpty
()
&&
m_pImpl
->
aDropData
.
has
(
daConnectionResource
)
)
OUString
sDatasou
r
ce
=
m_pImpl
->
aDropData
.
getDataSource
();
if
(
sDatasou
r
ce
.
isEmpty
()
&&
m_pImpl
->
aDropData
.
has
(
daConnectionResource
)
)
m_pImpl
->
aDropData
[
daConnectionResource
]
>>=
sURL
;
m_pImpl
->
aDropData
[
daCommand
]
>>=
sCommand
;
m_pImpl
->
aDropData
[
daCommandType
]
>>=
nCommandType
;
...
...
@@ -585,8 +585,8 @@ IMPL_LINK( FmGridHeader, OnAsyncExecuteDrop, void*, /*NOTINTERESTEDIN*/ )
{
if
(
::
comphelper
::
getString
(
xForm
->
getPropertyValue
(
FM_PROP_DATASOURCE
)).
isEmpty
())
{
if
(
!
sDatasouce
.
isEmpty
()
)
xForm
->
setPropertyValue
(
FM_PROP_DATASOURCE
,
makeAny
(
sDatasouce
));
if
(
!
sDatasou
r
ce
.
isEmpty
()
)
xForm
->
setPropertyValue
(
FM_PROP_DATASOURCE
,
makeAny
(
sDatasou
r
ce
));
else
xForm
->
setPropertyValue
(
FM_PROP_URL
,
makeAny
(
sURL
));
}
...
...
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