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
709f6ba6
Kaydet (Commit)
709f6ba6
authored
Şub 04, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#59426: Don't try to repair package during flat detection phase.
Change-Id: I35968241a79db0aabe06e25c0efac2aa3d1c5b84
üst
7c33cc51
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
3 deletions
+33
-3
mediadescriptor.hxx
comphelper/inc/comphelper/mediadescriptor.hxx
+2
-0
mediadescriptor.cxx
comphelper/source/misc/mediadescriptor.cxx
+6
-0
typedetection.cxx
filter/source/config/cache/typedetection.cxx
+2
-0
scdetect.cxx
sc/source/ui/unoobj/scdetect.cxx
+9
-3
sddetect.cxx
sd/source/ui/unoidl/sddetect.cxx
+7
-0
swdetect.cxx
sw/source/ui/uno/swdetect.cxx
+7
-0
No files found.
comphelper/inc/comphelper/mediadescriptor.hxx
Dosyayı görüntüle @
709f6ba6
...
...
@@ -94,6 +94,8 @@ class COMPHELPER_DLLPUBLIC MediaDescriptor : public SequenceAsHashMap
static
const
::
rtl
::
OUString
&
PROP_VIEWONLY
();
static
const
::
rtl
::
OUString
&
PROP_DOCUMENTBASEURL
();
static
const
OUString
&
PROP_DEEPDETECTION
();
//-------------------------------------------
// interface
public
:
...
...
comphelper/source/misc/mediadescriptor.cxx
Dosyayı görüntüle @
709f6ba6
...
...
@@ -296,6 +296,12 @@ const OUString& MediaDescriptor::PROP_DOCUMENTBASEURL()
return
sProp
;
}
const
OUString
&
MediaDescriptor
::
PROP_DEEPDETECTION
()
{
static
const
OUString
aProp
(
"DeepDetection"
);
return
aProp
;
}
MediaDescriptor
::
MediaDescriptor
()
:
SequenceAsHashMap
()
{
...
...
filter/source/config/cache/typedetection.cxx
Dosyayı görüntüle @
709f6ba6
...
...
@@ -329,6 +329,8 @@ void printFlatDetectionList(const char* caption, const FlatDetection& types)
(
bAllowDeep
)
)
{
// Let's the detection service know we are in a deep detection phase.
stlDescriptor
[
comphelper
::
MediaDescriptor
::
PROP_DEEPDETECTION
()]
<<=
sal_True
;
sType
=
impl_detectTypeDeepOnly
(
stlDescriptor
,
lUsedDetectors
);
}
...
...
sc/source/ui/unoobj/scdetect.cxx
Dosyayı görüntüle @
709f6ba6
...
...
@@ -244,6 +244,7 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
sal_Bool
bRepairPackage
=
false
;
sal_Bool
bRepairAllowed
=
false
;
bool
bDeepDetection
=
false
;
// now some parameters that can already be in the array, but may be overwritten or new inserted here
// remember their indices in the case new values must be added to the array
...
...
@@ -300,6 +301,8 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
lDescriptor
[
nProperty
].
Value
>>=
bRepairPackage
;
else
if
(
lDescriptor
[
nProperty
].
Name
==
"DocumentTitle"
)
nIndexOfDocumentTitle
=
nProperty
;
else
if
(
lDescriptor
[
nProperty
].
Name
==
"DeepDetection"
)
bDeepDetection
=
lDescriptor
[
nProperty
].
Value
.
get
<
sal_Bool
>
();
}
// can't check the type for external filters, so set the "dont" flag accordingly
...
...
@@ -382,6 +385,10 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
}
catch
(
const
lang
::
WrappedTargetException
&
aWrap
)
{
if
(
!
bDeepDetection
)
// Bail out early unless it's a deep detection.
return
OUString
();
packages
::
zip
::
ZipIOException
aZipException
;
// repairing is done only if this type is requested from outside
...
...
@@ -424,9 +431,8 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
aTypeName
.
Erase
();
}
if
(
aTypeName
.
Len
()
)
pFilter
=
SfxFilterMatcher
(
rtl
::
OUString
(
"scalc"
)
).
GetFilter4EA
(
aTypeName
);
if
(
aTypeName
.
Len
()
)
pFilter
=
SfxFilterMatcher
(
rtl
::
OUString
(
"scalc"
)
).
GetFilter4EA
(
aTypeName
);
}
}
else
...
...
sd/source/ui/unoidl/sddetect.cxx
Dosyayı görüntüle @
709f6ba6
...
...
@@ -102,6 +102,7 @@ SdFilterDetect::~SdFilterDetect()
sal_Bool
bRepairPackage
=
sal_False
;
sal_Bool
bRepairAllowed
=
sal_False
;
bool
bDeepDetection
=
false
;
// now some parameters that can already be in the array, but may be overwritten or new inserted here
// remember their indices in the case new values must be added to the array
...
...
@@ -152,6 +153,8 @@ SdFilterDetect::~SdFilterDetect()
lDescriptor
[
nProperty
].
Value
>>=
bRepairPackage
;
else
if
(
lDescriptor
[
nProperty
].
Name
==
"DocumentTitle"
)
nIndexOfDocumentTitle
=
nProperty
;
else
if
(
lDescriptor
[
nProperty
].
Name
==
"DeepDetection"
)
bDeepDetection
=
lDescriptor
[
nProperty
].
Value
.
get
<
sal_Bool
>
();
}
// can't check the type for external filters, so set the "dont" flag accordingly
...
...
@@ -258,6 +261,10 @@ SdFilterDetect::~SdFilterDetect()
}
catch
(
const
lang
::
WrappedTargetException
&
aWrap
)
{
if
(
!
bDeepDetection
)
// Bail out early unless it's a deep detection.
return
OUString
();
packages
::
zip
::
ZipIOException
aZipException
;
if
(
(
aWrap
.
TargetException
>>=
aZipException
)
&&
aTypeName
.
Len
()
)
{
...
...
sw/source/ui/uno/swdetect.cxx
Dosyayı görüntüle @
709f6ba6
...
...
@@ -97,6 +97,7 @@ SwFilterDetect::~SwFilterDetect()
sal_Bool
bRepairPackage
=
sal_False
;
sal_Bool
bRepairAllowed
=
sal_False
;
bool
bDeepDetection
=
false
;
// now some parameters that can already be in the array, but may be overwritten or new inserted here
// remember their indices in the case new values must be added to the array
...
...
@@ -151,6 +152,8 @@ SwFilterDetect::~SwFilterDetect()
lDescriptor
[
nProperty
].
Value
>>=
bRepairPackage
;
else
if
(
lDescriptor
[
nProperty
].
Name
==
"DocumentTitle"
)
nIndexOfDocumentTitle
=
nProperty
;
else
if
(
lDescriptor
[
nProperty
].
Name
==
"DeepDetection"
)
bDeepDetection
=
lDescriptor
[
nProperty
].
Value
.
get
<
sal_Bool
>
();
}
SolarMutexGuard
aGuard
;
...
...
@@ -239,6 +242,10 @@ SwFilterDetect::~SwFilterDetect()
}
catch
(
const
lang
::
WrappedTargetException
&
aWrap
)
{
if
(
!
bDeepDetection
)
// Bail out early unless it's a deep detection.
return
OUString
();
packages
::
zip
::
ZipIOException
aZipException
;
// repairing is done only if this type is requested from outside
...
...
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