LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScPreviewShell Class Referencefinal

#include <prevwsh.hxx>

Inheritance diagram for ScPreviewShell:
Collaboration diagram for ScPreviewShell:

Public Member Functions

 ScPreviewShell (SfxViewFrame *pViewFrame, SfxViewShell *pOldSh)
virtual ~ScPreviewShell () override
void InitStartTable (SCTAB nTab)
void UpdateScrollBars ()
void UpdateNeededScrollBars (bool bFromZoom)
bool ScrollCommand (const CommandEvent &rCEvt)
void Execute (SfxRequest &rReq)
void GetState (SfxItemSet &rSet)
void FillFieldData (ScHeaderFieldData &rData)
TriState GetSourceDesignMode () const
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual SfxPrinterGetPrinter (bool bCreate=false) override
virtual sal_uInt16 SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL) override
virtual bool HasPrintOptionsPage () const override
virtual std::unique_ptr< SfxTabPageCreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions) override
void AddAccessibilityObject (SfxListener &rObject)
void RemoveAccessibilityObject (SfxListener &rObject)
void BroadcastAccessibility (const SfxHint &rHint)
bool HasAccessibilityObjects () const
const ScPreviewLocationDataGetLocationData ()
ScDocumentGetDocument ()
ScPreviewGetPreview ()
- 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 (sal_Int32 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
PrinterGetActivePrinter () const
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 (const css::uno::Reference< css::awt::XPopupMenu > &rIn, const OUString &rMenuIdentifier, css::uno::Reference< css::awt::XPopupMenu > &rOut, css::ui::ContextMenuExecuteEvent aEvent)
bool TryContextMenuInterception (const css::uno::Reference< css::awt::XPopupMenu > &, 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 setLibreOfficeKitViewCallback (SfxLokCallbackInterface *pCallback)
virtual void libreOfficeKitViewCallback (int nType, const char *pPayload) const override
virtual void libreOfficeKitViewCallbackWithViewId (int nType, const char *pPayload, int nViewId) const override
virtual void libreOfficeKitViewInvalidateTilesCallback (const tools::Rectangle *pRect, int nPart) const override
virtual void flushPendingLOKInvalidateTiles ()
virtual void libreOfficeKitViewUpdatedCallback (int nType) const override
virtual void libreOfficeKitViewUpdatedCallbackPerViewId (int nType, int nViewId, int nSourceViewId) const override
virtual OString getLOKPayload (int nType, int nViewId, bool *ignore) const
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
virtual tools::Rectangle getLOKVisibleArea () const
void setBlockedCommandList (const char *blockedCommandList)
bool isBlockedCommand (OUString command)
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
virtual SfxInterfaceGetInterface () const
void SetName (const OUString &rName)
const OUString & GetName () const
SfxViewShellGetViewShell () const
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::optional< 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)

Private Member Functions

bool GetPageSize (Size &aPageSize)
void Construct (vcl::Window *pParent)
 DECL_DLLPRIVATE_LINK (ScrollHandler, ScrollBar *, void)
 DECL_DLLPRIVATE_LINK (CloseHdl, SystemWindow &, void)
void DoScroll (sal_uInt16 nMode)
void ExitPreview ()
virtual void Activate (bool bMDI) override
void AdjustPosSizePixel (const Point &rPos, const Size &rSize)
virtual void InnerResizePixel (const Point &rOfs, const Size &rSize, bool inplaceEditModeChange) override
virtual void OuterResizePixel (const Point &rOfs, const Size &rSize) override
virtual void WriteUserData (OUString &, bool bBrowse=false) override
virtual void ReadUserData (const OUString &, bool bBrowse=false) override
virtual void WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &) override
virtual void ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &) override

Static Private Member Functions

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

Private Attributes

VclPtr< SystemWindowmpFrameWindow
VclPtr< ScPreviewpPreview
VclPtr< ScrollBarpHorScroll
VclPtr< ScrollBarpVerScroll
VclPtr< vcl::WindowpCorner
TriState nSourceDesignMode
SvxZoomType eZoom
tools::Long nMaxVertPos
std::unique_ptr< SfxBroadcasterpAccessibilityBroadcaster

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 &)
- Protected Member Functions inherited from SfxViewShell
virtual void Deactivate (bool IsMDIActivate) override
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)
- Static Protected Member Functions inherited from SfxShell
static void HandleOpenXmlFilterSettings (SfxRequest &)

Detailed Description

Definition at line 39 of file prevwsh.hxx.

Constructor & Destructor Documentation

