|
LibreOffice Module lotuswordpro (master) 1
|
Reader framework class for Lotus Word Pro 9 file. More...
#include <lwp9reader.hxx>
Public Member Functions | |
| Lwp9Reader (LwpSvStream *InputStream, IXFStream *pStream) | |
| bool | Read () |
| @descr The entrance of Word Pro 9 import filter. More... | |
Private Member Functions | |
| bool | ReadFileHeader () |
| @descr Read the LWP7 object. More... | |
| void | ReadIndex () |
| @descr Read the index objects at the end of the WordProData stream More... | |
| bool | ParseDocument () |
| @descr Parse all document content More... | |
| void | WriteDocHeader () |
| @descr Write xml document header More... | |
| void | WriteDocEnd () |
| @descr Write xml document end More... | |
Private Attributes | |
| LwpSvStream * | m_pDocStream |
| IXFStream * | m_pStream |
| LwpObjectFactory * | m_pObjMgr |
| LwpFileHeader | m_LwpFileHdr |
Reader framework class for Lotus Word Pro 9 file.
Definition at line 68 of file lwp9reader.hxx.
| Lwp9Reader::Lwp9Reader | ( | LwpSvStream * | InputStream, |
| IXFStream * | pStream | ||
| ) |
Definition at line 67 of file lwp9reader.cxx.
References m_pStream.
|
private |
@descr Parse all document content
Definition at line 142 of file lwp9reader.cxx.
References IXFAttrList::Clear(), LwpChangeMgr::ConvertAllChange(), LwpObject::DoRegisterStyle(), IXFStream::EndElement(), IXFStream::GetAttrList(), LwpDocument::GetDocData(), LwpFileHeader::GetDocID(), LwpGlobalMgr::GetInstance(), LwpGlobalMgr::GetLwpChangeMgr(), LwpGlobalMgr::GetXFStyleManager(), m_LwpFileHdr, m_pStream, LwpObjectID::obj(), LwpDocData::Parse(), LwpDocument::Parse(), RegisteArrowStyles(), IXFStream::StartElement(), XFStyleManager::ToXml(), WriteDocEnd(), and WriteDocHeader().
Referenced by Read().
| bool Lwp9Reader::Read | ( | ) |
@descr The entrance of Word Pro 9 import filter.
Definition at line 77 of file lwp9reader.cxx.
References LwpGlobalMgr::DeleteInstance(), LwpGlobalMgr::GetInstance(), LwpGlobalMgr::GetLwpObjFactory(), LwpFileHeader::m_nFileRevision, m_pDocStream, m_pObjMgr, ParseDocument(), ReadFileHeader(), ReadIndex(), and SAL_WARN.
Referenced by ReadWordproFile().
|
private |
@descr Read the LWP7 object.
Definition at line 110 of file lwp9reader.cxx.
References LwpSvStream::CheckSeek(), LwpObjectHeader::GetSize(), LwpSvStream::LWP_STREAM_BASE, m_LwpFileHdr, LwpFileHeader::m_nFileRevision, m_pDocStream, pos, LwpObjectHeader::Read(), LwpFileHeader::Read(), and LwpSvStream::Tell().
Referenced by Read().
|
private |
@descr Read the index objects at the end of the WordProData stream
Definition at line 130 of file lwp9reader.cxx.
References LwpFileHeader::GetRootIndexOffset(), LwpSvStream::LWP_STREAM_BASE, m_LwpFileHdr, m_pDocStream, m_pObjMgr, LwpObjectFactory::ReadIndex(), LwpSvStream::Seek(), and LwpSvStream::Tell().
Referenced by Read().
|
private |
@descr Write xml document end
Definition at line 216 of file lwp9reader.cxx.
References IXFStream::EndDocument(), IXFStream::EndElement(), and m_pStream.
Referenced by ParseDocument().
|
private |
@descr Write xml document header
Definition at line 182 of file lwp9reader.cxx.
References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), IXFStream::GetAttrList(), m_pStream, IXFStream::StartDocument(), and IXFStream::StartElement().
Referenced by ParseDocument().
|
private |
Definition at line 77 of file lwp9reader.hxx.
Referenced by ParseDocument(), ReadFileHeader(), and ReadIndex().
|
private |
Definition at line 74 of file lwp9reader.hxx.
Referenced by Read(), ReadFileHeader(), and ReadIndex().
|
private |
Definition at line 76 of file lwp9reader.hxx.
Referenced by Read(), and ReadIndex().
|
private |
Definition at line 75 of file lwp9reader.hxx.
Referenced by ParseDocument(), WriteDocEnd(), and WriteDocHeader().