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
e17bde37
Kaydet (Commit)
e17bde37
authored
Ara 01, 2003
tarafından
Rüdiger Timm
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS geordi2q10 (1.20.10); FILE MERGED
2003/11/28 11:15:28 rt 1.20.10.1: #111934#: join CWS dba01pp1
üst
46d1883f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
ComboBox.cxx
forms/source/component/ComboBox.cxx
+9
-7
No files found.
forms/source/component/ComboBox.cxx
Dosyayı görüntüle @
e17bde37
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: ComboBox.cxx,v $
* $RCSfile: ComboBox.cxx,v $
*
*
* $Revision: 1.2
0
$
* $Revision: 1.2
1
$
*
*
* last change: $Author:
obo $ $Date: 2003-10-21 08:55:36
$
* last change: $Author:
rt $ $Date: 2003-12-01 10:15:25
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -612,13 +612,14 @@ void OComboBoxModel::loadData()
...
@@ -612,13 +612,14 @@ void OComboBoxModel::loadData()
}
}
// search the field
// search the field
Reference
<
XColumnsSupplier
>
xSupplyFields
(
xComposer
,
UNO_QUERY
);
Reference
<
XColumnsSupplier
>
xSupplyFields
(
xComposer
,
UNO_QUERY
);
DBG_ASSERT
(
xSupplyFields
.
is
(),
"OComboBoxModel::loadData : invalid query composer !"
);
DBG_ASSERT
(
xSupplyFields
.
is
(),
"OComboBoxModel::loadData : invalid query composer !"
);
Reference
<
XNameAccess
>
xFieldNames
=
xSupplyFields
->
getColumns
();
Reference
<
XNameAccess
>
xFieldNames
=
xSupplyFields
->
getColumns
();
if
(
xFieldNames
->
hasByName
(
m_aControlSource
))
if
(
xFieldNames
->
hasByName
(
m_aControlSource
))
{
{
Reference
<
XPropertySet
>
xComposerFieldAsSet
(
*
(
Reference
<
XPropertySet
>*
)
xFieldNames
->
getByName
(
m_aControlSource
).
getValue
());
Reference
<
XPropertySet
>
xComposerFieldAsSet
;
xFieldNames
->
getByName
(
m_aControlSource
)
>>=
xComposerFieldAsSet
;
if
(
hasProperty
(
PROPERTY_FIELDSOURCE
,
xComposerFieldAsSet
))
if
(
hasProperty
(
PROPERTY_FIELDSOURCE
,
xComposerFieldAsSet
))
xComposerFieldAsSet
->
getPropertyValue
(
PROPERTY_FIELDSOURCE
)
>>=
aFieldName
;
xComposerFieldAsSet
->
getPropertyValue
(
PROPERTY_FIELDSOURCE
)
>>=
aFieldName
;
}
}
...
@@ -643,7 +644,8 @@ void OComboBoxModel::loadData()
...
@@ -643,7 +644,8 @@ void OComboBoxModel::loadData()
case
ListSourceType_QUERY
:
case
ListSourceType_QUERY
:
{
{
Reference
<
XQueriesSupplier
>
xSupplyQueries
(
xConnection
,
UNO_QUERY
);
Reference
<
XQueriesSupplier
>
xSupplyQueries
(
xConnection
,
UNO_QUERY
);
Reference
<
XPropertySet
>
xQuery
(
*
(
InterfaceRef
*
)
xSupplyQueries
->
getQueries
()
->
getByName
(
m_aListSource
).
getValue
(),
UNO_QUERY
);
Reference
<
XPropertySet
>
xQuery
;
xSupplyQueries
->
getQueries
()
->
getByName
(
m_aListSource
)
>>=
xQuery
;
xStmt
=
xConnection
->
createStatement
();
xStmt
=
xConnection
->
createStatement
();
Reference
<
XPropertySet
>
(
xStmt
,
UNO_QUERY
)
->
setPropertyValue
(
PROPERTY_ESCAPE_PROCESSING
,
xQuery
->
getPropertyValue
(
PROPERTY_ESCAPE_PROCESSING
));
Reference
<
XPropertySet
>
(
xStmt
,
UNO_QUERY
)
->
setPropertyValue
(
PROPERTY_ESCAPE_PROCESSING
,
xQuery
->
getPropertyValue
(
PROPERTY_ESCAPE_PROCESSING
));
...
@@ -704,7 +706,7 @@ void OComboBoxModel::loadData()
...
@@ -704,7 +706,7 @@ void OComboBoxModel::loadData()
}
}
Reference
<
XColumn
>
xDataField
;
Reference
<
XColumn
>
xDataField
;
if
(
xColumns
.
is
())
if
(
xColumns
.
is
())
x
DataField
=
Reference
<
XColumn
>
(
*
(
InterfaceRef
*
)
xColumns
->
getByIndex
(
0
).
getValue
(),
UNO_QUERY
)
;
x
Columns
->
getByIndex
(
0
)
>>=
xDataField
;
if
(
!
xDataField
.
is
())
if
(
!
xDataField
.
is
())
{
{
disposeComponent
(
xListCursor
);
disposeComponent
(
xListCursor
);
...
...
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