44 uno::Reference<io::XStream>
xStream = aMediaDesc.getUnpackedValueOrDefault(
50 uno::Reference<uno::XInterface> xIfc(
m_xSrcDoc, uno::UNO_QUERY);
65 if (pViewShell !=
nullptr)
76 *pCurPam->GetPoint() = *aPam.
Start();
81 RtfExport aExport(
this, *pDoc, pCurPam, aPam,
nullptr);
86 while (pCurPam->GetNext() != pCurPam.get())
87 delete pCurPam->GetNext();
108 return {
"com.sun.star.comp.Writer.RtfExport" };
113extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
115 uno::Sequence<uno::Any>
const& )
Reference< XComponentContext > m_xCtx
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
ErrCode ExportDocument(bool bWriteAll)
The main function to export the document.
The physical access to the RTF document (for writing).
RtfExportFilter(css::uno::Reference< css::uno::XComponentContext > xCtx)
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
OUString SAL_CALL getImplementationName() override
void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
~RtfExportFilter() override
sal_Bool SAL_CALL filter(const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor) override
void SAL_CALL cancel() override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Reference< css::lang::XComponent > m_xSrcDoc
The class that does all the actual RTF export-related work.
SwDoc * GetDoc()
returns Doc. But be careful!
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
std::shared_ptr< SwUnoCursor > CreateUnoCursor(const SwPosition &rPos, bool bTableCursor=false)
SwDocShell * GetDocShell()
SwNode & GetEndOfContent() const
Regular ContentSection (i.e. the BodyText).
PaM is Point and Mark: a selection of the document model.
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
bool Move(SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent)
Movement of cursor.
const SwPosition * End() const
const SwPosition * Start() const
virtual void CalcLayout()
void SetStream(SvStream *const pStream)
static std::unique_ptr< SvStream > CreateStream(const OUString &rFileName, StreamMode eOpenMode, css::uno::Reference< css::awt::XWindow > xParentWin=nullptr)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
bool GoInDoc(SwPaM &rPam, SwMoveFnCollection const &fnMove)
SwMoveFnCollection const & fnMoveBackward
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Writer_RtfExport_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)