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
75fa6175
Kaydet (Commit)
75fa6175
authored
Ock 30, 2015
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ensure the default export filter is really available
Change-Id: Ie9b8a25d8d33c6211c43277f4d3b4cdbd79f5783
üst
89321e31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
graphichelper.cxx
svx/source/core/graphichelper.cxx
+4
-7
No files found.
svx/source/core/graphichelper.cxx
Dosyayı görüntüle @
75fa6175
...
@@ -209,8 +209,6 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
...
@@ -209,8 +209,6 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
Reference
<
XComponentContext
>
xContext
(
::
comphelper
::
getProcessComponentContext
()
);
Reference
<
XComponentContext
>
xContext
(
::
comphelper
::
getProcessComponentContext
()
);
Reference
<
XPropertySet
>
xShapeSet
(
xShape
,
UNO_QUERY_THROW
);
Reference
<
XPropertySet
>
xShapeSet
(
xShape
,
UNO_QUERY_THROW
);
OUString
aMimeType
;
SvtPathOptions
aPathOpt
;
SvtPathOptions
aPathOpt
;
OUString
sGraphicPath
(
aPathOpt
.
GetGraphicPath
()
);
OUString
sGraphicPath
(
aPathOpt
.
GetGraphicPath
()
);
...
@@ -227,6 +225,7 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
...
@@ -227,6 +225,7 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
GraphicFilter
&
rGraphicFilter
=
GraphicFilter
::
GetGraphicFilter
();
GraphicFilter
&
rGraphicFilter
=
GraphicFilter
::
GetGraphicFilter
();
Reference
<
XFilterManager
>
xFilterManager
(
xFilePicker
,
UNO_QUERY
);
Reference
<
XFilterManager
>
xFilterManager
(
xFilePicker
,
UNO_QUERY
);
const
OUString
aDefaultMimeType
(
"image/png"
);
OUString
aDefaultFormatName
;
OUString
aDefaultFormatName
;
sal_uInt16
nCount
=
rGraphicFilter
.
GetExportFormatCount
();
sal_uInt16
nCount
=
rGraphicFilter
.
GetExportFormatCount
();
...
@@ -238,14 +237,12 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
...
@@ -238,14 +237,12 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
const
OUString
aFilterMimeType
(
rGraphicFilter
.
GetExportFormatMediaType
(
i
)
);
const
OUString
aFilterMimeType
(
rGraphicFilter
.
GetExportFormatMediaType
(
i
)
);
xFilterManager
->
appendFilter
(
aExportFormatName
,
rGraphicFilter
.
GetExportWildcard
(
i
)
);
xFilterManager
->
appendFilter
(
aExportFormatName
,
rGraphicFilter
.
GetExportWildcard
(
i
)
);
aMimeTypeMap
[
aExportFormatName
]
=
aFilterMimeType
;
aMimeTypeMap
[
aExportFormatName
]
=
aFilterMimeType
;
if
(
aMimeType
==
aFilterMimeType
)
if
(
a
Default
MimeType
==
aFilterMimeType
)
aDefaultFormatName
=
aExportFormatName
;
aDefaultFormatName
=
aExportFormatName
;
}
}
if
(
aDefaultFormatName
.
getLength
()
==
0
)
if
(
!
aDefaultFormatName
.
isEmpty
()
)
aDefaultFormatName
=
"PNG - Portable Network Graphic"
;
xFilterManager
->
setCurrentFilter
(
aDefaultFormatName
);
xFilterManager
->
setCurrentFilter
(
aDefaultFormatName
);
// execute dialog
// execute dialog
...
...
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