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
ebebaf70
Kaydet (Commit)
ebebaf70
authored
Nis 08, 2013
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Display correct region name in error messages.
Change-Id: I1e3eddf9be2a75faabf0b0be91f30d7e8d43d3e4
üst
e9300181
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
templatelocalview.hxx
sfx2/inc/sfx2/templatelocalview.hxx
+2
-0
templatelocalview.cxx
sfx2/source/control/templatelocalview.cxx
+11
-0
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+3
-3
No files found.
sfx2/inc/sfx2/templatelocalview.hxx
Dosyayı görüntüle @
ebebaf70
...
...
@@ -50,6 +50,8 @@ public:
OUString
getRegionName
(
const
sal_uInt16
nRegionId
)
const
;
OUString
getRegionItemName
(
const
sal_uInt16
nItemId
)
const
;
std
::
vector
<
OUString
>
getFolderNames
();
std
::
vector
<
TemplateItemProperties
>
...
...
sfx2/source/control/templatelocalview.cxx
Dosyayı görüntüle @
ebebaf70
...
...
@@ -194,6 +194,17 @@ OUString TemplateLocalView::getRegionName(const sal_uInt16 nRegionId) const
return
mpDocTemplates
->
GetRegionName
(
nRegionId
);
}
OUString
TemplateLocalView
::
getRegionItemName
(
const
sal_uInt16
nItemId
)
const
{
for
(
size_t
i
=
0
;
i
<
maRegions
.
size
();
++
i
)
{
if
(
maRegions
[
i
]
->
mnId
==
nItemId
)
return
maRegions
[
i
]
->
maTitle
;
}
return
OUString
();
}
std
::
vector
<
OUString
>
TemplateLocalView
::
getFolderNames
()
{
size_t
n
=
maRegions
.
size
();
...
...
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
ebebaf70
...
...
@@ -1490,7 +1490,7 @@ void SfxTemplateManagerDlg::localMoveTo(sal_uInt16 nMenuId)
aTemplateList
=
aTemplateList
+
"
\n
"
+
(
*
pIter
)
->
maTitle
;
}
OUString
aDst
=
maView
->
GetItemText
(
nItemId
);
OUString
aDst
=
maView
->
getRegionItemName
(
nItemId
);
OUString
aMsg
(
SfxResId
(
STR_MSG_ERROR_LOCAL_MOVE
).
toString
());
aMsg
=
aMsg
.
replaceFirst
(
"$1"
,
aDst
);
ErrorBox
(
this
,
WB_OK
,
aMsg
.
replaceFirst
(
"$2"
,
aTemplateList
)).
Execute
();
...
...
@@ -1546,7 +1546,7 @@ void SfxTemplateManagerDlg::remoteMoveTo(const sal_uInt16 nMenuId)
{
OUString
aMsg
(
SfxResId
(
STR_MSG_ERROR_REMOTE_MOVE
).
toString
());
aMsg
=
aMsg
.
replaceFirst
(
"$1"
,
mpOnlineView
->
getCurRegionName
());
aMsg
=
aMsg
.
replaceFirst
(
"$2"
,
maView
->
GetItemText
(
nItemId
));
aMsg
=
aMsg
.
replaceFirst
(
"$2"
,
maView
->
getRegionItemName
(
nItemId
));
ErrorBox
(
this
,
WB_OK
,
aMsg
.
replaceFirst
(
"$1"
,
aTemplateList
)).
Execute
();
}
}
...
...
@@ -1600,7 +1600,7 @@ void SfxTemplateManagerDlg::localSearchMoveTo(sal_uInt16 nMenuId)
if
(
!
aTemplateList
.
isEmpty
())
{
OUString
aDst
=
maView
->
GetItemText
(
nItemId
);
OUString
aDst
=
maView
->
getRegionItemName
(
nItemId
);
OUString
aMsg
(
SfxResId
(
STR_MSG_ERROR_LOCAL_MOVE
).
toString
());
aMsg
=
aMsg
.
replaceFirst
(
"$1"
,
aDst
);
ErrorBox
(
this
,
WB_OK
,
aMsg
.
replaceFirst
(
"$2"
,
aTemplateList
)).
Execute
();
...
...
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