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
cbdfab6e
Kaydet (Commit)
cbdfab6e
authored
Tem 15, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Keep track of the current view and close it when we click close icon.
Change-Id: I63faf58203ac43b4216a57d8ad5fbfe8d9f0bfff
üst
7d2e94d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
templatedlg.hxx
sfx2/inc/templatedlg.hxx
+2
-0
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+7
-1
No files found.
sfx2/inc/templatedlg.hxx
Dosyayı görüntüle @
cbdfab6e
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
class
Edit
;
class
Edit
;
class
PopupMenu
;
class
PopupMenu
;
class
TemplateAbstractView
;
class
TemplateFolderView
;
class
TemplateFolderView
;
class
TemplateOnlineView
;
class
TemplateOnlineView
;
class
TemplateSearchView
;
class
TemplateSearchView
;
...
@@ -95,6 +96,7 @@ private:
...
@@ -95,6 +96,7 @@ private:
ToolBox
*
mpActionBar
;
ToolBox
*
mpActionBar
;
ToolBox
*
mpTemplateBar
;
ToolBox
*
mpTemplateBar
;
TemplateSearchView
*
mpSearchView
;
TemplateSearchView
*
mpSearchView
;
TemplateAbstractView
*
mpCurView
;
TemplateFolderView
*
maView
;
TemplateFolderView
*
maView
;
TemplateOnlineView
*
mpOnlineView
;
TemplateOnlineView
*
mpOnlineView
;
PopupMenu
*
mpCreateMenu
;
PopupMenu
*
mpCreateMenu
;
...
...
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
cbdfab6e
...
@@ -198,6 +198,8 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
...
@@ -198,6 +198,8 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
ITEM_MAX_HEIGHT
-
THUMBNAIL_MAX_HEIGHT
,
ITEM_MAX_HEIGHT
-
THUMBNAIL_MAX_HEIGHT
,
ITEM_PADDING
);
ITEM_PADDING
);
mpOnlineView
->
setOverlayCloseHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
CloseOverlayHdl
));
mpSearchView
->
SetSizePixel
(
aThumbSize
);
mpSearchView
->
SetSizePixel
(
aThumbSize
);
mpSearchView
->
setItemMaxTextLength
(
ITEM_MAX_TEXT_LENGTH
);
mpSearchView
->
setItemMaxTextLength
(
ITEM_MAX_TEXT_LENGTH
);
...
@@ -308,7 +310,7 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg, CloseOverlayHdl)
...
@@ -308,7 +310,7 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg, CloseOverlayHdl)
mpTemplateBar
->
Hide
();
mpTemplateBar
->
Hide
();
mpViewBar
->
Show
();
mpViewBar
->
Show
();
m
a
View
->
showOverlay
(
false
);
m
pCur
View
->
showOverlay
(
false
);
return
0
;
return
0
;
}
}
...
@@ -839,6 +841,8 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal)
...
@@ -839,6 +841,8 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal)
{
{
if
(
bDisplayLocal
)
if
(
bDisplayLocal
)
{
{
mpCurView
=
maView
;
mpViewBar
->
ShowItem
(
TBI_TEMPLATE_ONLINE
);
mpViewBar
->
ShowItem
(
TBI_TEMPLATE_ONLINE
);
mpViewBar
->
HideItem
(
TBI_TEMPLATE_LOCAL
);
mpViewBar
->
HideItem
(
TBI_TEMPLATE_LOCAL
);
...
@@ -847,6 +851,8 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal)
...
@@ -847,6 +851,8 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal)
}
}
else
else
{
{
mpCurView
=
mpOnlineView
;
mpViewBar
->
ShowItem
(
TBI_TEMPLATE_LOCAL
);
mpViewBar
->
ShowItem
(
TBI_TEMPLATE_LOCAL
);
mpViewBar
->
HideItem
(
TBI_TEMPLATE_ONLINE
);
mpViewBar
->
HideItem
(
TBI_TEMPLATE_ONLINE
);
...
...
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