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

#include <view.hxx>

Inheritance diagram for SmViewShell:
[legend]
Collaboration diagram for SmViewShell:
[legend]

Public Member Functions

 SmViewShell (SfxViewFrame &rFrame, SfxViewShell *pOldSh)
 
virtual ~SmViewShell () override
 
SmDocShellGetDoc () const
 
SmEditWindowGetEditWindow ()
 
SmGraphicWidgetGetGraphicWidget ()
 
const SmGraphicWidgetGetGraphicWidget () const
 
SmGraphicWindowGetGraphicWindow ()
 
void SetStatusText (const OUString &rText)
 
void ShowError (const SmErrorDesc *pErrorDesc)
 
void NextError ()
 
void PrevError ()
 
 SFX_DECL_VIEWFACTORY (SmViewShell)
 
void SendCaretToLOK () const
 
void Execute (SfxRequest &rReq)
 
void GetState (SfxItemSet &)
 
void Impl_Print (OutputDevice &rOutDev, const SmPrintUIOptions &rPrintUIOptions, tools::Rectangle aOutRect)
 
void SetInsertIntoEditWindow (bool bEditWindowHadFocusLast)
 Set bInsertIntoEditWindow so we know where to insert. More...
 
void StartMainHelp ()
 
- Public Member Functions inherited from SfxViewShell
 SfxViewShell (SfxViewFrame &rFrame, 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, bool bOnlyASample=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 SfxPrinterGetPrinter (bool bCreate=false)
 
virtual sal_uInt16 SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL)
 
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 (const rtl::Reference< VCLXPopupMenu > &rIn, const OUString &rMenuIdentifier, rtl::Reference< VCLXPopupMenu > &rOut, css::ui::ContextMenuExecuteEvent aEvent)
 
bool TryContextMenuInterception (const rtl::Reference< VCLXPopupMenu > &, 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)
 
SfxLokCallbackInterfacegetLibreOfficeKitViewCallback () const
 
void dumpLibreOfficeKitViewState (rtl::OStringBuffer &rState)
 
virtual void libreOfficeKitViewCallback (int nType, const OString &pPayload) const override
 
virtual void libreOfficeKitViewCallbackWithViewId (int nType, const OString &pPayload, int nViewId) const override
 
virtual void libreOfficeKitViewInvalidateTilesCallback (const tools::Rectangle *pRect, int nPart, int nMode) const override
 
virtual void libreOfficeKitViewUpdatedCallback (int nType) const override
 
virtual void libreOfficeKitViewUpdatedCallbackPerViewId (int nType, int nViewId, int nSourceViewId) const override
 
virtual void flushPendingLOKInvalidateTiles ()
 
virtual void libreOfficeKitViewAddPendingInvalidateTiles () override
 
virtual std::optional< OString > getLOKPayload (int nType, int nViewId) const
 
void setTiledSearching (bool bTiledSearching)
 
virtual int getPart () const
 
virtual int getEditMode () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
ViewShellId GetViewShellId () const override
 
ViewShellDocId GetDocId () const override
 
virtual void notifyInvalidation (tools::Rectangle const *) 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
 
virtual ::Color GetColorConfigColor (svtools::ColorConfigEntry nColorType) const
 
virtual OUString GetColorConfigName () const
 
void SetLOKLanguageTag (const OUString &rBcp47LanguageTag)
 
const LanguageTagGetLOKLanguageTag () const
 
void SetLOKAccessibilityState (bool bEnabled)
 
std::pair< bool, OUString > GetLOKTimezone () const
 
void SetLOKTimezone (bool isSet, const OUString &rTimezone)
 
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)
 
void SetStoringHelper (std::shared_ptr< SfxStoringHelper > xHelper)
 
StylesHighlighterColorMapGetStylesHighlighterParaColorMap ()
 
StylesHighlighterColorMapGetStylesHighlighterCharColorMap ()
 
