LibreOffice Module sfx2 (master) 1
|
One SfxViewShell more or less represents one edit window for a document, there can be multiple ones for a single opened document (SfxObjectShell). More...
#include <viewsh.hxx>
Public Member Functions | |
SfxViewShell (SfxViewFrame &rFrame, SfxViewShellFlags nFlags) | |
virtual | ~SfxViewShell () override |
SfxInPlaceClient * | GetIPClient () const |
SfxInPlaceClient * | GetUIActiveClient () const |
SfxInPlaceClient * | FindIPClient (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) |
Initialize is called after the frame has been loaded and the controller has been set. More... | |
virtual OUString | GetSelectionText (bool bCompleteWords=false, bool bOnlyASample=false) |
virtual bool | HasSelection (bool bText=true) const |
virtual SdrView * | GetDrawView () const |
void | AddSubShell (SfxShell &rShell) |
void | RemoveSubShell (SfxShell *pShell=nullptr) |
SfxShell * | GetSubShell (sal_uInt16) |
virtual SfxShell * | GetFormShell () |
virtual const SfxShell * | GetFormShell () 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::Window * | GetWindow () const |
weld::Window * | GetFrameWeld () const |
void | SetWindow (vcl::Window *pViewPort) |
const SvBorder & | GetBorderPixel () const |
void | SetBorderPixel (const SvBorder &rBorder) |
void | InvalidateBorder () |
SfxViewFrame & | GetViewFrame () const |
virtual SfxPrinter * | GetPrinter (bool bCreate=false) |
virtual sal_uInt16 | SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL) |
virtual bool | HasPrintOptionsPage () const |
virtual std::unique_ptr< SfxTabPage > | CreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions) |
Printer * | GetActivePrinter () 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 SfxObjectShell * | GetObjectShell () override |
virtual css::uno::Reference< css::frame::XModel > | GetCurrentDocument () const |
retrieves the document which shall be considered the "current document" when the frame is active More... | |
void | SetCurrentDocument () const |
forwards the current document, as returned by ->GetCurrentDocument, to SfxObjectShell::SetWorkingDocument More... | |
virtual css::uno::Reference< css::view::XRenderable > | GetRenderable () |
get an XRenderable instance that can render this document More... | |
virtual void | MarginChanged () |
const Size & | GetMargin () 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 SfxInPlaceClient * | GetUIActiveIPClient_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) |
Internal method for setting the differences between 'pNewPrinter' to the current printer. More... | |
SAL_DLLPRIVATE bool | HandleNotifyEvent_Impl (NotifyEvent const &rEvent) |
SAL_DLLPRIVATE bool | HasKeyListeners_Impl () const |
SAL_DLLPRIVATE bool | HasMouseClickListeners_Impl () const |
SAL_DLLPRIVATE SfxBaseController * | GetBaseController_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) |
Set up a more efficient internal callback instead of LibreOfficeKitCallback. More... | |
SfxLokCallbackInterface * | getLibreOfficeKitViewCallback () const |
void | dumpLibreOfficeKitViewState (rtl::OStringBuffer &rState) |
dump view state for diagnostics More... | |
virtual void | libreOfficeKitViewCallback (int nType, const OString &pPayload) const override |
Invokes the registered callback, if there are any. More... | |
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) |
Set if we are doing tiled searching. More... | |
virtual int | getPart () const |
See lok::Document::getPart(). More... | |
virtual int | getEditMode () const |
See lok::Document::getMode(). More... | |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
ViewShellId | GetViewShellId () const override |
See OutlinerViewShell::GetViewShellId(). More... | |
ViewShellDocId | GetDocId () const override |
Get the DocId used by Mobile LOKit to load multiple documents. More... | |
virtual void | notifyInvalidation (tools::Rectangle const *) const override |
ILibreOfficeKitNotifier. Emits a LOK_CALLBACK_INVALIDATE_TILES. More... | |
void | NotifyOtherViews (int nType, const OString &rKey, const OString &rPayload) override |
See OutlinerViewShell::NotifyOtherViews(). More... | |
void | NotifyOtherView (OutlinerViewShell *pOtherShell, int nType, const OString &rKey, const OString &rPayload) override |
See OutlinerViewShell::NotifyOtherView(). More... | |
virtual void | NotifyCursor (SfxViewShell *) const |
Ask this view to send its cursor position to pViewShell. More... | |
virtual void | afterCallbackRegistered () |
Where a new view can perform some update/initialization soon after the callback has been registered. More... | |
virtual vcl::Window * | GetEditWindowForActiveOLEObj () const override |
See OutlinerViewShell::GetEditWindowForActiveOLEObj(). More... | |
void | SetLOKLanguageTag (const OUString &rBcp47LanguageTag) |
Set the LibreOfficeKit language of this view. More... | |
const LanguageTag & | GetLOKLanguageTag () const |
Get the LibreOfficeKit language of this view. More... | |
void | SetLOKAccessibilityState (bool bEnabled) |
Enable/Disable LibreOfficeKit AT support for this view. More... | |
std::pair< bool, OUString > | GetLOKTimezone () const |
Get the LibreOfficeKit timezone of this view. See @SetLOKTimezone. More... | |
void | SetLOKTimezone (bool isSet, const OUString &rTimezone) |
Set the LibreOfficeKit timezone of this view. More... | |
void | SetLOKLocale (const OUString &rBcp47LanguageTag) |
Set the LibreOfficeKit locale of this view. More... | |
const LanguageTag & | GetLOKLocale () const |
Get the LibreOfficeKit locale of this view. More... | |
LOKDeviceFormFactor | GetLOKDeviceFormFactor () const |
Get the form factor of the device where the lok client is running. More... | |
bool | isLOKDesktop () const |
Check if the lok client is running on a desktop machine. More... | |
bool | isLOKTablet () const |
Check if the lok client is running on a tablet. More... | |
bool | isLOKMobilePhone () const |
Check if the lok client is running on a mobile device. More... | |
virtual tools::Rectangle | getLOKVisibleArea () const |
void | setBlockedCommandList (const char *blockedCommandList) |
bool | isBlockedCommand (OUString command) |
void | SetStoringHelper (std::shared_ptr< SfxStoringHelper > xHelper) |
StylesHighlighterColorMap & | GetStylesHighlighterParaColorMap () |
StylesHighlighterColorMap & | GetStylesHighlighterCharColorMap () |
OUString | getA11yFocusedParagraph () const |
int | getA11yCaretPosition () const |
![]() | |
virtual | ~SfxShell () override |
The connection to a possible corresponding SbxObject is dissolved. More... | |
virtual SfxInterface * | GetInterface () const |
With this virtual method, which is automatically overridden by each subclass with its own slots through the macro <SFX_DECL_INTERFACE>, one can access each of the <SfxInterface> instance belonging to the subclass. More... | |
void | SetName (const OUString &rName) |
Sets the name of the Shell object. More... | |
const OUString & | GetName () const |
Returns the name of the Shell object. More... | |
SfxViewShell * | GetViewShell () const |
Returns the SfxViewShell in which they are located in the subshells. More... | |
const SfxPoolItem * | GetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr) |
This method returns the status of the slot with the specified slot ID on the specified interface. More... | |
const SfxPoolItem * | ExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr) |
This method allows you to forward a <SfxRequest> to the specified base <SfxShell>. More... | |
void | ExecuteSlot (SfxRequest &rReq, bool bAsync) |
Asynchronous ExecuteSlot for the RELOAD. More... | |
SfxItemPool & | GetPool () const |
Each Subclass of SfxShell must reference a pool. More... | |
void | SetPool (SfxItemPool *pNewPool) |
With this method, the subclasses register their special <SfxItemPool> in the SfxShell. More... | |
virtual SfxUndoManager * | GetUndoManager () |
Each Subclass of SfxShell can have a <SfxUndoManager>. More... | |
void | SetUndoManager (SfxUndoManager *pNewUndoMgr) |
Sets a <SfxUndoManager> for this <SfxShell> Instance. More... | |
SfxRepeatTarget * | GetRepeatTarget () const |
Returns a pointer to the <SfxRepeatTarget> instance that is used in SID_REPEAT as repeat target when it is addressed from the <SfxUndoManager> supplied by this SfxShell. More... | |
void | SetRepeatTarget (SfxRepeatTarget *pTarget) |
Sets the <SfxRepeatTarget> instance that is used in SID_REPEAT as RepeatTarget, when the current supplied by this <SfxUndoManager> is addressed. More... | |
virtual void | Invalidate (sal_uInt16 nId=0) |
With this method can the slots of the subclasses be invalidated through the slot Id or alternatively through the Which ID. More... | |
virtual bool | IsDesignMode () const |
bool | IsActive () const |
virtual void | Activate (bool bMDI) |
Virtual method that is called when enabling the SfxShell instance, in order to give the Subclasses the opportunity to respond to the to the enabling. More... | |
virtual void | Deactivate (bool bMDI) |
Virtual method that is called when disabling the SfxShell instance, to give the Subclasses the opportunity to respond to the disabling. More... | |
SfxDispatcher * | GetDispatcher () const |
This method returns a pointer to the <SfxDispatcher>, when the SfxShell is currently <UI-active> or a NULL-pointer if it is not UI-active. More... | |
SfxViewFrame * | GetFrame () const |
This method returns a pointer to the <SfxViewFrame> to which this SfxShell instance is associated or in which they currently is <UI-active>. More... | |
virtual bool | HasUIFeature (SfxShellFeature nFeature) const |
void | UIFeatureChanged () |
const SfxPoolItem * | GetItem (sal_uInt16 nSlotId) const |
With this method any objects of <SfxPoolItemu> subclasses can be accessed. More... | |
template<class T > | |
const T * | GetItem (TypedWhichId< T > nWhich) const |
void | PutItem (const SfxPoolItem &rItem) |
With this method, any objects of subclasses of <SfxPoolItem> can be made available. More... | |
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 SfxSlot * | GetVerbSlot_Impl (sal_uInt16 nId) const |
virtual SfxObjectShell * | GetObjectShell () |
void | SetDisableFlags (SfxDisableFlags nFlags) |
SfxDisableFlags | GetDisableFlags () const |
virtual std::optional< SfxItemSet > | CreateItemSet (sal_uInt16 nId) |
virtual void | ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet) |
void | SetContextName (const OUString &rsContextName) |
Set the name of the sidebar context that is broadcast on calls to Activation(). More... | |
void | BroadcastContextForActivation (const bool bIsActivated) |
Broadcast a sidebar context change. More... | |
bool | SetContextBroadcasterEnabled (const bool bIsEnabled) |
Enabled or disable the context broadcaster. More... | |
SAL_DLLPRIVATE bool | CanExecuteSlot_Impl (const SfxSlot &rSlot) |
This method determines by calling the status function whether 'rSlot' can be executed currently. More... | |
virtual bool | IsConditionalFastCall (const SfxRequest &rReq) |
This method determines whether we need to execute without checking the disabled state of the slot. More... | |
SAL_DLLPRIVATE void | DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI) |
This method controls the activation of SfxShell instance. More... | |
SAL_DLLPRIVATE void | DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI) |
This method controls the deactivation of the SfxShell instance. More... | |
![]() | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
size_t | GetSizeOfVector () const |
SfxListener * | GetListener (size_t nNo) const |
![]() | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
virtual void | libreOfficeKitViewCallback (int nType, const OString &pPayload) const=0 |
virtual void | libreOfficeKitViewCallbackWithViewId (int nType, const OString &pPayload, int nViewId) const=0 |
virtual void | libreOfficeKitViewInvalidateTilesCallback (const tools::Rectangle *pRect, int nPart, int nMode) const=0 |
virtual void | libreOfficeKitViewUpdatedCallback (int nType) const=0 |
virtual void | libreOfficeKitViewUpdatedCallbackPerViewId (int nType, int nViewId, int nSourceViewId) const=0 |
virtual void | libreOfficeKitViewAddPendingInvalidateTiles ()=0 |
virtual ViewShellId | GetViewShellId () const=0 |
virtual ViewShellDocId | GetDocId () const=0 |
virtual void | NotifyOtherViews (int nType, const OString &rKey, const OString &rPayload)=0 |
virtual void | NotifyOtherView (OutlinerViewShell *pOtherShell, int nType, const OString &rKey, const OString &rPayload)=0 |
virtual vcl::Window * | GetEditWindowForActiveOLEObj () const=0 |
![]() | |
virtual | ~ILibreOfficeKitNotifier () |
virtual void | notifyWindow (vcl::LOKWindowId nLOKWindowId, const OUString &rAction, const std::vector< LOKPayloadItem > &rPayload=std::vector< LOKPayloadItem >()) const=0 |
virtual void | libreOfficeKitViewCallback (int nType, const OString &pPayload) const=0 |
virtual void | notifyInvalidation (tools::Rectangle const *) const=0 |
Static Public Member Functions | |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | GetFirst (bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr) |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | GetNext (const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr) |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | Current () |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | Get (const css::uno::Reference< css::frame::XController > &i_rController) |
static void | SetCurrentDocId (ViewShellDocId nId) |
Set the current DocId, which is used by Mobile LOKit to load multiple documents and yet identify the views of each. More... | |
![]() | |
static SfxInterface * | GetStaticInterface () |
static void | EmptyExecStub (SfxShell *pShell, SfxRequest &) |
static void | EmptyStateStub (SfxShell *pShell, SfxItemSet &) |
static void | VerbState (SfxItemSet &) |
Protected Member Functions | |
virtual void | Activate (bool IsMDIActivate) override |
Virtual method that is called when enabling the SfxShell instance, in order to give the Subclasses the opportunity to respond to the to the enabling. More... | |
virtual void | Deactivate (bool IsMDIActivate) override |
Virtual method that is called when disabling the SfxShell instance, to give the Subclasses the opportunity to respond to the disabling. More... | |
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 |
![]() | |
SfxShell () | |
The constructor of the SfxShell class initializes only simple types, the corresponding SbxObject is only created on-demand. More... | |
SfxShell (SfxViewShell *pViewSh) | |
The constructor of the SfxShell class initializes only simple types, the corresponding SbxObject is only created on-demand. More... | |
void | SetViewShell_Impl (SfxViewShell *pView) |
SAL_DLLPRIVATE void | Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId) |
![]() | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
![]() | |
~OutlinerViewShell () noexcept | |
Private Member Functions | |
LOKDocumentFocusListener & | GetLOKDocumentFocusListener () |
const LOKDocumentFocusListener & | GetLOKDocumentFocusListener () const |
Static Private Member Functions | |
static void | InitInterface_Impl () |
SfxInterface initializer. More... | |
Private Attributes | |
std::unique_ptr< struct SfxViewShell_Impl > | pImpl |
SfxViewFrame & | rFrame |
VclPtr< vcl::Window > | pWindow |
bool | bNoNewWindow |
bool | mbPrinterSettingsModified |
LanguageTag | maLOKLanguageTag |
LanguageTag | maLOKLocale |
LOKDeviceFormFactor | maLOKDeviceFormFactor |
bool | mbLOKAccessibilityEnabled |
rtl::Reference< LOKDocumentFocusListener > | mpLOKDocumentFocusListener |
std::unordered_set< OUString > | mvLOKBlockedCommandList |
OUString | maLOKTimezone |
bool | maLOKIsTimezoneSet |
std::shared_ptr< SfxStoringHelper > | m_xHelper |
Used for async export. More... | |
StylesHighlighterColorMap | ParaStylesColorMap |
StylesHighlighterColorMap | CharStylesColorMap |
Static Private Attributes | |
static ViewShellDocId | mnCurrentDocId |
Used to set the DocId at construction time. See SetCurrentDocId. More... | |
Friends | |
class | SfxViewFrame |
class | SfxBaseController |
class | SfxPrinterController |
Additional Inherited Members | |
![]() | |
static void | HandleOpenXmlFilterSettings (SfxRequest &) |
One SfxViewShell more or less represents one edit window for a document, there can be multiple ones for a single opened document (SfxObjectShell).
Definition at line 163 of file viewsh.hxx.
SfxViewShell::SfxViewShell | ( | SfxViewFrame & | rFrame, |
SfxViewShellFlags | nFlags | ||
) |
Definition at line 1734 of file viewsh.cxx.
References SfxLokHelper::getDefaultLanguage(), SfxLokHelper::getDefaultTimezone(), SfxLokHelper::getDeviceFormFactor(), vcl::Window::GetFrameWindow(), vcl::Window::GetLOKNotifier(), SfxViewFrame::GetMargin_Impl(), SfxViewFrame::GetObjectShell(), SfxShell::GetPool(), SfxApplication::GetViewShells_Impl(), SfxViewFrame::GetWindow(), comphelper::LibreOfficeKit::isActive(), LANGUAGE_NONE, maLOKDeviceFormFactor, maLOKIsTimezoneSet, maLOKLanguageTag, maLOKLocale, maLOKTimezone, NO_NEWWINDOW, vcl::Window::SetLOKNotifier(), SetMargin(), SfxShell::SetPool(), SfxGetpApp(), SfxListener::StartListening(), and UNKNOWN.
|
overridevirtual |
Definition at line 1778 of file viewsh.cxx.
References vcl::Window::GetFrameWindow(), vcl::Window::GetLOKNotifier(), GetViewFrame(), SfxApplication::GetViewShells_Impl(), SfxViewFrame::GetWindow(), pImpl, vcl::Window::ReleaseLOKNotifier(), and SfxGetpApp().
|
overrideprotectedvirtual |
Virtual method that is called when enabling the SfxShell instance, in order to give the Subclasses the opportunity to respond to the to the enabling.
[Cross-reference]
StarView SystemWindow::Activate(bool)
Reimplemented from SfxShell.
Definition at line 1533 of file viewsh.cxx.
References GetController(), SfxObjectShell::GetModel(), SfxViewFrame::GetObjectShell(), GetViewFrame(), SetCurrentDocument(), and xModel.
void SfxViewShell::AddContextMenuInterceptor_Impl | ( | const css::uno::Reference< css::ui::XContextMenuInterceptor > & | xInterceptor | ) |
Definition at line 2659 of file viewsh.cxx.
References pImpl.
void SfxViewShell::AddRemoveClipboardListener | ( | const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > & | , |
bool | |||
) |
Definition at line 2856 of file viewsh.cxx.
References GetViewFrame(), and GetWindow().
void SfxViewShell::AddSubShell | ( | SfxShell & | rShell | ) |
Definition at line 1929 of file viewsh.cxx.
References SfxDispatcher::Flush(), SfxViewFrame::GetDispatcher(), SfxDispatcher::IsActive(), pImpl, SfxDispatcher::Push(), and rFrame.
|
virtual |
Where a new view can perform some update/initialization soon after the callback has been registered.
Definition at line 2292 of file viewsh.cxx.
Referenced by setLibreOfficeKitViewCallback().
void SfxViewShell::CheckIPClient_Impl | ( | SfxInPlaceClient const * | pIPClient, |
const tools::Rectangle & | rVisArea | ||
) |
Definition at line 2547 of file viewsh.cxx.
References SfxInPlaceClient::GetObjArea(), SfxInPlaceClient::GetObject(), SfxInPlaceClient::GetObjectMiscStatus(), GetObjectShell(), SfxInPlaceClient::IsObjectInPlaceActive(), tools::Rectangle::Overlaps(), and TOOLS_WARN_EXCEPTION.
|
virtual |
Definition at line 911 of file viewprn.cxx.
|
static |
Definition at line 1847 of file viewsh.cxx.
References SfxViewFrame::Current(), and SfxShell::GetViewShell().
Referenced by SfxStoringHelper::CallFinishGUIStoreModel(), SfxLokHelper::createView(), SfxDispatchController_Impl::dispatch(), SfxLokHelper::dumpState(), SfxDockingWindow::EventNotify(), SfxObjectShell::ExecFile_Impl(), SfxStoringHelper::FinishGUIStoreModel(), SfxLokHelper::getView(), LokChartHelper::HitAny(), IMPL_LINK(), impl_showOnlineHelp(), IMPL_STATIC_LINK_NOARG(), SfxBaseModel::impl_store(), InterceptLOKStateChangeEvent(), SfxApplication::MiscExec_Impl(), SfxApplication::MiscState_Impl(), SfxLokHelper::notifyAllViews(), SfxLokHelper::notifyDocumentSizeChangedAllViews(), LokChartHelper::PaintAllChartsOnTile(), LokStarMathHelper::PaintAllInPlaceOnTile(), sfx2::SfxNotebookBar::ReloadNotebookBar(), sfx2::sidebar::SidebarController::RequestCloseDeck(), sfx2::sidebar::Deck::RequestLayout(), SfxSecurityPage_Impl::Reset_Impl(), sendErrorToLOK(), SfxLokHelper::setView(), and SfxDispatcher::Update_Impl().
|
overrideprotectedvirtual |
Virtual method that is called when disabling the SfxShell instance, to give the Subclasses the opportunity to respond to the disabling.
[Cross-reference]
StarView SystemWindow::Deactivate(bool)
Reimplemented from SfxShell.
Definition at line 1546 of file viewsh.cxx.
void SfxViewShell::DisconnectAllClients | ( | ) |
Definition at line 2515 of file viewsh.cxx.
Referenced by SfxViewFrame::Close(), SfxViewFrame::ReleaseObjectShell_Impl(), and SetWindow().
|
virtual |
Definition at line 1432 of file viewsh.cxx.
References ERRCODE_SO_NOVERBS.
Referenced by SfxViewFrame::ExecView_Impl(), and SfxShell::VerbExec().
|
virtual |
Definition at line 2448 of file viewsh.cxx.
References GetViewShellId().
void SfxViewShell::dumpLibreOfficeKitViewState | ( | rtl::OStringBuffer & | rState | ) |
dump view state for diagnostics
Definition at line 2176 of file viewsh.cxx.
References pImpl.
Referenced by SfxLokHelper::dumpState().
bool SfxViewShell::Escape | ( | ) |
Definition at line 2826 of file viewsh.cxx.
References SfxBindings::Execute(), SfxViewFrame::GetBindings(), and GetViewFrame().
bool SfxViewShell::ExecKey_Impl | ( | const KeyEvent & | aKey | ) |
Definition at line 2101 of file viewsh.cxx.
References comphelper::ConfigurationChanges::create(), svt::AcceleratorExecute::createAcceleratorHelper(), SfxApplication::Get(), SfxApplication::GetAcceleratorConfs_Impl(), LanguageTag::getBcp47(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), KeyEvent::GetKeyCode(), GetLOKLanguageTag(), comphelper::LibreOfficeKit::isActive(), svt::AcceleratorExecute::lok_createNewAcceleratorConfiguration(), pImpl, and rFrame.
Referenced by GlobalKeyInput_Impl(), and KeyInput().
void SfxViewShell::ExecMisc_Impl | ( | SfxRequest & | rReq | ) |
Definition at line 1048 of file viewsh.cxx.
References SfxMailModel::AddToAddress(), Any, Application::CreateMessageDialog(), flatpak::createTemporaryHtmlDirectory(), SfxRequest::Done(), Exception, VclPtr< class reference_type >::get(), SfxRequest::GetArg(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxRequest::GetFrameWeld(), GetFrameWeld(), ToolBox::GetItemCommand(), ToolBox::GetItemCount(), ToolBox::GetItemId(), ToolBox::GetItemWindow(), INetURLObject::GetMainURL(), INetURLObject::getName(), GetObjectShell(), INetURLObject::GetProtocol(), SfxRequest::GetSlot(), SfxApplication::GetTopWindow(), CntUInt16Item::GetValue(), CntUnencodedStringItem::GetValue(), GetViewFrame(), VCLUnoHelper::GetWindow(), vcl::Window::GrabFocus(), SfxRequest::Ignore(), impl_retrieveFilterNameFromTypeAndModule(), impl_searchFormatTypeForApp(), INetURLObject::insertName(), flatpak::isFlatpak(), INetURLObject::LAST_SEGMENT, comphelper::makePropertyValue(), nId, INetURLObject::NONE, sfx2::openUriExternally(), pImpl, SfxObjectShell::QueryHiddenInformation(), RET_YES, rFrame, SAL_WARN, SfxBluetoothModel::SaveAndSend(), SfxMailModel::SaveAndSend(), SfxMailModel::SEND_MAIL_ERROR, INetURLObject::setExtension(), SfxGetpApp(), SfxResId(), u, WhenSaving, xController, xFrame, and xModel.
void SfxViewShell::ExecPrint | ( | const css::uno::Sequence< css::beans::PropertyValue > & | , |
bool | , | ||
bool | |||
) |
Definition at line 617 of file viewprn.cxx.
References Printer::GetJobSetup(), GetPrinter(), GetPrinterController(), Printer::PrintJob(), and StartPrint().
Referenced by ExecPrint_Impl(), and SfxPrintHelper::print().
void SfxViewShell::ExecPrint_Impl | ( | SfxRequest & | rReq | ) |
Definition at line 637 of file viewprn.cxx.
References SfxRequest::AppendItem(), SfxItemSet::Clone(), SfxItemSet::Count(), VclPtr< class reference_type >::Create(), Application::CreateMessageDialog(), VclPtr< class reference_type >::disposeAndClear(), SfxRequest::Done(), ExecPrint(), SfxRequest::GetArg(), SfxRequest::GetArgs(), SfxMedium::GetFilter(), GetFrameWeld(), SfxShell::GetInterface(), SfxObjectShell::GetMedium(), SfxViewFrame::GetObjectShell(), GetObjectShell(), SfxPrinter::GetOptions(), GetPrinter(), SfxRequest::GetSlot(), CntUnencodedStringItem::GetValue(), SfxBoolItem::GetValue(), GetViewFrame(), HasPrintOptionsPage(), SfxRequest::Ignore(), mbPrinterSettingsModified, nId, OPTIONS, pImpl, PRINTER, SfxObjectShell::QueryHiddenInformation(), SfxObjectShell::QuerySlotExecutable(), RET_CANCEL, RET_OK, RET_YES, PrinterSetupDialog::run(), PrinterSetupDialog::SetOptionsHdl(), PrinterSetupDialog::SetPrinter(), SetPrinter(), SetPrinter_Impl(), SfxRequest::SetReturnValue(), SfxResId(), TransformItems(), and WhenPrinting.
SfxInPlaceClient * SfxViewShell::FindIPClient | ( | const css::uno::Reference< css::embed::XEmbeddedObject > & | xObj, |
vcl::Window * | pObjParentWin | ||
) | const |
Definition at line 1471 of file viewsh.cxx.
References GetWindow(), and pImpl.
Referenced by SfxInPlaceClient::GetClient().
|
virtual |
Definition at line 2296 of file viewsh.cxx.
|
static |
Definition at line 1854 of file viewsh.cxx.
References GetFirst(), and GetNext().
Referenced by SfxBaseController::CopyLokViewCallbackFromFrameCreator(), SfxBaseModel::createViewController(), SfxViewFrame::LoadViewIntoFrame_Impl(), and SfxLokHelper::notifyContextChange().
int SfxViewShell::getA11yCaretPosition | ( | ) | const |
Definition at line 1809 of file viewsh.cxx.
References LOKDocumentFocusListener::getCaretPosition(), and GetLOKDocumentFocusListener().
OUString SfxViewShell::getA11yFocusedParagraph | ( | ) | const |
Definition at line 1803 of file viewsh.cxx.
References LOKDocumentFocusListener::getFocusedParagraph(), and GetLOKDocumentFocusListener().
Printer * SfxViewShell::GetActivePrinter | ( | ) | const |
Definition at line 631 of file viewprn.cxx.
References pImpl.
Referenced by SfxPrintHelper::getPrinter().
SfxBaseController * SfxViewShell::GetBaseController_Impl | ( | ) | const |
Definition at line 2654 of file viewsh.cxx.
References pImpl.
Referenced by SfxBaseModel::createViewController().
const SvBorder & SfxViewShell::GetBorderPixel | ( | ) | const |
Definition at line 1690 of file viewsh.cxx.
References SfxViewFrame::GetBorderPixelImpl(), and GetViewFrame().
uno::Reference< datatransfer::clipboard::XClipboardNotifier > SfxViewShell::GetClipboardNotifier | ( | ) | const |
Definition at line 2849 of file viewsh.cxx.
References GetViewFrame(), and GetWindow().
Referenced by SetController().
Reference< XController > SfxViewShell::GetController | ( | ) | const |
Definition at line 2649 of file viewsh.cxx.
References pImpl.
Referenced by Activate(), SfxBaseModel::createViewController(), SfxViewFrame::Get(), sfx2::sidebar::SidebarController::GetSidebarControllerForView(), SfxPrinterController::jobStarted(), Notify(), SfxViewFrame::SaveCurrentViewData_Impl(), StartPrint(), and TryContextMenuInterception().
|
virtual |
retrieves the document which shall be considered the "current document" when the frame is active
The default implementation simply returns the XModel of the associated SfxObjectShell. You will rarely need to overwrite this behavior.
Definition at line 2583 of file viewsh.cxx.
References SfxObjectShell::GetModel(), and GetObjectShell().
Referenced by SetCurrentDocument().
|
overridevirtual |
Get the DocId used by Mobile LOKit to load multiple documents.
Implements OutlinerViewShell.
Definition at line 2423 of file viewsh.cxx.
References pImpl.
Referenced by SfxLokHelper::createView(), SfxLokHelper::dumpState(), SfxLokHelper::getDocumentIdOfView(), SfxLokHelper::getViewIds(), SfxLokHelper::getViewsCount(), LokChartHelper::HitAny(), SfxLokHelper::notifyAllViews(), SfxLokHelper::notifyDocumentSizeChangedAllViews(), SfxLokHelper::notifyOtherViews(), SfxLokHelper::notifyOtherViewsUpdatePerViewId(), LokChartHelper::PaintAllChartsOnTile(), LokStarMathHelper::PaintAllInPlaceOnTile(), and setLibreOfficeKitViewCallback().
|
virtual |
Definition at line 1871 of file viewsh.cxx.
|
virtual |
See lok::Document::getMode().
Definition at line 2408 of file viewsh.cxx.
Referenced by lcl_generateJSON(), SfxLokHelper::notifyDocumentSizeChanged(), and SfxLokHelper::notifyInvalidation().
|
overridevirtual |
See OutlinerViewShell::GetEditWindowForActiveOLEObj().
Implements OutlinerViewShell.
Definition at line 2308 of file viewsh.cxx.
References SfxInPlaceClient::GetEditWin(), and GetIPClient().
|
static |
Definition at line 2015 of file viewsh.cxx.
References begin, end, SfxApplication::GetViewShells_Impl(), and SfxGetpApp().
Referenced by SfxViewFrame::AddDispatchMacroToBasic_Impl(), SfxLokHelper::dumpState(), SfxLokHelper::forEachOtherView(), Get(), SfxLokHelper::getDocumentIdOfView(), LokStarMathHelper::GetSmViewShell(), SfxLokHelper::getViewIds(), SfxLokHelper::getViewsCount(), LokChartHelper::HitAny(), SfxLokHelper::notifyAllViews(), SfxLokHelper::notifyDocumentSizeChangedAllViews(), SfxLokHelper::notifyOtherViews(), SfxLokHelper::notifyOtherViewsUpdatePerViewId(), SfxLokHelper::notifyPartSizeChangedAllViews(), SfxApplication::OpenDocExec_Impl(), LokChartHelper::PaintAllChartsOnTile(), LokStarMathHelper::PaintAllInPlaceOnTile(), and setLibreOfficeKitViewCallback().
|
inlinevirtual |
Definition at line 259 of file viewsh.hxx.
Referenced by SfxViewFrame::Notify(), and SfxViewFrame::StateReload_Impl().
|
inlinevirtual |
Definition at line 260 of file viewsh.hxx.
weld::Window * SfxViewShell::GetFrameWeld | ( | ) | const |
Definition at line 2878 of file viewsh.cxx.
References pWindow.
Referenced by SfxInPlaceClient::DoVerb(), ExecMisc_Impl(), ExecPrint_Impl(), SfxPrinterController::jobFinished(), and PrepareClose().
SfxInPlaceClient * SfxViewShell::GetIPClient | ( | ) | const |
Definition at line 1493 of file viewsh.cxx.
References GetUIActiveClient().
Referenced by SfxWorkWindow::ArrangeChildren_Impl(), LokChartHelper::GetChartBoundingBox(), GetEditWindowForActiveOLEObj(), LokChartHelper::GetXController(), and LokStarMathHelper::LokStarMathHelper().
SfxLokCallbackInterface * SfxViewShell::getLibreOfficeKitViewCallback | ( | ) | const |
Definition at line 2171 of file viewsh.cxx.
References pImpl.
|
inline |
Get the form factor of the device where the lok client is running.
Definition at line 459 of file viewsh.hxx.
|
private |
Definition at line 2334 of file viewsh.cxx.
References mpLOKDocumentFocusListener.
Referenced by getA11yCaretPosition(), getA11yFocusedParagraph(), GetLOKDocumentFocusListener(), and SetLOKAccessibilityState().
|
private |
Definition at line 2343 of file viewsh.cxx.
References GetLOKDocumentFocusListener().
|
inline |
Get the LibreOfficeKit language of this view.
Definition at line 435 of file viewsh.hxx.
Referenced by ExecKey_Impl().
|
inline |
Get the LibreOfficeKit locale of this view.
Definition at line 457 of file viewsh.hxx.
Definition at line 2301 of file viewsh.cxx.
|
inline |
Get the LibreOfficeKit timezone of this view. See @SetLOKTimezone.
Definition at line 440 of file viewsh.hxx.
|
inlinevirtual |
Definition at line 467 of file viewsh.hxx.
const Size & SfxViewShell::GetMargin | ( | ) | const |
Definition at line 2603 of file viewsh.cxx.
References pImpl.
|
static |
Definition at line 2044 of file viewsh.cxx.
References begin, end, GetViewFrame(), SfxApplication::GetViewShells_Impl(), SfxViewFrame::IsVisible(), nPos, and SfxGetpApp().
Referenced by SfxViewFrame::AddDispatchMacroToBasic_Impl(), SfxLokHelper::dumpState(), SfxLokHelper::forEachOtherView(), Get(), SfxLokHelper::getDocumentIdOfView(), SfxLokHelper::getViewIds(), SfxLokHelper::getViewsCount(), LokChartHelper::HitAny(), SfxLokHelper::notifyAllViews(), SfxLokHelper::notifyDocumentSizeChangedAllViews(), SfxLokHelper::notifyOtherViews(), SfxLokHelper::notifyOtherViewsUpdatePerViewId(), SfxLokHelper::notifyPartSizeChangedAllViews(), SfxApplication::OpenDocExec_Impl(), LokChartHelper::PaintAllChartsOnTile(), LokStarMathHelper::PaintAllInPlaceOnTile(), and setLibreOfficeKitViewCallback().
|
overridevirtual |
Reimplemented from SfxShell.
Definition at line 2578 of file viewsh.cxx.
References SfxViewFrame::GetObjectShell(), and rFrame.
Referenced by CheckIPClient_Impl(), ExecMisc_Impl(), ExecPrint_Impl(), SfxStoringHelper::FinishGUIStoreModel(), SfxInPlaceClient_Impl::getComponent(), GetCurrentDocument(), GetRenderable(), Notify(), SfxViewFrame::SaveCurrentViewData_Impl(), SfxInPlaceClient_Impl::saveObject(), SfxPrinterController::SfxPrinterController(), StartPrint(), SfxInPlaceClient_Impl::stateChanged(), and SfxShell::VerbExec().
|
virtual |
See lok::Document::getPart().
Definition at line 2403 of file viewsh.cxx.
Referenced by LokChartHelper::HitAny(), lcl_generateJSON(), SfxLokHelper::notifyInvalidation(), SfxLokHelper::notifyPartSizeChangedAllViews(), LokChartHelper::PaintAllChartsOnTile(), and LokStarMathHelper::PaintAllInPlaceOnTile().
|
virtual |
Definition at line 901 of file viewprn.cxx.
Referenced by SfxObjectShell::CreatePreview_Impl(), ExecPrint(), ExecPrint_Impl(), SfxPrintHelper::getPrinter(), GetState_Impl(), SfxPrintHelper::impl_setPrinter(), SfxPrinterController::jobFinished(), PrepareClose(), SfxPrintHelper::print(), SfxObjectShell::PrintState_Impl(), and SetPrinter_Impl().
const std::shared_ptr< vcl::PrinterController > & SfxViewShell::GetPrinterController | ( | ) | const |
|
virtual |
get an XRenderable instance that can render this document
Definition at line 2831 of file viewsh.cxx.
References SfxObjectShell::GetModel(), GetObjectShell(), and xModel.
Referenced by StartPrint().
|
virtual |
Definition at line 1886 of file viewsh.cxx.
void SfxViewShell::GetState_Impl | ( | SfxItemSet & | rSet | ) |
Definition at line 1331 of file viewsh.cxx.
References aProperties, SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), vcl::CommandInfoProvider::GetCommandProperties(), Printer::GetDefaultPrinterName(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), vcl::CommandInfoProvider::GetLabelForCommand(), vcl::CommandInfoProvider::GetModuleIdentifier(), Printer::GetName(), SfxViewFrame::GetObjectShell(), GetPrinter(), Application::GetSettings(), GetViewFrame(), SfxObjectShell::isExportLocked(), SfxObjectShell::isPrintLocked(), SfxWhichIter::NextWhich(), now, pImpl, SfxItemSet::Put(), rFrame, rSet, and xFrame.
|
inline |
Definition at line 476 of file viewsh.hxx.
Referenced by StyleList::FillTreeBox(), IMPL_LINK_NOARG(), lcl_Insert(), and StyleList::UpdateStyles().
|
inline |
Definition at line 475 of file viewsh.hxx.
Referenced by StyleList::FillTreeBox(), IMPL_LINK_NOARG(), lcl_Insert(), and StyleList::UpdateStyles().
SfxShell * SfxViewShell::GetSubShell | ( | sal_uInt16 | nNo | ) |
Definition at line 1969 of file viewsh.cxx.
SfxInPlaceClient * SfxViewShell::GetUIActiveClient | ( | ) | const |
Definition at line 1515 of file viewsh.cxx.
References comphelper::LibreOfficeKit::isActive(), and pImpl.
Referenced by SfxViewFrame::ExecView_Impl(), SfxDispatcher::FindServer_(), GetIPClient(), and SfxViewFrame::MakeActive_Impl().
SfxInPlaceClient * SfxViewShell::GetUIActiveIPClient_Impl | ( | ) | const |
Definition at line 1499 of file viewsh.cxx.
References pImpl.
Referenced by SfxFrameWindow_Impl::EventNotify(), and SfxFrame::Resize().
|
inline |
Definition at line 289 of file viewsh.hxx.
Referenced by Activate(), AddRemoveClipboardListener(), SfxClipboardChangeListener::ChangedContents(), SfxLokHelper::createView(), SfxInPlaceClient::DeactivateObject(), SfxInPlaceClient::DoVerb(), Escape(), ExecMisc_Impl(), ExecPrint_Impl(), GetBorderPixel(), GetClipboardNotifier(), SfxInPlaceClient_Impl::GetFrame(), GetNext(), SfxShell::GetObjectShell(), GetState_Impl(), InvalidateBorder(), SfxPrinterController::jobFinished(), JumpToMark(), SfxViewFrame::LoadViewIntoFrame_Impl_NoThrow(), SfxApplication::MiscExec_Impl(), Notify(), PrepareClose(), sfx2::SfxNotebookBar::ReloadNotebookBar(), SetBorderPixel(), SfxInPlaceClient::SetObject(), SfxShell::SetVerbs(), and ~SfxViewShell().
|
overridevirtual |
See OutlinerViewShell::GetViewShellId().
Implements OutlinerViewShell.
Definition at line 2413 of file viewsh.cxx.
References pImpl.
Referenced by SfxLokHelper::createView(), dumpAsXml(), SfxLokHelper::getDocumentIdOfView(), SfxLokHelper::getView(), SfxLokHelper::getViewIds(), and SfxViewFrame::StateHistory_Impl().
|
inline |
Definition at line 271 of file viewsh.hxx.
Referenced by AddRemoveClipboardListener(), SfxInPlaceClient::DeactivateObject(), FindIPClient(), GetClipboardNotifier(), SfxFrame::GrabFocusOnComponent_Impl(), IMPL_LINK_NOARG(), SfxDockingWindow::Initialize_Impl(), SfxFrameWindow_Impl::PreNotify(), PrepareClose(), SfxViewFrame::SetBorderPixelImpl(), SfxBaseModel::setVisualAreaSize(), SetZoomFactor(), and SfxRecordingFloatWrapper_Impl::SfxRecordingFloatWrapper_Impl().
bool SfxViewShell::GlobalKeyInput_Impl | ( | const KeyEvent & | rKeyEvent | ) |
Definition at line 2482 of file viewsh.cxx.
References ExecKey_Impl().
Referenced by SfxDockingWindow::EventNotify().
bool SfxViewShell::HandleNotifyEvent_Impl | ( | NotifyEvent const & | rEvent | ) |
Definition at line 2807 of file viewsh.cxx.
References pImpl.
Referenced by SfxFrameWindow_Impl::PreNotify().
bool SfxViewShell::HasKeyListeners_Impl | ( | ) | const |
Definition at line 2814 of file viewsh.cxx.
References pImpl.
Referenced by SfxFrameWindow_Impl::PreNotify().
bool SfxViewShell::HasMouseClickListeners_Impl | ( | ) | const |
Definition at line 2820 of file viewsh.cxx.
References pImpl.
Referenced by SfxFrameWindow_Impl::PreNotify().
|
virtual |
Definition at line 916 of file viewprn.cxx.
Referenced by ExecPrint_Impl().
|
virtual |
Definition at line 1916 of file viewsh.cxx.
|
staticprivate |
SfxInterface initializer.
Definition at line 920 of file viewsh.cxx.
|
protectedvirtual |
Definition at line 1621 of file viewsh.cxx.
References SetBorderPixel().
void SfxViewShell::InvalidateBorder | ( | ) |
Definition at line 1670 of file viewsh.cxx.
References GetViewFrame(), SfxViewFrame::InvalidateBorderImpl(), and pImpl.
void SfxViewShell::IPClientGone_Impl | ( | SfxInPlaceClient const * | pIPClient | ) |
Definition at line 1038 of file viewsh.cxx.
References pImpl.
Referenced by SfxInPlaceClient::~SfxInPlaceClient().
bool SfxViewShell::isBlockedCommand | ( | OUString | command | ) |
Definition at line 2897 of file viewsh.cxx.
References mvLOKBlockedCommandList.
|
inline |
Check if the lok client is running on a desktop machine.
Definition at line 461 of file viewsh.hxx.
References DESKTOP.
|
inline |
Check if the lok client is running on a mobile device.
Definition at line 465 of file viewsh.hxx.
References MOBILE.
Referenced by InterceptLOKStateChangeEvent(), sfx2::sidebar::SidebarController::RequestCloseDeck(), and sfx2::sidebar::Deck::RequestLayout().
|
inline |
Check if the lok client is running on a tablet.
Definition at line 463 of file viewsh.hxx.
References TABLET.
void SfxViewShell::JumpToMark | ( | const OUString & | rMark | ) |
Definition at line 2629 of file viewsh.cxx.
References SfxDispatcher::ExecuteList(), SfxViewFrame::GetDispatcher(), GetViewFrame(), RECORD, and SYNCHRON.
Referenced by SfxApplication::OpenDocExec_Impl().
|
virtual |
Definition at line 2456 of file viewsh.cxx.
References ExecKey_Impl().
Referenced by SfxFrameWindow_Impl::EventNotify().
|
overridevirtual |
Implements OutlinerViewShell.
Definition at line 2282 of file viewsh.cxx.
|
overridevirtual |
Invokes the registered callback, if there are any.
Implements OutlinerViewShell.
Definition at line 2243 of file viewsh.cxx.
References ignoreLibreOfficeKitViewCallback(), nType, pImpl, and SAL_INFO.
Referenced by SfxDispatchController_Impl::dispatch(), IMPL_LINK(), IMPL_LINK_NOARG(), SfxBaseModel::impl_store(), SfxLokHelper::notifyAllViews(), LOKDocumentFocusListener::notifyCaretChanged(), SfxLokHelper::notifyContextChange(), SfxLokHelper::notifyDocumentSizeChanged(), LOKDocumentFocusListener::notifyFocusedParagraphChanged(), LOKDocumentFocusListener::notifyTextSelectionChanged(), SfxLokHelper::notifyViewRenderState(), SfxLokHelper::notifyWindow(), sfx2::sidebar::SidebarController::RequestCloseDeck(), sendErrorToLOK(), and SfxLokHelper::sendUnoStatus().
|
overridevirtual |
Implements OutlinerViewShell.
Definition at line 2230 of file viewsh.cxx.
References ignoreLibreOfficeKitViewCallback(), nType, pImpl, and SAL_INFO.
Referenced by SfxLokHelper::notifyOtherView(), and SfxLokHelper::notifyOtherViews().
|
overridevirtual |
Implements OutlinerViewShell.
Definition at line 2218 of file viewsh.cxx.
References ignoreLibreOfficeKitViewCallback(), pImpl, and SAL_INFO.
Referenced by SfxLokHelper::notifyDocumentSizeChanged(), and SfxLokHelper::notifyInvalidation().
|
overridevirtual |
Implements OutlinerViewShell.
Definition at line 2256 of file viewsh.cxx.
References ignoreLibreOfficeKitViewCallback(), nType, pImpl, and SAL_INFO.
Referenced by SfxLokHelper::notifyUpdate().
|
overridevirtual |
Implements OutlinerViewShell.
Definition at line 2269 of file viewsh.cxx.
References ignoreLibreOfficeKitViewCallback(), nType, pImpl, and SAL_INFO.
Referenced by SfxLokHelper::notifyOtherViewsUpdatePerViewId(), and SfxLokHelper::notifyUpdatePerViewId().
|
virtual |
Definition at line 2625 of file viewsh.cxx.
Referenced by SetMargin().
|
protectedvirtual |
Definition at line 1551 of file viewsh.cxx.
void SfxViewShell::NewIPClient_Impl | ( | SfxInPlaceClient * | pIPClient | ) |
Definition at line 1033 of file viewsh.cxx.
References pImpl.
Referenced by SfxInPlaceClient::SfxInPlaceClient().
|
inline |
Definition at line 331 of file viewsh.hxx.
|
overrideprotectedvirtual |
Reimplemented from SfxListener.
Definition at line 2073 of file viewsh.cxx.
References SfxItemSet::ClearItem(), GetController(), SfxEventHint::GetEventId(), SfxMedium::GetItemSet(), SfxObjectShell::GetMedium(), GetObjectShell(), SfxUnoAnyItem::GetValue(), GetViewFrame(), SfxApplication::GetViewFrames_Impl(), LoadFinished, pImpl, and SfxGetpApp().
|
virtual |
Ask this view to send its cursor position to pViewShell.
Definition at line 2394 of file viewsh.cxx.
Referenced by setLibreOfficeKitViewCallback().
|
overridevirtual |
ILibreOfficeKitNotifier. Emits a LOK_CALLBACK_INVALIDATE_TILES.
Implements vcl::ILibreOfficeKitNotifier.
Definition at line 2429 of file viewsh.cxx.
References SfxLokHelper::notifyInvalidation().
|
overridevirtual |
See OutlinerViewShell::NotifyOtherView().
Implements OutlinerViewShell.
Definition at line 2439 of file viewsh.cxx.
References SfxLokHelper::notifyOtherView(), and nType.
|
overridevirtual |
See OutlinerViewShell::NotifyOtherViews().
Implements OutlinerViewShell.
Definition at line 2434 of file viewsh.cxx.
References SfxLokHelper::notifyOtherViews(), and nType.
|
overridevirtual |
Definition at line 2844 of file viewsh.cxx.
References SfxLokHelper::notifyWindow().
Definition at line 1572 of file viewsh.cxx.
References SetBorderPixel().
void SfxViewShell::OutplaceActivated | ( | bool | bActive | ) |
Definition at line 1445 of file viewsh.cxx.
References SfxFrame::Appear(), SfxShell::GetFrame(), and SfxViewFrame::GetFrame().
Referenced by SfxInPlaceClient_Impl::visibilityChanged().
|
inline |
Definition at line 376 of file viewsh.hxx.
Referenced by SfxViewFrame::PopShellAndSubShells_Impl().
|
virtual |
Initialize is called after the frame has been loaded and the controller has been set.
By the time this is called the document has been fully imported.
bOnlyASample | used by some dialogs to avoid constructing monster strings e.g. in calc |
Definition at line 1815 of file viewsh.cxx.
References Application::CreateMessageDialog(), SfxShell::GetDispatcher(), GetFrameWeld(), GetPrinter(), GetViewFrame(), SfxViewFrame::GetWindow(), GetWindow(), Printer::IsPrinting(), vcl::Window::ReleaseLOKNotifier(), and SfxResId().
Referenced by SfxViewFrame::ExecReload_Impl(), SfxFrame::PrepareClose_Impl(), and SfxViewFrame::SwitchToViewShell_Impl().
void SfxViewShell::PushSubShells_Impl | ( | bool | bPush = true | ) |
Definition at line 1977 of file viewsh.cxx.
References SfxDispatcher::Flush(), SfxViewFrame::GetDispatcher(), SfxDispatcher::GetShellLevel(), pImpl, SfxDispatcher::Pop(), POP_UNTIL, SfxDispatcher::Push(), and rFrame.
|
virtual |
Definition at line 2527 of file viewsh.cxx.
|
virtual |
Definition at line 2001 of file viewsh.cxx.
|
virtual |
Definition at line 2005 of file viewsh.cxx.
void SfxViewShell::RemoveContextMenuInterceptor_Impl | ( | const css::uno::Reference< css::ui::XContextMenuInterceptor > & | xInterceptor | ) |
Definition at line 2665 of file viewsh.cxx.
References pImpl.
void SfxViewShell::RemoveSubShell | ( | SfxShell * | pShell = nullptr | ) |
Definition at line 1940 of file viewsh.cxx.
References SfxDispatcher::Flush(), SfxViewFrame::GetDispatcher(), i, SfxDispatcher::IsActive(), n, nCount, pImpl, SfxDispatcher::Pop(), SfxDispatcher::RemoveShell_Impl(), and rFrame.
void SfxViewShell::ResetAllClients_Impl | ( | SfxInPlaceClient const * | pIP | ) |
Definition at line 2500 of file viewsh.cxx.
References pImpl.
Referenced by SfxInPlaceClient_Impl::activatingUI().
void SfxViewShell::setBlockedCommandList | ( | const char * | blockedCommandList | ) |
Definition at line 2883 of file viewsh.cxx.
References i, and mvLOKBlockedCommandList.
Referenced by SfxLokHelper::setBlockedCommandList().
void SfxViewShell::SetBorderPixel | ( | const SvBorder & | rBorder | ) |
Definition at line 1679 of file viewsh.cxx.
References GetViewFrame(), pImpl, and SfxViewFrame::SetBorderPixelImpl().
Referenced by InnerResizePixel(), and OuterResizePixel().
void SfxViewShell::SetController | ( | SfxBaseController * | pController | ) |
Definition at line 2638 of file viewsh.cxx.
References GetClipboardNotifier(), and pImpl.
Referenced by SfxBaseModel::createViewController().
|
static |
Set the current DocId, which is used by Mobile LOKit to load multiple documents and yet identify the views of each.
There are events that are fired while creating a new view, and if we don't have a DocId, we can't know which other views within the same document (if any) should get those events. By setting this static value, we are able to set the DocId of each SfxViewShell at construction time.
Definition at line 2418 of file viewsh.cxx.
References mnCurrentDocId, and nId.
Referenced by SfxLokHelper::createView().
void SfxViewShell::SetCurrentDocument | ( | ) | const |
forwards the current document, as returned by ->GetCurrentDocument, to SfxObjectShell::SetWorkingDocument
Definition at line 2595 of file viewsh.cxx.
References GetCurrentDocument(), and SfxObjectShell::SetCurrentComponent().
Referenced by Activate(), and SfxApplication::SetViewFrame_Impl().
void SfxViewShell::setLibreOfficeKitViewCallback | ( | SfxLokCallbackInterface * | pCallback | ) |
Set up a more efficient internal callback instead of LibreOfficeKitCallback.
Definition at line 2152 of file viewsh.cxx.
References afterCallbackRegistered(), GetDocId(), GetFirst(), GetNext(), NotifyCursor(), and pImpl.
void SfxViewShell::SetLOKAccessibilityState | ( | bool | bEnabled | ) |
Enable/Disable LibreOfficeKit AT support for this view.
Definition at line 2348 of file viewsh.cxx.
References LOKDocumentFocusListener::attachRecursive(), LOKDocumentFocusListener::detachRecursive(), GetLOKDocumentFocusListener(), mbLOKAccessibilityEnabled, pWindow, and SAL_WARN.
void SfxViewShell::SetLOKLanguageTag | ( | const OUString & | rBcp47LanguageTag | ) |
Set the LibreOfficeKit language of this view.
Definition at line 2319 of file viewsh.cxx.
References getInstalledLocaleForSystemUILanguage(), LanguageTag::getLanguage(), comphelper::LibreOfficeKit::isActive(), LanguageTag::makeFallback(), and maLOKLanguageTag.
void SfxViewShell::SetLOKLocale | ( | const OUString & | rBcp47LanguageTag | ) |
Set the LibreOfficeKit locale of this view.
Definition at line 2389 of file viewsh.cxx.
References LanguageTag::makeFallback(), and maLOKLocale.
|
inline |
Set the LibreOfficeKit timezone of this view.
@isSet true to use @rTimezone, even if it's empty. Otherwise, no timezone. @rTimezone the value to set (which could be empty).
Definition at line 448 of file viewsh.hxx.
void SfxViewShell::SetMargin | ( | const Size & | rSize | ) |
Definition at line 2609 of file viewsh.cxx.
References DEFAULT_MARGIN_HEIGHT, DEFAULT_MARGIN_WIDTH, Size::Height(), MarginChanged(), pImpl, Size::setHeight(), Size::setWidth(), and Size::Width().
Referenced by SfxViewShell().
|
inline |
Definition at line 332 of file viewsh.hxx.
|
virtual |
Definition at line 906 of file viewprn.cxx.
Referenced by ExecPrint_Impl(), SfxPrinterController::jobFinished(), SfxPrintHelper::setPrinter(), and SetPrinter_Impl().
void SfxViewShell::SetPrinter_Impl | ( | VclPtr< SfxPrinter > & | pNewPrinter | ) |
Internal method for setting the differences between 'pNewPrinter' to the current printer.
pNewPrinter is either taken over or deleted.
Definition at line 466 of file viewprn.cxx.
References CHG_ORIENTATION, CHG_SIZE, Application::CreateMessageDialog(), VclPtr< class reference_type >::disposeAndClear(), SfxItemSet::GetItemIfSet(), Printer::GetJobSetup(), Printer::GetName(), SfxPrinter::GetOptions(), Printer::GetOrientation(), Printer::GetPaperSizePixel(), GetPrinter(), SfxFlagItem::GetValue(), Size::Height(), Printer::IsDefPrinter(), JOBSETUP, NONE, OPTIONS, PRINTER, RET_YES, SfxPrinter::SetOptions(), SetPrinter(), Printer::SetPrinterProps(), SfxResId(), and Size::Width().
Referenced by ExecPrint_Impl().
|
inline |
Definition at line 473 of file viewsh.hxx.
Referenced by SfxStoringHelper::CallFinishGUIStoreModel(), and SfxObjectShell::ExecFile_Impl().
void SfxViewShell::setTiledSearching | ( | bool | bTiledSearching | ) |
void SfxViewShell::SetWindow | ( | vcl::Window * | pViewPort | ) |
Definition at line 1695 of file viewsh.cxx.
References DisconnectAllClients(), and pWindow.
|
protectedvirtual |
Definition at line 1422 of file viewsh.cxx.
References aMap, DBG_ASSERT, GetWindow(), and vcl::Window::SetMapMode().
|
virtual |
Definition at line 2488 of file viewsh.cxx.
Referenced by SfxViewFrame::Enable().
void SfxViewShell::StartPrint | ( | const css::uno::Sequence< css::beans::PropertyValue > & | , |
bool | , | ||
bool | |||
) |
Definition at line 568 of file viewprn.cxx.
References Any, GetController(), SfxObjectShell::GetModel(), GetObjectShell(), GetRenderable(), GetTitle(), mbPrinterSettingsModified, pImpl, VclPtr< class reference_type >::reset(), and xController.
Referenced by ExecPrint().
bool SfxViewShell::TryContextMenuInterception | ( | const rtl::Reference< VCLXPopupMenu > & | rPopupMenu, |
const OUString & | rMenuIdentifier, | ||
css::ui::ContextMenuExecuteEvent | aEvent | ||
) |
Definition at line 2741 of file viewsh.cxx.
References aEvent, framework::ActionTriggerHelper::CreateActionTriggerContainerFromMenu(), framework::ActionTriggerHelper::CreateMenuFromActionTriggerContainer(), GetController(), pImpl, and SAL_WARN.
bool SfxViewShell::TryContextMenuInterception | ( | const rtl::Reference< VCLXPopupMenu > & | rIn, |
const OUString & | rMenuIdentifier, | ||
rtl::Reference< VCLXPopupMenu > & | rOut, | ||
css::ui::ContextMenuExecuteEvent | aEvent | ||
) |
|
virtual |
Definition at line 1451 of file viewsh.cxx.
References SfxViewFrame::GetBindings(), SfxViewFrame::GetDispatcher(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxBindings::HidePopups(), rFrame, and SfxDispatcher::Update_Impl().
Referenced by SfxInPlaceClient_Impl::activatingUI().
|
virtual |
Definition at line 1462 of file viewsh.cxx.
References SfxViewFrame::Current(), SfxViewFrame::GetBindings(), SfxViewFrame::GetDispatcher(), SfxViewFrame::GetFrame(), SfxBindings::HidePopups(), SfxBindings::InvalidateAll(), SfxFrame::IsClosing_Impl(), rFrame, and SfxDispatcher::Update_Impl().
Referenced by SfxInPlaceClient_Impl::deactivatedUI().
void SfxViewShell::VisAreaChanged | ( | ) |
Definition at line 2532 of file viewsh.cxx.
References pImpl.
|
virtual |
Definition at line 1996 of file viewsh.cxx.
|
virtual |
Definition at line 2009 of file viewsh.cxx.
Referenced by SfxViewFrame::SaveCurrentViewData_Impl().
|
friend |
Definition at line 166 of file viewsh.hxx.
|
friend |
Definition at line 167 of file viewsh.hxx.
|
friend |
Definition at line 165 of file viewsh.hxx.
|
private |
Definition at line 172 of file viewsh.hxx.
|
private |
Definition at line 190 of file viewsh.hxx.
|
private |
Used for async export.
Definition at line 187 of file viewsh.hxx.
|
private |
Definition at line 176 of file viewsh.hxx.
Referenced by SfxViewShell().
|
private |
Definition at line 181 of file viewsh.hxx.
Referenced by SfxViewShell().
|
private |
Definition at line 174 of file viewsh.hxx.
Referenced by SetLOKLanguageTag(), and SfxViewShell().
|
private |
Definition at line 175 of file viewsh.hxx.
Referenced by SetLOKLocale(), and SfxViewShell().
|
private |
Definition at line 180 of file viewsh.hxx.
Referenced by SfxViewShell().
|
private |
Definition at line 177 of file viewsh.hxx.
Referenced by SetLOKAccessibilityState().
|
private |
Definition at line 173 of file viewsh.hxx.
Referenced by ExecPrint_Impl(), and StartPrint().
|
staticprivate |
Used to set the DocId at construction time. See SetCurrentDocId.
Definition at line 184 of file viewsh.hxx.
Referenced by SetCurrentDocId().
|
private |
Definition at line 178 of file viewsh.hxx.
Referenced by GetLOKDocumentFocusListener().
|
private |
Definition at line 179 of file viewsh.hxx.
Referenced by isBlockedCommand(), and setBlockedCommandList().
|
private |
Definition at line 189 of file viewsh.hxx.
|
private |
Definition at line 169 of file viewsh.hxx.
Referenced by AddContextMenuInterceptor_Impl(), AddSubShell(), DisconnectAllClients(), dumpLibreOfficeKitViewState(), ExecKey_Impl(), ExecMisc_Impl(), ExecPrint_Impl(), FindIPClient(), GetActivePrinter(), GetBaseController_Impl(), GetController(), GetDocId(), getLibreOfficeKitViewCallback(), GetMargin(), GetPrinterController(), GetState_Impl(), GetSubShell(), GetUIActiveClient(), GetUIActiveIPClient_Impl(), GetViewShellId(), HandleNotifyEvent_Impl(), HasKeyListeners_Impl(), HasMouseClickListeners_Impl(), InvalidateBorder(), IPClientGone_Impl(), SfxPrinterController::jobFinished(), libreOfficeKitViewAddPendingInvalidateTiles(), libreOfficeKitViewCallback(), libreOfficeKitViewCallbackWithViewId(), libreOfficeKitViewInvalidateTilesCallback(), libreOfficeKitViewUpdatedCallback(), libreOfficeKitViewUpdatedCallbackPerViewId(), NewIPClient_Impl(), Notify(), PushSubShells_Impl(), RemoveContextMenuInterceptor_Impl(), RemoveSubShell(), ResetAllClients_Impl(), SetBorderPixel(), SetController(), setLibreOfficeKitViewCallback(), SetMargin(), setTiledSearching(), StartPrint(), TryContextMenuInterception(), VisAreaChanged(), and ~SfxViewShell().
|
private |
Definition at line 171 of file viewsh.hxx.
Referenced by GetFrameWeld(), SetLOKAccessibilityState(), and SetWindow().
|
private |
Definition at line 170 of file viewsh.hxx.
Referenced by AddSubShell(), ExecKey_Impl(), ExecMisc_Impl(), GetObjectShell(), GetState_Impl(), PushSubShells_Impl(), RemoveSubShell(), UIActivating(), and UIDeactivated().