20#include <config_features.h>
22#include <officecfg/Office/Common.hxx>
43#include <osl/diagnose.h>
85#define ShellClass_SwDocShell
88#include <com/sun/star/document/UpdateDocMode.hpp>
90#include <com/sun/star/script/XLibraryContainer.hpp>
91#include <com/sun/star/document/XDocumentProperties.hpp>
92#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
93#include <com/sun/star/sdb/DatabaseContext.hpp>
94#include <com/sun/star/sdb/XDocumentDataSource.hpp>
95#include <com/sun/star/uri/UriReferenceFactory.hpp>
96#include <com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.hpp>
97#include <com/sun/star/frame/XStorable.hpp>
98#include <ooo/vba/XSinkCaller.hpp>
122 uno::Reference<text::XTextRange> const& xInsertPosition)
129 Reader *
const pRead = StartConvertFrom(rMedium, pReader,
nullptr, &aPam);
132 ErrCode const nError = pReader->Read(*pRead);
141 bool bAPICall =
false;
143 bAPICall = pApiItem->GetValue();
145 std::shared_ptr<const SfxFilter> pFlt = rMedium.
GetFilter();
151 VclMessageType::Info, VclButtonsType::Ok,
157 OUString aFileName( rMedium.
GetName() );
167 rpRdr.reset(
new SwReader( rMedium, aFileName, *pPaM ));
168 else if (pCursorShell)
180 if (!pFlt->GetDefaultTemplate().isEmpty())
205 m_xDoc->setDocAccTitle(OUString());
208 if (
auto pSysWin = pFrame1->GetWindow().GetSystemWindow())
210 pSysWin->SetAccessibleName(OUString());
213 SwWait aWait( *
this,
true );
216 SW_MOD()->SetEmbeddedLoadSave(
222 m_xDoc->RemoveAllFormatLanguageDependencies();
224 ErrCode nErr = pRdr->Read( *pRead );
227 if (
m_xDoc.get() != &pRdr->GetDoc())
243 SW_MOD()->SetEmbeddedLoadSave(
false );
248 if (bOk && !
m_xDoc->IsInLoadAsynchron())
264 SwWait aWait( *
this,
true );
281 case SfxObjectCreateMode::INTERNAL:
285 case SfxObjectCreateMode::ORGANIZER:
289 xWrt->SetOrganizerMode(
true );
291 nErr = aWrt.
Write( xWrt );
292 xWrt->SetOrganizerMode(
false );
296 case SfxObjectCreateMode::EMBEDDED:
298 SW_MOD()->SetEmbeddedLoadSave(
true );
301 case SfxObjectCreateMode::STANDARD:
304 if (
m_xDoc->ContainsMSVBasic())
308 m_xDoc->SetContainsMSVBasic(
false );
318 bool bLockedView(
false);
326 nErr = aWrt.
Write( xWrt );
333 SW_MOD()->SetEmbeddedLoadSave(
false );
352 if (!rShell.IsViewLocked())
355 rShell.LockView(
true);
363 pShell->LockView(
false);
368 return std::make_unique<LockAllViewsGuard_Impl>(
GetEditShell());
374 SwWait aWait( *
this,
true );
397 pOldFilter->GetUserData() ==
"CWW6" ||
398 pOldFilter->GetUserData() ==
"WW6" ) )
402 uno::Reference<document::XDocumentPropertiesSupplier> xDPS(
404 uno::Reference<document::XDocumentProperties> xDocProps
405 = xDPS->getDocumentProperties();
406 xDocProps->setTemplateName(OUString());
407 xDocProps->setTemplateURL(OUString());
408 xDocProps->setTemplateDate(::util::DateTime());
417 bool bSaveDS = bHasEmbedded && bURLChanged;
423 bSaveDS = !pNoEmbDS->GetValue();
437 const auto aURLIter = std::find_if(rArgs.begin(), rArgs.end(),
438 [](
const auto&
v) { return v.Name ==
"URL"; });
439 if (aURLIter != rArgs.end())
440 aURLIter->Value >>=
aURL;
446 auto xUri = css::uri::UriReferenceFactory::create(xContext)->parse(
aURL);
448 xUri = css::uri::VndSunStarPkgUrlReferenceFactory::create(xContext)
449 ->createVndSunStarPkgUrlReference(xUri);
451 aURL = xUri->getUriReference() +
"/"
455 bool bCopyTo =
GetCreateMode() == SfxObjectCreateMode::EMBEDDED;
460 bCopyTo = pSaveToItem->GetValue();
463 auto xDatabaseContext = sdb::DatabaseContext::create(xContext);
464 uno::Reference<sdb::XDocumentDataSource> xDataSource(xDatabaseContext->getByName(
aURL),
468 uno::Reference<frame::XStorable> xStorable(xDataSource->getDatabaseDocument(),
500 if (
m_xDoc->ContainsMSVBasic())
504 m_xDoc->SetContainsMSVBasic(
false );
520 const bool bIsModified =
m_xDoc->getIDocumentState().IsModified();
521 m_xDoc->GetIDocumentUndoRedo().LockUndoNoModifiedPosition();
526 SW_MOD()->SetEmbeddedLoadSave(
532 bool bLockedView(
false);
540 nErr = aWrt.
Write( xWrt );
547 m_xDoc->getIDocumentState().SetModified();
548 m_xDoc->GetIDocumentUndoRedo().UnLockUndoNoModifiedPosition();
550 m_xDoc->SetOle2Link( aOldOLELnk );
552 SW_MOD()->SetEmbeddedLoadSave(
false );
557 m_xDoc->cleanupUnoCursorTable();
570 return dynamic_cast<SwSrcView*
>( pViewShell );
575 std::shared_ptr<const SfxFilter> pFlt = rMedium.
GetFilter();
584 VclMessageType::Info, VclButtonsType::Ok,
604 if (
m_xDoc->ContainsMSVBasic())
606 bool bSave = pFlt->GetUserData() ==
"CWW8"
612 OSL_ENSURE( !xStg->GetError(),
"No storage available for storing VBA macros!" );
613 if ( !xStg->GetError() )
617 m_xDoc->SetContainsMSVBasic(
true );
626 if( pFlt->GetUserData() ==
"HTML" )
628#if HAVE_FEATURE_SCRIPTING
634 uno::Reference< XNameAccess > xLib;
635 const Sequence<OUString> aNames = xLibCont->getElementNames();
636 for(
const OUString& rName : aNames)
638 Any aLib = xLibCont->getByName(rName);
642 Sequence<OUString> aModNames = xLib->getElementNames();
643 if(aModNames.hasElements())
656 m_xDoc->getIDocumentStatistics().UpdateDocStat(
false,
true );
668 if( xWriter->IsStgWriter() &&
675 if(
dynamic_cast< const SwWebDocShell *
>(
this ) !=
nullptr )
683 if( SotClipboardFormatId::STARWRITERWEB_8 == nSaveClipId ||
684 SotClipboardFormatId::STARWRITERWEB_60 == nSaveClipId ||
685 SotClipboardFormatId::STARWRITERWEB_50 == nSaveClipId ||
686 SotClipboardFormatId::STARWRITERWEB_40 == nSaveClipId )
688 else if( SotClipboardFormatId::STARWRITERGLOB_8 == nSaveClipId ||
689 SotClipboardFormatId::STARWRITERGLOB_8_TEMPLATE == nSaveClipId ||
690 SotClipboardFormatId::STARWRITERGLOB_60 == nSaveClipId ||
691 SotClipboardFormatId::STARWRITERGLOB_50 == nSaveClipId ||
692 SotClipboardFormatId::STARWRITERGLOB_40 == nSaveClipId )
699 if( nMyType != nSaveType )
715 uno::Reference < beans::XPropertySet > xSet( rMedium.
GetStorage(), uno::UNO_QUERY );
719 catch (
const uno::Exception&)
725 bool bRet =
SaveAs( rMedium );
727 if( nMyType != nSaveType )
743 sItemOpt = pItem->GetValue();
744 if(!sItemOpt.isEmpty())
747 xWriter->SetAsciiOptions( aOpt );
751 SW_MOD()->SetEmbeddedLoadSave(
756 const OUString aFileName( rMedium.
GetName() );
758 bool bSelection =
false;
762 bSelection = pSelectionItem && pSelectionItem->
GetValue();
769 SwWait aWait( *
this,
true );
776 nErrno = aWrt.
Write( xWriter, &aFileName );
798 nErrno = aWrt.
Write( xWriter, &aFileName );
802 SW_MOD()->SetEmbeddedLoadSave(
false );
803 SetError(nErrno ? nErrno : nVBWarning);
819 m_xDoc->getIDocumentState().SetModified();
821 m_xDoc->getIDocumentState().ResetModified();
831 for( sal_Int32
n = aNames.getLength();
n;
n-- )
835 OSL_FAIL(
"Copying of objects didn't work!" );
848 sal_uInt16 nAspect,
bool bOutputForScreen )
852 if ( bResetModified )
859 std::unique_ptr<JobSetup> pOrig;
862 const JobSetup* pCurrentJobSetup =
m_xDoc->getIDocumentDeviceAccess().getJobsetup();
863 if( pCurrentJobSetup )
864 pOrig.reset(
new JobSetup( *pCurrentJobSetup ));
865 m_xDoc->getIDocumentDeviceAccess().setJobsetup( rSetup );
875 const bool bWeb =
dynamic_cast< const SwWebDocShell *
>( this ) !=
nullptr;
882 m_xDoc->getIDocumentDeviceAccess().setJobsetup( *pOrig );
884 if ( bResetModified )
900 aRect.
Move( nMoveX, nMoveY );
901 nMoveX = aRect.
Left() < 0 ? -aRect.
Left() : 0;
902 nMoveY = aRect.
Top() < 0 ? -aRect.
Top() : 0;
903 aRect.
Move( nMoveX, nMoveY );
939 return m_xDoc->getIDocumentDeviceAccess().getPrinter(
false );
944 return m_xDoc->getIDocumentDeviceAccess().getReferenceDevice(
false );
961 if ( nStates & HiddenInformation::RECORDEDCHANGES )
963 if ( !
GetDoc()->getIDocumentRedlineAccess().GetRedlineTable().empty() )
964 nState |= HiddenInformation::RECORDEDCHANGES;
966 if ( nStates & HiddenInformation::NOTES )
968 OSL_ENSURE(
GetWrtShell(),
"No SwWrtShell, no information" );
970 nState |= HiddenInformation::NOTES;
985 case SID_PRINTPREVIEW:
995 if (pSwView->GetWrtShell().GetViewOptions()->getBrowseMode())
1015 case SID_AUTO_CORRECT_DLG:
1019 case SID_SOURCEVIEW:
1023 bool bSourceView =
dynamic_cast<SwSrcView*
>( pCurrView ) !=
nullptr;
1046 case SID_BROWSER_MODE:
1069 if(
dynamic_cast< const SwWebDocShell *
>(
this ) !=
nullptr )
1073 case SID_ATTR_YEAR2000:
1077 static_cast< sal_uInt16
>(
1082 case SID_ATTR_CHAR_FONTLIST:
1087 case SID_MAIL_PREPAREEXPORT:
1092 const ::sfx2::SvBaseLinks& rLnks = rLnkMgr.
GetLinks();
1094 if( !rLnks.empty() )
1099 bRet =
m_xDoc->HasInvisibleContent();
1104 case SID_NOTEBOOKBAR:
1108 u"modules/swriter/ui/");
1115 if (
GetDoc()->getIDocumentRedlineAccess().GetRedlineTable().empty() ||
1121 default: OSL_ENSURE(
false,
"You cannot get here!");
1172 if (!rRedlineAuthor.isEmpty())
1192 const bool bHasDocToStayModified(
m_xDoc->getIDocumentState().IsModified() &&
m_xDoc->getIDocumentLinksAdministration().LinksUpdated() );
1199 if(
auto pSrcView =
dynamic_cast<SwSrcView*
>( pShell) )
1200 pSrcView->Load(
this);
1204 if ( bHasDocToStayModified && !
m_xDoc->getIDocumentState().IsModified() )
1206 m_xDoc->getIDocumentState().SetModified();
1214 m_xDoc->getIDocumentLinksAdministration().GetLinkManager().CancelTransfers();
1290uno::Reference< frame::XController >
1293 css::uno::Reference< css::frame::XController > aRet;
1302 "OnPageCountChange",
1304 "OnMailMergeFinished",
1306 "OnFieldMergeFinished",
1314 sal_Int32 nLen = aRet.getLength();
1315 aRet.realloc(nLen + 6);
1316 OUString* pNames = aRet.getArray();
1378 if (pRedlineProtectItem
1379 && pRedlineProtectItem->
GetValue() == aPasswd.hasElements())
1382 if (!rNewPassword.isEmpty())
1387 Sequence< sal_Int8 > aNewPasswd;
1406 if (pRedlineProtectItem
1407 && pRedlineProtectItem->
GetValue() == aPasswdHash.hasElements())
1409 rPasswordHash = aPasswdHash;
@ GLOBAL_DOCUMENT_SAVE_LINKS
@ DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
static bool IsHeadlessModeEnabled()
sal_uInt16 GetValue() const
virtual void setJobsetup(const JobSetup &rJobSetup)=0
Sets the Jobsetup.
virtual void setPrinter(SfxPrinter *pP, bool bDeleteOld, bool bCallPrtDataChanged)=0
Set the printer at the document.
virtual void UpdateLinks()=0
#i42634# Moved common code of SwReader::Read() and SwDocShell::UpdateLinks() to new SwDoc::UpdateLink...
virtual void SetRedlinePassword(const css::uno::Sequence< sal_Int8 > &rNewPassword)=0
virtual const css::uno::Sequence< sal_Int8 > & GetRedlinePassword() const =0
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
virtual void set(DocumentSettingId id, bool value)=0
Set the specified document setting.
static OUString encode(std::u16string_view rText, Part ePart, EncodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
OUString const & GetPrinterName() const
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
const JobSetup & GetJobSetup() const
void setSotStorageRef(const tools::SvRef< SotStorage > &pStgRef)
const tools::SvRef< SotStorage > & getSotStorageRef() const
void SetTemplateName(const OUString &rDir)
SwgReaderOption & GetReaderOpt()
virtual SwReaderType GetReaderType()
void SetState(const SfxItemSet &rSet)
void SetValue(bool const bTheValue)
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void DisableItem(sal_uInt16 nWhich)
const std::shared_ptr< const SfxFilter > & GetFilter() const
OUString GetBaseURL(bool bForSaving=false)
const INetURLObject & GetURLObject() const
SfxItemSet & GetItemSet() const
bool IsSkipImages() const
const OUString & GetName() const
const css::uno::Sequence< css::beans::PropertyValue > & GetArgs() const
css::uno::Reference< css::embed::XStorage > GetStorage(bool bCreateTempFile=true)
SvStream * GetOutStream()
css::uno::Reference< css::embed::XStorage > GetOutputStorage()
comphelper::EmbeddedObjectContainer & GetEmbeddedObjectContainer() const
void SetError(ErrCode rErr)
virtual void CancelTransfers()
css::uno::Reference< css::script::XLibraryContainer > GetBasicContainer()
virtual SfxObjectShell * GetObjectShell() override
virtual css::uno::Sequence< OUString > GetEventNames()
virtual bool SaveAs(SfxMedium &rMedium)
bool IsEnableSetModified() const
virtual void SetVisArea(const tools::Rectangle &rVisArea)
virtual bool SaveCompleted(const css::uno::Reference< css::embed::XStorage > &xStorage)
bool isExportLocked() const
void FinishedLoading(SfxLoadedFlags nWhich=SfxLoadedFlags::ALL)
SfxMedium * GetMedium() const
css::uno::Reference< css::frame::XModel3 > GetModel() const
virtual HiddenInformation GetHiddenInformationState(HiddenInformation nStates)
void SetupStorage(const css::uno::Reference< css::embed::XStorage > &xStorage, sal_Int32 nVersion, bool bTemplate) const
const tools::Rectangle & GetVisArea() const
void EnableSetModified(bool bEnable=true)
SfxObjectCreateMode GetCreateMode() const
virtual comphelper::EmbeddedObjectContainer & getEmbeddedObjectContainer() const override
bool IsInPlaceActive() const
SfxItemPool & GetPool() const
void SetViewShell_Impl(SfxViewShell *pView)
SfxViewShell * GetViewShell() const
SfxBindings & GetBindings()
static SAL_WARN_UNUSED_RESULT SfxViewFrame * GetNext(const SfxViewFrame &rPrev, const SfxObjectShell *pDoc=nullptr, bool bOnlyVisible=true)
static SAL_WARN_UNUSED_RESULT SfxViewFrame * GetFirst(const SfxObjectShell *pDoc=nullptr, bool bOnlyVisible=true)
css::uno::Reference< css::frame::XController > GetController() const
SfxViewFrame & GetViewFrame() const
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
SfxInPlaceClient * GetIPClient() const
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
tools::Long AdjustWidth(tools::Long n)
constexpr tools::Long Width() const
static OUString GetFormatMimeType(SotClipboardFormatId nFormat)
sal_Int32 GetVersion() const
static SVL_DLLPUBLIC void GetHashPassword(css::uno::Sequence< sal_Int8 > &rPassHash, const char *pPass, sal_uInt32 nLen)
static SvtFilterOptions & Get()
bool IsLoadWordBasicStorage() const
void ReadUserData(std::u16string_view)
SwRect FindPageFrameRect() const
void Push()
store a copy of the current cursor on the cursor stack
bool EndAllTableBoxEdit()
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
const OUString & getEmbeddedName() const
static void StoreEmbeddedDataSource(const css::uno::Reference< css::frame::XStorable > &xStorable, const css::uno::Reference< css::embed::XStorage > &xStorage, const OUString &rStreamRelPath, const OUString &rOwnURL, bool bCopyTo=false)
std::vector< SwViewShell * > m_aViewWasUnLocked
~LockAllViewsGuard_Impl()
LockAllViewsGuard_Impl(SwViewShell *pViewShell)
virtual void UpdateLinks() override
#i42634# Overwrites SfxObjectShell::UpdateLinks This new function is necessary to trigger update of l...
virtual void SetProtectionPassword(const OUString &rPassword) override
virtual void CancelTransfers() override
Cancel transfer (called from SFX).
static OUString GetEventName(sal_Int32 nId)
rtl::Reference< SwDoc > m_xDoc
Document.
void CallAutomationDocumentEventSinks(const OUString &Method, css::uno::Sequence< css::uno::Any > &Arguments)
rtl::Reference< SfxStyleSheetBasePool > m_xBasePool
Passing through for formats.
virtual const ::sfx2::IXmlIdRegistry * GetXmlIdRegistry() const override
void SetView(SwView *pVw)
Set View for actions via Shell.
std::unique_ptr< comphelper::EmbeddedObjectContainer > m_pOLEChildList
virtual void OnDocumentPrinterChanged(Printer *pNewPrinter) override
virtual bool HasChangeRecordProtection() const override
SwFEShell * GetFEShell()
For Core - it knows the DocShell but not the WrtShell!
virtual Printer * GetDocumentPrinter() override
virtual bool IsChangeRecording() const override
passwword protection for Writer (derived from SfxObjectShell) see also: FN_REDLINE_ON,...
virtual bool Save() override
global IO.
virtual HiddenInformation GetHiddenInformationState(HiddenInformation nStates) override
#i20883# Digital Signatures and Encryption
SAL_DLLPRIVATE void RemoveLink()
css::uno::Reference< ooo::vba::XSinkCaller > mxAutomationDocumentEventsCaller
css::uno::Reference< css::frame::XController > GetController()
void RegisterAutomationDocumentObject(css::uno::Reference< ooo::vba::word::XDocument > const &xDocument)
virtual OutputDevice * GetDocumentRefDev() override
virtual bool GetProtectionHash(css::uno::Sequence< sal_Int8 > &rPasswordHash) override
const SwView * GetView() const
void GetState(SfxItemSet &)
sal_Int16 m_nUpdateDocMode
contains the css::document::UpdateDocMode
SwEditShell * GetEditShell()
virtual SAL_DLLPRIVATE bool SaveCompleted(const css::uno::Reference< css::embed::XStorage > &xStorage) override
SAL_DLLPRIVATE void RemoveOLEObjects()
SwWrtShell * GetWrtShell()
Access to the SwWrtShell belonging to SwView.
SAL_DLLPRIVATE void CalcLayoutForOLEObjects()
const tools::Rectangle & GetVisArea() const
SwView * m_pView
For "historical reasons" nothing can be done without the WrtShell.
virtual SfxStyleSheetBasePool * GetStyleSheetPool() override
For Style PI.
SAL_DLLPRIVATE void AddLink()
Methods for access to doc.
std::unique_ptr< FontList > m_pFontList
Current Fontlist.
virtual SAL_DLLPRIVATE bool ConvertFrom(SfxMedium &rMedium) override
virtual SAL_DLLPRIVATE bool SaveAs(SfxMedium &rMedium) override
std::unique_ptr< sfx2::StyleManager > m_pStyleManager
virtual std::unique_ptr< LockAllViewsGuard > LockAllViews() override
virtual void SetModified(bool=true) override
void LoadingFinished()
linked graphics are now loaded on demand.
virtual void SetChangeRecording(bool bActivate, bool bLockAllViews=false) override
virtual sfx2::StyleManager * GetStyleManager() override
virtual SAL_DLLPRIVATE void Draw(OutputDevice *, const JobSetup &, sal_uInt16 nAspect, bool bOutputToWindow) override
OLE-stuff.
virtual css::uno::Sequence< OUString > GetEventNames() override
Reader * StartConvertFrom(SfxMedium &rMedium, SwReaderPtr &rpRdr, SwCursorShell const *pCursorSh=nullptr, SwPaM *pPaM=nullptr)
For inserting document.
virtual void SetVisArea(const tools::Rectangle &rRect) override
OLE-stuff.
void RegisterAutomationDocumentEventsCaller(css::uno::Reference< ooo::vba::XSinkCaller > const &xCaller)
css::uno::Reference< ooo::vba::word::XDocument > mxAutomationDocumentObject
virtual SAL_DLLPRIVATE bool ConvertTo(SfxMedium &rMedium) override
SwDoc * GetDoc()
returns Doc. But be careful!
IDocumentDeviceAccess const & getIDocumentDeviceAccess() const
IDocumentLinksAdministration const & getIDocumentLinksAdministration() const
SwFootnoteIdxs & GetFootnoteIdxs()
IDocumentSettingAccess const & getIDocumentSettingAccess() const
virtual void CalcLayout() override
To enable set up of StartActions and EndActions.
void StartAllAction()
For all views of this document.
void ValidateAllParagraphSignatures(bool updateDontRemove)
Validate all paragraph signatures.
RedlineFlags GetRedlineFlags() const
For Redlining.
void ClassifyDocPerHighestParagraphClass()
Ensure that the classification of the doc is never lower than the paragraph with the highest classifi...
Marks a node in the document model.
SwOLENode * GetOLENode()
Inline methods from Node.hxx.
const SwOutlineNodes & GetOutLineNds() const
Array of all OutlineNodes.
bool IsOLEObjectDeleted() const
bool IsOLESizeInvalid() const
const SwOLEObj & GetOLEObj() const
bool IsInGlobalDocSection() const
const OUString & GetCurrentPersistName() const
PaM is Point and Mark: a selection of the document model.
SwNode & GetPointNode() const
SW_DLLPUBLIC void UpdateDataOnActiveSidebarWin()
SW_DLLPUBLIC bool HasActiveSidebarWin() const
Of course Writer needs its own rectangles.
tools::Rectangle SVRect() const
void SaveContentTo(SfxMedium &rMed)
bool IsViewLocked() const
static void PrtOle2(SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData &rOptions, vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect, bool bOutputForScreen)
const IDocumentRedlineAccess & getIDocumentRedlineAccess() const
Provides access to the document redline interface.
SwWrtShell & GetWrtShell() const
const Size & GetDocSz() const
SwPostItMgr * GetPostItMgr()
const OUString & GetRedlineAuthor() const
void SetVisArea(const tools::Rectangle &, bool bUpdateScrollbar=true)
ErrCode Write(WriterRef const &rxWriter, const OUString *=nullptr)
void SetRedlineFlagsAndCheckInsMode(RedlineFlags eMode)
bool Pop(SwCursorShell::PopMode, ::std::optional< SwCallLink > &roLink)
const SwView & GetView() const
void SetASCIIOpts(const SwAsciiOptions &rOpts)
bool MoveEmbeddedObject(const OUString &rName, EmbeddedObjectContainer &)
void setUserAllowsLinkUpdate(bool bNew)
const SvBaseLinks & GetLinks() const
static bool StateMethod(SfxBindings &rBindings, std::u16string_view rUIFile, bool bReloadNotebookbar=false)
ring_container GetRingContainer()
#define FN_OUTLINE_TO_CLIPBOARD
#define FN_REDLINE_ACCEPT_ALL
#define FN_ABSTRACT_NEWDOC
#define FN_NEW_GLOBAL_DOC
#define FN_ABSTRACT_STARIMPRESS
#define FN_REDLINE_REJECT_ALL
#define FN_OUTLINE_TO_IMPRESS
static const char * s_EventNames[]
IMPL_LINK(SwDocShell, Ole2ModifiedHdl, bool, bNewStatus, void)
static SwSrcView * lcl_GetSourceView(SwDocShell const *pSh)
sal_Int32 const s_nEvents(SAL_N_ELEMENTS(s_EventNames))
std::unique_ptr< SwReader, o3tl::default_delete< SwReader > > SwReaderPtr
void InitDrawModelAndDocShell(SwDocShell *pSwDocShell, SwDrawModel *pSwDrawDocument)
SFX_IMPL_SUPERCLASS_INTERFACE(DrawDocShell, SfxObjectShell)
ErrCode SaveOrDelMSVBAStorage(SfxObjectShell &rDoc, SotStorage &rStor, bool bSaveInto, const OUString &rStorageName)
ErrCode GetSaveWarningOfMSVBAStorage(SfxObjectShell &rDocS)
constexpr OUStringLiteral FILTER_WW8
WinWord 97 filter.
constexpr OUStringLiteral FILTER_TEXT_DLG
text filter with encoding dialog
constexpr OUStringLiteral FILTER_XML
XML filter.
#define FILTER_XMLVW
XML filter.
#define FILTER_XMLV
XML filter.
#define SAL_N_ELEMENTS(arr)
void GetWriter(std::u16string_view rFltName, const OUString &rBaseURL, WriterRef &xRet)
Return writer based on the name.
Reader * GetReader(const OUString &rFltName)
Return reader based on the name.
Reference< XComponentContext > getProcessComponentContext()
bool AllDrawObjsOnPage(SwDoc &p_rDoc)
method to check, if given Writer document contains only drawing objects, which are completely on its ...
SFX_IMPL_OBJECTFACTORY(DrawDocShell, SvGlobalName(SO3_SIMPRESS_CLASSID), "simpress") void DrawDocShell
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
bool XTextRangeToSwPaM(SwUnoInternalPaM &rToFill, const uno::Reference< text::XTextRange > &xTextRange, ::sw::TextRangeMode const eMode)
#define ERR_SWG_WRITE_ERROR
#define WARN_SWG_HTML_NO_MACROS
OUString SwResId(TranslateId aId)
constexpr SwTwips DOCUMENTBORDER
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
void GetXMLWriter(std::u16string_view, const OUString &rBaseURL, WriterRef &xRet)