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
2b5ce619
Kaydet (Commit)
2b5ce619
authored
Agu 12, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Display error msg when moving a template from a repository fails.
Change-Id: I5f483bcb0e216a6337e0bf70399916bd2da3faec
üst
d10b5d34
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
5 deletions
+36
-5
templateabstractview.hxx
sfx2/inc/sfx2/templateabstractview.hxx
+2
-0
templatelocalview.hxx
sfx2/inc/sfx2/templatelocalview.hxx
+2
-2
templateabstractview.cxx
sfx2/source/control/templateabstractview.cxx
+5
-0
templatelocalview.cxx
sfx2/source/control/templatelocalview.cxx
+10
-2
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+17
-1
No files found.
sfx2/inc/sfx2/templateabstractview.hxx
Dosyayı görüntüle @
2b5ce619
...
...
@@ -76,6 +76,8 @@ public:
sal_uInt16
getOverlayRegionId
()
const
;
const
OUString
&
getOverlayName
()
const
;
// Check if the overlay is visible or not.
bool
isOverlayVisible
()
const
;
...
...
sfx2/inc/sfx2/templatelocalview.hxx
Dosyayı görüntüle @
2b5ce619
...
...
@@ -51,9 +51,9 @@ public:
bool
moveTemplates
(
std
::
set
<
const
ThumbnailViewItem
*>
&
rItems
,
const
sal_uInt16
nTargetItem
,
bool
bCopy
);
void
copyFrom
(
const
sal_uInt16
nRegionItemId
,
const
BitmapEx
&
rThumbnail
,
const
OUString
&
rPath
);
bool
copyFrom
(
const
sal_uInt16
nRegionItemId
,
const
BitmapEx
&
rThumbnail
,
const
OUString
&
rPath
);
void
copyFrom
(
TemplateLocalViewItem
*
pItem
,
const
rtl
::
OUString
&
rPath
);
bool
copyFrom
(
TemplateLocalViewItem
*
pItem
,
const
rtl
::
OUString
&
rPath
);
bool
exportTo
(
const
sal_uInt16
nItemId
,
const
sal_uInt16
nRegionItemId
,
const
OUString
&
rName
);
...
...
sfx2/source/control/templateabstractview.cxx
Dosyayı görüntüle @
2b5ce619
...
...
@@ -80,6 +80,11 @@ sal_uInt16 TemplateAbstractView::getOverlayRegionId() const
return
mpItemView
->
getId
();
}
const
OUString
&
TemplateAbstractView
::
getOverlayName
()
const
{
return
mpItemView
->
getName
();
}
bool
TemplateAbstractView
::
isOverlayVisible
()
const
{
return
mpItemView
->
IsVisible
();
...
...
sfx2/source/control/templatelocalview.cxx
Dosyayı görüntüle @
2b5ce619
...
...
@@ -528,7 +528,7 @@ bool TemplateLocalView::moveTemplates(std::set<const ThumbnailViewItem *> &rItem
return
ret
;
}
void
TemplateLocalView
::
copyFrom
(
const
sal_uInt16
nRegionItemId
,
const
BitmapEx
&
rThumbnail
,
bool
TemplateLocalView
::
copyFrom
(
const
sal_uInt16
nRegionItemId
,
const
BitmapEx
&
rThumbnail
,
const
OUString
&
rPath
)
{
sal_uInt16
nRegionId
=
nRegionItemId
-
1
;
...
...
@@ -568,14 +568,18 @@ void TemplateLocalView::copyFrom(const sal_uInt16 nRegionItemId, const BitmapEx
pItem
->
maTemplates
.
push_back
(
aTemplate
);
lcl_updateThumbnails
(
pItem
);
return
true
;
}
break
;
}
}
return
false
;
}
void
TemplateLocalView
::
copyFrom
(
TemplateLocalViewItem
*
pItem
,
const
rtl
::
OUString
&
rPath
)
bool
TemplateLocalView
::
copyFrom
(
TemplateLocalViewItem
*
pItem
,
const
rtl
::
OUString
&
rPath
)
{
sal_uInt16
nId
=
0
;
sal_uInt16
nDocId
=
0
;
...
...
@@ -606,7 +610,11 @@ void TemplateLocalView::copyFrom (TemplateLocalViewItem *pItem, const rtl::OUStr
lcl_updateThumbnails
(
pItem
);
CalculateItemPositions
();
return
true
;
}
return
false
;
}
bool
TemplateLocalView
::
exportTo
(
const
sal_uInt16
nItemId
,
const
sal_uInt16
nRegionItemId
,
const
OUString
&
rName
)
...
...
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
2b5ce619
...
...
@@ -1243,16 +1243,32 @@ void SfxTemplateManagerDlg::remoteMoveTo(const sal_uInt16 nMenuId)
if
(
nItemId
)
{
OUString
aTemplateList
;
std
::
set
<
const
ThumbnailViewItem
*>::
const_iterator
aIter
;
for
(
aIter
=
maSelTemplates
.
begin
();
aIter
!=
maSelTemplates
.
end
();
++
aIter
)
{
const
TemplateSearchViewItem
*
pItem
=
static_cast
<
const
TemplateSearchViewItem
*>
(
*
aIter
);
maView
->
copyFrom
(
nItemId
,
pItem
->
maPreview1
,
pItem
->
getPath
());
if
(
!
maView
->
copyFrom
(
nItemId
,
pItem
->
maPreview1
,
pItem
->
getPath
()))
{
if
(
aTemplateList
.
isEmpty
())
aTemplateList
=
pItem
->
maTitle
;
else
aTemplateList
=
aTemplateList
+
"
\n
"
+
pItem
->
maTitle
;
}
}
maView
->
Invalidate
(
INVALIDATE_NOERASE
);
if
(
!
aTemplateList
.
isEmpty
())
{
OUString
aMsg
(
SfxResId
(
STR_MSG_ERROR_REMOTE_MOVE
).
toString
());
aMsg
=
aMsg
.
replaceFirst
(
"$1"
,
mpOnlineView
->
getOverlayName
());
aMsg
=
aMsg
.
replaceFirst
(
"$2"
,
maView
->
GetItemText
(
nItemId
));
ErrorBox
(
this
,
WB_OK
,
aMsg
.
replaceFirst
(
"$1"
,
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