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
445b34fb
Kaydet (Commit)
445b34fb
authored
Nis 22, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SGX_IMPORT constants to scoped enum
Change-Id: I5c80b8b762682bc666761710039b3b57bb3d579d
üst
ab1b535f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
galmisc.hxx
include/svx/galmisc.hxx
+5
-4
galmisc.cxx
svx/source/gallery2/galmisc.cxx
+3
-3
galobj.cxx
svx/source/gallery2/galobj.cxx
+1
-1
galtheme.cxx
svx/source/gallery2/galtheme.cxx
+5
-5
No files found.
include/svx/galmisc.hxx
Dosyayı görüntüle @
445b34fb
...
@@ -69,9 +69,10 @@ enum SgaObjKind
...
@@ -69,9 +69,10 @@ enum SgaObjKind
#define GAL_RESSTR(nId) GAL_RES(nId).toString()
#define GAL_RESSTR(nId) GAL_RES(nId).toString()
#define STREAMBUF_SIZE 16384L
#define STREAMBUF_SIZE 16384L
#define SGA_IMPORT_NONE 0x0000
enum
class
GalleryGraphicImportRet
#define SGA_IMPORT_FILE 0x0001
{
#define SGA_IMPORT_INET 0x0002
NONE
,
FILE
,
INET
};
#define GALLERY_PROGRESS_RANGE 10000
#define GALLERY_PROGRESS_RANGE 10000
...
@@ -88,7 +89,7 @@ class Gallery;
...
@@ -88,7 +89,7 @@ class Gallery;
SVX_DLLPUBLIC
ResMgr
*
SVX_DLLPUBLIC
ResMgr
*
GetGalleryResMgr
();
GetGalleryResMgr
();
sal_uInt16
GalleryGraphicImport
(
const
INetURLObject
&
rURL
,
Graphic
&
rGraphic
,
OUString
&
rFilterName
,
bool
bShowProgress
=
false
);
GalleryGraphicImportRet
GalleryGraphicImport
(
const
INetURLObject
&
rURL
,
Graphic
&
rGraphic
,
OUString
&
rFilterName
,
bool
bShowProgress
=
false
);
bool
GallerySvDrawImport
(
SvStream
&
rIStm
,
SdrModel
&
rModel
);
bool
GallerySvDrawImport
(
SvStream
&
rIStm
,
SdrModel
&
rModel
);
bool
CreateIMapGraphic
(
const
FmFormModel
&
rModel
,
Graphic
&
rGraphic
,
ImageMap
&
rImageMap
);
bool
CreateIMapGraphic
(
const
FmFormModel
&
rModel
,
Graphic
&
rGraphic
,
ImageMap
&
rImageMap
);
SVX_DLLPUBLIC
OUString
SVX_DLLPUBLIC
OUString
...
...
svx/source/gallery2/galmisc.cxx
Dosyayı görüntüle @
445b34fb
...
@@ -82,10 +82,10 @@ IMPL_LINK( SgaUserDataFactory, MakeUserData, SdrObjFactory*, pObjFactory )
...
@@ -82,10 +82,10 @@ IMPL_LINK( SgaUserDataFactory, MakeUserData, SdrObjFactory*, pObjFactory )
return
0L
;
return
0L
;
}
}
sal_uInt16
GalleryGraphicImport
(
const
INetURLObject
&
rURL
,
Graphic
&
rGraphic
,
GalleryGraphicImportRet
GalleryGraphicImport
(
const
INetURLObject
&
rURL
,
Graphic
&
rGraphic
,
OUString
&
rFilterName
,
bool
bShowProgress
)
OUString
&
rFilterName
,
bool
bShowProgress
)
{
{
sal_uInt16
nRet
=
SGA_IMPORT_
NONE
;
GalleryGraphicImportRet
nRet
=
GalleryGraphicImportRet
::
NONE
;
SfxMedium
aMedium
(
rURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
StreamMode
::
READ
);
SfxMedium
aMedium
(
rURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
StreamMode
::
READ
);
aMedium
.
Download
();
aMedium
.
Download
();
...
@@ -101,7 +101,7 @@ sal_uInt16 GalleryGraphicImport( const INetURLObject& rURL, Graphic& rGraphic,
...
@@ -101,7 +101,7 @@ sal_uInt16 GalleryGraphicImport( const INetURLObject& rURL, Graphic& rGraphic,
if
(
!
rGraphicFilter
.
ImportGraphic
(
rGraphic
,
rURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
*
pIStm
,
GRFILTER_FORMAT_DONTKNOW
,
&
nFormat
)
)
if
(
!
rGraphicFilter
.
ImportGraphic
(
rGraphic
,
rURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
*
pIStm
,
GRFILTER_FORMAT_DONTKNOW
,
&
nFormat
)
)
{
{
rFilterName
=
rGraphicFilter
.
GetImportFormatName
(
nFormat
);
rFilterName
=
rGraphicFilter
.
GetImportFormatName
(
nFormat
);
nRet
=
SGA_IMPORT_
FILE
;
nRet
=
GalleryGraphicImportRet
::
FILE
;
}
}
}
}
...
...
svx/source/gallery2/galobj.cxx
Dosyayı görüntüle @
445b34fb
...
@@ -278,7 +278,7 @@ SgaObjectBmp::SgaObjectBmp( const INetURLObject& rURL )
...
@@ -278,7 +278,7 @@ SgaObjectBmp::SgaObjectBmp( const INetURLObject& rURL )
Graphic
aGraphic
;
Graphic
aGraphic
;
OUString
aFilter
;
OUString
aFilter
;
if
(
SGA_IMPORT_
NONE
!=
GalleryGraphicImport
(
rURL
,
aGraphic
,
aFilter
)
)
if
(
GalleryGraphicImportRet
::
NONE
!=
GalleryGraphicImport
(
rURL
,
aGraphic
,
aFilter
)
)
Init
(
aGraphic
,
rURL
);
Init
(
aGraphic
,
rURL
);
}
}
...
...
svx/source/gallery2/galtheme.cxx
Dosyayı görüntüle @
445b34fb
...
@@ -553,7 +553,7 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg
...
@@ -553,7 +553,7 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg
{
{
aGraphic
.
Clear
();
aGraphic
.
Clear
();
if
(
GalleryGraphicImport
(
aURL
,
aGraphic
,
aFormat
)
)
if
(
GalleryGraphicImport
(
aURL
,
aGraphic
,
aFormat
)
!=
GalleryGraphicImportRet
::
NONE
)
{
{
boost
::
scoped_ptr
<
SgaObject
>
pNewObj
;
boost
::
scoped_ptr
<
SgaObject
>
pNewObj
;
...
@@ -790,7 +790,7 @@ bool GalleryTheme::GetGraphic( sal_uIntPtr nPos, Graphic& rGraphic, bool bProgre
...
@@ -790,7 +790,7 @@ bool GalleryTheme::GetGraphic( sal_uIntPtr nPos, Graphic& rGraphic, bool bProgre
case
(
SGA_OBJ_INET
):
case
(
SGA_OBJ_INET
):
{
{
OUString
aFilterDummy
;
OUString
aFilterDummy
;
bRet
=
(
GalleryGraphicImport
(
aURL
,
rGraphic
,
aFilterDummy
,
bProgress
)
!=
SGA_IMPORT_
NONE
);
bRet
=
(
GalleryGraphicImport
(
aURL
,
rGraphic
,
aFilterDummy
,
bProgress
)
!=
GalleryGraphicImportRet
::
NONE
);
}
}
break
;
break
;
...
@@ -1105,12 +1105,12 @@ bool GalleryTheme::InsertURL( const INetURLObject& rURL, sal_uIntPtr nInsertPos
...
@@ -1105,12 +1105,12 @@ bool GalleryTheme::InsertURL( const INetURLObject& rURL, sal_uIntPtr nInsertPos
Graphic
aGraphic
;
Graphic
aGraphic
;
OUString
aFormat
;
OUString
aFormat
;
boost
::
scoped_ptr
<
SgaObject
>
pNewObj
;
boost
::
scoped_ptr
<
SgaObject
>
pNewObj
;
const
sal_uInt16
nImportRet
=
GalleryGraphicImport
(
rURL
,
aGraphic
,
aFormat
);
const
GalleryGraphicImportRet
nImportRet
=
GalleryGraphicImport
(
rURL
,
aGraphic
,
aFormat
);
bool
bRet
=
false
;
bool
bRet
=
false
;
if
(
nImportRet
!=
SGA_IMPORT_
NONE
)
if
(
nImportRet
!=
GalleryGraphicImportRet
::
NONE
)
{
{
if
(
SGA_IMPORT_
INET
==
nImportRet
)
if
(
GalleryGraphicImportRet
::
INET
==
nImportRet
)
pNewObj
.
reset
((
SgaObject
*
)
new
SgaObjectINet
(
aGraphic
,
rURL
,
aFormat
));
pNewObj
.
reset
((
SgaObject
*
)
new
SgaObjectINet
(
aGraphic
,
rURL
,
aFormat
));
else
if
(
aGraphic
.
IsAnimated
()
)
else
if
(
aGraphic
.
IsAnimated
()
)
pNewObj
.
reset
((
SgaObject
*
)
new
SgaObjectAnim
(
aGraphic
,
rURL
,
aFormat
));
pNewObj
.
reset
((
SgaObject
*
)
new
SgaObjectAnim
(
aGraphic
,
rURL
,
aFormat
));
...
...
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