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
74a16a90
Kaydet (Commit)
74a16a90
authored
Kas 29, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid direct use of flag value.
Change-Id: I4279c352a990b2ffda482e9c69b63b18b3c13dc9
üst
1ea411fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
viewdataentry.hxx
svtools/inc/svtools/viewdataentry.hxx
+1
-0
treelist.cxx
svtools/source/contnr/treelist.cxx
+6
-6
viewdataentry.cxx
svtools/source/contnr/viewdataentry.cxx
+8
-0
No files found.
svtools/inc/svtools/viewdataentry.hxx
Dosyayı görüntüle @
74a16a90
...
@@ -65,6 +65,7 @@ public:
...
@@ -65,6 +65,7 @@ public:
void
SetFocus
(
bool
bFocus
);
void
SetFocus
(
bool
bFocus
);
void
SetCursored
(
bool
bCursored
);
void
SetCursored
(
bool
bCursored
);
void
SetSelected
(
bool
bSelected
);
void
SetSelected
(
bool
bSelected
);
void
SetExpanded
(
bool
bExpanded
);
sal_uInt16
GetFlags
()
const
;
sal_uInt16
GetFlags
()
const
;
void
SetSelectable
(
bool
bSelectable
);
void
SetSelectable
(
bool
bSelectable
);
...
...
svtools/source/contnr/treelist.cxx
Dosyayı görüntüle @
74a16a90
...
@@ -940,7 +940,7 @@ void SvTreeList::Expand( SvListView* pView, SvTreeListEntry* pEntry )
...
@@ -940,7 +940,7 @@ void SvTreeList::Expand( SvListView* pView, SvTreeListEntry* pEntry )
DBG_ASSERT
(
!
pEntry
->
maChildren
.
empty
(),
"SvTreeList::Expand: We expected to have child entries."
);
DBG_ASSERT
(
!
pEntry
->
maChildren
.
empty
(),
"SvTreeList::Expand: We expected to have child entries."
);
SvViewDataEntry
*
pViewData
=
pView
->
GetViewData
(
pEntry
);
SvViewDataEntry
*
pViewData
=
pView
->
GetViewData
(
pEntry
);
pViewData
->
nFlags
|=
SVLISTENTRYFLAG_EXPANDED
;
pViewData
->
SetExpanded
(
true
)
;
SvTreeListEntry
*
pParent
=
pEntry
->
pParent
;
SvTreeListEntry
*
pParent
=
pEntry
->
pParent
;
// if parent is visible, invalidate status data
// if parent is visible, invalidate status data
if
(
pView
->
IsExpanded
(
pParent
)
)
if
(
pView
->
IsExpanded
(
pParent
)
)
...
@@ -959,7 +959,7 @@ void SvTreeList::Collapse( SvListView* pView, SvTreeListEntry* pEntry )
...
@@ -959,7 +959,7 @@ void SvTreeList::Collapse( SvListView* pView, SvTreeListEntry* pEntry )
DBG_ASSERT
(
!
pEntry
->
maChildren
.
empty
(),
"SvTreeList::Collapse: We expected have child entries."
);
DBG_ASSERT
(
!
pEntry
->
maChildren
.
empty
(),
"SvTreeList::Collapse: We expected have child entries."
);
SvViewDataEntry
*
pViewData
=
pView
->
GetViewData
(
pEntry
);
SvViewDataEntry
*
pViewData
=
pView
->
GetViewData
(
pEntry
);
pViewData
->
nFlags
&=
(
~
SVLISTENTRYFLAG_EXPANDED
);
pViewData
->
SetExpanded
(
false
);
SvTreeListEntry
*
pParent
=
pEntry
->
pParent
;
SvTreeListEntry
*
pParent
=
pEntry
->
pParent
;
if
(
pView
->
IsExpanded
(
pParent
)
)
if
(
pView
->
IsExpanded
(
pParent
)
)
...
@@ -1198,7 +1198,7 @@ void SvListView::InitTable()
...
@@ -1198,7 +1198,7 @@ void SvListView::InitTable()
// insert root entry
// insert root entry
pEntry
=
pModel
->
pRootItem
;
pEntry
=
pModel
->
pRootItem
;
pViewData
=
new
SvViewDataEntry
;
pViewData
=
new
SvViewDataEntry
;
pViewData
->
nFlags
=
SVLISTENTRYFLAG_EXPANDED
;
pViewData
->
SetExpanded
(
true
)
;
maDataTable
.
insert
(
pEntry
,
pViewData
);
maDataTable
.
insert
(
pEntry
,
pViewData
);
// now all the other entries
// now all the other entries
pEntry
=
pModel
->
First
();
pEntry
=
pModel
->
First
();
...
@@ -1229,7 +1229,7 @@ void SvListView::Clear()
...
@@ -1229,7 +1229,7 @@ void SvListView::Clear()
// insert root entry
// insert root entry
SvTreeListEntry
*
pEntry
=
pModel
->
pRootItem
;
SvTreeListEntry
*
pEntry
=
pModel
->
pRootItem
;
SvViewDataEntry
*
pViewData
=
new
SvViewDataEntry
;
SvViewDataEntry
*
pViewData
=
new
SvViewDataEntry
;
pViewData
->
nFlags
=
SVLISTENTRYFLAG_EXPANDED
;
pViewData
->
SetExpanded
(
true
)
;
maDataTable
.
insert
(
pEntry
,
pViewData
);
maDataTable
.
insert
(
pEntry
,
pViewData
);
}
}
}
}
...
@@ -1304,7 +1304,7 @@ void SvListView::ActionMoving( SvTreeListEntry* pEntry,SvTreeListEntry*,sal_uLon
...
@@ -1304,7 +1304,7 @@ void SvListView::ActionMoving( SvTreeListEntry* pEntry,SvTreeListEntry*,sal_uLon
if
(
pParent
!=
pModel
->
pRootItem
&&
pParent
->
maChildren
.
size
()
==
1
)
if
(
pParent
!=
pModel
->
pRootItem
&&
pParent
->
maChildren
.
size
()
==
1
)
{
{
SvViewDataEntry
*
pViewData
=
maDataTable
.
find
(
pParent
)
->
second
;
SvViewDataEntry
*
pViewData
=
maDataTable
.
find
(
pParent
)
->
second
;
pViewData
->
nFlags
&=
(
~
SVLISTENTRYFLAG_EXPANDED
);
pViewData
->
SetExpanded
(
false
);
}
}
// vorlaeufig
// vorlaeufig
nVisibleCount
=
0
;
nVisibleCount
=
0
;
...
@@ -1408,7 +1408,7 @@ void SvListView::ActionRemoving( SvTreeListEntry* pEntry )
...
@@ -1408,7 +1408,7 @@ void SvListView::ActionRemoving( SvTreeListEntry* pEntry )
if
(
pCurEntry
&&
pCurEntry
!=
pModel
->
pRootItem
&&
pCurEntry
->
maChildren
.
size
()
==
1
)
if
(
pCurEntry
&&
pCurEntry
!=
pModel
->
pRootItem
&&
pCurEntry
->
maChildren
.
size
()
==
1
)
{
{
pViewData
=
maDataTable
.
find
(
pCurEntry
)
->
second
;
pViewData
=
maDataTable
.
find
(
pCurEntry
)
->
second
;
pViewData
->
nFlags
&=
(
~
SVLISTENTRYFLAG_EXPANDED
);
pViewData
->
SetExpanded
(
false
);
}
}
}
}
...
...
svtools/source/contnr/viewdataentry.cxx
Dosyayı görüntüle @
74a16a90
...
@@ -94,6 +94,14 @@ void SvViewDataEntry::SetSelected( bool bSelected )
...
@@ -94,6 +94,14 @@ void SvViewDataEntry::SetSelected( bool bSelected )
nFlags
|=
SVLISTENTRYFLAG_SELECTED
;
nFlags
|=
SVLISTENTRYFLAG_SELECTED
;
}
}
void
SvViewDataEntry
::
SetExpanded
(
bool
bExpanded
)
{
if
(
!
bExpanded
)
nFlags
&=
(
~
SVLISTENTRYFLAG_EXPANDED
);
else
nFlags
|=
SVLISTENTRYFLAG_EXPANDED
;
}
sal_uInt16
SvViewDataEntry
::
GetFlags
()
const
sal_uInt16
SvViewDataEntry
::
GetFlags
()
const
{
{
return
nFlags
;
return
nFlags
;
...
...
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