LibreOffice Module sw (master)  1
Functions
docsh2.cxx File Reference
#include <config_features.h>
#include <com/sun/star/drawing/ModuleDispatcher.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp>
#include <ooo/vba/XSinkCaller.hpp>
#include <ooo/vba/word/XDocument.hpp>
#include <comphelper/fileformat.h>
#include <comphelper/processfactory.hxx>
#include <sal/log.hxx>
#include <edtwin.hxx>
#include <hintids.hxx>
#include <tools/urlobj.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/configmgr.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <svl/lckbitem.hxx>
#include <svl/eitem.hxx>
#include <svl/macitem.hxx>
#include <svl/zforlist.hxx>
#include <svl/zformat.hxx>
#include <unotools/pathoptions.hxx>
#include <vcl/transfer.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/dinfdlg.hxx>
#include <sfx2/request.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/new.hxx>
#include <sfx2/notebookbar/SfxNotebookBar.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/evntconf.hxx>
#include <svtools/sfxecode.hxx>
#include <svtools/ehdl.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/docfilt.hxx>
#include <svx/dialogs.hrc>
#include <svx/svxids.hrc>
#include <svx/drawitem.hxx>
#include <editeng/svxacorr.hxx>
#include <editeng/langitem.hxx>
#include <svx/fmshell.hxx>
#include <sfx2/linkmgr.hxx>
#include <sfx2/classificationhelper.hxx>
#include <sfx2/watermarkitem.hxx>
#include <svtools/htmlcfg.hxx>
#include <svx/ofaitem.hxx>
#include <SwSmartTagMgr.hxx>
#include <sfx2/app.hxx>
#include <basic/sbstar.hxx>
#include <basic/basmgr.hxx>
#include <sot/storage.hxx>
#include <comphelper/classids.hxx>
#include <fmtcol.hxx>
#include <swevent.hxx>
#include <view.hxx>
#include <docsh.hxx>
#include <docary.hxx>
#include <wrtsh.hxx>
#include <fldbas.hxx>
#include <viewopt.hxx>
#include <globdoc.hxx>
#include <fldwrap.hxx>
#include <redlndlg.hxx>
#include <docstyle.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <IDocumentLinksAdministration.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentStatistics.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentState.hxx>
#include <pagedesc.hxx>
#include <shellio.hxx>
#include <pview.hxx>
#include <srcview.hxx>
#include <poolfmt.hxx>
#include <usrpref.hxx>
#include <wdocsh.hxx>
#include <unotxdoc.hxx>
#include <acmplwrd.hxx>
#include <swmodule.hxx>
#include <unobaseclass.hxx>
#include <swwait.hxx>
#include <swcli.hxx>
#include <cmdid.h>
#include <globals.h>
#include <helpids.h>
#include <app.hrc>
#include <strings.hrc>
#include <globals.hrc>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
#include <com/sun/star/ui/dialogs/XFilterManager.hpp>
#include <com/sun/star/ui/dialogs/XFilePickerControlAccess.hpp>
#include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp>
#include <com/sun/star/ui/dialogs/ListboxControlActions.hpp>
#include <com/sun/star/ui/dialogs/CommonFilePickerElementIds.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/script/vba/XVBAEventProcessor.hpp>
#include <com/sun/star/script/vba/VBAEventId.hpp>
#include <editeng/acorrcfg.hxx>
#include <SwStyleNameMapper.hxx>
#include <o3tl/deleter.hxx>
#include <officecfg/Office/Security.hxx>
#include <sfx2/fcontnr.hxx>
#include <svx/ClassificationDialog.hxx>
#include <svtools/embedhlp.hxx>
#include <swabstdlg.hxx>
#include <watermarkdialog.hxx>
#include <ndtxt.hxx>
#include <iodetect.hxx>
#include <memory>
Include dependency graph for docsh2.cxx:

Go to the source code of this file.

Functions

static void lcl_processCompatibleSfxHint (const uno::Reference< script::vba::XVBAEventProcessor > &xVbaEvents, const SfxHint &rHint)
 
int SwFindDocShell (SfxObjectShellRef &xDocSh, SfxObjectShellLock &xLockRef, const OUString &rFileName, const OUString &rPasswd, const OUString &rFilter, sal_Int16 nVersion, SwDocShell *pDestSh)
 Find the right DocShell and create a new one: The return value specifies what should happen to the Shell 0 - Error, could not find the DocShell 1 - DocShell is an existing Document 2 - DocShell was created anew, thus it needs to be closed again (will be assigned to xLockRef additionally) More...
 

Function Documentation

static void lcl_processCompatibleSfxHint ( const uno::Reference< script::vba::XVBAEventProcessor > &  xVbaEvents,
const SfxHint rHint 
)
static

Definition at line 228 of file docsh2.cxx.

Referenced by SwDocShell::FillClass(), and SwDocShell::Notify().

int SwFindDocShell ( SfxObjectShellRef xDocSh,
SfxObjectShellLock xLockRef,
const OUString &  rFileName,
const OUString &  rPasswd,
const OUString &  rFilter,
sal_Int16  nVersion,
SwDocShell pDestSh 
)

Find the right DocShell and create a new one: The return value specifies what should happen to the Shell 0 - Error, could not find the DocShell 1 - DocShell is an existing Document 2 - DocShell was created anew, thus it needs to be closed again (will be assigned to xLockRef additionally)

Definition at line 1668 of file docsh2.cxx.

References SfxFilterMatcher::DetectFilter(), SfxObjectShell::DoLoad(), SfxFilterMatcher::GetFilter4FilterName(), SfxObjectShell::GetFirst(), SfxMedium::GetItemSet(), SfxItemSet::GetItemState(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), SfxObjectShell::GetNext(), INetURLObject::GetProtocol(), SfxMedium::GetURLObject(), INetURLObject::NONE, INetURLObject::SetMark(), and SwDocShell::SwDocShell().

Referenced by SwView::InsertMedium().