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
e64f7707
Kaydet (Commit)
e64f7707
authored
Tem 14, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Switch main view between local/online repository.
Change-Id: If2f5f53991271fc05453c44fa422aba7c14d0e16
üst
63cddab8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
templatedlg.hxx
sfx2/inc/templatedlg.hxx
+5
-0
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+31
-0
No files found.
sfx2/inc/templatedlg.hxx
Dosyayı görüntüle @
e64f7707
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
class
Edit
;
class
Edit
;
class
PopupMenu
;
class
PopupMenu
;
class
TemplateFolderView
;
class
TemplateFolderView
;
class
TemplateOnlineView
;
class
TemplateSearchView
;
class
TemplateSearchView
;
class
ThumbnailView
;
class
ThumbnailView
;
class
ThumbnailViewItem
;
class
ThumbnailViewItem
;
...
@@ -76,6 +77,9 @@ private:
...
@@ -76,6 +77,9 @@ private:
void
centerTopButtons
();
void
centerTopButtons
();
// Exchange view between local/online view.
void
switchMainView
(
bool
bDisplayLocal
);
private
:
private
:
PushButton
aButtonAll
;
PushButton
aButtonAll
;
...
@@ -92,6 +96,7 @@ private:
...
@@ -92,6 +96,7 @@ private:
ToolBox
*
mpTemplateBar
;
ToolBox
*
mpTemplateBar
;
TemplateSearchView
*
mpSearchView
;
TemplateSearchView
*
mpSearchView
;
TemplateFolderView
*
maView
;
TemplateFolderView
*
maView
;
TemplateOnlineView
*
mpOnlineView
;
PopupMenu
*
mpCreateMenu
;
PopupMenu
*
mpCreateMenu
;
PopupMenu
*
mpActionMenu
;
PopupMenu
*
mpActionMenu
;
...
...
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
e64f7707
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <sfx2/sfxresid.hxx>
#include <sfx2/sfxresid.hxx>
#include <sfx2/templatefolderview.hxx>
#include <sfx2/templatefolderview.hxx>
#include <sfx2/templatefolderviewitem.hxx>
#include <sfx2/templatefolderviewitem.hxx>
#include <sfx2/templateonlineview.hxx>
#include <sfx2/templateviewitem.hxx>
#include <sfx2/templateviewitem.hxx>
#include <sfx2/thumbnailviewitem.hxx>
#include <sfx2/thumbnailviewitem.hxx>
#include <tools/urlobj.hxx>
#include <tools/urlobj.hxx>
...
@@ -97,6 +98,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
...
@@ -97,6 +98,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
mpTemplateBar
(
new
ToolBox
(
this
,
SfxResId
(
TBX_ACTION_TEMPLATES
))),
mpTemplateBar
(
new
ToolBox
(
this
,
SfxResId
(
TBX_ACTION_TEMPLATES
))),
mpSearchView
(
new
TemplateSearchView
(
this
)),
mpSearchView
(
new
TemplateSearchView
(
this
)),
maView
(
new
TemplateFolderView
(
this
,
SfxResId
(
TEMPLATE_VIEW
))),
maView
(
new
TemplateFolderView
(
this
,
SfxResId
(
TEMPLATE_VIEW
))),
mpOnlineView
(
new
TemplateOnlineView
(
this
,
WB_VSCROLL
,
false
)),
mnSelectionCount
(
0
),
mnSelectionCount
(
0
),
mxDesktop
(
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
"com.sun.star.frame.Desktop"
),
uno
::
UNO_QUERY
)
mxDesktop
(
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
"com.sun.star.frame.Desktop"
),
uno
::
UNO_QUERY
)
{
{
...
@@ -221,6 +223,8 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
...
@@ -221,6 +223,8 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
mpViewBar
->
Show
();
mpViewBar
->
Show
();
mpActionBar
->
Show
();
mpActionBar
->
Show
();
switchMainView
(
true
);
maView
->
Populate
();
maView
->
Populate
();
maView
->
Show
();
maView
->
Show
();
...
@@ -235,6 +239,7 @@ SfxTemplateManagerDlg::~SfxTemplateManagerDlg ()
...
@@ -235,6 +239,7 @@ SfxTemplateManagerDlg::~SfxTemplateManagerDlg ()
delete
mpTemplateBar
;
delete
mpTemplateBar
;
delete
mpSearchView
;
delete
mpSearchView
;
delete
maView
;
delete
maView
;
delete
mpOnlineView
;
delete
mpCreateMenu
;
delete
mpCreateMenu
;
delete
mpActionMenu
;
delete
mpActionMenu
;
}
}
...
@@ -313,6 +318,12 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg,TBXViewHdl)
...
@@ -313,6 +318,12 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg,TBXViewHdl)
case
TBI_TEMPLATE_FOLDER_DEL
:
case
TBI_TEMPLATE_FOLDER_DEL
:
OnFolderDelete
();
OnFolderDelete
();
break
;
break
;
case
TBI_TEMPLATE_LOCAL
:
switchMainView
(
true
);
break
;
case
TBI_TEMPLATE_ONLINE
:
switchMainView
(
false
);
break
;
default
:
default
:
break
;
break
;
}
}
...
@@ -814,6 +825,26 @@ void SfxTemplateManagerDlg::centerTopButtons()
...
@@ -814,6 +825,26 @@ void SfxTemplateManagerDlg::centerTopButtons()
maButtonSelMode
.
SetPosPixel
(
aBtnPos
);
maButtonSelMode
.
SetPosPixel
(
aBtnPos
);
}
}
void
SfxTemplateManagerDlg
::
switchMainView
(
bool
bDisplayLocal
)
{
if
(
bDisplayLocal
)
{
mpViewBar
->
ShowItem
(
TBI_TEMPLATE_ONLINE
);
mpViewBar
->
HideItem
(
TBI_TEMPLATE_LOCAL
);
mpOnlineView
->
Hide
();
maView
->
Show
();
}
else
{
mpViewBar
->
ShowItem
(
TBI_TEMPLATE_LOCAL
);
mpViewBar
->
HideItem
(
TBI_TEMPLATE_ONLINE
);
maView
->
Hide
();
mpOnlineView
->
Show
();
}
}
void
lcl_createTemplate
(
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XComponentLoader
>
xDesktop
,
void
lcl_createTemplate
(
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XComponentLoader
>
xDesktop
,
const
FILTER_APPLICATION
eApp
)
const
FILTER_APPLICATION
eApp
)
{
{
...
...
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