OUString getA11yFocusedParagraph () const
 
int getA11yCaretPosition () const
 
- 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)
 
SfxRepeatTarget * GetRepeatTarget () const
 
void SetRepeatTarget (SfxRepeatTarget *pTarget)
 
virtual void Invalidate (sal_uInt16 nId=0)
 
virtual bool IsDesignMode () const
 
bool IsActive () const
 
virtual void Activate (bool bMDI)
 
virtual void Deactivate (bool bMDI)
 
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
 
virtual SfxObjectShellGetObjectShell ()
 
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)
 

Static Public Member Functions

static bool IsInlineEditEnabled ()
 
- Static Public Member Functions inherited from SfxViewShell
static SAL_WARN_UNUSED_RESULT SfxViewShellGetFirst (bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
 
static SAL_WARN_UNUSED_RESULT SfxViewShellGetNext (const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
 
static SAL_WARN_UNUSED_RESULT SfxViewShellCurrent ()
 
static SAL_WARN_UNUSED_RESULT 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 &)
 

Private Member Functions

 DECL_LINK (DialogClosedHdl, sfx2::FileDialogHelper *, void)
 
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
 
void Insert (SfxMedium &rMedium)
 
void InsertFrom (SfxMedium &rMedium)
 
virtual bool HasPrintOptionsPage () const override
 
virtual std::unique_ptr< SfxTabPageCreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions) override
 
virtual void Deactivate (bool IsMDIActivate) override
 
virtual void Activate (bool IsMDIActivate) override
 
virtual void InnerResizePixel (const Point &rOfs, const Size &rSize, bool inplaceEditModeChange) override
 
virtual void OuterResizePixel (const Point &rOfs, const Size &rSize) override
 
virtual void QueryObjAreaPixel (tools::Rectangle &rRect) const override
 
virtual void SetZoomFactor (const Fraction &rX, const Fraction &rY) override
 
virtual std::optional< OString > getLOKPayload (int nType, int nViewId) const override
 
void ZoomByItemSet (const SfxItemSet *pSet)
 

Static Private Member Functions

static Size GetTextLineSize (OutputDevice const &rDevice, const OUString &rLine)
 
static Size GetTextSize (OutputDevice const &rDevice, std::u16string_view rText, tools::Long MaxWidth)
 
static void DrawTextLine (OutputDevice &rDevice, const Point &rPosition, const OUString &rLine)
 
static void DrawText (OutputDevice &rDevice, const Point &rPosition, std::u16string_view rText, sal_uInt16 MaxWidth)
 
static void InitInterface_Impl ()
 SfxInterface initializer. More...
 

Private Attributes

std::unique_ptr< sfx2::DocumentInsertermpDocInserter
 
std::unique_ptr< SfxRequestmpRequest
 
VclPtr< SmGraphicWindowmxGraphicWindow
 
SmGraphicController maGraphicController
 
OUString maStatusText
 
bool mbPasteState
 
bool mbInsertIntoEditWindow
 Used to determine whether insertions using SID_INSERTSPECIAL and SID_INSERTCOMMANDTEXT should be inserted into SmEditWindow or directly into the SmDocShell as done if the visual editor was last to have focus. More...
 

Additional Inherited Members

- 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 ()
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
- 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 244 of file view.hxx.

Constructor & Destructor Documentation

◆ SmViewShell()

SmViewShell::SmViewShell ( SfxViewFrame rFrame,
SfxViewShell pOldSh 
)

◆ ~SmViewShell()

SmViewShell::~SmViewShell ( )
overridevirtual

! this view shell is not active anymore !!

Definition at line 2249 of file view.cxx.

References VclPtr< class reference_type >::disposeAndClear(), GetEditWindow(), and mxGraphicWindow.

Member Function Documentation

◆ Activate()

void SmViewShell::Activate ( bool  IsMDIActivate)
overrideprivatevirtual

Since there is no way to be informed if a "drag and drop" event has taken place, we call SetText here in order to synchronize the GraphicWindow display with the text in the EditEngine.

Reimplemented from SfxViewShell.

Definition at line 2267 of file view.cxx.

References SfxViewShell::Activate(), GetDoc(), SmDocShell::GetEditEngine(), GetEditWindow(), GetGraphicWidget(), EditEngine::GetText(), weld::CustomWidgetController::GrabFocus(), comphelper::LibreOfficeKit::isActive(), and SmDocShell::SetText().

◆ CreatePrintOptionsPage()

std::unique_ptr< SfxTabPage > SmViewShell::CreatePrintOptionsPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rOptions 
)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1545 of file view.cxx.

References SmPrintOptionsTabPage::Create().

◆ Deactivate()

void SmViewShell::Deactivate ( bool  IsMDIActivate)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 2259 of file view.cxx.

References SfxViewShell::Deactivate(), and GetEditWindow().

◆ DECL_LINK()

SmViewShell::DECL_LINK ( DialogClosedHdl  ,
sfx2::FileDialogHelper ,
void   
)
private

◆ DrawText()

void SmViewShell::DrawText ( OutputDevice rDevice,
const Point rPosition,
std::u16string_view  rText,
sal_uInt16  MaxWidth 
)
staticprivate

◆ DrawTextLine()

void SmViewShell::DrawTextLine ( OutputDevice rDevice,
const Point rPosition,
const OUString &  rLine 
)
staticprivate

◆ Execute()

void SmViewShell::Execute ( SfxRequest rReq)

Definition at line 1671 of file view.cxx.

References aData, ToggleUnicodeCodepoint::AllowMoreInput(), SmEditWindow::Copy(), SvxAbstractDialogFactory::Create(), TransferableDataHelper::CreateFromClipboard(), SvxAbstractDialogFactory::CreateSvxZoomDialog(), SmEditWindow::Cut(), SmEditWindow::Delete(), SfxRequest::Done(), EDITUNDO_REPLACEALL, SfxDispatcher::ExecuteList(), SmEditWindow::Flush(), SfxItemSet::Get(), SfxRequest::GetArgs(), SfxViewFrame::GetBindings(), SmEditWindow::GetClipboard(), SmModule::GetConfig(), SmDocShell::GetCursor(), SfxViewFrame::GetDispatcher(), GetDoc(), SmEditWindow::GetEditEngine(), GetEditWindow(), GetFactory(), SfxFilter::GetFilterByName(), OutputDevice::GetFontFaceCollectionCount(), SfxShell::GetFrame(), SfxViewShell::GetFrameWeld(), SmEditWindow::GetFrameWeld(), GetGraphicWidget(), TransferableDataHelper::GetInputStream(), SfxMedium::GetItemSet(), SfxItemSet::GetItemState(), SmDocShell::GetPool(), SmDocShell::GetPrinter(), SmEditWindow::GetSelection(), SfxRequest::GetSlot(), comphelper::OStorageHelper::GetStorageFromInputStream(), TransferableDataHelper::GetString(), EditView::GetSurroundingText(), SmModule::GetSymbolManager(), SmEditWindow::GetText(), TransferableDataHelper::GetTransferable(), CntUnencodedStringItem::GetValue(), GetValue, EditEngine::GetView(), SfxViewShell::GetViewFrame(), SfxViewShell::GetWindow(), weld::CustomWidgetController::GrabFocus(), SmEditWindow::GrabFocus(), TransferableDataHelper::HasFormat(), SfxRequest::Ignore(), Insert(), SmCursor::InsertCommandText(), InsertFrom(), SmCursor::InsertSpecial(), EditView::InsertText(), SmEditWindow::InsertText(), SfxBindings::Invalidate(), SmEditWindow::IsAllSelected(), IsInlineEditEnabled(), SmMathConfig::IsShowFormulaCursor(), LINK, MATHML_XML, MAXZOOM, mbInsertIntoEditWindow, MINZOOM, mpDocInserter, mpRequest, mxGraphicWindow, ESelection::nEndPos, NextError(), nId, ESelection::nStartPos, SmEditWindow::Paste(), PrevError(), SfxItemSet::Put(), SmDocShell::Repaint(), ToggleUnicodeCodepoint::ReplacementString(), RET_CANCEL, weld::DialogController::run(), SAL_WARN, SAL_WARN_IF, SmEditWindow::SelectAll(), SmEditWindow::SelNextMark(), SmEditWindow::SelPrevMark(), SfxMedium::SetFilter(), EditView::SetSelection(), SmEditWindow::SetSelection(), SmMathConfig::SetShowFormulaCursor(), SetStatusText(), SfxMedium::setStreamToLoadFrom(), SmDocShell::SetText(), SfxViewFrame::ShowChildWindow(), SmGraphicWidget::ShowCursor(), ShowError(), SM_MOD, ToggleUnicodeCodepoint::StringToReplace(), sfx2::sidebar::Sidebar::TogglePanel(), u, EditEngine::UndoActionEnd(), EditEngine::UndoActionStart(), SmDocShell::UpdateText(), and ZoomByItemSet().

◆ GetDoc()

SmDocShell * SmViewShell::GetDoc ( ) const
inline

◆ GetEditWindow()

SmEditWindow * SmViewShell::GetEditWindow ( )

◆ GetGraphicWidget() [1/2]

SmGraphicWidget & SmViewShell::GetGraphicWidget ( )
inline

◆ GetGraphicWidget() [2/2]

const SmGraphicWidget & SmViewShell::GetGraphicWidget ( ) const
inline

Definition at line 308 of file view.hxx.

References mxGraphicWindow.

◆ GetGraphicWindow()

SmGraphicWindow & SmViewShell::GetGraphicWindow ( )
inline

Definition at line 313 of file view.hxx.

References mxGraphicWindow.

◆ getLOKPayload()

std::optional< OString > SmViewShell::getLOKPayload ( int  nType,
int  nViewId 
) const
overrideprivatevirtual

◆ GetPrinter()

SfxPrinter * SmViewShell::GetPrinter ( bool  bCreate = false)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1515 of file view.cxx.

References GetDoc(), SmDocShell::GetPrinter(), and SmDocShell::HasPrinter().

Referenced by ZoomByItemSet().

◆ GetState()

void SmViewShell::GetState ( SfxItemSet rSet)

◆ GetTextLineSize()

Size SmViewShell::GetTextLineSize ( OutputDevice const &  rDevice,
const OUString &  rLine 
)
staticprivate

◆ GetTextSize()

Size SmViewShell::GetTextSize ( OutputDevice const &  rDevice,
std::u16string_view  rText,
tools::Long  MaxWidth 
)
staticprivate

◆ HasPrintOptionsPage()

bool SmViewShell::HasPrintOptionsPage ( ) const
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1540 of file view.cxx.

◆ Impl_Print()

void SmViewShell::Impl_Print ( OutputDevice rOutDev,
const SmPrintUIOptions rPrintUIOptions,
tools::Rectangle  aOutRect 
)

◆ InitInterface_Impl()

void SmViewShell::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 1142 of file view.cxx.

References SFX_OBJECTBAR_TOOLS.

◆ InnerResizePixel()

void SmViewShell::InnerResizePixel ( const Point rOfs,
const Size rSize,
bool  inplaceEditModeChange 
)
overrideprivatevirtual

◆ Insert()

void SmViewShell::Insert ( SfxMedium rMedium)
private

◆ InsertFrom()

void SmViewShell::InsertFrom ( SfxMedium rMedium)
private

◆ IsInlineEditEnabled()

bool SmViewShell::IsInlineEditEnabled ( )
static

◆ NextError()

void SmViewShell::NextError ( )

Definition at line 1583 of file view.cxx.

