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
892acc2c
Kaydet (Commit)
892acc2c
authored
Eyl 03, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert include/svx/galmisc.hxx from String to OUString
Change-Id: If0677c6b38ddbac4f039c0e2e5a6db59491d454c
üst
6b8a2089
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
21 deletions
+20
-21
galmisc.hxx
include/svx/galmisc.hxx
+5
-6
galbrws1.cxx
svx/source/gallery2/galbrws1.cxx
+1
-1
galmisc.cxx
svx/source/gallery2/galmisc.cxx
+10
-10
galobj.cxx
svx/source/gallery2/galobj.cxx
+1
-1
galtheme.cxx
svx/source/gallery2/galtheme.cxx
+3
-3
No files found.
include/svx/galmisc.hxx
Dosyayı görüntüle @
892acc2c
...
...
@@ -37,7 +37,7 @@ class GalleryTheme;
struct
ExchangeData
{
GalleryTheme
*
pTheme
;
String
aEditedTitle
;
OUString
aEditedTitle
;
Date
aThemeChangeDate
;
Time
aThemeChangeTime
;
...
...
@@ -78,7 +78,6 @@ enum SgaObjKind
#define GALLERY_DLG_COLOR Application::GetSettings().GetStyleSettings().GetDialogColor()
class
ResMgr
;
class
String
;
class
SvStream
;
class
Graphic
;
class
FmFormModel
;
...
...
@@ -86,10 +85,10 @@ class ImageMap;
class
Gallery
;
SVX_DLLPUBLIC
ResMgr
*
GetGalleryResMgr
();
sal_uInt16
GalleryGraphicImport
(
const
INetURLObject
&
rURL
,
Graphic
&
rGraphic
,
String
&
rFilterName
,
sal_Bool
bShowProgress
=
sal_False
);
sal_uInt16
GalleryGraphicImport
(
const
INetURLObject
&
rURL
,
Graphic
&
rGraphic
,
OU
String
&
rFilterName
,
sal_Bool
bShowProgress
=
sal_False
);
sal_Bool
GallerySvDrawImport
(
SvStream
&
rIStm
,
SdrModel
&
rModel
);
sal_Bool
CreateIMapGraphic
(
const
FmFormModel
&
rModel
,
Graphic
&
rGraphic
,
ImageMap
&
rImageMap
);
SVX_DLLPUBLIC
String
GetReducedString
(
const
INetURLObject
&
rURL
,
sal_uIntPtr
nMaxLen
);
SVX_DLLPUBLIC
OUString
GetReducedString
(
const
INetURLObject
&
rURL
,
sal_Int32
nMaxLen
);
String
GetSvDrawStreamNameFromURL
(
const
INetURLObject
&
rSvDrawObjURL
);
sal_Bool
FileExists
(
const
INetURLObject
&
rURL
);
...
...
@@ -205,10 +204,10 @@ private:
public
:
GalleryHint
(
sal_uIntPtr
nType
,
const
String
&
rThemeName
,
sal_uIntPtr
nData1
=
0UL
,
sal_uIntPtr
nData2
=
0UL
)
:
GalleryHint
(
sal_uIntPtr
nType
,
const
OU
String
&
rThemeName
,
sal_uIntPtr
nData1
=
0UL
,
sal_uIntPtr
nData2
=
0UL
)
:
mnType
(
nType
),
maThemeName
(
rThemeName
),
mnData1
(
nData1
),
mnData2
(
nData2
)
{}
GalleryHint
(
sal_uIntPtr
nType
,
const
String
&
rThemeName
,
const
String
&
rStringData
,
sal_uIntPtr
nData1
=
0UL
,
sal_uIntPtr
nData2
=
0UL
)
:
GalleryHint
(
sal_uIntPtr
nType
,
const
OUString
&
rThemeName
,
const
OU
String
&
rStringData
,
sal_uIntPtr
nData1
=
0UL
,
sal_uIntPtr
nData2
=
0UL
)
:
mnType
(
nType
),
maThemeName
(
rThemeName
),
maStringData
(
rStringData
),
mnData1
(
nData1
),
mnData2
(
nData2
)
{}
sal_uIntPtr
GetType
()
const
{
return
mnType
;
}
...
...
svx/source/gallery2/galbrws1.cxx
Dosyayı görüntüle @
892acc2c
...
...
@@ -328,7 +328,7 @@ void GalleryBrowser1::ImplEndGalleryThemeProperties( VclAbstractDialog2* pDialog
{
String
aName
(
mpExchangeData
->
pTheme
->
GetName
()
);
if
(
mpExchangeData
->
aEditedTitle
.
Len
()
&&
aName
!=
mpExchangeData
->
aEditedTitle
)
if
(
!
mpExchangeData
->
aEditedTitle
.
isEmpty
()
&&
aName
!=
mpExchangeData
->
aEditedTitle
)
{
const
String
aOldName
(
aName
);
String
aTitle
(
mpExchangeData
->
aEditedTitle
);
...
...
svx/source/gallery2/galmisc.cxx
Dosyayı görüntüle @
892acc2c
...
...
@@ -102,7 +102,7 @@ IMPL_LINK( SgaUserDataFactory, MakeUserData, SdrObjFactory*, pObjFactory )
// ------------------------
sal_uInt16
GalleryGraphicImport
(
const
INetURLObject
&
rURL
,
Graphic
&
rGraphic
,
String
&
rFilterName
,
sal_Bool
bShowProgress
)
OU
String
&
rFilterName
,
sal_Bool
bShowProgress
)
{
sal_uInt16
nRet
=
SGA_IMPORT_NONE
;
SfxMedium
aMedium
(
rURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
STREAM_READ
);
...
...
@@ -217,23 +217,23 @@ sal_Bool CreateIMapGraphic( const FmFormModel& rModel, Graphic& rGraphic, ImageM
// - GetReducedString -
// --------------------
String
GetReducedString
(
const
INetURLObject
&
rURL
,
sal_uIntPtr
nMaxLen
)
OUString
GetReducedString
(
const
INetURLObject
&
rURL
,
sal_Int32
nMaxLen
)
{
String
aReduced
(
rURL
.
GetMainURL
(
INetURLObject
::
DECODE_UNAMBIGUOUS
)
);
OU
String
aReduced
(
rURL
.
GetMainURL
(
INetURLObject
::
DECODE_UNAMBIGUOUS
)
);
aReduced
=
aReduced
.
G
etToken
(
comphelper
::
string
::
getTokenCount
(
aReduced
,
'/'
)
-
1
,
'/'
);
aReduced
=
aReduced
.
g
etToken
(
comphelper
::
string
::
getTokenCount
(
aReduced
,
'/'
)
-
1
,
'/'
);
if
(
INET_PROT_PRIV_SOFFICE
!=
rURL
.
GetProtocol
()
)
{
sal_Unicode
aDelimiter
;
const
String
aPath
(
rURL
.
getFSysPath
(
INetURLObject
::
FSYS_DETECT
,
&
aDelimiter
)
);
const
String
aName
(
aReduced
);
const
OUString
aPath
(
rURL
.
getFSysPath
(
INetURLObject
::
FSYS_DETECT
,
&
aDelimiter
)
);
const
OUString
aName
(
aReduced
);
if
(
aPath
.
Len
()
>
nMaxLen
)
if
(
aPath
.
getLength
()
>
nMaxLen
)
{
aReduced
=
aPath
.
Copy
(
0
,
(
sal_uInt16
)(
nMaxLen
-
aName
.
Len
()
-
4
)
);
aReduced
+=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"..."
)
)
;
aReduced
+=
aDelimiter
;
aReduced
=
aPath
.
copy
(
0
,
nMaxLen
-
aName
.
getLength
()
-
4
);
aReduced
+=
"..."
;
aReduced
+=
OUString
(
aDelimiter
)
;
aReduced
+=
aName
;
}
else
...
...
svx/source/gallery2/galobj.cxx
Dosyayı görüntüle @
892acc2c
...
...
@@ -299,7 +299,7 @@ SgaObjectBmp::SgaObjectBmp()
SgaObjectBmp
::
SgaObjectBmp
(
const
INetURLObject
&
rURL
)
{
Graphic
aGraphic
;
String
aFilter
;
OU
String
aFilter
;
if
(
SGA_IMPORT_NONE
!=
GalleryGraphicImport
(
rURL
,
aGraphic
,
aFilter
)
)
Init
(
aGraphic
,
rURL
);
...
...
svx/source/gallery2/galtheme.cxx
Dosyayı görüntüle @
892acc2c
...
...
@@ -555,7 +555,7 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg
if
(
!
IsReadOnly
()
)
{
Graphic
aGraphic
;
String
aFormat
;
OUString
aFormat
;
GalleryObject
*
pEntry
;
const
size_t
nCount
=
aObjectList
.
size
();
...
...
@@ -835,7 +835,7 @@ sal_Bool GalleryTheme::GetGraphic( sal_uIntPtr nPos, Graphic& rGraphic, sal_Bool
case
(
SGA_OBJ_ANIM
):
case
(
SGA_OBJ_INET
):
{
String
aFilterDummy
;
OU
String
aFilterDummy
;
bRet
=
(
GalleryGraphicImport
(
aURL
,
rGraphic
,
aFilterDummy
,
bProgress
)
!=
SGA_IMPORT_NONE
);
}
break
;
...
...
@@ -1158,7 +1158,7 @@ sal_Bool GalleryTheme::GetURL( sal_uIntPtr nPos, INetURLObject& rURL, sal_Bool )
sal_Bool
GalleryTheme
::
InsertURL
(
const
INetURLObject
&
rURL
,
sal_uIntPtr
nInsertPos
)
{
Graphic
aGraphic
;
String
aFormat
;
OUString
aFormat
;
SgaObject
*
pNewObj
=
NULL
;
const
sal_uInt16
nImportRet
=
GalleryGraphicImport
(
rURL
,
aGraphic
,
aFormat
);
sal_Bool
bRet
=
sal_False
;
...
...
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