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
23a2f5fc
Kaydet (Commit)
23a2f5fc
authored
Mar 14, 2013
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
First step for a MWAWImportFilter
Change-Id: I03f48d26a4bafcd82cb96b1b90a7f49f3ea433ce
üst
8569f74b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
102 additions
and
3 deletions
+102
-3
Library_wpftwriter.mk
writerperfect/Library_wpftwriter.mk
+3
-0
MSWorksImportFilter.cxx
writerperfect/source/writer/MSWorksImportFilter.cxx
+0
-1
MWAWImportFilter.cxx
writerperfect/source/writer/MWAWImportFilter.cxx
+0
-0
MWAWImportFilter.hxx
writerperfect/source/writer/MWAWImportFilter.hxx
+91
-0
WordPerfectImportFilter.cxx
writerperfect/source/writer/WordPerfectImportFilter.cxx
+0
-2
wpftwriter_genericfilter.cxx
writerperfect/source/writer/wpftwriter_genericfilter.cxx
+4
-0
wpftwriter.component
writerperfect/util/wpftwriter.component
+4
-0
No files found.
writerperfect/Library_wpftwriter.mk
Dosyayı görüntüle @
23a2f5fc
...
...
@@ -52,10 +52,13 @@ $(eval $(call gb_Library_use_externals,wpftwriter,\
wpd \
wpg \
wps \
mwaw \
zlib \
))
$(eval $(call gb_Library_add_exception_objects,wpftwriter,\
writerperfect/source/writer/MSWorksImportFilter \
writerperfect/source/writer/MWAWImportFilter \
writerperfect/source/writer/WordPerfectImportFilter \
writerperfect/source/writer/wpftwriter_genericfilter \
))
...
...
writerperfect/source/writer/MSWorksImportFilter.cxx
Dosyayı görüntüle @
23a2f5fc
...
...
@@ -55,7 +55,6 @@ using com::sun::star::xml::sax::XAttributeList;
using
com
::
sun
::
star
::
xml
::
sax
::
XDocumentHandler
;
using
com
::
sun
::
star
::
xml
::
sax
::
XParser
;
void
callHandler
(
Reference
<
XDocumentHandler
>
xDocHandler
);
sal_Bool
SAL_CALL
MSWorksImportFilter
::
importImpl
(
const
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>&
aDescriptor
)
throw
(
RuntimeException
)
...
...
writerperfect/source/writer/MWAWImportFilter.cxx
0 → 100644
Dosyayı görüntüle @
23a2f5fc
This diff is collapsed.
Click to expand it.
writerperfect/source/writer/MWAWImportFilter.hxx
0 → 100644
Dosyayı görüntüle @
23a2f5fc
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef _MWAWIMPORTFILTER_HXX
#define _MWAWIMPORTFILTER_HXX
#include <com/sun/star/document/XFilter.hpp>
#include <com/sun/star/document/XImporter.hpp>
#include <com/sun/star/document/XExtendedFilterDetection.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
#include <cppuhelper/implbase5.hxx>
/* This component will be instantiated for both import or export. Whether it calls
* setSourceDocument or setTargetDocument determines which Impl function the filter
* member calls */
class
MWAWImportFilter
:
public
cppu
::
WeakImplHelper5
<
com
::
sun
::
star
::
document
::
XFilter
,
com
::
sun
::
star
::
document
::
XImporter
,
com
::
sun
::
star
::
document
::
XExtendedFilterDetection
,
com
::
sun
::
star
::
lang
::
XInitialization
,
com
::
sun
::
star
::
lang
::
XServiceInfo
>
{
protected
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>
mxContext
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XComponent
>
mxDoc
;
::
rtl
::
OUString
msFilterName
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XDocumentHandler
>
mxHandler
;
sal_Bool
SAL_CALL
importImpl
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>
&
aDescriptor
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
public
:
MWAWImportFilter
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>
&
rxContext
)
:
mxContext
(
rxContext
)
{}
virtual
~
MWAWImportFilter
()
{}
// XFilter
virtual
sal_Bool
SAL_CALL
filter
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>
&
aDescriptor
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
cancel
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XImporter
virtual
void
SAL_CALL
setTargetDocument
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XComponent
>
&
xDoc
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
//XExtendedFilterDetection
virtual
::
rtl
::
OUString
SAL_CALL
detect
(
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
&
Descriptor
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XInitialization
virtual
void
SAL_CALL
initialize
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>
&
aArguments
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XServiceInfo
virtual
::
rtl
::
OUString
SAL_CALL
getImplementationName
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
supportsService
(
const
::
rtl
::
OUString
&
ServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
rtl
::
OUString
>
SAL_CALL
getSupportedServiceNames
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
};
::
rtl
::
OUString
MWAWImportFilter_getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
sal_Bool
SAL_CALL
MWAWImportFilter_supportsService
(
const
::
rtl
::
OUString
&
ServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
rtl
::
OUString
>
SAL_CALL
MWAWImportFilter_getSupportedServiceNames
(
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
MWAWImportFilter_createInstance
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>
&
rContext
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
writerperfect/source/writer/WordPerfectImportFilter.cxx
Dosyayı görüntüle @
23a2f5fc
...
...
@@ -55,8 +55,6 @@ using com::sun::star::xml::sax::XAttributeList;
using
com
::
sun
::
star
::
xml
::
sax
::
XDocumentHandler
;
using
com
::
sun
::
star
::
xml
::
sax
::
XParser
;
void
callHandler
(
Reference
<
XDocumentHandler
>
xDocHandler
);
static
bool
handleEmbeddedWPGObject
(
const
WPXBinaryData
&
data
,
OdfDocumentHandler
*
pHandler
,
const
OdfStreamType
streamType
)
{
...
...
writerperfect/source/writer/wpftwriter_genericfilter.cxx
Dosyayı görüntüle @
23a2f5fc
...
...
@@ -33,6 +33,7 @@
#include "WordPerfectImportFilter.hxx"
#include "MSWorksImportFilter.hxx"
#include "MWAWImportFilter.hxx"
namespace
{
...
...
@@ -43,6 +44,9 @@ static cppu::ImplementationEntry const services[] = {
{
&
MSWorksImportFilter_createInstance
,
&
MSWorksImportFilter_getImplementationName
,
&
MSWorksImportFilter_getSupportedServiceNames
,
&
cppu
::
createSingleComponentFactory
,
0
,
0
},
{
&
MWAWImportFilter_createInstance
,
&
MWAWImportFilter_getImplementationName
,
&
MWAWImportFilter_getSupportedServiceNames
,
&
cppu
::
createSingleComponentFactory
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
}
};
}
...
...
writerperfect/util/wpftwriter.component
Dosyayı görüntüle @
23a2f5fc
...
...
@@ -22,6 +22,10 @@
<service
name=
"com.sun.star.document.ImportFilter"
/>
<service
name=
"com.sun.star.document.ExtendedTypeDetection"
/>
</implementation>
<implementation
name=
"com.sun.star.comp.Writer.MWAWImportFilter"
>
<service
name=
"com.sun.star.document.ImportFilter"
/>
<service
name=
"com.sun.star.document.ExtendedTypeDetection"
/>
</implementation>
<implementation
name=
"com.sun.star.comp.Writer.WordPerfectImportFilter"
>
<service
name=
"com.sun.star.document.ExtendedTypeDetection"
/>
<service
name=
"com.sun.star.document.ImportFilter"
/>
...
...
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