ScPreviewShell::ScPreviewShell ( SfxViewFrame pViewFrame,
SfxViewShell pOldSh 
ScPreviewShell::~ScPreviewShell ( )

Member Function Documentation

void ScPreviewShell::Activate ( bool  bMDI)

Basic etc. -> outsource to its own file (see tabvwsh4)

Reimplemented from SfxViewShell.

Definition at line 550 of file prevwsh.cxx.

References SfxViewShell::Activate(), ScInputHandler::NotifyChange(), and SC_MOD.

void ScPreviewShell::AddAccessibilityObject ( SfxListener rObject)
void ScPreviewShell::AdjustPosSizePixel ( const Point rPos,
const Size rSize 
void ScPreviewShell::BroadcastAccessibility ( const SfxHint rHint)
void ScPreviewShell::Construct ( vcl::Window pParent)
std::unique_ptr< SfxTabPage > ScPreviewShell::CreatePrintOptionsPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rOptions 
ScPreviewShell::DECL_DLLPRIVATE_LINK ( ScrollHandler  ,
ScrollBar ,
ScPreviewShell::DECL_DLLPRIVATE_LINK ( CloseHdl  ,
SystemWindow ,
void ScPreviewShell::DoScroll ( sal_uInt16  nMode)
void ScPreviewShell::Execute ( SfxRequest rReq)
void ScPreviewShell::ExitPreview ( )
void ScPreviewShell::FillFieldData ( ScHeaderFieldData rData)
ScDocument & ScPreviewShell::GetDocument ( )
const ScPreviewLocationData & ScPreviewShell::GetLocationData ( )
bool ScPreviewShell::GetPageSize ( Size aPageSize)
ScPreview* ScPreviewShell::GetPreview ( )

Definition at line 115 of file prevwsh.hxx.

Referenced by ScShapeChildren::GetAccShape(), and ScPreviewObj::getSelectedSheets().

SfxPrinter * ScPreviewShell::GetPrinter ( bool  bCreate = false)

Reimplemented from SfxViewShell.

Definition at line 526 of file prevwsh.cxx.

References ScDocShell::GetPrinter(), and pDocShell.

TriState ScPreviewShell::GetSourceDesignMode ( ) const

Definition at line 99 of file prevwsh.hxx.

void ScPreviewShell::GetState ( SfxItemSet rSet)
bool ScPreviewShell::HasAccessibilityObjects ( ) const
bool ScPreviewShell::HasPrintOptionsPage ( ) const

Reimplemented from SfxViewShell.

Definition at line 536 of file prevwsh.cxx.

void ScPreviewShell::InitInterface_Impl ( )

SfxInterface initializer.

Definition at line 89 of file prevwsh.cxx.


void ScPreviewShell::InitStartTable ( SCTAB  nTab)

Definition at line 228 of file prevwsh.cxx.

References ScPreview::GetFirstPage(), pPreview, and ScPreview::SetPageNo().

Referenced by ScPreviewShell().

void ScPreviewShell::InnerResizePixel ( const Point rOfs,
const Size rSize,
bool  inplaceEditModeChange 

Reimplemented from SfxViewShell.

Definition at line 246 of file prevwsh.cxx.

References AdjustPosSizePixel().

void ScPreviewShell::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
void ScPreviewShell::OuterResizePixel ( const Point rOfs,
const Size rSize 

Reimplemented from SfxViewShell.

Definition at line 251 of file prevwsh.cxx.

References AdjustPosSizePixel().

void ScPreviewShell::ReadUserData ( const OUString &  rData,
bool  bBrowse = false 
void ScPreviewShell::ReadUserDataSequence ( const css::uno::Sequence< css::beans::PropertyValue > &  )
void ScPreviewShell::RemoveAccessibilityObject ( SfxListener rObject)
bool ScPreviewShell::ScrollCommand ( const CommandEvent rCEvt)
sal_uInt16 ScPreviewShell::SetPrinter ( SfxPrinter pNewPrinter,
SfxPrinterChangeFlags  nDiffFlags = SFX_PRINTER_ALL 

Reimplemented from SfxViewShell.

Definition at line 531 of file prevwsh.cxx.

References pDocShell, and ScDocShell::SetPrinter().

ScPreviewShell::SFX_DECL_VIEWFACTORY ( ScPreviewShell  )
void ScPreviewShell::UpdateNeededScrollBars ( bool  bFromZoom)
void ScPreviewShell::UpdateScrollBars ( )
void ScPreviewShell::WriteUserData ( OUString &  rData,
bool  bBrowse = false 

Reimplemented from SfxViewShell.

Definition at line 910 of file prevwsh.cxx.

References ScPreview::GetPageNo(), ScPreview::GetZoom(), pPreview, and SC_USERDATA_SEP.

void ScPreviewShell::WriteUserDataSequence ( css::uno::Sequence< css::beans::PropertyValue > &  )

Member Data Documentation

SvxZoomType ScPreviewShell::eZoom

Definition at line 50 of file prevwsh.hxx.

Referenced by AdjustPosSizePixel(), Execute(), GetState(), ReadUserData(), and ScrollCommand().

VclPtr<SystemWindow> ScPreviewShell::mpFrameWindow

Definition at line 43 of file prevwsh.hxx.

Referenced by ~ScPreviewShell().

tools::Long ScPreviewShell::nMaxVertPos

Definition at line 51 of file prevwsh.hxx.

Referenced by DoScroll(), and UpdateScrollBars().

TriState ScPreviewShell::nSourceDesignMode

Definition at line 49 of file prevwsh.hxx.

Referenced by ScPreviewShell().

std::unique_ptr<SfxBroadcaster> ScPreviewShell::pAccessibilityBroadcaster
VclPtr<vcl::Window> ScPreviewShell::pCorner

Definition at line 47 of file prevwsh.hxx.

Referenced by UpdateNeededScrollBars(), and ~ScPreviewShell().

ScDocShell* ScPreviewShell::pDocShell
VclPtr<ScrollBar> ScPreviewShell::pHorScroll
VclPtr<ScPreview> ScPreviewShell::pPreview
VclPtr<ScrollBar> ScPreviewShell::pVerScroll

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