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
2316fe0d
Kaydet (Commit)
2316fe0d
authored
Ara 12, 2012
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Template manager: no need to extract file type description
Change-Id: I18d01542f009a5c6c1f688a8df04c14d3c8edc9e
üst
35211d33
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
16 deletions
+0
-16
templateproperties.hxx
sfx2/inc/sfx2/templateproperties.hxx
+0
-1
templateviewitem.hxx
sfx2/inc/sfx2/templateviewitem.hxx
+0
-5
templatelocalview.cxx
sfx2/source/control/templatelocalview.cxx
+0
-7
templateremoteview.cxx
sfx2/source/control/templateremoteview.cxx
+0
-2
templateview.cxx
sfx2/source/control/templateview.cxx
+0
-1
No files found.
sfx2/inc/sfx2/templateproperties.hxx
Dosyayı görüntüle @
2316fe0d
...
...
@@ -20,7 +20,6 @@ struct TemplateItemProperties
sal_uInt16
nRegionId
;
rtl
::
OUString
aName
;
rtl
::
OUString
aPath
;
rtl
::
OUString
aType
;
BitmapEx
aThumbnail
;
};
...
...
sfx2/inc/sfx2/templateviewitem.hxx
Dosyayı görüntüle @
2316fe0d
...
...
@@ -32,10 +32,6 @@ public:
const
rtl
::
OUString
&
getKeywords
()
const
{
return
maKeywords
;
}
void
setFileType
(
const
rtl
::
OUString
&
rType
)
{
maFileType
=
rType
;
}
const
rtl
::
OUString
&
getFileType
()
const
{
return
maFileType
;
}
void
setSubTitle
(
const
rtl
::
OUString
&
rTitle
)
{
maSubTitle
=
rTitle
;
}
const
rtl
::
OUString
&
getSubTitle
()
const
{
return
maSubTitle
;
}
...
...
@@ -51,7 +47,6 @@ private:
rtl
::
OUString
maPath
;
rtl
::
OUString
maAuthor
;
rtl
::
OUString
maKeywords
;
rtl
::
OUString
maFileType
;
rtl
::
OUString
maSubTitle
;
Point
maSubTitlePos
;
...
...
sfx2/source/control/templatelocalview.cxx
Dosyayı görüntüle @
2316fe0d
...
...
@@ -15,7 +15,6 @@
#include <sfx2/templateview.hxx>
#include <sfx2/templateviewitem.hxx>
#include <svl/inettype.hxx>
#include <svtools/imagemgr.hxx>
#include <tools/urlobj.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <vcl/pngread.hxx>
...
...
@@ -122,7 +121,6 @@ void TemplateLocalView::Populate ()
{
OUString
aName
=
mpDocTemplates
->
GetName
(
i
,
j
);
OUString
aURL
=
mpDocTemplates
->
GetPath
(
i
,
j
);
OUString
aType
=
SvFileInformationManager
::
GetDescription
(
INetURLObject
(
aURL
));
if
((
sal_uInt32
)
aName
.
getLength
()
>
mpItemAttrs
->
nMaxTextLenght
)
{
...
...
@@ -136,7 +134,6 @@ void TemplateLocalView::Populate ()
aProperties
.
nRegionId
=
i
;
aProperties
.
aName
=
aName
;
aProperties
.
aPath
=
aURL
;
aProperties
.
aType
=
aType
;
aProperties
.
aThumbnail
=
TemplateAbstractView
::
fetchThumbnail
(
aURL
,
TEMPLATE_THUMBNAIL_MAX_WIDTH
,
TEMPLATE_THUMBNAIL_MAX_HEIGHT
);
...
...
@@ -372,7 +369,6 @@ bool TemplateLocalView::moveTemplate (const ThumbnailViewItem *pItem, const sal_
aTemplateItem
.
nRegionId
=
nTargetRegion
;
aTemplateItem
.
aName
=
pViewItem
->
maTitle
;
aTemplateItem
.
aPath
=
pViewItem
->
getPath
();
aTemplateItem
.
aType
=
pViewItem
->
getFileType
();
aTemplateItem
.
aThumbnail
=
pViewItem
->
maPreview1
;
pTarget
->
maTemplates
.
push_back
(
aTemplateItem
);
...
...
@@ -467,7 +463,6 @@ bool TemplateLocalView::moveTemplates(std::set<const ThumbnailViewItem *> &rItem
aTemplateItem
.
nRegionId
=
nTargetRegion
;
aTemplateItem
.
aName
=
pViewItem
->
maTitle
;
aTemplateItem
.
aPath
=
pViewItem
->
getPath
();
aTemplateItem
.
aType
=
pViewItem
->
getFileType
();
aTemplateItem
.
aThumbnail
=
pViewItem
->
maPreview1
;
pTarget
->
maTemplates
.
push_back
(
aTemplateItem
);
...
...
@@ -541,7 +536,6 @@ bool TemplateLocalView::copyFrom(const sal_uInt16 nRegionItemId, const BitmapEx
aTemplate
.
aName
=
aPath
;
aTemplate
.
aThumbnail
=
rThumbnail
;
aTemplate
.
aPath
=
mpDocTemplates
->
GetPath
(
nRegionId
,
nDocId
);
aTemplate
.
aType
=
SvFileInformationManager
::
GetDescription
(
INetURLObject
(
aTemplate
.
aPath
));
TemplateLocalViewItem
*
pItem
=
static_cast
<
TemplateLocalViewItem
*>
(
mItemList
[
i
]);
...
...
@@ -584,7 +578,6 @@ bool TemplateLocalView::copyFrom (TemplateLocalViewItem *pItem, const OUString &
TEMPLATE_THUMBNAIL_MAX_WIDTH
,
TEMPLATE_THUMBNAIL_MAX_HEIGHT
);
aTemplate
.
aPath
=
rPath
;
aTemplate
.
aType
=
SvFileInformationManager
::
GetDescription
(
INetURLObject
(
rPath
));
pItem
->
maTemplates
.
push_back
(
aTemplate
);
...
...
sfx2/source/control/templateremoteview.cxx
Dosyayı görüntüle @
2316fe0d
...
...
@@ -227,8 +227,6 @@ bool TemplateRemoteView::loadRepository (const sal_uInt16 nRepositoryId, bool bR
{}
}
aTemplateItem
.
aType
=
SvFileInformationManager
::
GetFileDescription
(
INetURLObject
(
sRealURL
));
pItem
->
insertTemplate
(
aTemplateItem
);
aItems
.
push_back
(
aTemplateItem
);
++
nIdx
;
...
...
sfx2/source/control/templateview.cxx
Dosyayı görüntüle @
2316fe0d
...
...
@@ -126,7 +126,6 @@ void TemplateView::InsertItems (const std::vector<TemplateItemProperties> &rTemp
pItem
->
mnId
=
pCur
->
nId
;
pItem
->
maTitle
=
pCur
->
aName
;
pItem
->
setPath
(
pCur
->
aPath
);
pItem
->
setFileType
(
pCur
->
aType
);
pItem
->
maPreview1
=
pCur
->
aThumbnail
;
pItem
->
setSelectClickHdl
(
LINK
(
this
,
ThumbnailView
,
OnItemSelected
));
...
...
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