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
2c66056b
Kaydet (Commit)
2c66056b
authored
May 23, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOCX import: detect document signature
Change-Id: Ic84b1f1446d6ab1a1529de4e0a435afbf62915a7
üst
938a070f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
OOXMLDocument.hxx
writerfilter/inc/ooxml/OOXMLDocument.hxx
+1
-1
ImportFilter.cxx
writerfilter/source/filter/ImportFilter.cxx
+8
-0
OOXMLStreamImpl.cxx
writerfilter/source/ooxml/OOXMLStreamImpl.cxx
+4
-0
No files found.
writerfilter/inc/ooxml/OOXMLDocument.hxx
Dosyayı görüntüle @
2c66056b
...
@@ -75,7 +75,7 @@ class OOXMLStream
...
@@ -75,7 +75,7 @@ class OOXMLStream
{
{
public
:
public
:
enum
StreamType_t
{
UNKNOWN
,
DOCUMENT
,
STYLES
,
WEBSETTINGS
,
FONTTABLE
,
NUMBERING
,
enum
StreamType_t
{
UNKNOWN
,
DOCUMENT
,
STYLES
,
WEBSETTINGS
,
FONTTABLE
,
NUMBERING
,
FOOTNOTES
,
ENDNOTES
,
COMMENTS
,
THEME
,
CUSTOMXML
,
CUSTOMXMLPROPS
,
ACTIVEX
,
ACTIVEXBIN
,
GLOSSARY
,
CHARTS
,
EMBEDDINGS
,
SETTINGS
,
VBAPROJECT
,
FOOTER
,
HEADER
};
FOOTNOTES
,
ENDNOTES
,
COMMENTS
,
THEME
,
CUSTOMXML
,
CUSTOMXMLPROPS
,
ACTIVEX
,
ACTIVEXBIN
,
GLOSSARY
,
CHARTS
,
EMBEDDINGS
,
SETTINGS
,
VBAPROJECT
,
FOOTER
,
HEADER
,
SIGNATURE
};
typedef
boost
::
shared_ptr
<
OOXMLStream
>
Pointer_t
;
typedef
boost
::
shared_ptr
<
OOXMLStream
>
Pointer_t
;
virtual
~
OOXMLStream
()
{}
virtual
~
OOXMLStream
()
{}
...
...
writerfilter/source/filter/ImportFilter.cxx
Dosyayı görüntüle @
2c66056b
...
@@ -175,6 +175,14 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
...
@@ -175,6 +175,14 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
oox
::
GraphicHelper
gHelper
(
m_xContext
,
xFrame
,
xVbaPrjStrg
);
oox
::
GraphicHelper
gHelper
(
m_xContext
,
xFrame
,
xVbaPrjStrg
);
aVbaProject
.
importVbaProject
(
*
xVbaPrjStrg
,
gHelper
);
aVbaProject
.
importVbaProject
(
*
xVbaPrjStrg
,
gHelper
);
}
}
// Document signature.
writerfilter
::
ooxml
::
OOXMLStream
::
Pointer_t
pSignatureStream
;
pSignatureStream
=
writerfilter
::
ooxml
::
OOXMLDocumentFactory
::
createStream
(
m_xContext
,
xInputStream
,
bRepairStorage
,
writerfilter
::
ooxml
::
OOXMLStream
::
SIGNATURE
);
if
(
pSignatureStream
->
getDocumentStream
().
is
())
{
// TODO found, handle it.
}
}
}
pStream
.
reset
();
pStream
.
reset
();
...
...
writerfilter/source/ooxml/OOXMLStreamImpl.cxx
Dosyayı görüntüle @
2c66056b
...
@@ -157,6 +157,7 @@ bool OOXMLStreamImpl::lcl_getTarget(uno::Reference<embed::XRelationshipAccess>
...
@@ -157,6 +157,7 @@ bool OOXMLStreamImpl::lcl_getTarget(uno::Reference<embed::XRelationshipAccess>
static
OUString
sFooterType
(
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer"
);
static
OUString
sFooterType
(
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer"
);
static
OUString
sHeaderType
(
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header"
);
static
OUString
sHeaderType
(
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header"
);
static
OUString
sOleObjectType
(
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject"
);
static
OUString
sOleObjectType
(
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject"
);
static
OUString
sSignatureType
(
"http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin"
);
// OOXML strict
// OOXML strict
static
OUString
sDocumentTypeStrict
(
"http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument"
);
static
OUString
sDocumentTypeStrict
(
"http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument"
);
static
OUString
sStylesTypeStrict
(
"http://purl.oclc.org/ooxml/officeDocument/relationships/styles"
);
static
OUString
sStylesTypeStrict
(
"http://purl.oclc.org/ooxml/officeDocument/relationships/styles"
);
...
@@ -264,6 +265,9 @@ bool OOXMLStreamImpl::lcl_getTarget(uno::Reference<embed::XRelationshipAccess>
...
@@ -264,6 +265,9 @@ bool OOXMLStreamImpl::lcl_getTarget(uno::Reference<embed::XRelationshipAccess>
sStreamType
=
sHeaderType
;
sStreamType
=
sHeaderType
;
sStreamTypeStrict
=
sHeaderTypeStrict
;
sStreamTypeStrict
=
sHeaderTypeStrict
;
break
;
break
;
case
SIGNATURE
:
sStreamType
=
sSignatureType
;
break
;
default
:
default
:
break
;
break
;
}
}
...
...
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