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
a544f366
Kaydet (Commit)
a544f366
authored
Mar 27, 2013
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#60581 Display import templates only when its allowed.
Change-Id: I004b50118b1b261de4807660012b55eeecff41a3
üst
57ca6814
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
0 deletions
+18
-0
templateabstractview.hxx
sfx2/inc/sfx2/templateabstractview.hxx
+3
-0
templatelocalview.hxx
sfx2/inc/sfx2/templatelocalview.hxx
+2
-0
templateremoteview.hxx
sfx2/inc/sfx2/templateremoteview.hxx
+2
-0
templatelocalview.cxx
sfx2/source/control/templatelocalview.cxx
+5
-0
templateremoteview.cxx
sfx2/source/control/templateremoteview.cxx
+5
-0
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+1
-0
No files found.
sfx2/inc/sfx2/templateabstractview.hxx
Dosyayı görüntüle @
a544f366
...
@@ -99,6 +99,9 @@ public:
...
@@ -99,6 +99,9 @@ public:
// Return if we can have regions inside the current region
// Return if we can have regions inside the current region
virtual
bool
isNestedRegionAllowed
()
const
=
0
;
virtual
bool
isNestedRegionAllowed
()
const
=
0
;
// Return if we can import templates to the current region
virtual
bool
isImportAllowed
()
const
=
0
;
sal_uInt16
getCurRegionId
()
const
;
sal_uInt16
getCurRegionId
()
const
;
const
OUString
&
getCurRegionName
()
const
;
const
OUString
&
getCurRegionName
()
const
;
...
...
sfx2/inc/sfx2/templatelocalview.hxx
Dosyayı görüntüle @
a544f366
...
@@ -57,6 +57,8 @@ public:
...
@@ -57,6 +57,8 @@ public:
virtual
bool
isNestedRegionAllowed
()
const
;
virtual
bool
isNestedRegionAllowed
()
const
;
virtual
bool
isImportAllowed
()
const
;
bool
removeRegion
(
const
sal_uInt16
nItemId
);
bool
removeRegion
(
const
sal_uInt16
nItemId
);
bool
removeTemplate
(
const
sal_uInt16
nItemId
,
const
sal_uInt16
nSrcItemId
);
bool
removeTemplate
(
const
sal_uInt16
nItemId
,
const
sal_uInt16
nSrcItemId
);
...
...
sfx2/inc/sfx2/templateremoteview.hxx
Dosyayı görüntüle @
a544f366
...
@@ -35,6 +35,8 @@ public:
...
@@ -35,6 +35,8 @@ public:
virtual
bool
isNestedRegionAllowed
()
const
;
virtual
bool
isNestedRegionAllowed
()
const
;
virtual
bool
isImportAllowed
()
const
;
private
:
private
:
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
m_xCmdEnv
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
m_xCmdEnv
;
...
...
sfx2/source/control/templatelocalview.cxx
Dosyayı görüntüle @
a544f366
...
@@ -263,6 +263,11 @@ bool TemplateLocalView::isNestedRegionAllowed() const
...
@@ -263,6 +263,11 @@ bool TemplateLocalView::isNestedRegionAllowed() const
return
!
mnCurRegionId
;
return
!
mnCurRegionId
;
}
}
bool
TemplateLocalView
::
isImportAllowed
()
const
{
return
mnCurRegionId
;
}
bool
TemplateLocalView
::
removeRegion
(
const
sal_uInt16
nItemId
)
bool
TemplateLocalView
::
removeRegion
(
const
sal_uInt16
nItemId
)
{
{
sal_uInt16
nRegionId
=
USHRT_MAX
;
sal_uInt16
nRegionId
=
USHRT_MAX
;
...
...
sfx2/source/control/templateremoteview.cxx
Dosyayı görüntüle @
a544f366
...
@@ -174,4 +174,9 @@ bool TemplateRemoteView::isNestedRegionAllowed() const
...
@@ -174,4 +174,9 @@ bool TemplateRemoteView::isNestedRegionAllowed() const
return
true
;
return
true
;
}
}
bool
TemplateRemoteView
::
isImportAllowed
()
const
{
return
true
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
a544f366
...
@@ -644,6 +644,7 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg, OpenRegionHdl)
...
@@ -644,6 +644,7 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg, OpenRegionHdl)
maSelTemplates
.
clear
();
maSelTemplates
.
clear
();
mpViewBar
->
ShowItem
(
TBI_TEMPLATE_FOLDER_NEW
,
mpCurView
->
isNestedRegionAllowed
());
mpViewBar
->
ShowItem
(
TBI_TEMPLATE_FOLDER_NEW
,
mpCurView
->
isNestedRegionAllowed
());
mpViewBar
->
ShowItem
(
TBI_TEMPLATE_IMPORT
,
mpCurView
->
isImportAllowed
());
mpTemplateBar
->
Hide
();
mpTemplateBar
->
Hide
();
mpViewBar
->
Show
();
mpViewBar
->
Show
();
...
...
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