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
05ef2934
Kaydet (Commit)
05ef2934
authored
Nis 18, 2002
tarafından
Sven Jacobi
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#95793# improved eps detection
üst
10adb58b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
filter.cxx
svtools/source/filter.vcl/filter/filter.cxx
+3
-3
filter2.cxx
svtools/source/filter.vcl/filter/filter2.cxx
+14
-4
No files found.
svtools/source/filter.vcl/filter/filter.cxx
Dosyayı görüntüle @
05ef2934
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: filter.cxx,v $
* $RCSfile: filter.cxx,v $
*
*
* $Revision: 1.4
0
$
* $Revision: 1.4
1
$
*
*
* last change: $Author: sj $ $Date: 2002-04-1
7 12:09:52
$
* last change: $Author: sj $ $Date: 2002-04-1
8 17:09:20
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -289,7 +289,7 @@ BOOL ImpFilterCallback( void* pCallerData, USHORT nPercent )
...
@@ -289,7 +289,7 @@ BOOL ImpFilterCallback( void* pCallerData, USHORT nPercent )
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
static
BYTE
*
ImplSearchEntry
(
BYTE
*
pSource
,
BYTE
*
pDest
,
ULONG
nComp
,
ULONG
nSize
)
BYTE
*
ImplSearchEntry
(
BYTE
*
pSource
,
BYTE
*
pDest
,
ULONG
nComp
,
ULONG
nSize
)
{
{
while
(
nComp
--
>=
nSize
)
while
(
nComp
--
>=
nSize
)
{
{
...
...
svtools/source/filter.vcl/filter/filter2.cxx
Dosyayı görüntüle @
05ef2934
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: filter2.cxx,v $
* $RCSfile: filter2.cxx,v $
*
*
* $Revision: 1.
7
$
* $Revision: 1.
8
$
*
*
* last change: $Author:
ka $ $Date: 2001-12-05 12:28:44
$
* last change: $Author:
sj $ $Date: 2002-04-18 17:09:20
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -73,6 +73,9 @@
...
@@ -73,6 +73,9 @@
#define DATA_SIZE 640
#define DATA_SIZE 640
BYTE
*
ImplSearchEntry
(
BYTE
*
,
BYTE
*
,
ULONG
,
ULONG
);
/*************************************************************************
/*************************************************************************
|*
|*
|*
|*
...
@@ -1144,11 +1147,18 @@ BOOL GraphicDescriptor::ImpDetectEPS( SvStream& rStm, BOOL bExtendedInfo )
...
@@ -1144,11 +1147,18 @@ BOOL GraphicDescriptor::ImpDetectEPS( SvStream& rStm, BOOL bExtendedInfo )
// es wird die EPS mit Vorschaubild Variante und die Extensionbereinstimmung
// es wird die EPS mit Vorschaubild Variante und die Extensionbereinstimmung
// geprft
// geprft
UINT32
nFirstLong
;
sal_uInt32
nFirstLong
;
sal_uInt8
nFirstBytes
[
20
];
rStm
.
Seek
(
nStmPos
);
rStm
.
Seek
(
nStmPos
);
rStm
.
SetNumberFormatInt
(
NUMBERFORMAT_INT_BIGENDIAN
);
rStm
.
SetNumberFormatInt
(
NUMBERFORMAT_INT_BIGENDIAN
);
rStm
>>
nFirstLong
;
rStm
>>
nFirstLong
;
if
(
(
nFirstLong
==
0xC5D0D3C6
)
||
(
aPathExt
.
CompareToAscii
(
"eps"
,
3
)
==
COMPARE_EQUAL
)
)
rStm
.
SeekRel
(
-
4
);
rStm
.
Read
(
&
nFirstBytes
,
20
);
if
(
(
nFirstLong
==
0xC5D0D3C6
)
||
(
aPathExt
.
CompareToAscii
(
"eps"
,
3
)
==
COMPARE_EQUAL
)
||
(
ImplSearchEntry
(
nFirstBytes
,
(
sal_uInt8
*
)
"%!PS-Adobe"
,
10
,
10
)
&&
ImplSearchEntry
(
&
nFirstBytes
[
15
],
(
sal_uInt8
*
)
"EPS"
,
3
,
3
)
)
)
{
{
nFormat
=
GFF_EPS
;
nFormat
=
GFF_EPS
;
return
TRUE
;
return
TRUE
;
...
...
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