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
a93e06c0
Kaydet (Commit)
a93e06c0
authored
Tem 11, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rename ThumbnailViewItem maText attribute to maTitle.
Change-Id: Id253d06325ec05bb587c9759027ea07b65fe257f
üst
df82184b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
15 deletions
+15
-15
thumbnailviewitem.hxx
sfx2/inc/sfx2/thumbnailviewitem.hxx
+1
-1
templatefolderview.cxx
sfx2/source/control/templatefolderview.cxx
+5
-5
templatefolderviewitem.cxx
sfx2/source/control/templatefolderviewitem.cxx
+1
-1
templatesearchview.cxx
sfx2/source/control/templatesearchview.cxx
+1
-1
templateview.cxx
sfx2/source/control/templateview.cxx
+1
-1
thumbnailview.cxx
sfx2/source/control/thumbnailview.cxx
+2
-2
thumbnailviewacc.cxx
sfx2/source/control/thumbnailviewacc.cxx
+1
-1
thumbnailviewitem.cxx
sfx2/source/control/thumbnailviewitem.cxx
+2
-2
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+1
-1
No files found.
sfx2/inc/sfx2/thumbnailviewitem.hxx
Dosyayı görüntüle @
a93e06c0
...
...
@@ -69,7 +69,7 @@ public:
bool
mbSelected
;
bool
mbHover
;
BitmapEx
maPreview1
;
rtl
::
OUString
maT
ext
;
rtl
::
OUString
maT
itle
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>*
mpxAcc
;
ThumbnailViewItem
(
ThumbnailView
&
rView
,
Window
*
pParent
);
...
...
sfx2/source/control/templatefolderview.cxx
Dosyayı görüntüle @
a93e06c0
...
...
@@ -310,7 +310,7 @@ void TemplateFolderView::Populate ()
TemplateFolderViewItem
*
pItem
=
new
TemplateFolderViewItem
(
*
this
,
this
);
pItem
->
mnId
=
i
+
1
;
pItem
->
maT
ext
=
aRegionName
;
pItem
->
maT
itle
=
aRegionName
;
pItem
->
setSelectClickHdl
(
LINK
(
this
,
ThumbnailView
,
OnItemSelected
));
sal_uInt16
nEntries
=
mpDocTemplates
->
GetCount
(
i
);
...
...
@@ -355,7 +355,7 @@ std::vector<rtl::OUString> TemplateFolderView::getFolderNames()
std
::
vector
<
rtl
::
OUString
>
ret
(
n
);
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
ret
[
i
]
=
mItemList
[
i
]
->
maT
ext
;
ret
[
i
]
=
mItemList
[
i
]
->
maT
itle
;
return
ret
;
}
...
...
@@ -455,7 +455,7 @@ sal_uInt16 TemplateFolderView::createRegion(const rtl::OUString &rName)
TemplateFolderViewItem
*
pItem
=
new
TemplateFolderViewItem
(
*
this
,
this
);
pItem
->
mnId
=
nRegionId
+
1
;
pItem
->
maT
ext
=
aRegionName
;
pItem
->
maT
itle
=
aRegionName
;
pItem
->
setSelectClickHdl
(
LINK
(
this
,
ThumbnailView
,
OnItemSelected
));
mItemList
.
push_back
(
pItem
);
...
...
@@ -567,7 +567,7 @@ bool TemplateFolderView::moveTemplates(std::set<const ThumbnailViewItem *> &rIte
TemplateItemProperties
aTemplateItem
;
aTemplateItem
.
nId
=
nTargetIdx
+
1
;
aTemplateItem
.
nRegionId
=
nTargetRegion
;
aTemplateItem
.
aName
=
pViewItem
->
maT
ext
;
aTemplateItem
.
aName
=
pViewItem
->
maT
itle
;
aTemplateItem
.
aPath
=
pViewItem
->
getPath
();
aTemplateItem
.
aType
=
pViewItem
->
getFileType
();
aTemplateItem
.
aThumbnail
=
pViewItem
->
maPreview1
;
...
...
@@ -696,7 +696,7 @@ IMPL_LINK(TemplateFolderView, ChangeNameHdl, TemplateView*, pView)
{
if
(
mItemList
[
i
]
->
mnId
==
nItemId
)
{
mItemList
[
i
]
->
maT
ext
=
pView
->
getRegionName
();
mItemList
[
i
]
->
maT
itle
=
pView
->
getRegionName
();
mItemList
[
i
]
->
calculateItemsPosition
(
mpItemAttrs
->
nMaxTextLenght
);
Invalidate
();
break
;
...
...
sfx2/source/control/templatefolderviewitem.cxx
Dosyayı görüntüle @
a93e06c0
...
...
@@ -98,7 +98,7 @@ void TemplateFolderViewItem::Paint (drawinglayer::processor2d::BaseProcessor2D *
aSeq
[
nCount
++
]
=
Primitive2DReference
(
new
TextSimplePortionPrimitive2D
(
aTextMatrix
,
maT
ext
,
0
,
maText
.
getLength
(),
maT
itle
,
0
,
maTitle
.
getLength
(),
std
::
vector
<
double
>
(
),
pAttrs
->
aFontAttr
,
com
::
sun
::
star
::
lang
::
Locale
(),
...
...
sfx2/source/control/templatesearchview.cxx
Dosyayı görüntüle @
a93e06c0
...
...
@@ -42,7 +42,7 @@ void TemplateSearchView::AppendItem(sal_uInt16 nItemId, sal_uInt16 nRegionId, sa
pItem
->
mnIdx
=
nIdx
;
pItem
->
mnRegionId
=
nRegionId
;
pItem
->
maPreview1
=
rImage
;
pItem
->
maT
ext
=
rStr
;
pItem
->
maT
itle
=
rStr
;
pItem
->
setPath
(
rPath
);
pItem
->
setSelectClickHdl
(
LINK
(
this
,
ThumbnailView
,
OnItemSelected
));
...
...
sfx2/source/control/templateview.cxx
Dosyayı görüntüle @
a93e06c0
...
...
@@ -115,7 +115,7 @@ void TemplateView::InsertItems (const std::vector<TemplateItemProperties> &rTemp
const
TemplateItemProperties
*
pCur
=
&
rTemplates
[
i
];
pItem
->
mnId
=
pCur
->
nId
;
pItem
->
maT
ext
=
pCur
->
aName
;
pItem
->
maT
itle
=
pCur
->
aName
;
pItem
->
setPath
(
pCur
->
aPath
);
pItem
->
setFileType
(
pCur
->
aType
);
pItem
->
maPreview1
=
pCur
->
aThumbnail
;
...
...
sfx2/source/control/thumbnailview.cxx
Dosyayı görüntüle @
a93e06c0
...
...
@@ -803,7 +803,7 @@ void ThumbnailView::InsertItem( sal_uInt16 nItemId, const BitmapEx& rImage,
ThumbnailViewItem
*
pItem
=
new
ThumbnailViewItem
(
*
this
,
this
);
pItem
->
mnId
=
nItemId
;
pItem
->
maPreview1
=
rImage
;
pItem
->
maT
ext
=
rText
;
pItem
->
maT
itle
=
rText
;
pItem
->
setSelectClickHdl
(
LINK
(
this
,
ThumbnailView
,
OnItemSelected
));
ImplInsertItem
(
pItem
,
nPos
);
}
...
...
@@ -1047,7 +1047,7 @@ rtl::OUString ThumbnailView::GetItemText( sal_uInt16 nItemId ) const
size_t
nPos
=
GetItemPos
(
nItemId
);
if
(
nPos
!=
THUMBNAILVIEW_ITEM_NOTFOUND
)
return
mItemList
[
nPos
]
->
maT
ext
;
return
mItemList
[
nPos
]
->
maT
itle
;
return
rtl
::
OUString
();
}
...
...
sfx2/source/control/thumbnailviewacc.cxx
Dosyayı görüntüle @
a93e06c0
...
...
@@ -772,7 +772,7 @@ sal_Int16 SAL_CALL ThumbnailViewItemAcc::getAccessibleRole()
if
(
mpParent
)
{
aRet
=
mpParent
->
maT
ext
;
aRet
=
mpParent
->
maT
itle
;
if
(
aRet
.
isEmpty
()
)
{
...
...
sfx2/source/control/thumbnailviewitem.cxx
Dosyayı görüntüle @
a93e06c0
...
...
@@ -132,7 +132,7 @@ void ThumbnailViewItem::calculateItemsPosition (sal_uInt32 nMaxTextLenght)
// Calculate text position
aPos
.
Y
()
+=
aImageSize
.
Height
();
aPos
.
Y
()
=
aPos
.
Y
()
+
aTextDev
.
getTextHeight
()
+
(
maDrawArea
.
Bottom
()
-
aPos
.
Y
()
-
aTextDev
.
getTextHeight
())
/
2
;
aPos
.
X
()
=
maDrawArea
.
Left
()
+
(
aRectSize
.
Width
()
-
aTextDev
.
getTextWidth
(
maT
ext
,
0
,
nMaxTextLenght
))
/
2
;
aPos
.
X
()
=
maDrawArea
.
Left
()
+
(
aRectSize
.
Width
()
-
aTextDev
.
getTextWidth
(
maT
itle
,
0
,
nMaxTextLenght
))
/
2
;
maTextPos
=
aPos
;
// Calculate checkbox position
...
...
@@ -199,7 +199,7 @@ void ThumbnailViewItem::Paint (drawinglayer::processor2d::BaseProcessor2D *pProc
aSeq
[
2
]
=
Primitive2DReference
(
new
TextSimplePortionPrimitive2D
(
aTextMatrix
,
maT
ext
,
0
,
pAttrs
->
nMaxTextLenght
,
maT
itle
,
0
,
pAttrs
->
nMaxTextLenght
,
std
::
vector
<
double
>
(
),
pAttrs
->
aFontAttr
,
com
::
sun
::
star
::
lang
::
Locale
(),
...
...
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
a93e06c0
...
...
@@ -60,7 +60,7 @@ public:
bool
operator
()
(
const
ThumbnailViewItem
*
pItem1
,
const
ThumbnailViewItem
*
pItem2
)
{
return
(
pItem1
->
maT
ext
.
compareTo
(
pItem2
->
maText
)
<
0
);
return
(
pItem1
->
maT
itle
.
compareTo
(
pItem2
->
maTitle
)
<
0
);
}
};
...
...
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