References GetDoc(), SmDocShell::GetParser(), AbstractSmParser::NextError(), and ShowError().

Referenced by Execute().

◆ Notify()

void SmViewShell::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual

◆ OuterResizePixel()

void SmViewShell::OuterResizePixel ( const Point rOfs,
const Size rSize 
)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1179 of file view.cxx.

References GetDoc(), and mxGraphicWindow.

◆ PrevError()

void SmViewShell::PrevError ( )

Definition at line 1592 of file view.cxx.

References GetDoc(), SmDocShell::GetParser(), AbstractSmParser::PrevError(), and ShowError().

Referenced by Execute().

◆ QueryObjAreaPixel()

void SmViewShell::QueryObjAreaPixel ( tools::Rectangle rRect) const
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1186 of file view.cxx.

References mxGraphicWindow, and tools::Rectangle::SetSize().

◆ SendCaretToLOK()

void SmViewShell::SendCaretToLOK ( ) const

◆ SetInsertIntoEditWindow()

void SmViewShell::SetInsertIntoEditWindow ( bool  bEditWindowHadFocusLast)
inline

Set bInsertIntoEditWindow so we know where to insert.

This method is called whenever SmGraphicWidget or SmEditWindow gets focus, so that when text is inserted from catalog or elsewhere we know whether to insert for the visual editor, or the text editor.

Definition at line 346 of file view.hxx.

References mbInsertIntoEditWindow.

Referenced by SmEditTextWindow::GetFocus(), and SmGraphicWidget::GetFocus().

◆ SetPrinter()

sal_uInt16 SmViewShell::SetPrinter ( SfxPrinter pNewPrinter,
SfxPrinterChangeFlags  nDiffFlags = SFX_PRINTER_ALL 
)
overrideprivatevirtual

◆ SetStatusText()

void SmViewShell::SetStatusText ( const OUString &  rText)

◆ SetZoomFactor()

void SmViewShell::SetZoomFactor ( const Fraction rX,
const Fraction rY 
)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1191 of file view.cxx.

References mxGraphicWindow, and SfxViewShell::SetZoomFactor().

◆ SFX_DECL_VIEWFACTORY()

SmViewShell::SFX_DECL_VIEWFACTORY ( SmViewShell  )

◆ ShowError()

void SmViewShell::ShowError ( const SmErrorDesc pErrorDesc)

◆ StartMainHelp()

void SmViewShell::StartMainHelp ( )

◆ ZoomByItemSet()

void SmViewShell::ZoomByItemSet ( const SfxItemSet pSet)
private

Member Data Documentation

◆ maGraphicController

SmGraphicController SmViewShell::maGraphicController
private

Definition at line 249 of file view.hxx.

◆ maStatusText

OUString SmViewShell::maStatusText
private

Definition at line 250 of file view.hxx.

Referenced by GetState(), and SetStatusText().

◆ mbInsertIntoEditWindow

bool SmViewShell::mbInsertIntoEditWindow
private

Used to determine whether insertions using SID_INSERTSPECIAL and SID_INSERTCOMMANDTEXT should be inserted into SmEditWindow or directly into the SmDocShell as done if the visual editor was last to have focus.

Definition at line 256 of file view.hxx.

Referenced by Execute(), and SetInsertIntoEditWindow().

◆ mbPasteState

bool SmViewShell::mbPasteState
private

Definition at line 251 of file view.hxx.

Referenced by GetState().

◆ mpDocInserter

std::unique_ptr<sfx2::DocumentInserter> SmViewShell::mpDocInserter
private

Definition at line 246 of file view.hxx.

Referenced by Execute().

◆ mpRequest

std::unique_ptr<SfxRequest> SmViewShell::mpRequest
private

Definition at line 247 of file view.hxx.

Referenced by Execute().

◆ mxGraphicWindow

VclPtr<SmGraphicWindow> SmViewShell::mxGraphicWindow
private

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