LibreOffice Module sw (master) 1
|
The writer class that gets called for the WW8 filter. More...
#include <wrtww8.hxx>
Public Member Functions | |
SwWW8Writer (std::u16string_view rFltName, const OUString &rBaseURL) | |
virtual | ~SwWW8Writer () override |
virtual ErrCode | WriteStorage () override |
virtual ErrCode | WriteMedium (SfxMedium &) override |
bool | InitStd97CodecUpdateMedium (::msfilter::MSCodec_Std97 &rCodec) |
virtual ErrCode | Write (SwPaM &, SfxMedium &, const OUString *) override |
SfxMedium * | GetMedia () |
IDocumentSettingAccess & | getIDocumentSettingAccess () |
const IDocumentSettingAccess & | getIDocumentSettingAccess () const |
virtual ErrCode | Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) override |
virtual ErrCode | Write (SwPaM &, SotStorage &, const OUString *) override |
Public Member Functions inherited from StgWriter | |
StgWriter () | |
virtual bool | IsStgWriter () const override |
virtual ErrCode | Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) override |
virtual ErrCode | Write (SwPaM &, SotStorage &, const OUString *) override |
SotStorage & | GetStorage () const |
Public Member Functions inherited from Writer | |
Writer () | |
virtual | ~Writer () override |
virtual ErrCode | Write (SwPaM &, SfxMedium &, const OUString *) |
ErrCode | Write (SwPaM &, SvStream &, const OUString *) |
virtual ErrCode | Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) |
virtual ErrCode | Write (SwPaM &, SotStorage &, const OUString *) |
virtual void | SetupFilterOptions (SfxMedium &rMedium) |
virtual bool | IsStgWriter () const |
void | SetShowProgress (bool bFlag) |
const OUString * | GetOrigFileName () const |
const SwAsciiOptions & | GetAsciiOptions () const |
void | SetAsciiOptions (const SwAsciiOptions &rOpt) |
const OUString & | GetBaseURL () const |
sal_Int32 | FindPos_Bkmk (const SwPosition &rPos) const |
void | CreateBookmarkTable () |
bool | GetBookmarks (const SwContentNode &rNd, sal_Int32 nStt, sal_Int32 nEnd, std::vector< const ::sw::mark::IMark * > &rArr) |
bool | CopyLocalFileToINet (OUString &rFileNm) |
void | SetStream (SvStream *const pStream) |
SvStream & | Strm () |
void | SetOrganizerMode (bool bSet) |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Static Public Member Functions | |
static void | InsUInt16 (ww::bytes &rO, sal_uInt16 n) |
static void | InsUInt32 (ww::bytes &rO, sal_uInt32 n) |
static void | InsAsString16 (ww::bytes &rO, const OUString &rStr) |
static void | InsAsString8 (ww::bytes &O, std::u16string_view rStr, rtl_TextEncoding eCodeSet) |
static sal_uLong | FillUntil (SvStream &rStrm, sal_uLong nEndPos=0) |
static void | FillCount (SvStream &rStrm, sal_uLong nCount) |
static void | WriteShort (SvStream &rStrm, sal_Int16 nVal) |
static void | WriteShort (SvStream &rStrm, sal_uLong nPos, sal_Int16 nVal) |
static void | WriteLong (SvStream &rStrm, sal_Int32 nVal) |
static void | WriteLong (SvStream &rStrm, sal_uLong nPos, sal_Int32 nVal) |
static void | WriteString16 (SvStream &rStrm, const OUString &rStr, bool bAddZero) |
static void | WriteString8 (SvStream &rStrm, std::u16string_view rStr, bool bAddZero, rtl_TextEncoding eCodeSet) |
static void | WriteString_xstz (SvStream &rStrm, const OUString &rStr, bool bAddZero) |
Static Public Member Functions inherited from Writer | |
static std::shared_ptr< SwUnoCursor > | NewUnoCursor (SwDoc &rDoc, SwNodeOffset const nStartIdx, SwNodeOffset const nEndIdx) |
Private Member Functions | |
SwWW8Writer (const SwWW8Writer &)=delete | |
SwWW8Writer & | operator= (const SwWW8Writer &)=delete |
ErrCode | WriteStorageImpl () |
Private Attributes | |
WW8Export * | m_pExport |
SfxMedium * | mpMedium |
Friends | |
void | WW8_WrtRedlineAuthor::Write (Writer &rWrt) |
Additional Inherited Members | |
Public Attributes inherited from Writer | |
SwDoc * | m_pDoc |
SwPaM * | m_pOrigPam |
std::shared_ptr< SwUnoCursor > | m_pCurrentPam |
bool | m_bWriteAll: 1 |
bool | m_bShowProgress: 1 |
bool | m_bWriteClipboardDoc: 1 |
bool | m_bWriteOnlyFirstTable: 1 |
bool | m_bASCII_ParaAsCR: 1 |
bool | m_bASCII_ParaAsBlank: 1 |
bool | m_bASCII_NoLastLineEnd: 1 |
bool | m_bUCS2_WithStartChar: 1 |
bool | m_bExportParagraphNumbering: 1 |
bool | m_bBlock: 1 |
bool | m_bOrganizerMode: 1 |
bool | m_bHideDeleteRedlines: 1 |
Protected Member Functions inherited from StgWriter | |
virtual ErrCode | WriteStream () override |
virtual ErrCode | WriteStorage ()=0 |
virtual ErrCode | WriteMedium (SfxMedium &)=0 |
virtual ErrCode | Write (SwPaM &, SfxMedium &, const OUString *) |
ErrCode | Write (SwPaM &, SvStream &, const OUString *) |
virtual ErrCode | Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) |
virtual ErrCode | Write (SwPaM &, SotStorage &, const OUString *) |
Protected Member Functions inherited from Writer | |
void | ResetWriter () |
bool | CopyNextPam (SwPaM **) |
void | PutNumFormatFontsInAttrPool () |
void | PutEditEngFontsInAttrPool () |
virtual ErrCode | WriteStream ()=0 |
void | SetBaseURL (const OUString &rURL) |
IDocumentSettingAccess & | getIDocumentSettingAccess () |
const IDocumentSettingAccess & | getIDocumentSettingAccess () const |
IDocumentStylePoolAccess & | getIDocumentStylePoolAccess () |
const IDocumentStylePoolAccess & | getIDocumentStylePoolAccess () const |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from StgWriter | |
tools::SvRef< SotStorage > | m_pStg |
css::uno::Reference< css::embed::XStorage > | m_xStg |
Protected Attributes inherited from Writer | |
const OUString * | m_pOrigFileName |
The writer class that gets called for the WW8 filter.
Definition at line 938 of file wrtww8.hxx.
SwWW8Writer::SwWW8Writer | ( | std::u16string_view | rFltName, |
const OUString & | rBaseURL | ||
) |
Definition at line 4026 of file wrtww8.cxx.
References FILTER_WW8, and Writer::SetBaseURL().
|
overridevirtual |
Definition at line 4035 of file wrtww8.cxx.
|
privatedelete |
Definition at line 935 of file wrtww8.cxx.
References nCount, rStrm, and SvStream::WriteBytes().
Referenced by FillUntil(), WW8Export::OutOverrideListTab(), SwWW8WrGrf::Write(), wwFont::Write(), and WW8_WrPlcSubDoc::WriteGenericPlc().
Definition at line 950 of file wrtww8.cxx.
References FillCount(), rStrm, and SvStream::Tell().
Referenced by WW8Export::StoreDoc1(), and WW8_WrPlcPn::WriteFkps().
IDocumentSettingAccess & Writer::getIDocumentSettingAccess | ( | ) |
Definition at line 400 of file writer.cxx.
Referenced by WW8Export::ExportDopTypography().
const IDocumentSettingAccess & Writer::getIDocumentSettingAccess | ( | ) | const |
Definition at line 401 of file writer.cxx.
References Writer::m_pImpl.
|
inline |
Definition at line 987 of file wrtww8.hxx.
References mpMedium.
Referenced by SwBasicEscherEx::GetBasePath(), and SwBasicEscherEx::IsRelUrl().
bool SwWW8Writer::InitStd97CodecUpdateMedium | ( | ::msfilter::MSCodec_Std97 & | rCodec | ) |
Definition at line 3489 of file wrtww8.cxx.
References SfxItemSet::ClearItem(), msfilter::MSCodec97::GetEncryptionData(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), SfxUnoAnyItem::GetValue(), CntUnencodedStringItem::GetValue(), msfilter::MSCodec97::InitCodec(), msfilter::MSCodec_Std97::InitKey(), mpMedium, and SfxItemSet::Put().
Referenced by WW8Export::ExportDocument_Impl().
|
static |
Definition at line 1729 of file wrtww8.cxx.
References InsUInt16(), and n.
Referenced by WW8AttributeOutput::StartStyle(), SwBasicEscherEx::WriteGrfFlyFrame(), WriteString16(), and WriteString_xstz().
|
static |
Definition at line 1736 of file wrtww8.cxx.
References OUStringToOString().
Referenced by WriteString8().
|
static |
Definition at line 1711 of file wrtww8.cxx.
References n.
Referenced by WW8Export::DisallowInheritingOutlineNumbering(), WW8AttributeOutput::FieldVanish(), InsAsString16(), InsertSpecialChar(), WW8Export::InsUInt16(), WW8Export::Out_BorderLine(), WW8Export::OutputLinkedOLE(), WW8AttributeOutput::ParaNumRule_Impl(), WW8AttributeOutput::SectFootnoteEndnotePr(), WW8AttributeOutput::SectionBiDi(), WW8AttributeOutput::SectionFormProtection(), WW8AttributeOutput::SectionLineNumbering(), WW8AttributeOutput::SectionPageBorders(), WW8AttributeOutput::SectionPageNumbering(), WW8AttributeOutput::SectionTitlePage(), WW8AttributeOutput::SectionType(), WW8AttributeOutput::StartStyle(), WW8AttributeOutput::StartStyleProperties(), WW8AttributeOutput::TableCellBorders(), WW8AttributeOutput::TableDefaultBorders(), WW8AttributeOutput::TextVerticalAdjustment(), WW8Export::WriteFootnoteBegin(), SwBasicEscherEx::WriteGrfFlyFrame(), WriteString16(), WriteString_xstz(), and WW8Export::WriteStringAsPara().
|
static |
Definition at line 1719 of file wrtww8.cxx.
References n.
Referenced by InsertSpecialChar(), WW8Export::InsUInt32(), and WW8Export::OutputLinkedOLE().
|
privatedelete |
|
overridevirtual |
Reimplemented from StgWriter.
|
overridevirtual |
Reimplemented from Writer.
Definition at line 3923 of file wrtww8.cxx.
References mpMedium, and StgWriter::Write().
|
overridevirtual |
Reimplemented from StgWriter.
Definition at line 492 of file writer.cxx.
|
inlinestatic |
Definition at line 972 of file wrtww8.hxx.
References rStrm, and SvStream::WriteInt32().
Referenced by InsertSpecialChar(), WW8Export::OutListNamesTab(), WW8AttributeOutput::StartURL(), WW8_WrPlc1::Write(), sw::WW8FFData::Write(), WW8_WrtBookmarks::Write(), WW8Export::WriteAsStringTable(), wwFontHelper::WriteFontTable(), WW8_WrPlcSubDoc::WriteGenericPlc(), SwBasicEscherEx::WriteHyperlinkWithinFly(), WriteLong(), WW8_WrPct::WritePc(), WW8_WrPlcPn::WritePlc(), and PlcDrawObj::WritePlc().
Definition at line 1703 of file wrtww8.cxx.
References nPos, rStrm, SvStream::Seek(), SvStream::Tell(), and WriteLong().
|
inlinestatic |
Definition at line 969 of file wrtww8.hxx.
References rStrm, and SvStream::WriteInt16().
Referenced by WW8_WrPlcPn::AppendFkpEntry(), WW8AttributeOutput::EndStyles(), WW8AttributeOutput::StartURL(), WW8Export::WriteAsStringTable(), WW8_WrPlcSubDoc::WriteGenericPlc(), WW8_WrPct::WritePc(), PlcDrawObj::WritePlc(), and WriteShort().
Definition at line 1695 of file wrtww8.cxx.
References nPos, rStrm, SvStream::Seek(), SvStream::Tell(), and WriteShort().
|
overridevirtual |
Implements StgWriter.
Definition at line 3784 of file wrtww8.cxx.
References aArguments, ERRCODE_IO_CANTWRITE, ERRCODE_IO_GENERAL, tools::SvRef< typename T >::get(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), comphelper::getProcessComponentContext(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), SfxUnoAnyItem::GetValue(), idx, StgWriter::m_pStg, mpMedium, and WriteStorageImpl().
Referenced by WriteMedium().
|
private |
Definition at line 3886 of file wrtww8.cxx.
References SwViewShell::CalcLayout(), SwNodes::Count(), EndProgress(), err, ERRCODE_NONE, MSWordExportBase::ExportDocument(), IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::GetDocShell(), SfxMedium::GetFilter(), SwDoc::getIDocumentLayoutAccess(), SwDoc::GetNodes(), Writer::m_bWriteAll, Writer::m_pCurrentPam, Writer::m_pDoc, m_pExport, Writer::m_pOrigPam, mpMedium, and StartProgress().
Referenced by WriteStorage().
|
static |
Definition at line 1746 of file wrtww8.cxx.
References InsAsString16(), InsUInt16(), rStrm, and SvStream::WriteBytes().
Referenced by WW8Export::DoFormText(), WW8AttributeOutput::HiddenField(), InsertSpecialChar(), WW8AttributeOutput::NumberingLevel(), WW8Export::OutListNamesTab(), WW8Export::OutputField(), WW8Export::OutSwString(), WW8AttributeOutput::RefField(), WW8AttributeOutput::SetField(), WW8AttributeOutput::StartURL(), wwFont::Write(), WW8Export::WriteAsStringTable(), WW8AttributeOutput::WriteExpand(), WW8_WrPlcSubDoc::WriteGenericPlc(), SwBasicEscherEx::WriteHyperlinkWithinFly(), and sw::WW8FFData::WriteOUString().
|
static |
Definition at line 1769 of file wrtww8.cxx.
References InsAsString8(), rStrm, and SvStream::WriteBytes().
Referenced by WW8AttributeOutput::StartURL(), MSOPBString::Write(), SwWW8WrGrf::WriteGrfFromGrfNode(), and SwBasicEscherEx::WriteHyperlinkWithinFly().
|
static |
Definition at line 1759 of file wrtww8.cxx.
References InsAsString16(), InsUInt16(), rStrm, and SvStream::WriteBytes().
Referenced by WW8Export::WriteFormData().
|
friend |
|
private |
Definition at line 945 of file wrtww8.hxx.
Referenced by WriteStorageImpl().
|
private |
Definition at line 946 of file wrtww8.hxx.
Referenced by GetMedia(), InitStd97CodecUpdateMedium(), Write(), WriteStorage(), and WriteStorageImpl().