LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SwSrcView Class Reference

#include <srcview.hxx>

Inheritance diagram for SwSrcView:
Collaboration diagram for SwSrcView:

Public Member Functions

 SwSrcView (SfxViewFrame *pFrame, SfxViewShell *)
virtual ~SwSrcView () override
SwDocShellGetDocShell ()
void SaveContent (const OUString &rTmpFile)
void SaveContentTo (SfxMedium &rMed)
bool IsModified () const
void Execute (SfxRequest &)
void GetState (SfxItemSet &)
SvxSearchItemGetSearchItem ()
void SetSearchItem (const SvxSearchItem &rItem)
void Load (SwDocShell *pDocShell)
virtual sal_uInt16 SetPrinter (SfxPrinter *pNew, SfxPrinterChangeFlags nDiff=SFX_PRINTER_ALL) override
virtual SfxPrinterGetPrinter (bool bCreate=false) override
sal_Int32 PrintSource (OutputDevice *pOutDev, sal_Int32 nPage, bool bCalcNumPagesOnly)
bool HasSourceSaved () const
- Public Member Functions inherited from SfxViewShell
 SfxViewShell (SfxViewFrame *pFrame, SfxViewShellFlags nFlags)
virtual ~SfxViewShell () override
SfxInPlaceClientGetIPClient () const
SfxInPlaceClientGetUIActiveClient () const
SfxInPlaceClientFindIPClient (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, vcl::Window *pObjParentWin) const
virtual ErrCode DoVerb (tools::Long nVerb)
void OutplaceActivated (bool bActive)
virtual void UIActivating (SfxInPlaceClient *pClient)
virtual void UIDeactivated (SfxInPlaceClient *pClient)
void JumpToMark (const OUString &rMark)
void VisAreaChanged ()
virtual bool PrepareClose (bool bUI=true)
virtual OUString GetSelectionText (bool bCompleteWords=false)
virtual bool HasSelection (bool bText=true) const
virtual SdrViewGetDrawView () const
void AddSubShell (SfxShell &rShell)
void RemoveSubShell (SfxShell *pShell=nullptr)
SfxShellGetSubShell (sal_uInt16)
virtual SfxShellGetFormShell ()
virtual const SfxShellGetFormShell () const
virtual void notifyWindow (vcl::LOKWindowId nLOKWindowId, const OUString &rAction, const std::vector< vcl::LOKPayloadItem > &rPayload=std::vector< vcl::LOKPayloadItem >()) const override
virtual void ShowCursor (bool bOn=true)
virtual bool KeyInput (const KeyEvent &rKeyEvent)
bool Escape ()
vcl::WindowGetWindow () const
weld::WindowGetFrameWeld () const
void SetWindow (vcl::Window *pViewPort)
const SvBorderGetBorderPixel () const
void SetBorderPixel (const SvBorder &rBorder)
void InvalidateBorder ()
SfxViewFrameGetViewFrame () const
virtual bool HasPrintOptionsPage () const
virtual std::unique_ptr< SfxTabPageCreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions)
PrinterGetActivePrinter () const
virtual void WriteUserData (OUString &, bool bBrowse=false)
virtual void ReadUserData (const OUString &, bool bBrowse=false)
virtual void WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &)
virtual void ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &)
virtual void QueryObjAreaPixel (tools::Rectangle &rRect) const
virtual SfxObjectShellGetObjectShell () override
virtual css::uno::Reference< css::frame::XModel > GetCurrentDocument () const
void SetCurrentDocument () const
virtual css::uno::Reference< css::view::XRenderable > GetRenderable ()
virtual void MarginChanged ()
const SizeGetMargin () const
void SetMargin (const Size &)
void DisconnectAllClients ()
bool NewWindowAllowed () const
void SetNewWindowAllowed (bool bSet)
void SetController (SfxBaseController *pController)
css::uno::Reference< css::frame::XController > GetController () const
bool TryContextMenuInterception (Menu &rIn, const OUString &rMenuIdentifier, VclPtr< Menu > &rpOut, css::ui::ContextMenuExecuteEvent aEvent)
bool TryContextMenuInterception (Menu &rMenu, const OUString &rMenuIdentifier, css::ui::ContextMenuExecuteEvent aEvent)
void ExecPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool)
void StartPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool)
const std::shared_ptr< vcl::PrinterController > & GetPrinterController () const
void AddRemoveClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &, bool)
css::uno::Reference< css::datatransfer::clipboard::XClipboardNotifier > GetClipboardNotifier () const
SAL_DLLPRIVATE SfxInPlaceClientGetUIActiveIPClient_Impl () const
SAL_DLLPRIVATE void AddContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor)
SAL_DLLPRIVATE void RemoveContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor)
SAL_DLLPRIVATE bool GlobalKeyInput_Impl (const KeyEvent &rKeyEvent)
SAL_DLLPRIVATE void NewIPClient_Impl (SfxInPlaceClient *pIPClient)
SAL_DLLPRIVATE void IPClientGone_Impl (SfxInPlaceClient const *pIPClient)
SAL_DLLPRIVATE void ResetAllClients_Impl (SfxInPlaceClient const *pIP)
SAL_DLLPRIVATE void SetPrinter_Impl (VclPtr< SfxPrinter > &pNewPrinter)
SAL_DLLPRIVATE bool HandleNotifyEvent_Impl (NotifyEvent const &rEvent)
SAL_DLLPRIVATE bool HasKeyListeners_Impl () const
SAL_DLLPRIVATE bool HasMouseClickListeners_Impl () const
SAL_DLLPRIVATE SfxBaseControllerGetBaseController_Impl () const
SAL_DLLPRIVATE void ExecPrint_Impl (SfxRequest &)
SAL_DLLPRIVATE void ExecMisc_Impl (SfxRequest &)
SAL_DLLPRIVATE void GetState_Impl (SfxItemSet &)
SAL_DLLPRIVATE void CheckIPClient_Impl (SfxInPlaceClient const *, const tools::Rectangle &)
SAL_DLLPRIVATE void PushSubShells_Impl (bool bPush=true)
SAL_DLLPRIVATE void PopSubShells_Impl ()
SAL_DLLPRIVATE bool ExecKey_Impl (const KeyEvent &aKey)
void registerLibreOfficeKitViewCallback (LibreOfficeKitCallback pCallback, void *pLibreOfficeKitData)
void libreOfficeKitViewCallback (int nType, const char *pPayload) const override
void setTiledSearching (bool bTiledSearching)
virtual int getPart () const
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
ViewShellId GetViewShellId () const override
ViewShellDocId GetDocId () const override
void NotifyOtherViews (int nType, const OString &rKey, const OString &rPayload) override
void NotifyOtherView (OutlinerViewShell *pOtherShell, int nType, const OString &rKey, const OString &rPayload) override
virtual void NotifyCursor (SfxViewShell *) const
virtual void afterCallbackRegistered ()
virtual vcl::WindowGetEditWindowForActiveOLEObj () const override
void SetLOKLanguageTag (const OUString &rBcp47LanguageTag)
const LanguageTagGetLOKLanguageTag () const
void SetLOKLocale (const OUString &rBcp47LanguageTag)
const LanguageTagGetLOKLocale () const
LOKDeviceFormFactor GetLOKDeviceFormFactor () const
bool isLOKDesktop () const
bool isLOKTablet () const
bool isLOKMobilePhone () const
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
virtual SfxInterfaceGetInterface () const
void SetName (const OUString &rName)
const OUString & GetName () const
SfxViewShellGetViewShell () const
void CallExec (SfxExecFunc pFunc, SfxRequest &rReq)
void CallState (SfxStateFunc pFunc, SfxItemSet &rSet)
const SfxPoolItemGetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
const SfxPoolItemExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr)
void ExecuteSlot (SfxRequest &rReq, bool bAsync)
SfxItemPoolGetPool () const
void SetPool (SfxItemPool *pNewPool)
virtual SfxUndoManagerGetUndoManager ()
void SetUndoManager (SfxUndoManager *pNewUndoMgr)
SfxRepeatTargetGetRepeatTarget () const
void SetRepeatTarget (SfxRepeatTarget *pTarget)
virtual void Invalidate (sal_uInt16 nId=0)
virtual bool IsDesignMode () const
bool IsActive () const
SfxDispatcherGetDispatcher () const
SfxViewFrameGetFrame () const
virtual bool HasUIFeature (SfxShellFeature nFeature) const
void UIFeatureChanged ()
const SfxPoolItemGetItem (sal_uInt16 nSlotId) const
const T * GetItem (TypedWhichId< T > nWhich) const
void PutItem (const SfxPoolItem &rItem)
void SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs)
const css::uno::Sequence< css::embed::VerbDescriptor > & GetVerbs () const
void VerbExec (SfxRequest &)
SAL_DLLPRIVATE const SfxSlotGetVerbSlot_Impl (sal_uInt16 nId) const
void SetDisableFlags (SfxDisableFlags nFlags)
SfxDisableFlags GetDisableFlags () const
virtual std::unique_ptr< SfxItemSetCreateItemSet (sal_uInt16 nId)
virtual void ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet)
void SetContextName (const OUString &rsContextName)
void BroadcastContextForActivation (const bool bIsActivated)
bool SetContextBroadcasterEnabled (const bool bIsEnabled)
SAL_DLLPRIVATE bool CanExecuteSlot_Impl (const SfxSlot &rSlot)
virtual bool IsConditionalFastCall (const SfxRequest &rReq)
SAL_DLLPRIVATE void DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI)
SAL_DLLPRIVATE void DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI)

