37 :
oox::
core::XmlFilterBase( xContext )
44 uno::Reference< uno::XInterface > xIfc(
getModel(), uno::UNO_QUERY );
55 if (pViewShell !=
nullptr)
69 bool bDocm = aFilterName.endsWith(
"VBA");
76 uno::Reference<document::XStorageBasedDocument> xStorageBasedDocument(
78 if (xStorageBasedDocument.is())
80 uno::Reference<embed::XStorage> xDocumentStorage =
81 xStorageBasedDocument->getDocumentStorage();
82 if (xDocumentStorage.is() && xDocumentStorage->hasByName(
u"_MS_VBA_Macros"))
87 VclMessageType::Warning, VclButtonsType::OkCancel,
107 *pCurPam->GetPoint() = *aPam.
Start();
119 while ( pCurPam->GetNext() != pCurPam.get() )
120 delete pCurPam->GetNext();
129 return "com.sun.star.comp.Writer.DocxExport";
132extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
134 uno::Sequence<uno::Any>
const& )
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
static bool IsHeadlessModeEnabled()
The physical access to the DOCX document (for writing).
virtual OUString SAL_CALL getImplementationName() override
virtual bool exportDocument() override
DocxExportFilter(const css::uno::Reference< css::uno::XComponentContext > &xContext)
The class that does all the actual DOCX export-related work.
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
ErrCode ExportDocument(bool bWriteAll)
The main function to export the document.
css::uno::Reference< css::frame::XModel3 > GetBaseModel() const
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
SW_DLLPUBLIC void UpdateDataOnActiveSidebarWin()
SW_DLLPUBLIC bool HasActiveSidebarWin() const
virtual void CalcLayout()
const SwPostItMgr * GetPostItMgr() const
SwDocShell * GetDocShell()
utl::MediaDescriptor & getMediaDescriptor() const
const css::uno::Reference< css::frame::XModel > & getModel() const
void commitStorage() const
bool isExportTemplate() const
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Writer_DocxExport_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
bool GoInDoc(SwPaM &rPam, SwMoveFnCollection const &fnMove)
SwMoveFnCollection const & fnMoveBackward
OUString SwResId(TranslateId aId)