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
e8342067
Kaydet (Commit)
e8342067
authored
May 12, 2014
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unusedcode.easy: remove LWPFilterReader::LWPFilterReader()
Change-Id: Iefbf36d2ce0f98c61a0d9f5d04b77a3505980e80
üst
ce300bf2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
72 deletions
+0
-72
lwpfilter.cxx
lotuswordpro/source/filter/lwpfilter.cxx
+0
-34
lwpfilter.hxx
lotuswordpro/source/filter/lwpfilter.hxx
+0
-37
unusedcode.easy
unusedcode.easy
+0
-1
No files found.
lotuswordpro/source/filter/lwpfilter.cxx
Dosyayı görüntüle @
e8342067
...
...
@@ -59,12 +59,9 @@
************************************************************************/
#include "lwpfilter.hxx"
#include "lwpresource.hxx"
//for sax stream
#include "xfilter/xfsaxstream.hxx"
//for file parser
#include "lwp9reader.hxx"
#include "lwpsvstream.hxx"
//for container reset
#include "xfilter/xffontfactory.hxx"
#include "xfilter/xfstylemanager.hxx"
...
...
@@ -80,7 +77,6 @@
#include <cppuhelper/supportsservice.hxx>
#include <tools/stream.hxx>
#include <sfx2/docfile.hxx>
#include <boost/scoped_ptr.hpp>
...
...
@@ -97,36 +93,6 @@ using namespace ::com::sun::star::xml::sax;
using
namespace
::
com
::
sun
::
star
;
using
::
com
::
sun
::
star
::
uno
::
Sequence
;
LWPFilterReader
::
LWPFilterReader
()
{
}
LWPFilterReader
::~
LWPFilterReader
()
{
}
sal_Bool
LWPFilterReader
::
filter
(
const
Sequence
<
PropertyValue
>&
aDescriptor
)
throw
(
RuntimeException
,
std
::
exception
)
{
OUString
sURL
;
for
(
sal_Int32
i
=
0
;
i
<
aDescriptor
.
getLength
();
i
++
)
{
//Note we should attempt to use "InputStream" if it exists first!
if
(
aDescriptor
[
i
].
Name
==
"URL"
)
aDescriptor
[
i
].
Value
>>=
sURL
;
}
SvFileStream
inputStream
(
sURL
,
STREAM_READ
);
if
(
inputStream
.
IsEof
()
||
(
inputStream
.
GetError
()
!=
SVSTREAM_OK
)
)
return
sal_False
;
return
(
ReadWordproFile
(
inputStream
,
m_DocumentHandler
)
==
0
);
}
void
LWPFilterReader
::
cancel
()
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
}
/**
* @descr decompressed small file
* @param pCompressed - real file stream
...
...
lotuswordpro/source/filter/lwpfilter.hxx
Dosyayı görüntüle @
e8342067
...
...
@@ -86,43 +86,6 @@ using namespace ::com::sun::star::uno;
using
namespace
::
com
::
sun
::
star
::
text
;
using
namespace
::
com
::
sun
::
star
;
/**
* @brief
* Implements the XFilter interface.
* This is not the entry for the filter, but a proto of LwpFilterImportFilter.
*/
class
LWPFilterReader
:
public
WeakImplHelper1
<
XFilter
>
{
public
:
LWPFilterReader
();
virtual
~
LWPFilterReader
();
public
:
/**
* @descr loading the file. It's call be SfxObejctShell::ImportFrom.
* @param aDescriptor the parameters include file URL or XInputStream object, from which the filter can
* get which file to import.
*/
virtual
sal_Bool
SAL_CALL
filter
(
const
Sequence
<
PropertyValue
>&
aDescriptor
)
throw
(
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
/**
* @descr stop loading the file.
*/
virtual
void
SAL_CALL
cancel
()
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
/**
* @descr get the XDocumentHandler interface.
*/
void
setDocumentHandler
(
uno
::
Reference
<
XDocumentHandler
>&
xHandler
)
{
m_DocumentHandler
=
xHandler
;
}
private
:
uno
::
Reference
<
XDocumentHandler
>
m_DocumentHandler
;
};
//test code
int
ReadWordproFile
(
SvStream
&
rStream
,
uno
::
Reference
<
XDocumentHandler
>&
XDoc
);
...
...
unusedcode.easy
Dosyayı görüntüle @
e8342067
...
...
@@ -25,7 +25,6 @@ GDriveSession::GDriveSession()
Json::Json(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Json, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Json> > > const&)
Json::Json(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::shared_ptr<libcmis::Property>, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, boost::shared_ptr<libcmis::Property> > > > const&)
Json::swap(Json&)
LWPFilterReader::LWPFilterReader()
MenuBar::AddMenuBarButton(Image const&, Link const&, rtl::OUString const&, unsigned short)
MenuBar::GetMenuBarButtonRectPixel(unsigned short)
MenuBar::RemoveMenuBarButton(unsigned short)
...
...
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