Protected Member Functions

void StartSearchAndReplace (const SvxSearchItem &rItem, bool bApi, bool bRecursive=false)
- Protected Member Functions inherited from SfxViewShell
virtual void Activate (bool IsMDIActivate) override
virtual void Deactivate (bool IsMDIActivate) override
virtual void InnerResizePixel (const Point &rOfs, const Size &rSize, bool inplaceEditModeChange)
virtual void OuterResizePixel (const Point &rOfs, const Size &rSize)
virtual void SetZoomFactor (const Fraction &rZoomX, const Fraction &rZoomY)
virtual void Move ()
- Protected Member Functions inherited from SfxShell
 SfxShell ()
 SfxShell (SfxViewShell *pViewSh)
void SetViewShell_Impl (SfxViewShell *pView)
SAL_DLLPRIVATE void Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId)

Private Member Functions

void Init ()
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override

Static Private Member Functions

static void InitInterface_Impl ()
 SfxInterface initializer. More...

Private Attributes

VclPtr< SwSrcEditWindowaEditWin
std::unique_ptr< SvxSearchItempSearchItem
bool bSourceSaved:1
rtl_TextEncoding eLoadEncoding

Additional Inherited Members

- Static Public Member Functions inherited from SfxViewShell
static SfxViewShellGetFirst (bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
static SfxViewShellGetNext (const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
static SfxViewShellCurrent ()
static SfxViewShellGet (const css::uno::Reference< css::frame::XController > &i_rController)
static void SetCurrentDocId (ViewShellDocId nId)
- Static Public Member Functions inherited from SfxShell
static SfxInterfaceGetStaticInterface ()
static void EmptyExecStub (SfxShell *pShell, SfxRequest &)
static void EmptyStateStub (SfxShell *pShell, SfxItemSet &)
static void VerbState (SfxItemSet &)
- Static Protected Member Functions inherited from SfxShell
static void HandleOpenXmlFilterSettings (SfxRequest &)

Detailed Description

Definition at line 33 of file srcview.hxx.

Constructor & Destructor Documentation

SwSrcView::SwSrcView ( SfxViewFrame pFrame,

Definition at line 193 of file srcview.cxx.

References Init().

SwSrcView::~SwSrcView ( )

Member Function Documentation

void SwSrcView::Execute ( SfxRequest rReq)
SwDocShell * SwSrcView::GetDocShell ( )
SfxPrinter * SwSrcView::GetPrinter ( bool  bCreate = false)
SvxSearchItem * SwSrcView::GetSearchItem ( )

Definition at line 535 of file srcview.cxx.

References pSearchItem.

Referenced by Execute(), and GetState().

void SwSrcView::GetState ( SfxItemSet rSet)
bool SwSrcView::HasSourceSaved ( ) const

Definition at line 83 of file srcview.hxx.

References bSourceSaved.

Referenced by SwDocShell::Execute().

void SwSrcView::Init ( void  )
void SwSrcView::InitInterface_Impl ( )

SfxInterface initializer.

Definition at line 97 of file srcview.cxx.


bool SwSrcView::IsModified ( ) const

Definition at line 68 of file srcview.hxx.

References SwSrcEditWindow::IsModified().

Referenced by SwDocShell::Execute().

void SwSrcView::Load ( SwDocShell pDocShell)
void SwSrcView::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
sal_Int32 SwSrcView::PrintSource ( OutputDevice pOutDev,
sal_Int32  nPage,
bool  bCalcNumPagesOnly 
void SwSrcView::SaveContent ( const OUString &  rTmpFile)
void SwSrcView::SaveContentTo ( SfxMedium rMed)
sal_uInt16 SwSrcView::SetPrinter ( SfxPrinter pNew,
SfxPrinterChangeFlags  nDiff = SFX_PRINTER_ALL 
void SwSrcView::SetSearchItem ( const SvxSearchItem rItem)

Definition at line 544 of file srcview.cxx.

References SvxSearchItem::Clone(), and pSearchItem.

Referenced by Execute().

void SwSrcView::StartSearchAndReplace ( const SvxSearchItem rItem,
bool  bApi,
bool  bRecursive = false 

Member Data Documentation

VclPtr<SwSrcEditWindow> SwSrcView::aEditWin
bool SwSrcView::bSourceSaved

Definition at line 39 of file srcview.hxx.

Referenced by Execute(), and HasSourceSaved().

rtl_TextEncoding SwSrcView::eLoadEncoding

Definition at line 40 of file srcview.hxx.

Referenced by Execute(), Load(), SaveContent(), and SaveContentTo().

std::unique_ptr<SvxSearchItem> SwSrcView::pSearchItem

Definition at line 37 of file srcview.hxx.

Referenced by GetSearchItem(), SetSearchItem(), and ~SwSrcView().

The documentation for this class was generated from the following files: