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
a7b9e624
Kaydet (Commit)
a7b9e624
authored
Agu 12, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change repository name and update repository menu list.
Change-Id: I9e29795d93481bb0789e4f05fa2605b6407efc8c
üst
53c0b953
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
5 deletions
+24
-5
templateonlineview.hxx
sfx2/inc/sfx2/templateonlineview.hxx
+3
-0
templatedlg.hxx
sfx2/inc/templatedlg.hxx
+2
-0
templateonlineview.cxx
sfx2/source/control/templateonlineview.cxx
+12
-5
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+7
-0
No files found.
sfx2/inc/sfx2/templateonlineview.hxx
Dosyayı görüntüle @
a7b9e624
...
...
@@ -34,6 +34,8 @@ public:
virtual
void
showOverlay
(
bool
bVisible
);
void
setOverlayChangeNameHdl
(
const
Link
&
rLink
);
bool
loadRepository
(
const
sal_uInt16
nRepositoryId
,
bool
bRefresh
);
const
std
::
vector
<
TemplateOnlineViewItem
*>&
getRepositories
()
const
{
return
maRepositories
;
}
...
...
@@ -53,6 +55,7 @@ private:
private
:
bool
mbIsSynced
;
Link
maChangeNameHdl
;
std
::
vector
<
TemplateOnlineViewItem
*>
maRepositories
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
m_xCmdEnv
;
};
...
...
sfx2/inc/templatedlg.hxx
Dosyayı görüntüle @
a7b9e624
...
...
@@ -70,6 +70,8 @@ private:
DECL_LINK
(
SearchUpdateHdl
,
void
*
);
DECL_LINK
(
RepositoryChangeNameHdl
,
void
*
);
void
OnTemplateImport
();
void
OnTemplateSearch
();
void
OnTemplateEdit
();
...
...
sfx2/source/control/templateonlineview.cxx
Dosyayı görüntüle @
a7b9e624
...
...
@@ -118,6 +118,11 @@ void TemplateOnlineView::showOverlay (bool bVisible)
}
}
void
TemplateOnlineView
::
setOverlayChangeNameHdl
(
const
Link
&
rLink
)
{
maChangeNameHdl
=
rLink
;
}
bool
TemplateOnlineView
::
loadRepository
(
const
sal_uInt16
nRepositoryId
,
bool
bRefresh
)
{
TemplateOnlineViewItem
*
pItem
=
NULL
;
...
...
@@ -319,16 +324,18 @@ void TemplateOnlineView::setItemDimensions(long ItemWidth, long ThumbnailHeight,
IMPL_LINK
(
TemplateOnlineView
,
ChangeNameHdl
,
TemplateView
*
,
pView
)
{
bool
bRet
=
true
;
mbIsSynced
=
false
;
bool
bRet
=
false
;
// check if there isnt another repository with the same name.
for
(
size_t
i
=
0
,
n
=
maRepositories
.
size
();
i
<
n
;
++
i
)
{
if
(
maRepositories
[
i
]
->
m
aTitle
==
pView
->
getName
())
if
(
maRepositories
[
i
]
->
m
nId
==
pView
->
getId
())
{
bRet
=
false
;
mbIsSynced
=
true
;
maRepositories
[
i
]
->
maTitle
=
pView
->
getName
();
bRet
=
true
;
mbIsSynced
=
false
;
maChangeNameHdl
.
Call
(
this
);
break
;
}
}
...
...
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
a7b9e624
...
...
@@ -222,6 +222,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
mpOnlineView
->
setOverlayItemStateHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
TVTemplateStateHdl
));
mpOnlineView
->
setOverlayDblClickHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
OpenTemplateHdl
));
mpOnlineView
->
setOverlayCloseHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
CloseOverlayHdl
));
mpOnlineView
->
setOverlayChangeNameHdl
(
LINK
(
this
,
SfxTemplateManagerDlg
,
RepositoryChangeNameHdl
));
mpSearchView
->
SetSizePixel
(
aThumbSize
);
mpSearchView
->
setItemMaxTextLength
(
ITEM_MAX_TEXT_LENGTH
);
...
...
@@ -692,6 +693,12 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg, SearchUpdateHdl)
return
0
;
}
IMPL_LINK_NOARG
(
SfxTemplateManagerDlg
,
RepositoryChangeNameHdl
)
{
createRepositoryMenu
();
return
0
;
}
void
SfxTemplateManagerDlg
::
OnTemplateImport
()
{
sal_Int16
nDialogType
=
...
...
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