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
cacba912
Kaydet (Commit)
cacba912
authored
Agu 11, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add an index for tracking SfxDocumentTemplate item.
Change-Id: I7d1672e48ef638ac537e5675ed27b67376666d59
üst
533194a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
templateproperties.hxx
sfx2/inc/sfx2/templateproperties.hxx
+2
-1
templatelocalview.cxx
sfx2/source/control/templatelocalview.cxx
+5
-0
No files found.
sfx2/inc/sfx2/templateproperties.hxx
Dosyayı görüntüle @
cacba912
...
...
@@ -15,7 +15,8 @@
struct
TemplateItemProperties
{
sal_uInt16
nId
;
sal_uInt16
nId
;
///< Index for ThumbnailView
sal_uInt16
nDocId
;
///< Index based on SfxTemplateDocument
sal_uInt16
nRegionId
;
rtl
::
OUString
aName
;
rtl
::
OUString
aPath
;
...
...
sfx2/source/control/templatelocalview.cxx
Dosyayı görüntüle @
cacba912
...
...
@@ -154,6 +154,7 @@ void TemplateLocalView::Populate ()
TemplateItemProperties
aProperties
;;
aProperties
.
nId
=
j
+
1
;
aProperties
.
nDocId
=
j
;
aProperties
.
nRegionId
=
i
;
aProperties
.
aName
=
aName
;
aProperties
.
aPath
=
aURL
;
...
...
@@ -384,6 +385,7 @@ bool TemplateLocalView::moveTemplate (const ThumbnailViewItem *pItem, const sal_
TemplateItemProperties
aTemplateItem
;
aTemplateItem
.
nId
=
nTargetIdx
+
1
;
aTemplateItem
.
nDocId
=
nTargetIdx
;
aTemplateItem
.
nRegionId
=
nTargetRegion
;
aTemplateItem
.
aName
=
pViewItem
->
maTitle
;
aTemplateItem
.
aPath
=
pViewItem
->
getPath
();
...
...
@@ -478,6 +480,7 @@ bool TemplateLocalView::moveTemplates(std::set<const ThumbnailViewItem *> &rItem
TemplateItemProperties
aTemplateItem
;
aTemplateItem
.
nId
=
nTargetIdx
+
1
;
aTemplateItem
.
nDocId
=
nTargetIdx
;
aTemplateItem
.
nRegionId
=
nTargetRegion
;
aTemplateItem
.
aName
=
pViewItem
->
maTitle
;
aTemplateItem
.
aPath
=
pViewItem
->
getPath
();
...
...
@@ -538,6 +541,7 @@ void TemplateLocalView::copyFrom(const sal_uInt16 nRegionItemId, const BitmapEx
{
TemplateItemProperties
aTemplate
;
aTemplate
.
nId
=
nId
+
1
;
aTemplate
.
nDocId
=
nId
;
aTemplate
.
nRegionId
=
nRegionId
;
aTemplate
.
aName
=
aPath
;
aTemplate
.
aThumbnail
=
rThumbnail
;
...
...
@@ -574,6 +578,7 @@ void TemplateLocalView::copyFrom (TemplateLocalViewItem *pItem, const rtl::OUStr
{
TemplateItemProperties
aTemplate
;
aTemplate
.
nId
=
nId
+
1
;
aTemplate
.
nDocId
=
nId
;
aTemplate
.
nRegionId
=
nRegionId
;
aTemplate
.
aName
=
mpDocTemplates
->
GetName
(
nRegionId
,
nId
);
aTemplate
.
aThumbnail
=
TemplateAbstractView
::
fetchThumbnail
(
rPath
,
...
...
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