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
6b8a2089
Kaydet (Commit)
6b8a2089
authored
Eyl 03, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert include/svx/galtheme.hxx from String to OUString
Change-Id: I7a592768f85fd2bd95435a29ca8c368e5f2ca81a
üst
9a915d11
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
galtheme.hxx
include/svx/galtheme.hxx
+7
-7
galctrl.cxx
svx/source/gallery2/galctrl.cxx
+7
-7
galtheme.cxx
svx/source/gallery2/galtheme.cxx
+3
-3
No files found.
include/svx/galtheme.hxx
Dosyayı görüntüle @
6b8a2089
...
@@ -50,8 +50,8 @@ struct GalleryObject
...
@@ -50,8 +50,8 @@ struct GalleryObject
//UI visualization buffering
//UI visualization buffering
BitmapEx
maPreviewBitmapEx
;
BitmapEx
maPreviewBitmapEx
;
Size
maPreparedSize
;
Size
maPreparedSize
;
String
maTitle
;
OUString
maTitle
;
String
maPath
;
OUString
maPath
;
};
};
typedef
::
std
::
vector
<
GalleryObject
*
>
GalleryObjectList
;
typedef
::
std
::
vector
<
GalleryObject
*
>
GalleryObjectList
;
...
@@ -96,7 +96,7 @@ class GalleryTheme : public SfxBroadcaster
...
@@ -96,7 +96,7 @@ class GalleryTheme : public SfxBroadcaster
private
:
private
:
GalleryObjectList
aObjectList
;
GalleryObjectList
aObjectList
;
String
m_aDestDir
;
OUString
m_aDestDir
;
bool
m_bDestDirRelative
;
bool
m_bDestDirRelative
;
SotStorageRef
aSvDrawStorageRef
;
SotStorageRef
aSvDrawStorageRef
;
Gallery
*
pParent
;
Gallery
*
pParent
;
...
@@ -148,8 +148,8 @@ public:
...
@@ -148,8 +148,8 @@ public:
const
OUString
&
GetRealName
()
const
;
const
OUString
&
GetRealName
()
const
;
// used for building gallery themes during compilation:
// used for building gallery themes during compilation:
const
String
&
GetDestDir
()
const
{
return
m_aDestDir
;
}
const
OUString
&
GetDestDir
()
const
{
return
m_aDestDir
;
}
void
SetDestDir
(
const
String
&
rDestDir
,
bool
bRelative
=
true
)
void
SetDestDir
(
const
OU
String
&
rDestDir
,
bool
bRelative
=
true
)
{
m_aDestDir
=
rDestDir
;
m_bDestDirRelative
=
bRelative
;
}
{
m_aDestDir
=
rDestDir
;
m_bDestDirRelative
=
bRelative
;
}
const
INetURLObject
&
GetThmURL
()
const
;
const
INetURLObject
&
GetThmURL
()
const
;
...
@@ -226,8 +226,8 @@ public:
...
@@ -226,8 +226,8 @@ public:
static
SVX_DLLPUBLIC
void
InsertAllThemes
(
ListBox
&
rListBox
);
static
SVX_DLLPUBLIC
void
InsertAllThemes
(
ListBox
&
rListBox
);
// for buffering PreviewBitmaps and strings for object and path
// for buffering PreviewBitmaps and strings for object and path
void
GetPreviewBitmapExAndStrings
(
sal_uIntPtr
nPos
,
BitmapEx
&
rBitmapEx
,
Size
&
rSize
,
String
&
rTitle
,
String
&
rPath
)
const
;
void
GetPreviewBitmapExAndStrings
(
sal_uIntPtr
nPos
,
BitmapEx
&
rBitmapEx
,
Size
&
rSize
,
OUString
&
rTitle
,
OU
String
&
rPath
)
const
;
void
SetPreviewBitmapExAndStrings
(
sal_uIntPtr
nPos
,
const
BitmapEx
&
rBitmapEx
,
const
Size
&
rSize
,
const
String
&
rTitle
,
const
String
&
rPath
);
void
SetPreviewBitmapExAndStrings
(
sal_uIntPtr
nPos
,
const
BitmapEx
&
rBitmapEx
,
const
Size
&
rSize
,
const
OUString
&
rTitle
,
const
OU
String
&
rPath
);
};
};
SvStream
&
operator
<<
(
SvStream
&
rOut
,
const
GalleryTheme
&
rTheme
);
SvStream
&
operator
<<
(
SvStream
&
rOut
,
const
GalleryTheme
&
rTheme
);
...
...
svx/source/gallery2/galctrl.cxx
Dosyayı görüntüle @
6b8a2089
...
@@ -329,14 +329,14 @@ void GalleryIconView::UserDraw( const UserDrawEvent& rUDEvt )
...
@@ -329,14 +329,14 @@ void GalleryIconView::UserDraw( const UserDrawEvent& rUDEvt )
const
Size
aSize
(
rRect
.
GetWidth
(),
rRect
.
GetHeight
());
const
Size
aSize
(
rRect
.
GetWidth
(),
rRect
.
GetHeight
());
BitmapEx
aBitmapEx
;
BitmapEx
aBitmapEx
;
Size
aPreparedSize
;
Size
aPreparedSize
;
String
aItemTextTitle
;
OU
String
aItemTextTitle
;
String
aItemTextPath
;
OU
String
aItemTextPath
;
mpTheme
->
GetPreviewBitmapExAndStrings
(
nId
-
1
,
aBitmapEx
,
aPreparedSize
,
aItemTextTitle
,
aItemTextPath
);
mpTheme
->
GetPreviewBitmapExAndStrings
(
nId
-
1
,
aBitmapEx
,
aPreparedSize
,
aItemTextTitle
,
aItemTextPath
);
bool
bNeedToCreate
(
aBitmapEx
.
IsEmpty
());
bool
bNeedToCreate
(
aBitmapEx
.
IsEmpty
());
if
(
!
bNeedToCreate
&&
!
aItemTextTitle
.
Len
())
if
(
!
bNeedToCreate
&&
aItemTextTitle
.
isEmpty
())
{
{
bNeedToCreate
=
true
;
bNeedToCreate
=
true
;
}
}
...
@@ -629,19 +629,19 @@ void GalleryListView::PaintField( OutputDevice& rDev, const Rectangle& rRect, sa
...
@@ -629,19 +629,19 @@ void GalleryListView::PaintField( OutputDevice& rDev, const Rectangle& rRect, sa
const
Size
aSize
(
rRect
.
GetHeight
(),
rRect
.
GetHeight
());
const
Size
aSize
(
rRect
.
GetHeight
(),
rRect
.
GetHeight
());
BitmapEx
aBitmapEx
;
BitmapEx
aBitmapEx
;
Size
aPreparedSize
;
Size
aPreparedSize
;
String
aItemTextTitle
;
OU
String
aItemTextTitle
;
String
aItemTextPath
;
OU
String
aItemTextPath
;
mpTheme
->
GetPreviewBitmapExAndStrings
(
mnCurRow
,
aBitmapEx
,
aPreparedSize
,
aItemTextTitle
,
aItemTextPath
);
mpTheme
->
GetPreviewBitmapExAndStrings
(
mnCurRow
,
aBitmapEx
,
aPreparedSize
,
aItemTextTitle
,
aItemTextPath
);
bool
bNeedToCreate
(
aBitmapEx
.
IsEmpty
());
bool
bNeedToCreate
(
aBitmapEx
.
IsEmpty
());
if
(
!
bNeedToCreate
&&
GALLERY_BRWBOX_TITLE
==
nColumnId
&&
!
aItemTextTitle
.
Len
())
if
(
!
bNeedToCreate
&&
GALLERY_BRWBOX_TITLE
==
nColumnId
&&
aItemTextTitle
.
isEmpty
())
{
{
bNeedToCreate
=
true
;
bNeedToCreate
=
true
;
}
}
if
(
!
bNeedToCreate
&&
GALLERY_BRWBOX_PATH
==
nColumnId
&&
!
aItemTextPath
.
Len
())
if
(
!
bNeedToCreate
&&
GALLERY_BRWBOX_PATH
==
nColumnId
&&
aItemTextPath
.
isEmpty
())
{
{
bNeedToCreate
=
true
;
bNeedToCreate
=
true
;
}
}
...
...
svx/source/gallery2/galtheme.cxx
Dosyayı görüntüle @
6b8a2089
...
@@ -444,7 +444,7 @@ SgaObject* GalleryTheme::AcquireObject( size_t nPos )
...
@@ -444,7 +444,7 @@ SgaObject* GalleryTheme::AcquireObject( size_t nPos )
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
void
GalleryTheme
::
GetPreviewBitmapExAndStrings
(
sal_uIntPtr
nPos
,
BitmapEx
&
rBitmapEx
,
Size
&
rSize
,
String
&
rTitle
,
String
&
rPath
)
const
void
GalleryTheme
::
GetPreviewBitmapExAndStrings
(
sal_uIntPtr
nPos
,
BitmapEx
&
rBitmapEx
,
Size
&
rSize
,
OUString
&
rTitle
,
OU
String
&
rPath
)
const
{
{
const
GalleryObject
*
pGalleryObject
=
nPos
<
aObjectList
.
size
()
?
aObjectList
[
nPos
]
:
NULL
;
const
GalleryObject
*
pGalleryObject
=
nPos
<
aObjectList
.
size
()
?
aObjectList
[
nPos
]
:
NULL
;
...
@@ -463,7 +463,7 @@ void GalleryTheme::GetPreviewBitmapExAndStrings(sal_uIntPtr nPos, BitmapEx& rBit
...
@@ -463,7 +463,7 @@ void GalleryTheme::GetPreviewBitmapExAndStrings(sal_uIntPtr nPos, BitmapEx& rBit
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
void
GalleryTheme
::
SetPreviewBitmapExAndStrings
(
sal_uIntPtr
nPos
,
const
BitmapEx
&
rBitmapEx
,
const
Size
&
rSize
,
const
String
&
rTitle
,
const
String
&
rPath
)
void
GalleryTheme
::
SetPreviewBitmapExAndStrings
(
sal_uIntPtr
nPos
,
const
BitmapEx
&
rBitmapEx
,
const
Size
&
rSize
,
const
OUString
&
rTitle
,
const
OU
String
&
rPath
)
{
{
GalleryObject
*
pGalleryObject
=
nPos
<
aObjectList
.
size
()
?
aObjectList
[
nPos
]
:
NULL
;
GalleryObject
*
pGalleryObject
=
nPos
<
aObjectList
.
size
()
?
aObjectList
[
nPos
]
:
NULL
;
...
@@ -1405,7 +1405,7 @@ SvStream& GalleryTheme::WriteData( SvStream& rOStm ) const
...
@@ -1405,7 +1405,7 @@ SvStream& GalleryTheme::WriteData( SvStream& rOStm ) const
}
}
}
}
if
(
m_aDestDir
.
Len
()
>
0
)
if
(
!
m_aDestDir
.
isEmpty
()
)
{
{
if
(
aPath
.
SearchAndReplace
(
m_aDestDir
,
String
())
!=
STRING_NOTFOUND
)
if
(
aPath
.
SearchAndReplace
(
m_aDestDir
,
String
())
!=
STRING_NOTFOUND
)
bRel
=
m_bDestDirRelative
;
bRel
=
m_bDestDirRelative
;
...
...
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