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
62374fea
Kaydet (Commit)
62374fea
authored
Ara 10, 2000
tarafından
Frank Schönheit
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
small corrections to the loading mechanism
üst
eefe09d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
unodatbr.cxx
dbaccess/source/ui/browser/unodatbr.cxx
+14
-8
No files found.
dbaccess/source/ui/browser/unodatbr.cxx
Dosyayı görüntüle @
62374fea
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: unodatbr.cxx,v $
*
* $Revision: 1.1
4
$
* $Revision: 1.1
5
$
*
* last change: $Author: fs $ $Date: 2000-12-10 1
6:12:02
$
* last change: $Author: fs $ $Date: 2000-12-10 1
9:10:43
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -1635,6 +1635,9 @@ IMPL_LINK(SbaTableQueryBrowser, OnSelectEntry, SvLBoxEntry*, _pEntry)
sal_Bool
bRebuild
=
xOldConnection
!=
xConnection
||
nOldType
!=
nCommandType
||
aName
!=
aOldName
;
Reference
<
::
com
::
sun
::
star
::
form
::
XLoadable
>
xLoadable
(
getRowSet
(),
UNO_QUERY
);
bRebuild
|=
!
xLoadable
->
isLoaded
();
if
(
bRebuild
)
{
WaitObject
aWaitCursor
(
getContent
());
...
...
@@ -1670,8 +1673,11 @@ IMPL_LINK(SbaTableQueryBrowser, OnSelectEntry, SvLBoxEntry*, _pEntry)
// switch the grid to design mode while loading
getContent
()
->
getGridControl
()
->
setDesignMode
(
sal_True
);
// load the row set
Reference
<
::
com
::
sun
::
star
::
form
::
XLoadable
>
xLoadable
(
getRowSet
(),
UNO_QUERY
);
xLoadable
->
reload
();
if
(
xLoadable
->
isLoaded
())
// reload does not work if not already loaded
xLoadable
->
reload
();
else
xLoadable
->
load
();
// initialize the model
InitializeGridModel
(
getFormComponent
());
...
...
@@ -1771,6 +1777,10 @@ void SbaTableQueryBrowser::closeConnection(SvLBoxEntry* _pDSEntry)
DBG_ASSERT
(
_pDSEntry
,
"SbaTableQueryBrowser::closeConnection: invalid entry (NULL)!"
);
OSL_ENSHURE
(
m_pTreeView
->
getListBox
()
->
GetRootLevelParent
(
_pDSEntry
)
==
_pDSEntry
,
"SbaTableQueryBrowser::closeConnection: invalid entry (not top-level)!"
);
// if one of the entries of the given DS is displayed currently, unload the form
if
(
m_pCurrentlyLoaded
&&
(
m_pTreeView
->
getListBox
()
->
GetRootLevelParent
(
m_pCurrentlyLoaded
)
==
_pDSEntry
))
unloadForm
();
// collapse the query/table container
for
(
SvLBoxEntry
*
pContainers
=
m_pTreeModel
->
FirstChild
(
_pDSEntry
);
pContainers
;
pContainers
=
m_pTreeModel
->
NextSibling
(
pContainers
))
{
...
...
@@ -1787,10 +1797,6 @@ void SbaTableQueryBrowser::closeConnection(SvLBoxEntry* _pDSEntry)
// collapse the entry itself
m_pTreeView
->
getListBox
()
->
Collapse
(
_pDSEntry
);
// if one of the entries of the given DS is displayed currently, unload the form
if
(
m_pCurrentlyLoaded
&&
(
m_pTreeView
->
getListBox
()
->
GetRootLevelParent
(
m_pCurrentlyLoaded
)
==
_pDSEntry
))
unloadForm
();
// get the connection
DBTreeListModel
::
DBTreeListUserData
*
pData
=
static_cast
<
DBTreeListModel
::
DBTreeListUserData
*>
(
_pDSEntry
->
GetUserData
());
// and dispose/reset it
...
...
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