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
7d2e94d0
Kaydet (Commit)
7d2e94d0
authored
Tem 15, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move Populate and ShowOverlay as pure virtual functions.
Change-Id: I6544ec030646a2f9fb0e322c1c2032b78ff6390c
üst
0703d559
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
templateabstractview.hxx
sfx2/inc/sfx2/templateabstractview.hxx
+5
-0
templatefolderview.hxx
sfx2/inc/sfx2/templatefolderview.hxx
+2
-2
templateonlineview.hxx
sfx2/inc/sfx2/templateonlineview.hxx
+3
-1
templateonlineview.cxx
sfx2/source/control/templateonlineview.cxx
+14
-0
No files found.
sfx2/inc/sfx2/templateabstractview.hxx
Dosyayı görüntüle @
7d2e94d0
...
...
@@ -24,6 +24,11 @@ public:
virtual
~
TemplateAbstractView
();
// Fill view with template folders thumbnails
virtual
void
Populate
()
=
0
;
virtual
void
showOverlay
(
bool
bVisible
)
=
0
;
// Check if the overlay is visible or not.
bool
isOverlayVisible
()
const
;
...
...
sfx2/inc/sfx2/templatefolderview.hxx
Dosyayı görüntüle @
7d2e94d0
...
...
@@ -36,11 +36,11 @@ public:
virtual
~
TemplateFolderView
();
// Fill view with template folders thumbnails
void
Populate
();
v
irtual
v
oid
Populate
();
std
::
vector
<
rtl
::
OUString
>
getFolderNames
();
void
showOverlay
(
bool
bVisible
);
v
irtual
v
oid
showOverlay
(
bool
bVisible
);
void
filterTemplatesByApp
(
const
FILTER_APPLICATION
&
eApp
);
...
...
sfx2/inc/sfx2/templateonlineview.hxx
Dosyayı görüntüle @
7d2e94d0
...
...
@@ -23,7 +23,9 @@ public:
virtual
~
TemplateOnlineView
();
// Load repositories from user settings.
void
Populate
();
virtual
void
Populate
();
virtual
void
showOverlay
(
bool
bVisible
);
void
setItemDimensions
(
long
ItemWidth
,
long
ThumbnailHeight
,
long
DisplayHeight
,
int
itemPadding
);
...
...
sfx2/source/control/templateonlineview.cxx
Dosyayı görüntüle @
7d2e94d0
...
...
@@ -87,6 +87,20 @@ void TemplateOnlineView::Populate()
Invalidate
();
}
void
TemplateOnlineView
::
showOverlay
(
bool
bVisible
)
{
mbActive
=
!
bVisible
;
mpItemView
->
Show
(
bVisible
);
// Clear items is the overlay is closed.
if
(
!
bVisible
)
{
mpItemView
->
Clear
();
setSelectionMode
(
mbSelectionMode
);
}
}
void
TemplateOnlineView
::
setItemDimensions
(
long
ItemWidth
,
long
ThumbnailHeight
,
long
DisplayHeight
,
int
itemPadding
)
{
ThumbnailView
::
setItemDimensions
(
ItemWidth
,
ThumbnailHeight
,
DisplayHeight
,
itemPadding
);
...
...
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