LibreOffice Module sd (master) 1
|
Base class of the stacked shell hierarchy. More...
#include <ViewShell.hxx>
Classes | |
class | Implementation |
This class contains (will contain) the implementation of methods that have not be accessible from the outside. More... | |
Public Types | |
enum | ShellType { ST_NONE , ST_DRAW , ST_IMPRESS , ST_NOTES , ST_HANDOUT , ST_OUTLINE , ST_SLIDE_SORTER , ST_PRESENTATION , ST_SIDEBAR } |
Public Member Functions | |
ViewShell (vcl::Window *pParentWindow, ViewShellBase &rViewShellBase) | |
declare SFX-Slotmap and standard interface More... | |
virtual | ~ViewShell () override |
virtual void | Init (bool bIsMainViewShell) |
The Init method has to be called from the outside directly after a new object of this class has been created. More... | |
void | Exit () |
The Exit() method has to be called before the destructor so that the view shell is still a valid object and can safely call methods that rely on that. More... | |
void | Cancel () |
this method deactivates the current function. More... | |
vcl::Window * | GetParentWindow () const |
Return the window that is the parent of all controls of this view shell. More... | |
sd::Window * | GetContentWindow () const |
::sd::View * | GetView () const |
SdrView * | GetDrawView () const |
SD_DLLPUBLIC DrawDocShell * | GetDocSh () const |
SdDrawDocument * | GetDoc () const |
SD_DLLPUBLIC SfxViewFrame * | GetViewFrame () const |
::sd::Window * | GetActiveWindow () const |
The active window is usually the mpContentWindow. More... | |
SD_DLLPUBLIC weld::Window * | GetFrameWeld () const |
void | SetActiveWindow (::sd::Window *pWindow) |
Set the active window. More... | |
const ::tools::Rectangle & | GetAllWindowRect () |
Return the rectangle that encloses all windows of the view. More... | |
virtual void | PrePaint () |
virtual void | Paint (const ::tools::Rectangle &rRect, ::sd::Window *pWin) |
virtual bool | KeyInput (const KeyEvent &rKEvt, ::sd::Window *pWin) |
virtual void | MouseMove (const MouseEvent &rMEvt, ::sd::Window *pWin) |
virtual void | MouseButtonUp (const MouseEvent &rMEvt, ::sd::Window *pWin) |
virtual void | MouseButtonDown (const MouseEvent &rMEvt, ::sd::Window *pWin) |
virtual void | Command (const CommandEvent &rCEvt, ::sd::Window *pWin) |
bool | RequestHelp (const HelpEvent &rEvt) |
bool | Notify (NotifyEvent const &rNEvt, ::sd::Window *pWin) |
bool | HandleScrollCommand (const CommandEvent &rCEvt, ::sd::Window *pWin) |
void | SetUIUnit (FieldUnit eUnit) |
void | SetDefTabHRuler (sal_uInt16 nDefTab) |
set DefTab at horizontal rulers More... | |
const SvxNumBulletItem * | GetNumBulletItem (SfxItemSet &aNewAttr, TypedWhichId< SvxNumBulletItem > &nNumItemId) |
bool | HasRuler () const |
void | SetRuler (bool bRuler) |
Switch ruler on/off. More... | |
void | SetScrollBarsVisible (bool bVisible) |
virtual void | UpdateScrollBars () |
Set internal values of all scroll bars that determine thumb size and position. More... | |
void | Scroll (::tools::Long nX, ::tools::Long nY) |
void | ScrollLines (::tools::Long nX, ::tools::Long nY) |
Scroll a specific number of lines. More... | |
virtual void | SetZoom (::tools::Long nZoom) |
Set zoom factor for all split windows. More... | |
::tools::Long | GetZoom () const |
virtual void | SetZoomRect (const ::tools::Rectangle &rZoomRect) |
Set zoom rectangle for active window. More... | |
void | InitWindows (const Point &rViewOrigin, const Size &rViewSize, const Point &rWinPos, bool bUpdate=false) |
Initialize imaging parameters for all split windows. More... | |
void | InvalidateWindows () |
Invalidate all split windows below the ?provided rectangle. More... | |
virtual void | UpdatePreview (SdPage *pPage) |
This method is still used by the OutlineViewShell to update the model according to the content of the outline view. More... | |
void | DrawMarkRect (const ::tools::Rectangle &rRect) const |
Draw a selection rectangle with the ?provided pen on all split windows. More... | |
void | ExecReq (SfxRequest &rReq) |
ZoomList * | GetZoomList () |
FrameView * | GetFrameView () |
void | SetFrameView (FrameView *pFrameView) |
Setting a frame view triggers ReadFrameViewData() for the new frame. More... | |
virtual void | ReadFrameViewData (FrameView *pView) |
virtual void | WriteFrameViewData () |
void | WriteUserData () |
void | ReadUserData () |
virtual bool | ActivateObject (SdrOle2Obj *pObj, sal_Int32 nVerb) |
virtual SdPage * | GetActualPage ()=0 |
virtual SdPage * | getCurrentPage () const =0 |
const rtl::Reference< FuPoor > & | GetOldFunction () const |
bool | HasOldFunction () const |
const rtl::Reference< FuPoor > & | GetCurrentFunction () const |
bool | HasCurrentFunction (sal_uInt16 nSID) |
bool | HasCurrentFunction () const |
void | SetCurrentFunction (const rtl::Reference< FuPoor > &xFunction) |
void | SetOldFunction (const rtl::Reference< FuPoor > &xFunction) |
void | DeactivateCurrentFunction (bool bPermanent=false) |
void | SetPageSizeAndBorder (PageKind ePageKind, const Size &rNewSize, ::tools::Long nLeft, ::tools::Long nRight, ::tools::Long nUpper, ::tools::Long nLower, bool bScaleAll, Orientation eOrient, sal_uInt16 nPaperBin, bool bBackgroundFullSize) |
void | SetStartShowWithDialog (bool bIn) |
bool | IsStartShowWithDialog () const |
sal_uInt16 | GetPrintedHandoutPageNum () const |
void | SetPrintedHandoutPageNum (sal_uInt16 nPageNumber) |
sal_uInt16 | GetPrintedHandoutPageCount () const |
void | SetPrintedHandoutPageCount (sal_uInt16 nPageCount) |
virtual bool | PrepareClose (bool bUI=true) |
Tell the FmFormShell that the view shell is closing. More... | |
void | GetMenuState (SfxItemSet &rSet) |
set state (enabled/disabled) of Menu SfxSlots More... | |
virtual sal_Int8 | AcceptDrop (const AcceptDropEvent &rEvt, DropTargetHelper &rTargetHelper, ::sd::Window *pTargetWindow, sal_uInt16 nPage, SdrLayerID nLayer) |
virtual sal_Int8 | ExecuteDrop (const ExecuteDropEvent &rEvt, DropTargetHelper &rTargetHelper, ::sd::Window *pTargetWindow, sal_uInt16 nPage, SdrLayerID nLayer) |
virtual void | WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &) |
virtual void | ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &) |
virtual void | VisAreaChanged (const ::tools::Rectangle &rRect) |
this method is called when the visible area of the view from this viewshell is changed More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessibleDocumentView (::sd::Window *pWindow) |
Create an accessible object representing the specified window. More... | |
virtual void | SwitchViewFireFocus (const css::uno::Reference< css::accessibility::XAccessible > &xAcc) |
void | SwitchActiveViewFireFocus () |
void | NotifyAccUpdate () |
void | fireSwitchCurrentPage (sal_Int32 pageIndex) |
void | SetWinViewPos (const Point &rWinPos) |
Point const & | GetWinViewPos () const |
Point const & | GetViewOrigin () const |
::sd::WindowUpdater * | GetWindowUpdater () const |
Return the window updater of this view shell. More... | |
SvBorder | GetBorder () |
Return the border that is drawn around the actual document view. More... | |
virtual void | Resize () |
Notify the view shell that its parent window has been resized. More... | |
virtual void | ArrangeGUIElements () |
Set position and size of the GUI elements that are controlled by the view shell like rulers and scroll bars as well as the actual document view according to the position and size that were given with the last Resize() call. More... | |
SD_DLLPUBLIC ViewShellBase & | GetViewShellBase () const |
bool | IsMainViewShell () const |
Return <TRUE> when the called view shell is the main sub shell of its ViewShellBase object, i.e. More... | |
void | SetIsMainViewShell (bool bIsMainViewShell) |
Set or reset the flag that indicates whether the called shell is the one displayed in the center pane. More... | |
virtual css::uno::Reference< css::drawing::XDrawSubController > | CreateSubController ()=0 |
Return a sub controller that implements the view shell specific part of the DrawController. More... | |
SD_DLLPUBLIC ShellType | GetShellType () const |
Return the type of the shell. More... | |
virtual void | Shutdown () |
This method is more or less an alias to Deactivate(). More... | |
virtual ErrCode | DoVerb (sal_Int32 nVerb) |
This function is called from the underlying ViewShellBase object to handle a verb execution request. More... | |
virtual void | UIActivating (SfxInPlaceClient *) |
virtual void | UIDeactivated (SfxInPlaceClient *) |
virtual void | ShowUIControls (bool bVisible) |
Show controls of the UI or hide them, depending on the given flag. More... | |
bool | IsPageFlipMode () const |
virtual bool | RelocateToParentWindow (vcl::Window *pParentWindow) |
Set the given window as new parent window. More... | |
virtual SdPage * | CreateOrDuplicatePage (SfxRequest &rRequest, PageKind ePageKind, SdPage *pPage, const sal_Int32 nInsertPosition=-1) |
Depending on the given request create a new page or duplicate an existing one. More... | |
void | SetCursorMm100Position (const Point &rPosition, bool bPoint, bool bClearMark) |
Allows adjusting the point or mark of the selection to a document coordinate. More... | |
css::uno::Reference< css::datatransfer::XTransferable > | GetSelectionTransferable () const |
Gets the current selection. More... | |
void | SetGraphicMm100Position (bool bStart, const Point &rPosition) |
Allows starting or ending a graphic move or resize action. More... | |
Public Member Functions inherited from SfxShell | |
virtual | ~SfxShell () override |
virtual SfxInterface * | GetInterface () const |
void | SetName (const OUString &rName) |
const OUString & | GetName () const |
SfxViewShell * | GetViewShell () const |
const SfxPoolItem * | GetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr) |
const SfxPoolItem * | ExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr) |
void | ExecuteSlot (SfxRequest &rReq, bool bAsync) |
SfxItemPool & | GetPool () const |
void | SetPool (SfxItemPool *pNewPool) |
virtual SfxUndoManager * | GetUndoManager () |
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) |
SfxDispatcher * | GetDispatcher () const |
SfxViewFrame * | GetFrame () const |
virtual bool | HasUIFeature (SfxShellFeature nFeature) const |
void | UIFeatureChanged () |
const SfxPoolItem * | GetItem (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 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) |
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 Attributes | |
static const int | MAX_HSPLIT_CNT = 1 |
static const int | MAX_VSPLIT_CNT = 1 |
static const int | MIN_SCROLLBAR_SIZE = 50 |
Protected Member Functions | |
void | DisposeFunctions () |
must be called in the beginning of each subclass d'tor. More... | |
virtual SfxUndoManager * | ImpGetUndoManager () const |
void | ImpGetUndoStrings (SfxItemSet &rSet) const |
void | ImpGetRedoStrings (SfxItemSet &rSet) const |
void | ImpSidUndo (SfxRequest &rReq) |
void | ImpSidRedo (SfxRequest &rReq) |
DECL_DLLPRIVATE_LINK (HScrollHdl, weld::Scrollbar &, void) | |
DECL_DLLPRIVATE_LINK (VScrollHdl, weld::Scrollbar &, void) | |
virtual void | VirtHScrollHdl (ScrollAdaptor *pHScroll) |
virtual scroll handler for horizontal Scrollbars More... | |
virtual void | VirtVScrollHdl (ScrollAdaptor *pVScroll) |
handling for vertical Scrollbars More... | |
virtual VclPtr< SvxRuler > | CreateHRuler (::sd::Window *pWin) |
virtual VclPtr< SvxRuler > | CreateVRuler (::sd::Window *pWin) |
virtual void | UpdateHRuler () |
virtual void | UpdateVRuler () |
virtual void | Activate (bool IsMDIActivate) override |
set focus to working window More... | |
virtual void | Deactivate (bool IsMDIActivate) override |
virtual void | SetZoomFactor (const Fraction &rZoomX, const Fraction &rZoomY) |
Set zoom factor for InPlace. More... | |
void | doShow () |
This must be called after the ctor, but before anything else. More... | |
Protected Member Functions inherited from SfxShell | |
SfxShell () | |
SfxShell (SfxViewShell *pViewSh) | |
void | SetViewShell_Impl (SfxViewShell *pView) |
SAL_DLLPRIVATE void | Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId) |
Private Member Functions | |
void | construct () |
Code common to all constructors. More... | |
void | SetupRulers () |
Create the rulers. More... | |
Private Attributes | |
VclPtr< vcl::Window > | mpParentWindow |
::std::unique_ptr< ::sd::WindowUpdater > | mpWindowUpdater |
This window updater is used to keep all relevant windows up to date with reference to the digit language used to display digits in text shapes. More... | |
Friends | |
class | ViewShellBase |
Additional Inherited Members | |
Static Public Member Functions inherited from SfxShell | |
static SfxInterface * | GetStaticInterface () |
static void | EmptyExecStub (SfxShell *pShell, SfxRequest &) |
static void | EmptyStateStub (SfxShell *pShell, SfxItemSet &) |
static void | VerbState (SfxItemSet &) |
Static Protected Member Functions inherited from SfxShell | |
static void | HandleOpenXmlFilterSettings (SfxRequest &) |
Base class of the stacked shell hierarchy.
Despite its name this class is not a descendant of SfxViewShell but of SfxShell. Its name expresses the fact that it acts like a view shell. Being a stacked shell rather than being an actual view shell there can be several instances of this class that
are all visible at the same time and live in the same frame.
This class replaces the former ViewShell class.
Definition at line 90 of file ViewShell.hxx.
Enumerator | |
---|---|
ST_NONE | |
ST_DRAW | |
ST_IMPRESS | |
ST_NOTES | |
ST_HANDOUT | |
ST_OUTLINE | |
ST_SLIDE_SORTER | |
ST_PRESENTATION | |
ST_SIDEBAR |
Definition at line 94 of file ViewShell.hxx.
sd::ViewShell::ViewShell | ( | vcl::Window * | pParentWindow, |
ViewShellBase & | rViewShellBase | ||
) |
declare SFX-Slotmap and standard interface
Definition at line 134 of file viewshel.cxx.
References construct().
|
overridevirtual |
Definition at line 141 of file viewshel.cxx.
References VclPtr< class reference_type >::disposeAndClear(), VclPtr< class reference_type >::get(), GetViewShellBase(), sd::ViewShellBase::GetViewShellManager(), mpContentWindow, mpHorizontalRuler, mpHorizontalScrollBar, mpImpl, mpLayerTabBar, mpVerticalRuler, mpVerticalScrollBar, mpZoomList, SAL_INFO, and suppress_fun_call_w_exception.
|
virtual |
Reimplemented in sd::DrawViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 856 of file viewshe2.cxx.
References sd::View::AcceptDrop(), DND_ACTION_NONE, and GetView().
Referenced by sd::Window::AcceptDrop().
|
overrideprotectedvirtual |
set focus to working window
Reimplemented from SfxShell.
Reimplemented in sd::DrawViewShell, sd::PresentationViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 289 of file viewshel.cxx.
References sd::DrawDocShell::Connect(), SfxDispatcher::ExecuteList(), GetActualPage(), SfxViewFrame::GetBindings(), GetCurrentFunction(), SfxShell::GetDispatcher(), GetDocSh(), sd::SlideShow::GetSlideShow(), SfxViewShell::GetViewFrame(), SfxShell::GetViewShell(), GetViewShellBase(), HasCurrentFunction(), SfxBindings::Invalidate(), IsMainViewShell(), SfxObjectShell::IsUIActive(), mpFrameView, mpHorizontalRuler, mpVerticalRuler, ReadFrameViewData(), and UpdatePreview().
Referenced by sd::DrawViewShell::Activate(), sd::OutlineViewShell::Activate(), and sd::slidesorter::SlideSorterViewShell::Activate().
|
virtual |
Reimplemented in sd::DrawViewShell.
Definition at line 624 of file viewshe2.cxx.
References ChartHelper::AdaptDefaultsForChart(), aName, tools::Rectangle::Center(), SdrOle2Obj::ClearGraphic(), comphelper::EmbeddedObjectContainer::CreateEmbeddedObject(), SfxInPlaceClient::DoVerb(), ERRCODE_NONE, ERRCODE_SFX_OLEGENERAL, ERRCTX_SO_DOVERB, SfxDispatcher::Execute(), SfxViewShell::FindIPClient(), GetActiveWindow(), SdrOle2Obj::GetAspect(), SfxViewFrame::GetBindings(), SvGlobalName::GetByteSequence(), SdrObject::GetCurrentBoundRect(), SfxViewFrame::GetDispatcher(), GetDoc(), GetDocSh(), SfxObjectShell::GetEmbeddedObjectContainer(), GetFrameWeld(), tools::Rectangle::GetHeight(), SdrTextObj::GetLogicRect(), SdrOle2Obj::GetObjRef(), SdrOle2Obj::GetOrigObjSize(), SdrOle2Obj::GetProgName(), tools::Rectangle::GetSize(), GetView(), SfxViewShell::GetViewFrame(), SfxShell::GetViewShell(), GetViewShellBase(), tools::Rectangle::GetWidth(), ErrorHandler::HandleError(), Size::Height(), SfxBindings::Invalidate(), SdrOle2Obj::IsChart(), SdrObjEditView::IsTextEdit(), tools::Rectangle::Move(), Fraction::ReduceInaccurate(), RID_SO_ERRCTX, sd::View::SdrEndTextEdit(), SdrObject::SetEmptyPresObj(), SdrObject::SetName(), SfxInPlaceClient::SetObjArea(), SdrOle2Obj::SetObjRef(), SdrObject::SetOutlinerParaObject(), SdrOle2Obj::SetPersistName(), tools::Rectangle::SetSize(), SfxInPlaceClient::SetSizeScale(), SfxShell::SetVerbs(), SfxObjectShell::SetWaitCursor(), SO3_SC_CLASSID, SO3_SCH_CLASSID, SO3_SM_CLASSID, Size::Width(), Point::X(), and Point::Y().
Referenced by sd::DrawViewShell::ActivateObject(), sd::FuInsertOLE::DoExecute(), and sd::FuPoor::KeyInput().
|
virtual |
Set position and size of the GUI elements that are controlled by the view shell like rulers and scroll bars as well as the actual document view according to the position and size that were given with the last Resize() call.
Reimplemented in sd::DrawViewShell, sd::GraphicViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 965 of file viewshel.cxx.
References sd::ANIMATIONMODE_SHOW, sd::SlideShow::GetSlideShow(), SfxShell::GetViewShell(), GetViewShellBase(), Size::Height(), Size::IsEmpty(), maAllWindowRectangle, maScrBarWH, maViewPos, maViewSize, mbHasRulers, mpContentWindow, mpHorizontalRuler, mpHorizontalScrollBar, mpImpl, mpLayerTabBar, mpVerticalRuler, mpVerticalScrollBar, Size::setHeight(), Size::setWidth(), UpdateScrollBars(), Size::Width(), Point::X(), and Point::Y().
Referenced by sd::DrawViewShell::ArrangeGUIElements(), sd::OutlineViewShell::ArrangeGUIElements(), sd::Window::DataChanged(), and Resize().
void sd::ViewShell::Cancel | ( | ) |
this method deactivates the current function.
If an old function is saved, this will become activated and current function.
Definition at line 1442 of file viewshel.cxx.
References mxCurrentFunction, and mxOldFunction.
Referenced by CreateOrDuplicatePage(), sd::FuLine::DoExecute(), sd::FuTransform::DoExecute(), sd::DrawViewShell::ExecChar(), sd::DrawViewShell::ExecGoToFirstPage(), sd::DrawViewShell::ExecGoToLastPage(), sd::DrawViewShell::ExecGoToNextPage(), sd::DrawViewShell::ExecGoToPreviousPage(), sd::DrawViewShell::FuTable(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::slidesorter::SlideSorterViewShell::FuTemporary(), sd::slidesorter::controller::SlotManager::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), and sd::FuDisplayOrder::MouseButtonUp().
|
virtual |
Reimplemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 621 of file viewshel.cxx.
References sd::SmartTagSet::Command(), SfxViewFrame::GetBindings(), CommandEvent::GetCommand(), GetCurrentFunction(), sd::View::getSmartTags(), GetView(), GetViewFrame(), HandleScrollCommand(), HasCurrentFunction(), and SfxBindings::Invalidate().
Referenced by sd::Window::Command(), sd::DrawViewShell::Command(), sd::OutlineViewShell::Command(), and sd::slidesorter::SlideSorterViewShell::Command().
|
private |
Code common to all constructors.
common initialization part of both constructors
It generally is a bad idea to call this function from outside a constructor.
Definition at line 174 of file viewshel.cxx.
References mbHasRulers, mfLastZoomScale, mpActiveWindow, mpFrameView, mpView, and mpZoomList.
Referenced by ViewShell().
|
virtual |
Create an accessible object representing the specified window.
This default implementation returns only an empty reference.
Override this method to provide view mode specific objects. The default implementation returns an empty reference.
pWindow | Make the document displayed in this window accessible. |
See derived classes for more interesting examples.
Reimplemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 1385 of file viewshel.cxx.
Referenced by sd::Window::CreateAccessible(), and sd::ShowWindow::CreateAccessible().
|
protectedvirtual |
Reimplemented in sd::DrawViewShell, and sd::PresentationViewShell.
Definition at line 229 of file viewshe2.cxx.
Referenced by SetupRulers().
|
virtual |
Depending on the given request create a new page or duplicate an existing one.
This method consists basically of three parts:
A new page is created behind the given slide.
rRequest | The request as passed to an Execute() method. Its arguments are evaluated. Its slot id determines whether to create or duplicate a slide. |
pPage | This page is either duplicated or becomes the predecessor of the new slide. If NULL a duplication request is ignored. A new slide is inserted as first slide. |
nInsertPosition | When -1 (the default) then insert after pPage. Otherwise insert before the given index (of a standard page). |
Reimplemented in sd::DrawViewShell.
Definition at line 160 of file viewshe3.cxx.
References SdrEditView::AddUndo(), AUTOLAYOUT_END, AUTOLAYOUT_NONE, AUTOLAYOUT_NOTES, AUTOLAYOUT_START, AUTOLAYOUT_TITLE, AUTOLAYOUT_TITLE_CONTENT, SdrEditView::BegUndo(), Cancel(), CHECK_RANGE, SfxItemSet::Count(), SdDrawDocument::CreateFirstPages(), SdDrawDocument::CreatePage(), SdrUndoFactory::CreateUndoNewPage(), Draw, SdDrawDocument::DuplicatePage(), SdrEditView::EndUndo(), ERRCODE_BASIC_BAD_PROP_VALUE, ERRCODE_BASIC_WRONG_ARGS, SfxDispatcher::Execute(), StarBASIC::FatalError(), SfxRequest::GetArg(), SfxRequest::GetArgs(), SdPage::GetAutoLayout(), SfxViewFrame::GetDispatcher(), GetDoc(), SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerID(), SdrModel::GetPage(), SdrPage::GetPageNum(), SdDrawDocument::GetSdPage(), SdDrawDocument::GetSdPageCount(), SdrModel::GetSdrUndoFactory(), SfxRequest::GetSlot(), CntUInt16Item::GetValue(), CntUInt32Item::GetValue(), CntUnencodedStringItem::GetValue(), GetView(), GetViewFrame(), HasCurrentFunction(), i, SfxRequest::Ignore(), SdrLayerIDSet::IsSet(), SdrEditView::IsUndoEnabled(), SdDrawDocument::MovePages(), Notes, SAL_INFO, SdResId(), SdrLayerIDSet::SetAll(), SdPage::SetSelected(), Standard, SdDrawDocument::StopWorkStartupDelay(), sUNO_LayerName_background, sUNO_LayerName_background_objects, SdrPage::TRG_GetMasterPageVisibleLayers(), and SdrPage::TRG_HasMasterPage().
Referenced by sd::DrawViewShell::CreateOrDuplicatePage(), sd::slidesorter::controller::SlotManager::DuplicateSelectedSlides(), and sd::slidesorter::controller::SlotManager::InsertSlide().
|
pure virtual |
Return a sub controller that implements the view shell specific part of the DrawController.
Implemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
References Shutdown.
|
protectedvirtual |
Reimplemented in sd::DrawViewShell, and sd::PresentationViewShell.
Definition at line 234 of file viewshe2.cxx.
Referenced by SetupRulers().
|
overrideprotectedvirtual |
Reimplemented from SfxShell.
Reimplemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 352 of file viewshel.cxx.
References SfxShell::Deactivate(), sd::DrawDocShell::Disconnect(), GetCurrentFunction(), GetDocSh(), sd::SlideShow::GetSlideShow(), SfxShell::GetViewShell(), GetViewShellBase(), HasCurrentFunction(), IsMainViewShell(), mpHorizontalRuler, mpVerticalRuler, SD_MOD, SdTransferable::SetView(), and WriteFrameViewData().
Referenced by sd::DrawViewShell::Deactivate(), sd::OutlineViewShell::Deactivate(), and Exit().
void sd::ViewShell::DeactivateCurrentFunction | ( | bool | bPermanent = false | ) |
Definition at line 1459 of file viewshel.cxx.
References mxCurrentFunction, and mxOldFunction.
Referenced by sd::OutlineViewShell::FuPermanent(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), and sd::OutlineViewShell::FuTemporaryModify().
|
protected |
|
protected |
|
protected |
must be called in the beginning of each subclass d'tor.
disposes and clears both current and old function.
Definition at line 1475 of file viewshel.cxx.
References mxCurrentFunction, and mxOldFunction.
Referenced by sd::DrawViewShell::ImplDestroy(), sd::OutlineViewShell::~OutlineViewShell(), and sd::slidesorter::SlideSorterViewShell::~SlideSorterViewShell().
|
protected |
This must be called after the ctor, but before anything else.
It's the part of construction that is dependent on showing the top-level window.
Showing a window with a11y enabled causes various callbacks to be triggered.
Due to the "virtual methods are not virtual during constructors" problem, this is a disaster to call from the ctor
i.e. construct calls Show, and if a11y is enabled this reenters the not-fully constructed object and calls CreateAccessibleDocumentView, so if construct is called from the ctor then if a derived class is constructed the base-case CreateAccessibleDocumentView is used, not the derived CreateAccessibleDocumentView. i.e. run smoketest under a11y with debugging assertions enabled
Definition at line 238 of file viewshel.cxx.
References VclPtr< class reference_type >::get(), GetDocSh(), GetParentWindow(), maScrBarWH, mpContentWindow, mpHorizontalScrollBar, mpVerticalScrollBar, Resize(), SAL_INFO, and vcl::Window::Show().
Referenced by sd::slidesorter::SlideSorterViewShell::Initialize(), and sd::OutlineViewShell::OutlineViewShell().
|
virtual |
This function is called from the underlying ViewShellBase object to handle a verb execution request.
Reimplemented in sd::DrawViewShell.
Definition at line 1417 of file viewshel.cxx.
References ERRCODE_NONE.
Referenced by sd::ViewShellBase::DoVerb().
void sd::ViewShell::DrawMarkRect | ( | const ::tools::Rectangle & | rRect | ) | const |
Draw a selection rectangle with the ?provided pen on all split windows.
Definition at line 442 of file viewshe2.cxx.
References mpContentWindow.
Referenced by sd::FuZoom::MouseButtonUp(), sd::FuZoom::MouseMove(), and sd::FuZoom::~FuZoom().
void sd::ViewShell::ExecReq | ( | SfxRequest & | rReq | ) |
Definition at line 1339 of file viewshel.cxx.
References SfxRequest::Done(), GetActiveWindow(), GetCurrentFunction(), vcl::Window::GetOutDev(), SfxRequest::GetSlot(), vcl::Window::Invalidate(), SfxShell::Invalidate(), mpFrameView, sd::OUTPUT_DRAWMODE_BLACKWHITE, sd::OUTPUT_DRAWMODE_COLOR, sd::OUTPUT_DRAWMODE_CONTRAST, sd::OUTPUT_DRAWMODE_GRAYSCALE, ScrollLines(), OutputDevice::SetDrawMode(), and sd::FrameView::SetDrawMode().
Referenced by sd::Window::DataChanged(), sd::DrawViewShell::ExecCtrl(), sd::OutlineViewShell::ExecCtrl(), and sd::slidesorter::controller::SlotManager::ExecCtrl().
|
virtual |
Reimplemented in sd::DrawViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 867 of file viewshe2.cxx.
References DND_ACTION_NONE, sd::View::ExecuteDrop(), and GetView().
Referenced by sd::Window::ExecuteDrop().
void sd::ViewShell::Exit | ( | ) |
The Exit() method has to be called before the destructor so that the view shell is still a valid object and can safely call methods that rely on that.
Definition at line 269 of file viewshel.cxx.
References Deactivate(), sd::DrawDocShell::Disconnect(), GetDocSh(), GetView(), IsMainViewShell(), SdrObjEditView::IsTextEdit(), sd::View::SdrEndTextEdit(), SetIsMainViewShell(), and SdrView::UnmarkAll().
Referenced by Shutdown().
void sd::ViewShell::fireSwitchCurrentPage | ( | sal_Int32 | pageIndex | ) |
Definition at line 1573 of file viewshel.cxx.
References sd::DrawController::fireSwitchCurrentPage(), sd::ViewShellBase::GetDrawController(), and GetViewShellBase().
|
inline |
The active window is usually the mpContentWindow.
When there is a show running then the active window is a ShowWindow.
Definition at line 155 of file ViewShell.hxx.
Referenced by sd::View::AcceptDrop(), sd::DrawViewShell::Activate(), sd::OutlineViewShell::Activate(), ActivateObject(), sd::DrawViewShell::AssignFrom3DWindow(), sd::View::ClearSelectionClipboard(), sd::SmartTagSet::Command(), sd::AnnotationTag::Command(), sd::DrawViewShell::Command(), sd::OutlineViewShell::Command(), sd::OutlineView::ConnectToApplication(), sd::OutlineViewShell::Construct(), sd::DrawViewShell::Construct(), sd::View::CreateClipboardDataObject(), sd::slidesorter::controller::Clipboard::CreateSlideTransferable(), sd::View::DoConnect(), sd::FuCustomShowDlg::DoExecute(), sd::FuBulletAndPosition::DoExecute(), sd::FuSnapLine::DoExecute(), sd::View::DoPaste(), sd::FuPoor::DoPasteUnformatted(), sd::FuOutlineText::DoPasteUnformatted(), sd::DrawViewShell::ExecCtrl(), sd::DrawViewShell::ExecGallery(), sd::DrawViewShell::ExecGoToFirstPage(), sd::DrawViewShell::ExecGoToLastPage(), sd::DrawViewShell::ExecGoToNextPage(), sd::DrawViewShell::ExecGoToPreviousPage(), ExecReq(), sd::DrawViewShell::ExecRuler(), sd::DrawDocShell::Execute(), sd::TextObjectBar::Execute(), sd::PresentationViewShell::FinishInitialization(), sd::DrawViewShell::FuPermanent(), sd::OutlineViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::OutlineView::GetActualPage(), sd::OutlineView::GetAttributes(), sd::OutlineViewShell::GetAttrState(), sd::TextObjectBar::GetAttrState(), sd::DrawViewShell::GetCtrlState(), sd::OutlineViewShell::GetCtrlState(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), sd::DrawViewShell::GetRulerState(), sd::DrawViewShell::GetSnapItemState(), sd::DrawViewShell::GetStatusBarState(), sd::OutlineViewShell::GetStatusBarState(), sd::OutlineView::GetStyleSheet(), sd::DrawDocShell::GetVisArea(), sd::SdUnoDrawView::GetZoom(), HandleScrollCommand(), IMPL_LINK_NOARG(), sd::DrawViewShell::ImplDestroy(), sd::slidesorter::SlideSorterViewShell::Init(), InitWindows(), sd::View::InsertData(), sd::FuBullet::InsertFormattingMark(), sd::View::InsertGraphic(), sd::ViewClipboard::InsertSlides(), sd::FuBullet::InsertSpecialCharacter(), sd::InsertTableImpl(), sd::DrawViewShell::InsertURLButton(), sd::DrawViewShell::InsertURLField(), KeyInput(), sd::SmartTagSet::MouseButtonDown(), sd::MotionPathTag::MouseButtonDown(), sd::AnnotationTag::MouseButtonDown(), sd::DrawViewShell::MouseButtonUp(), sd::DrawViewShell::MouseMove(), sd::ViewShellBase::NotifyCursor(), sd::View::onAccessibilityOptionsChanged(), sd::MotionPathTag::OnMove(), sd::AnnotationTag::OnMove(), sd::MotionPathTag::OnTabHandles(), sd::OutlineView::OutlineView(), sd::DrawViewShell::ReadFrameViewData(), sd::slidesorter::SlideSorterViewShell::ReadFrameViewData(), sd::DrawViewShell::ReadUserDataSequence(), sd::FormShellManager::RegisterAtCenterPane(), Resize(), sd::DrawViewShell::ScannerEvent(), Scroll(), sd::AnnotationTag::select(), sd::OutlineView::SetAttributes(), sd::FuBulletAndPosition::SetCurrentBulletsNumbering(), SetupRulers(), SetWinViewPos(), SetZoom(), sd::DrawViewShell::SetZoomFactor(), SetZoomRect(), sd::FuHangulHanjaConversion::StartConversion(), sd::DrawViewShell::StartRulerDrag(), sd::DrawViewShell::SwitchPage(), sd::View::UpdateSelectionClipboard(), sd::Client::ViewChanged(), VirtHScrollHdl(), VirtVScrollHdl(), sd::DrawViewShell::WriteFrameViewData(), sd::slidesorter::SlideSorterViewShell::WriteFrameViewData(), sd::OutlineViewShell::~OutlineViewShell(), sd::slidesorter::SlideSorterViewShell::~SlideSorterViewShell(), and sd::ViewShellBase::~ViewShellBase().
|
pure virtual |
Implemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Referenced by Activate(), sd::sidebar::LayoutMenu::AssignLayoutToSelectedSlides(), sd::sidebar::LayoutMenu::CreateRequest(), sd::FuTemplate::DoExecute(), sd::slidesorter::controller::SlotManager::ExecCtrl(), accessibility::AccessibleDocumentViewBase::getExtendedAttributes(), SdDrawDocument::InsertBookmarkAsObject(), UpdateScrollBars(), and VirtVScrollHdl().
const ::tools::Rectangle & sd::ViewShell::GetAllWindowRect | ( | ) |
Return the rectangle that encloses all windows of the view.
That excludes the controls in the frame like rulers, scroll bars, tab bar, and buttons.
Definition at line 791 of file viewshe2.cxx.
References maAllWindowRectangle, mpContentWindow, and tools::Rectangle::SetPos().
Referenced by sd::FuPoor::ForceScroll().
SvBorder sd::ViewShell::GetBorder | ( | ) |
Return the border that is drawn around the actual document view.
The border contains typically rulers and scroll bars.
Definition at line 934 of file viewshel.cxx.
References SvBorder::Bottom(), Size::Height(), SvBorder::Left(), maScrBarWH, mbHasRulers, mpContentWindow, mpHorizontalRuler, mpHorizontalScrollBar, mpVerticalRuler, mpVerticalScrollBar, SvBorder::Right(), SetupRulers(), SvBorder::Top(), and Size::Width().
Referenced by sd::ViewShellBase::Implementation::ResizePixel(), and sd::ViewShellBase::UpdateBorder().
sd::Window * sd::ViewShell::GetContentWindow | ( | ) | const |
Definition at line 1587 of file viewshel.cxx.
References VclPtr< class reference_type >::get(), and mpContentWindow.
Referenced by sd::slidesorter::SlideSorterViewShell::SlideSorterViewShell().
|
inline |
Definition at line 250 of file ViewShell.hxx.
Referenced by sd::slidesorter::controller::Clipboard::AcceptDrop(), sd::PresentationViewShell::Activate(), Activate(), sd::DrawDocShell::CheckPageName(), Command(), Deactivate(), ExecReq(), sd::BezierObjectBar::Execute(), sd::DrawViewShell::FuDeleteSelectedObjects(), sd::DrawViewShell::FuPermanent(), sd::OutlineViewShell::FuPermanent(), sd::slidesorter::controller::SlotManager::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::BezierObjectBar::GetAttrState(), sd::slidesorter::controller::SlideSorterController::GetCurrentSelectionFunction(), sd::DrawViewShell::GetMenuState(), sd::slidesorter::controller::SlotManager::GetMenuState(), sd::slidesorter::controller::Clipboard::HandleSlotCall(), KeyInput(), sd::OutlineViewShell::KeyInput(), MouseButtonDown(), MouseButtonUp(), MouseMove(), sd::DrawViewShell::Notify(), sd::DrawViewShell::PrepareClose(), RequestHelp(), sd::DrawViewShell::SelectionHasChanged(), and SetActiveWindow().
|
pure virtual |
Implemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Referenced by sd::DocumentRenderer::Implementation::GetCurrentPageIndex(), sd::sidebar::SlideBackground::Initialize(), sd::DrawDocShell::SaveAs(), sd::slidesorter::model::SlideSorterModel::SetDocumentSlides(), sd::sidebar::SlideBackground::updateMasterSlideSelection(), and sd::sidebar::LayoutMenu::UpdateSelection().
SdDrawDocument * sd::ViewShell::GetDoc | ( | ) | const |
Definition at line 1412 of file viewshel.cxx.
References sd::ViewShellBase::GetDocument(), and GetViewShellBase().
Referenced by sd::TabControl::AcceptDrop(), sd::OutlineViewShell::Activate(), ActivateObject(), sd::DrawViewShell::ArrangeGUIElements(), sd::DrawViewShell::AssignFrom3DWindow(), sd::DrawViewShell::AttrExec(), sd::DrawViewShell::AttrState(), sd::DrawViewShell::ChangeEditMode(), sd::OutlineViewShell::Construct(), sd::DrawViewShell::Construct(), sd::DrawViewShell::CreateHRuler(), CreateOrDuplicatePage(), sd::DrawViewShell::CreateVRuler(), sd::DrawViewShell::DeleteActualLayer(), sd::DrawViewShell::DeleteActualPage(), sd::FuArea::DoExecute(), sd::DrawViewShell::ExecChar(), sd::DrawViewShell::ExecCtrl(), sd::DrawViewShell::ExecGoToFirstPage(), sd::DrawViewShell::ExecGoToLastPage(), sd::DrawViewShell::ExecGoToNextPage(), sd::DrawViewShell::ExecGoToPreviousPage(), sd::DrawViewShell::ExecIMap(), sd::slidesorter::SlideSorterViewShell::ExecMovePageDown(), sd::slidesorter::SlideSorterViewShell::ExecMovePageFirst(), sd::slidesorter::SlideSorterViewShell::ExecMovePageLast(), sd::slidesorter::SlideSorterViewShell::ExecMovePageUp(), sd::DrawViewShell::ExecNavigatorWin(), sd::DrawViewShell::ExecOptionsBar(), sd::DrawViewShell::ExecRuler(), sd::DrawDocShell::Execute(), sd::FuPage::ExecuteDialog(), sd::TabControl::ExecuteDrop(), sd::DrawViewShell::ExecuteDrop(), sd::DrawViewShell::ExecutePropPanelAttr(), sd::DrawViewShell::FreshNavigatrTree(), sd::DrawViewShell::FuPermanent(), sd::OutlineViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::DrawViewShell::GetAttrState(), sd::DrawViewShell::getCurrentPage(), GetCurrentPage(), accessibility::AccessibleDocumentViewBase::getExtendedAttributes(), sd::DrawViewShell::GetFormTextState(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), sd::DrawViewShell::GetMenuStateSel(), sd::DrawViewShell::GetNavigatorWinState(), sd::DrawViewShell::GetPageProperties(), SdStyleSheet::GetRealStyleSheet(), sd::DrawViewShell::GetRulerState(), sd::DrawViewShell::GetStateGoToLastPage(), sd::DrawViewShell::GetStateGoToNextPage(), sd::slidesorter::SlideSorterViewShell::GetStateMovePageLast(), sd::DrawViewShell::GetStatePropPanelAttr(), sd::DrawViewShell::GetStatusBarState(), sd::OutlineViewShell::GetStatusBarState(), IMPL_LINK(), sd::DrawViewShell::ImplDestroy(), sd::slidesorter::SlideSorterViewShell::Initialize(), sd::InsertTableImpl(), sd::DrawViewShell::InsertURLField(), sd::Window::KeyInput(), sd::DrawViewShell::ModifyLayer(), sd::DrawViewShell::MouseMove(), sd::DrawViewShell::Notify(), sd::OutlineViewShell::OutlineViewShell(), sd::DrawViewShell::Paint(), sd::slidesorter::SlideSorterViewShell::PostMoveSlidesActions(), sd::SpellDialogChildWindow::ProvideOutliner(), sd::DrawViewShell::ReadFrameViewData(), sd::OutlineViewShell::ReadFrameViewData(), sd::OutlineViewShell::ReadRtf(), sd::DrawViewShell::RenameSlide(), sd::DrawViewShell::ResetActualLayer(), sd::DrawViewShell::ResetActualPage(), sd::DrawViewShell::SelectPage(), sd::OutlineViewShell::SetCurrentPage(), SetPageSizeAndBorder(), sd::DrawViewShell::SetupPage(), SetZoom(), SetZoomRect(), sd::slidesorter::SlideSorterViewShell::SlideSorterViewShell(), sd::DrawViewShell::StopSlideShow(), sd::DrawViewShell::SwitchPage(), sd::slidesorter::SlideSorterViewShell::SyncPageSelectionToDocument(), sd::OutlineViewShell::UpdateOutlineObject(), UpdateScrollBars(), and sd::OutlineViewShell::UpdateTitleObject().
DrawDocShell * sd::ViewShell::GetDocSh | ( | ) | const |
Definition at line 1407 of file viewshel.cxx.
References sd::ViewShellBase::GetDocShell(), and GetViewShellBase().
Referenced by sd::LayerTabBar::AcceptDrop(), sd::TabControl::AcceptDrop(), sd::Window::AcceptDrop(), sd::PresentationViewShell::Activate(), Activate(), ActivateObject(), sd::DrawViewShell::ActivateObject(), sd::TabControl::AllowRenaming(), sd::BezierObjectBar::BezierObjectBar(), sd::DrawViewShell::Command(), sd::OutlineViewShell::Command(), sd::OutlineViewShell::Construct(), sd::DrawViewShell::Construct(), sd::Window::DataChanged(), Deactivate(), doShow(), sd::DrawViewShell::ExecChar(), sd::DrawViewShell::ExecCtrl(), sd::DrawViewShell::ExecGallery(), sd::DrawViewShell::ExecNavigatorWin(), sd::DrawViewShell::Execute(), sd::OutlineViewShell::Execute(), sd::TextObjectBar::Execute(), Exit(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::OutlineViewShell::GetCtrlState(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), GetMenuState(), sd::DrawViewShell::GetModeSwitchingMenuState(), sd::DrawViewShell::GetState(), sd::OutlineViewShell::GetState(), sd::DrawViewShell::GetStatusBarState(), sd::OutlineViewShell::GetStatusBarState(), sd::DrawViewShell::GotoBookmark(), sd::GraphicObjectBar::GraphicObjectBar(), HandleScrollCommand(), ImpGetUndoManager(), sd::DrawViewShell::ImplDestroy(), sd::DrawViewShell::Init(), sd::slidesorter::SlideSorterViewShell::Initialize(), sd::DrawViewShell::InsertURLButton(), sd::MediaObjectBar::MediaObjectBar(), sd::DrawViewShell::ModelHasChanged(), sd::DrawViewShell::Notify(), sd::PresentationViewShell::PresentationViewShell(), sd::OutlineViewShell::ReadRtf(), sd::DrawViewShell::ReadUserDataSequence(), sd::DrawViewShell::Resize(), sd::HeaderFooterDialog::run(), Scroll(), SetIsMainViewShell(), SetPageSizeAndBorder(), SetRuler(), sd::DrawViewShell::SetupPage(), sd::ui::table::TableObjectBar::TableObjectBar(), VirtHScrollHdl(), VirtVScrollHdl(), sd::DrawViewShell::WriteUserDataSequence(), and sd::PresentationViewShell::~PresentationViewShell().
|
inline |
Definition at line 552 of file ViewShell.hxx.
References mpView.
Referenced by SdPageObjsTLV::DoDrag(), sd::DrawDocShell::Execute(), sd::ViewShellBase::GetDrawView(), GetMenuState(), IMPL_LINK_NOARG(), lcl_select_marked_object(), SdPageNameControllerItem::StateChangedAtToolBoxControl(), and UIDeactivated().
|
inline |
Definition at line 221 of file ViewShell.hxx.
Referenced by sd::FuFormatPaintBrush::Activate(), sd::FuText::Activate(), SdModule::ApplyItemSet(), sd::Window::DataChanged(), sd::FuFormatPaintBrush::Deactivate(), sd::FuDraw::DoModifiers(), sd::FuDraw::DoubleClick(), sd::SlideShow::end(), sd::PresentationViewShell::FinishInitialization(), sd::DrawDocShell::GetFrameView(), IMPL_LINK(), sd::sidebar::SlideBackground::Initialize(), SdNavigatorWin::InitTreeLB(), sd::ViewShellBase::LateInit(), sd::FuDraw::MouseButtonDown(), sd::FuFormatPaintBrush::MouseButtonDown(), sd::FuSelection::MouseButtonDown(), sd::FuConstruct::MouseButtonUp(), sd::FuDraw::MouseButtonUp(), sd::FuSelection::MouseButtonUp(), sd::FuText::MouseButtonUp(), sd::FuDraw::MouseMove(), sd::ViewShellBase::Implementation::ProcessRestoreEditingViewSlot(), sd::FuText::ReceiveRequest(), sd::slidesorter::model::SlideSorterModel::SetDocumentSlides(), sd::FuText::SetInEditMode(), sd::slidesorter::SlideSorterViewShell::SlideSorterViewShell(), sd::slidesorter::controller::SelectionFunction::ModeHandler::SwitchView(), and sd::slidesorter::SlideSorterViewShell::~SlideSorterViewShell().
weld::Window * sd::ViewShell::GetFrameWeld | ( | ) | const |
Definition at line 1582 of file viewshel.cxx.
References mpActiveWindow.
Referenced by ActivateObject(), sd::FuConstructRectangle::Deactivate(), sd::DrawViewShell::DeleteActualLayer(), sd::FuArea::DoExecute(), sd::FuChar::DoExecute(), sd::FuCopy::DoExecute(), sd::FuInsertClipboard::DoExecute(), sd::FuInsertOLE::DoExecute(), sd::FuLine::DoExecute(), sd::FuLink::DoExecute(), sd::FuObjectAnimationParameters::DoExecute(), sd::FuBulletAndPosition::DoExecute(), sd::FuParagraph::DoExecute(), sd::FuPresentationObjects::DoExecute(), sd::FuTemplate::DoExecute(), sd::FuTransform::DoExecute(), sd::DrawViewShell::ExecBmpMask(), sd::DrawViewShell::ExecCtrl(), sd::DrawDocShell::Execute(), sd::FuPage::ExecuteDialog(), sd::DrawViewShell::FuDeleteSelectedObjects(), sd::DrawViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::View::GetExchangeList(), sd::FuBullet::InsertSpecialCharacter(), sd::FuInsertFile::InsSDDinDrMode(), sd::FuInsertFile::InsTextOrRTFinDrMode(), sd::FuDraw::KeyInput(), sd::DrawDocShell::LoadFrom(), sd::FuConstruct3dObject::MouseButtonDown(), and sd::DrawView::SetStyleSheet().
void sd::ViewShell::GetMenuState | ( | SfxItemSet & | rSet | ) |
set state (enabled/disabled) of Menu SfxSlots
Definition at line 61 of file viewshe3.cxx.
References SdrMarkView::AreObjectsMarked(), SfxItemSet::DisableItem(), GetDocSh(), GetDrawView(), SfxStyleSheetBase::GetFamily(), SfxItemSet::GetItemState(), SfxUndoManager::GetRedoAction(), SfxUndoManager::GetRedoActionComment(), SfxUndoManager::GetRedoActionCount(), sd::DrawDocShell::GetStyleFamily(), SdrCreateView::GetStyleSheet(), SfxUndoManager::GetUndoAction(), SfxUndoManager::GetUndoActionComment(), SfxUndoManager::GetUndoActionCount(), GetViewShellBase(), SfxUndoAction::GetViewShellId(), ImpGetRedoStrings(), ImpGetUndoManager(), ImpGetUndoStrings(), SfxItemSet::Put(), rSet, sd::DrawDocShell::SetStyleFamily(), and SvtResId().
Referenced by sd::slidesorter::SlideSorterViewShell::GetClipboardState(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), and sd::slidesorter::SlideSorterViewShell::GetMenuState().
const SvxNumBulletItem * sd::ViewShell::GetNumBulletItem | ( | SfxItemSet & | aNewAttr, |
TypedWhichId< SvxNumBulletItem > & | nNumItemId | ||
) |
Definition at line 839 of file viewshel.cxx.
References EE_PARA_NUMBULLET(), SfxStyleSheetBasePool::Find(), sd::View::GetDocSh(), SfxItemSet::GetItem(), SfxItemSet::GetItemIfSet(), SfxStyleSheetBase::GetItemSet(), SfxItemSet::GetItemState(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SvxNumBulletItem::GetNumRule(), SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), SfxItemSet::GetPool(), SfxItemPool::GetPoolDefaultItem(), SfxItemPool::GetSecondaryPool(), sd::DrawDocShell::GetStyleSheetPool(), SfxItemPool::GetWhich(), mpView, nCount, SfxItemSet::Put(), SvxNumRule::SetFeatureFlag(), and STR_LAYOUT_OUTLINE.
Referenced by sd::DrawViewShell::GetAttrState().
|
inline |
Definition at line 248 of file ViewShell.hxx.
Referenced by sd::DrawViewShell::FuPermanent(), sd::OutlineViewShell::FuPermanent(), sd::slidesorter::controller::SlotManager::FuPermanent(), and sd::DrawViewShell::FuTemporary().
|
inline |
Return the window that is the parent of all controls of this view shell.
This may or may not be the window of the frame.
Definition at line 140 of file ViewShell.hxx.
Referenced by sd::DrawViewShell::ArrangeGUIElements(), sd::GraphicViewShell::ArrangeGUIElements(), sd::OutlineViewShell::ArrangeGUIElements(), sd::GraphicViewShell::ConstructGraphicViewShell(), sd::DrawViewShell::CreateHRuler(), sd::DrawViewShell::CreateVRuler(), doShow(), sd::ui::table::TableObjectBar::Execute(), sd::InsertTableImpl(), and sd::DrawViewShell::RelocateToParentWindow().
|
inline |
Definition at line 269 of file ViewShell.hxx.
Referenced by IMPL_LINK().
|
inline |
Definition at line 266 of file ViewShell.hxx.
Referenced by IMPL_LINK().
uno::Reference< datatransfer::XTransferable > sd::ViewShell::GetSelectionTransferable | ( | ) | const |
Gets the current selection.
Definition at line 520 of file viewshel.cxx.
References EditEngine::CreateTransferable(), EditView::GetEditEngine(), OutlinerView::GetEditView(), EditView::GetSelection(), SdrObjEditView::GetTextEditObject(), SdrObjEditView::GetTextEditOutlinerView(), and GetView().
ViewShell::ShellType sd::ViewShell::GetShellType | ( | ) | const |
Return the type of the shell.
Definition at line 1402 of file viewshel.cxx.
References meShellType.
Referenced by sd::sidebar::LayoutMenu::AssignLayoutToSelectedSlides(), sd::DrawViewShell::ChangeEditMode(), sd::SlideShow::end(), sd::DrawViewShell::GetMenuState(), sd::Window::GetOutlinerView(), ImpGetUndoManager(), sd::ViewShellBase::LateInit(), sd::ViewShellBase::ReadUserDataSequence(), and sd::FormShellManager::RegisterAtCenterPane().
|
inline |
Definition at line 144 of file ViewShell.hxx.
References mpView.
Referenced by sd::LayerTabBar::AcceptDrop(), AcceptDrop(), accessibility::AccessibleDocumentViewBase::AccessibleDocumentViewBase(), sd::slidesorter::SlideSorterViewShell::Activate(), ActivateObject(), sd::ShowWindow::AddWindowToPaintView(), sd::LayerTabBar::AllowRenaming(), SdModule::ApplyItemSet(), sd::DrawViewShell::AssignFrom3DWindow(), sd::DrawViewShell::AttrExec(), sd::DrawDocShell::CancelSearching(), sd::Ruler::Command(), sd::Window::Command(), Command(), sd::DrawViewShell::Command(), sd::DrawDocShell::ConvertTo(), CreateOrDuplicatePage(), sd::DrawViewShell::CreateSubController(), sd::slidesorter::controller::Clipboard::CreateTransferableUserData(), sd::Window::DataChanged(), sd::ViewShellManager::Implementation::Deactivate(), sd::DrawViewShell::DeleteActualPage(), sd::ShowWindow::DeleteWindowFromPaintView(), SdPageObjsTLV::DoDrag(), sd::FuPresentationObjects::DoExecute(), sd::LayerTabBar::EndRenaming(), sd::DrawViewShell::ExecGallery(), sd::DrawDocShell::Execute(), sd::LayerTabBar::ExecuteDrop(), ExecuteDrop(), Exit(), sd::Ruler::ExtraDown(), sd::DrawViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::DrawViewShell::FuSupportRotate(), sd::DrawViewShell::FuTemporary(), accessibility::AccessibleDocumentViewBase::getBackground(), sd::DrawViewShell::GetCtrlState(), accessibility::AccessibleDrawDocumentView::getGroupPosition(), sd::DrawViewShell::GetMenuStateSel(), sd::Window::GetOutlinerView(), GetSelectionTransferable(), sd::FuBullet::GetSlotState(), SdLayerManager::GetView(), sd::framework::ToolBarModule::HandleUpdateEnd(), ImpGetUndoManager(), InitWindows(), SdDrawDocument::InsertBookmarkAsObject(), sd::DrawViewShell::InsertURLButton(), sd::DrawViewShell::InsertURLField(), sd::FuInsertFile::InsSDDinDrMode(), sd::Window::KeyInput(), KeyInput(), sd::DrawViewShell::KeyInput(), sd::GraphicSizeCheckGUIEntry::markObject(), sd::LayerTabBar::MouseButtonDown(), sd::Ruler::MouseButtonDown(), MouseButtonDown(), MouseButtonUp(), MouseMove(), sd::Client::ObjectAreaChanged(), sd::DrawViewShell::ReadUserDataSequence(), ChangeSlideExclusionStateUndoAction::Redo(), SdDrawDocument::RemoveUnnecessaryMasterPages(), SdXImpressDocument::render(), sd::Client::RequestNewObjectArea(), Resize(), sd::DrawDocShell::SaveAs(), sd::DrawDocShell::SaveCompleted(), sd::DrawViewShell::ScannerEvent(), Scroll(), sd::DrawViewShell::SetActiveTabLayerIndex(), SetActiveWindow(), sd::ShowWindow::SetBlankMode(), sd::SdUnoDrawView::setCurrentPage(), SetCursorMm100Position(), sd::ShowWindow::SetEndMode(), sd::FormShellManager::SetFormShell(), SetPageSizeAndBorder(), sd::ShowWindow::SetPauseMode(), sd::DrawDocShell::SetPrinter(), sd::DrawViewShell::SetupPage(), SetWinViewPos(), SetZoom(), SetZoomRect(), sd::FuHangulHanjaConversion::StartConversion(), sd::LayerTabBar::StartRenaming(), sd::TabControl::StartRenaming(), sd::SlideShow::startWithArguments(), ChangeSlideExclusionStateUndoAction::Undo(), sd::DrawViewShell::Update3DWindow(), sd::Client::ViewChanged(), VirtHScrollHdl(), VirtVScrollHdl(), and sd::DrawDocShell::~DrawDocShell().
SfxViewFrame * sd::ViewShell::GetViewFrame | ( | ) | const |
Definition at line 118 of file viewshel.cxx.
References SfxViewShell::GetViewFrame(), and SfxShell::GetViewShell().
Referenced by sd::PresentationViewShell::Activate(), sd::LayerTabBar::ActivatePage(), sd::TabControl::ActivatePage(), sd::LayerTabBar::AllowRenaming(), sd::HeaderFooterDialog::apply(), SdModule::ApplyItemSet(), sd::DrawViewShell::ArrangeGUIElements(), sd::GraphicViewShell::ArrangeGUIElements(), sd::DrawViewShell::AssignFrom3DWindow(), sd::DrawViewShell::AttrExec(), sd::FuPoor::cancel(), sd::FuDraw::cancel(), sd::FuSelection::cancel(), sd::DrawViewShell::ChangeEditMode(), sd::slidesorter::controller::SlotManager::ChangeSlideExclusionState(), sd::AnnotationTextWindow::Command(), sd::LayerTabBar::Command(), sd::TabControl::Command(), Command(), sd::DrawViewShell::Command(), sd::OutlineViewShell::Command(), sd::DrawViewShell::CreateHRuler(), CreateOrDuplicatePage(), sd::CustomAnimationPane::createPath(), sd::DrawViewShell::CreateVRuler(), sd::FuConstructRectangle::Deactivate(), sd::FuZoom::Deactivate(), sd::ViewShellManager::Implementation::Deactivate(), sd::FuChar::DoExecute(), sd::FuCustomShowDlg::DoExecute(), sd::FuExecuteInteraction::DoExecute(), sd::FuExpandPage::DoExecute(), sd::FuInsertOLE::DoExecute(), sd::FuInsertAVMedia::DoExecute(), sd::FuLine::DoExecute(), sd::FuLink::DoExecute(), sd::FuNavigation::DoExecute(), sd::FuObjectAnimationParameters::DoExecute(), sd::FuParagraph::DoExecute(), sd::FuPresentationLayout::DoExecute(), sd::FuScale::DoExecute(), sd::FuSearch::DoExecute(), sd::FuTemplate::DoExecute(), sd::LayerTabBar::DoubleClick(), sd::TabControl::DoubleClick(), sd::FuDraw::DoubleClick(), sd::SlideShow::end(), sd::DrawViewShell::ExecAnimationWin(), sd::DrawViewShell::ExecBmpMask(), sd::DrawViewShell::ExecChar(), sd::DrawViewShell::ExecCtrl(), sd::slidesorter::controller::SlotManager::ExecCtrl(), sd::DrawViewShell::ExecEffectWin(), sd::DrawViewShell::ExecGallery(), sd::DrawViewShell::ExecNavigatorWin(), sd::DrawViewShell::ExecRuler(), sd::DrawViewShell::ExecStatusBar(), sd::BezierObjectBar::Execute(), sd::DrawViewShell::Execute(), sd::OutlineViewShell::Execute(), sd::TextObjectBar::Execute(), sd::ui::table::TableObjectBar::Execute(), sd::TabControl::ExecuteDrop(), sd::FuDraw::ForcePointer(), sd::DrawViewShell::FreshNavigatrTree(), sd::DrawViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::DrawViewShell::FuTable(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::slidesorter::controller::SlotManager::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::DrawViewShell::GetAttrState(), sd::OutlineViewShell::GetAttrState(), sd::DrawViewShell::GetCtrlState(), sd::OutlineViewShell::GetCtrlState(), sd::DrawViewShell::GetIMapState(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), sd::DrawViewShell::GetModeSwitchingMenuState(), sd::ZoomList::GetNextZoomRect(), sd::ZoomList::GetPreviousZoomRect(), sd::SlideShow::GetWorkWindow(), sd::FuSelection::HandleImageMapClick(), IMPL_STATIC_LINK(), sd::FuFormatPaintBrush::implcancel(), sd::DrawViewShell::ImplDestroy(), ImpSidRedo(), ImpSidUndo(), accessibility::AccessibleDocumentViewBase::Init(), SdNavigatorWin::InitTreeLB(), sd::ZoomList::InsertZoomRect(), sd::FuText::InvalidateBindings(), sd::FuPoor::KeyInput(), sd::FuDraw::KeyInput(), sd::FuSelection::KeyInput(), sd::FuText::KeyInput(), sd::DrawViewShell::KeyInput(), sd::AnnotationTextWindow::KeyInput(), sd::DrawViewShell::ModelHasChanged(), sd::DrawViewShell::ModifyLayer(), sd::MotionPathTag::MouseButtonDown(), sd::FuOutlineText::MouseButtonDown(), sd::FuSelection::MouseButtonDown(), sd::FuText::MouseButtonDown(), sd::LayerTabBar::MouseButtonDown(), sd::TabControl::MouseButtonDown(), sd::DrawViewShell::MouseButtonDown(), sd::FuConstruct3dObject::MouseButtonUp(), sd::FuConstructArc::MouseButtonUp(), sd::FuConstructBezierPolygon::MouseButtonUp(), sd::FuConstructCustomShape::MouseButtonUp(), sd::FuConstructRectangle::MouseButtonUp(), sd::FuConstruct::MouseButtonUp(), sd::FuConstructUnoControl::MouseButtonUp(), sd::FuFormatPaintBrush::MouseButtonUp(), sd::FuOutlineText::MouseButtonUp(), sd::FuSelection::MouseButtonUp(), sd::FuText::MouseButtonUp(), sd::FuZoom::MouseButtonUp(), sd::DrawViewShell::MouseButtonUp(), sd::DrawViewShell::MouseMove(), sd::DrawViewShell::Notify(), sd::slidesorter::controller::SlotManager::NotifyEditModeChange(), sd::View::onAccessibilityOptionsChanged(), sd::DrawDocShell::OpenBookmark(), SdModule::OutlineToImpress(), sd::slidesorter::SlideSorterViewShell::PostMoveSlidesActions(), sd::DrawViewShell::ReadFrameViewData(), sd::DrawViewShell::RenameSlide(), sd::slidesorter::controller::SlotManager::RenameSlideFromDrawViewShell(), sd::DrawViewShell::ResetActualLayer(), sd::DrawViewShell::ResetActualPage(), sd::Window::Resize(), sd::ShowWindow::RestartShow(), sd::DrawDocShell::SaveCompleted(), sd::DrawViewShell::ScannerEvent(), sd::LayerTabBar::Select(), sd::TabControl::Select(), sd::MotionPathTag::selectionChanged(), sd::DrawViewShell::SelectionHasChanged(), sd::ShowWindow::SetBlankMode(), sd::DrawViewShell::SetChildWindowState(), sd::FuConstructBezierPolygon::SetEditMode(), sd::FuSelection::SetEditMode(), sd::ShowWindow::SetEndMode(), sd::ShowWindow::SetPauseMode(), SdXShape::SetStyleSheet(), sd::DrawViewShell::SetupPage(), SdTPAction::SetView(), sd::DrawViewShell::SetZoom(), sd::OutlineViewShell::SetZoom(), sd::SdUnoDrawView::SetZoom(), sd::DrawViewShell::SetZoomRect(), sd::OutlineViewShell::SetZoomRect(), sd::slidesorter::SlideSorterViewShell::SetZoomRect(), sd::SdUnoDrawView::SetZoomType(), sd::DrawViewShell::ShowMousePosInfo(), sd::DrawViewShell::ShowSnapLineContextMenu(), sd::DrawViewShell::SwitchPage(), sd::ShowWindow::TerminateShow(), sd::AnnotationWindow::ToggleInsMode(), sd::DrawViewShell::Update3DWindow(), sd::FuOutlineText::UpdateForKeyPress(), sd::DrawViewShell::UpdateIMapDlg(), and sd::FuSearch::~FuSearch().
Point const & sd::ViewShell::GetViewOrigin | ( | ) | const |
Definition at line 942 of file viewshe2.cxx.
References mpContentWindow.
Referenced by sd::DrawViewShell::ExecRuler(), sd::DrawViewShell::GetRulerState(), sd::SdUnoDrawView::GetViewOffset(), and sd::SdUnoDrawView::SetViewOffset().
ViewShellBase & sd::ViewShell::GetViewShellBase | ( | ) | const |
Definition at line 1397 of file viewshel.cxx.
References SfxShell::GetViewShell().
Referenced by sd::DrawViewShell::AcceptDrop(), sd::View::AcceptDrop(), sd::DrawViewShell::Activate(), sd::PresentationViewShell::Activate(), sd::slidesorter::SlideSorterViewShell::Activate(), Activate(), ActivateObject(), sd::DrawViewShell::ActivateObject(), ArrangeGUIElements(), sd::OutlineView::BeginModelChange(), sd::DrawViewShell::ChangeEditMode(), sd::DrawViewShell::Command(), sd::OutlineView::ConnectToApplication(), sd::DrawViewShell::Construct(), sd::DrawViewShell::CreateAccessibleDocumentView(), sd::DrawViewShell::CreateHRuler(), sd::slidesorter::controller::Clipboard::CreateTransferableUserData(), sd::DrawViewShell::CreateVRuler(), Deactivate(), sd::DrawViewShell::DeleteActualPage(), sd::DrawView::DeleteMarked(), sd::FuConstruct3dObject::DoExecute(), sd::FuConstructArc::DoExecute(), sd::FuConstructCustomShape::DoExecute(), sd::FuConstructRectangle::DoExecute(), sd::FuConstructUnoControl::DoExecute(), sd::FuEditGluePoints::DoExecute(), sd::FuNavigation::DoExecute(), sd::FuObjectAnimationParameters::DoExecute(), sd::FuPresentationLayout::DoExecute(), sd::FuText::DoExecute(), sd::DrawViewShell::DuplicateSelectedSlides(), sd::DrawViewShell::ExecCtrl(), SdModule::Execute(), sd::DrawDocShell::Execute(), sd::DrawViewShell::Execute(), sd::slidesorter::controller::Clipboard::ExecuteDrop(), sd::DrawViewShell::ExecuteDrop(), sd::slidesorter::controller::Clipboard::ExecuteOrAcceptShapeDrop(), sd::DrawViewShell::ExecutePropPanelAttr(), SdGRFFilter::Export(), fireSwitchCurrentPage(), sd::FuPoor::ForceScroll(), sd::DrawViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::slidesorter::SlideSorterViewShell::GetActualPage(), sd::DrawViewShell::GetCtrlState(), GetDoc(), GetDocSh(), sd::DrawViewShell::GetMenuState(), GetMenuState(), sd::DrawViewShell::GetModeSwitchingMenuState(), sd::View::GetSfxViewShell(), sd::slidesorter::SlideSorterViewShell::GetStateMovePageFirst(), sd::slidesorter::SlideSorterViewShell::GetStateMovePageLast(), sd::DrawViewShell::GetStatusBarState(), sd::OutlineViewShell::GetStatusBarState(), sd::DrawDocShell::GotoBookmark(), HandleScrollCommand(), sd::DrawViewShell::HidePage(), ImpGetUndoManager(), sd::slidesorter::SlideSorterViewShell::ImpGetUndoManager(), ImpSidRedo(), ImpSidUndo(), SdNavigatorWin::InitTreeLB(), sd::FuBullet::InsertFormattingMark(), sd::FuBullet::InsertSpecialCharacter(), sd::FuInsertFile::InsTextOrRTFinOlMode(), sd::SlideShow::IsRunning(), sd::DrawViewShell::IsSelected(), sd::DrawViewShell::IsSwitchPageAllowed(), sd::FuPoor::KeyInput(), KeyInput(), sd::Window::LogicInvalidate(), sd::slidesorter::SlideSorterViewShell::MainViewEndEditAndUnmarkAll(), sd::DrawViewShell::MakeVisible(), sd::DrawViewShell::ModifyLayer(), sd::FuSelection::MouseButtonDown(), MouseButtonDown(), sd::DrawView::Notify(), NotifyAccUpdate(), sd::ViewShellBase::NotifyCursor(), sd::OutlineView::OutlineView(), sd::PresentationViewShell::Paint(), sd::PaneHider::PaneHider(), sd::FuFormatPaintBrush::Paste(), PrepareClose(), sd::slidesorter::controller::SlideSorterController::PrepareEditModeChange(), accessibility::AccessibleDrawDocumentView::propertyChange(), sd::slidesorter::SlideSorterViewShell::ReadFrameViewData(), ChangeSlideExclusionStateUndoAction::Redo(), sd::DrawViewShell::RenameSlide(), sd::DrawViewShell::Resize(), sd::PresentationViewShell::Resize(), sd::ShowWindow::RestartShow(), sd::View::SdrBeginTextEdit(), sd::View::SdrEndTextEdit(), SdUndoAction::SdUndoAction(), sd::DrawViewShell::SelectionHasChanged(), sd::FuConstructBezierPolygon::SelectionHasChanged(), sd::FuSelection::SelectionHasChanged(), sd::DrawViewShell::SelectPage(), sd::DrawViewShell::SetActiveTabLayerIndex(), sd::DrawView::SetAttributes(), sd::OutlineViewShell::SetCurrentPage(), sd::ShowWindow::SetPauseMode(), SetupRulers(), sd::DrawViewShell::Shutdown(), sd::DrawViewShell::SwitchPage(), UIActivating(), UIDeactivated(), ChangeSlideExclusionStateUndoAction::Undo(), sd::DrawViewShell::VisAreaChanged(), sd::OutlineViewShell::VisAreaChanged(), WriteUserDataSequence(), sd::OutlineView::~OutlineView(), and ~ViewShell().
sd::WindowUpdater * sd::ViewShell::GetWindowUpdater | ( | ) | const |
Return the window updater of this view shell.
Definition at line 1392 of file viewshel.cxx.
References mpWindowUpdater.
Referenced by sd::Window::dispose(), and sd::Window::SetViewShell().
Point const & sd::ViewShell::GetWinViewPos | ( | ) | const |
Definition at line 937 of file viewshe2.cxx.
References mpContentWindow.
Referenced by sd::SdUnoDrawView::GetViewOffset(), and HandleScrollCommand().
tools::Long sd::ViewShell::GetZoom | ( | ) | const |
Definition at line 344 of file viewshe2.cxx.
References mpContentWindow.
Referenced by sd::OutlineViewShell::FuTemporary(), sd::DrawViewShell::GetMenuState(), and sd::OutlineViewShell::GetMenuState().
|
inline |
Definition at line 219 of file ViewShell.hxx.
Referenced by sd::FuPoor::KeyInput(), and sd::FuZoom::MouseButtonUp().
bool sd::ViewShell::HandleScrollCommand | ( | const CommandEvent & | rCEvt, |
::sd::Window * | pWin | ||
) |
Definition at line 658 of file viewshel.cxx.
References COMMAND_WHEEL_PAGESCROLL, VclPtr< class reference_type >::get(), GetActiveWindow(), CommandEvent::GetCommand(), GetDocSh(), CommandEvent::GetGestureSwipeData(), CommandEvent::GetGestureZoomData(), CommandEvent::GetLongPressData(), sd::Window::GetMaxZoom(), sd::Window::GetMinZoom(), CommandEvent::GetMousePosPixel(), sd::SlideShow::GetSlideShow(), sd::SlideShow::GetSlideShowController(), GetViewShellBase(), CommandEvent::GetWheelData(), GetWinViewPos(), sd::Window::GetZoom(), vcl::Window::HandleScrollCommand(), SfxShell::Invalidate(), CommandEvent::IsMouseEvent(), IsPageFlipMode(), SfxObjectShell::IsUIActive(), mfAccumulatedZoom, mfLastZoomScale, mpContentWindow, mpHorizontalScrollBar, mpVerticalScrollBar, pData, vcl::Window::PixelToLogic(), SetWinViewPos(), SetZoom(), basegfx::zoomtools::zoomIn(), and basegfx::zoomtools::zoomOut().
|
inline |
Definition at line 252 of file ViewShell.hxx.
Referenced by sd::PresentationViewShell::Activate(), Activate(), sd::DrawViewShell::AttrExec(), Command(), sd::DrawViewShell::Command(), CreateOrDuplicatePage(), Deactivate(), sd::DrawViewShell::ExecAnimationWin(), sd::DrawViewShell::ExecBmpMask(), sd::DrawViewShell::ExecCtrl(), sd::DrawViewShell::ExecFormText(), sd::DrawViewShell::ExecGallery(), sd::DrawViewShell::ExecIMap(), sd::DrawViewShell::ExecOptionsBar(), sd::DrawViewShell::ExecRuler(), sd::DrawViewShell::ExecStatusBar(), sd::DrawViewShell::FuDeleteSelectedObjects(), sd::DrawViewShell::FuPermanent(), sd::OutlineViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::DrawViewShell::GetMenuState(), KeyInput(), sd::OutlineViewShell::KeyInput(), MouseButtonDown(), MouseButtonUp(), MouseMove(), sd::DrawViewShell::PrepareClose(), RequestHelp(), sd::DrawViewShell::SelectionHasChanged(), and SetActiveWindow().
|
inline |
Definition at line 251 of file ViewShell.hxx.
|
inline |
Definition at line 249 of file ViewShell.hxx.
Referenced by sd::DrawViewShell::FuPermanent(), and sd::OutlineViewShell::FuPermanent().
|
inline |
Definition at line 191 of file ViewShell.hxx.
Referenced by SdModule::ApplyItemSet(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), sd::DrawViewShell::ReadFrameViewData(), and sd::DrawViewShell::WriteFrameViewData().
|
protected |
Definition at line 1156 of file viewshel.cxx.
References a, aStringList, SfxItemSet::DisableItem(), SfxUndoManager::GetRedoActionComment(), SfxUndoManager::GetRedoActionCount(), ImpGetUndoManager(), nCount, SfxItemSet::Put(), and rSet.
Referenced by GetMenuState().
|
protectedvirtual |
Reimplemented in sd::slidesorter::SlideSorterViewShell.
Definition at line 1094 of file viewshel.cxx.
References GetDocSh(), sd::ViewShellBase::GetMainViewShell(), sd::OutlineView::GetOutliner(), GetShellType(), SdrObjEditView::GetTextEditOutliner(), Outliner::GetUndoManager(), sd::DrawDocShell::GetUndoManager(), GetView(), GetViewShellBase(), SdrObjEditView::IsTextEdit(), and ST_OUTLINE.
Referenced by GetMenuState(), ImpGetRedoStrings(), ImpGetUndoStrings(), ImpSidRedo(), and ImpSidUndo().
|
protected |
Definition at line 1129 of file viewshel.cxx.
References a, aStringList, SfxItemSet::DisableItem(), SfxUndoManager::GetUndoActionComment(), SfxUndoManager::GetUndoActionCount(), ImpGetUndoManager(), nCount, SfxItemSet::Put(), and rSet.
Referenced by GetMenuState().
|
protected |
Definition at line 1270 of file viewshel.cxx.
References SfxRequest::Done(), Exception, SfxItemSet::Get(), SfxRequest::GetArgs(), SfxViewFrame::GetBindings(), SfxItemSet::GetItemIfSet(), SfxUndoManager::GetRedoAction(), SfxUndoManager::GetRedoActionCount(), sd::slidesorter::SlideSorterViewShell::GetSlideSorter(), CntUInt16Item::GetValue(), GetViewFrame(), GetViewShellBase(), SfxUndoAction::GetViewShellId(), ImpGetUndoManager(), SfxShell::Invalidate(), SfxBindings::InvalidateAll(), comphelper::LibreOfficeKit::isActive(), mbHasRulers, nCount, SfxUndoManager::Redo(), and SfxRequest::SetReturnValue().
Referenced by sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), and sd::slidesorter::controller::SlotManager::FuSupport().
|
protected |
Definition at line 1202 of file viewshel.cxx.
References SfxRequest::Done(), Exception, SfxItemSet::Get(), SfxRequest::GetArgs(), SfxViewFrame::GetBindings(), SfxItemSet::GetItemIfSet(), sd::slidesorter::SlideSorterViewShell::GetSlideSorter(), SfxUndoManager::GetUndoAction(), SfxUndoManager::GetUndoActionCount(), CntUInt16Item::GetValue(), GetViewFrame(), GetViewShellBase(), SfxUndoAction::GetViewShellId(), ImpGetUndoManager(), SfxShell::Invalidate(), SfxBindings::InvalidateAll(), comphelper::LibreOfficeKit::isActive(), mbHasRulers, nCount, SfxRequest::SetReturnValue(), and SfxUndoManager::Undo().
Referenced by sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), and sd::slidesorter::controller::SlotManager::FuSupport().
|
virtual |
The Init method has to be called from the outside directly after a new object of this class has been created.
It can be used for that part of the initialisation that can be run only after the creation of the new object is finished. This includes registration as listener at event broadcasters.
Derived classes should call this method at the head of their Init() methods.
bIsMainViewShell | This flag tells the Init() method whether the new ViewShell will be the main view shell. |
Reimplemented in sd::DrawViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 261 of file viewshel.cxx.
References VclPtr< class reference_type >::get(), mpContentWindow, mpImpl, SetActiveWindow(), and SetIsMainViewShell().
Referenced by sd::DrawViewShell::Init(), and sd::slidesorter::SlideSorterViewShell::Init().
void sd::ViewShell::InitWindows | ( | const Point & | rViewOrigin, |
const Size & | rViewSize, | ||
const Point & | rWinPos, | ||
bool | bUpdate = false |
||
) |
Initialize imaging parameters for all split windows.
Definition at line 403 of file viewshe2.cxx.
References GetActiveWindow(), vcl::Window::GetOutputSizePixel(), GetView(), mpContentWindow, vcl::Window::PixelToLogic(), VisAreaChanged(), and SdrPaintView::VisAreaChanged().
Referenced by sd::OutlineViewShell::ArrangeGUIElements(), sd::OutlineViewShell::Construct(), sd::DrawViewShell::Construct(), refreshpage(), SetPageSizeAndBorder(), and sd::DrawViewShell::SetupPage().
void sd::ViewShell::InvalidateWindows | ( | ) |
Invalidate all split windows below the ?provided rectangle.
Definition at line 433 of file viewshe2.cxx.
References mpContentWindow.
Referenced by sd::DrawViewShell::ChangeEditMode(), sd::DrawViewShell::ExecCtrl(), sd::DrawViewShell::ExecRuler(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuTemporary(), and KeyInput().
bool sd::ViewShell::IsMainViewShell | ( | ) | const |
Return <TRUE> when the called view shell is the main sub shell of its ViewShellBase object, i.e.
is display in the center pane. This convenience function is equivalent to comparing the this pointer to the result of ViewShellBase::GetViewShell(PT_CENTER).
Definition at line 1493 of file viewshel.cxx.
References mpImpl.
Referenced by Activate(), sd::DrawViewShell::ChangeEditMode(), sd::slidesorter::controller::Listener::ConnectToController(), sd::DrawViewShell::CreateSubController(), sd::OutlineViewShell::CreateSubController(), sd::slidesorter::SlideSorterViewShell::CreateSubController(), Deactivate(), Exit(), sd::slidesorter::SlideSorterViewShell::GetActualPage(), sd::slidesorter::controller::SlotManager::GetMenuState(), sd::slidesorter::SlideSorterViewShell::GetStateMovePageFirst(), sd::slidesorter::controller::IMPL_LINK_NOARG(), sd::slidesorter::controller::SelectionFunction::KeyInput(), sd::slidesorter::controller::Listener::Listener(), sd::slidesorter::SlideSorterViewShell::ReadFrameViewData(), SetRuler(), sd::slidesorter::controller::SelectionFunction::ModeHandler::SwitchView(), sd::slidesorter::view::SlideSorterView::UpdateOrientation(), and sd::slidesorter::SlideSorterViewShell::WriteFrameViewData().
bool sd::ViewShell::IsPageFlipMode | ( | ) | const |
Definition at line 112 of file viewshel.cxx.
References mpContentWindow.
Referenced by HandleScrollCommand(), UpdateScrollBars(), and VirtVScrollHdl().
|
inline |
Definition at line 264 of file ViewShell.hxx.
|
virtual |
Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.
Definition at line 391 of file viewshel.cxx.
References GetActiveWindow(), vcl::KeyCode::GetCode(), GetCurrentFunction(), KeyEvent::GetKeyCode(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), sd::SlideShow::GetSlideShow(), sd::View::getSmartTags(), GetView(), SfxShell::GetViewShell(), GetViewShellBase(), HasCurrentFunction(), sd::FuText::InvalidateBindings(), InvalidateWindows(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsShift(), KEY_R, sd::SmartTagSet::KeyInput(), SfxViewShell::KeyInput(), SetActiveWindow(), and SwitchActiveViewFireFocus().
Referenced by sd::Window::KeyInput(), sd::ShowWindow::KeyInput(), sd::DrawViewShell::KeyInput(), and sd::OutlineViewShell::KeyInput().
|
virtual |
Reimplemented in sd::DrawViewShell.
Definition at line 458 of file viewshel.cxx.
References sd::ViewShell::Implementation::ToolBarManagerLock::Create(), GetCurrentFunction(), sd::View::getSmartTags(), GetView(), GetViewShellBase(), sd::Window::GrabFocus(), HasCurrentFunction(), vcl::Window::HasFocus(), sd::FuText::InvalidateBindings(), sd::SmartTagSet::MouseButtonDown(), mpImpl, SetActiveWindow(), and E3dView::SetMouseEvent().
Referenced by sd::Window::MouseButtonDown(), sd::DrawViewShell::MouseButtonDown(), and SetGraphicMm100Position().
|
virtual |
Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.
Definition at line 584 of file viewshel.cxx.
References GetCurrentFunction(), GetView(), HasCurrentFunction(), sd::FuText::InvalidateBindings(), mpImpl, SetActiveWindow(), and E3dView::SetMouseEvent().
Referenced by sd::Window::MouseButtonUp(), sd::DrawViewShell::MouseButtonUp(), sd::OutlineViewShell::MouseButtonUp(), and SetGraphicMm100Position().
|
virtual |
Reimplemented in sd::DrawViewShell.
Definition at line 551 of file viewshel.cxx.
References GetCurrentFunction(), GetView(), HasCurrentFunction(), MouseEvent::IsLeaveWindow(), mpImpl, SetActiveWindow(), and E3dView::SetMouseEvent().
Referenced by sd::Window::MouseMove(), sd::DrawViewShell::MouseMove(), and SetGraphicMm100Position().
bool sd::ViewShell::Notify | ( | NotifyEvent const & | rNEvt, |
::sd::Window * | pWin | ||
) |
Definition at line 645 of file viewshel.cxx.
References NotifyEvent::GetData(), NotifyEvent::GetType(), and HandleScrollCommand().
Referenced by sd::Window::EventNotify().
void sd::ViewShell::NotifyAccUpdate | ( | ) |
Definition at line 1577 of file viewshel.cxx.
References sd::ViewShellBase::GetDrawController(), GetViewShellBase(), and sd::DrawController::NotifyAccUpdate().
|
virtual |
Reimplemented in sd::DrawViewShell, sd::OutlineViewShell, sd::PresentationViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 1514 of file viewshel.cxx.
Referenced by sd::Window::Paint(), and sd::ShowWindow::Paint().
|
virtual |
Reimplemented in sd::DrawViewShell.
Definition at line 1510 of file viewshel.cxx.
Referenced by sd::Window::PrePaint().
|
virtual |
Tell the FmFormShell that the view shell is closing.
Give it the opportunity to prevent that.
Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.
Definition at line 1076 of file viewshel.cxx.
References sd::ViewShellBase::GetFormShellManager(), GetViewShellBase(), and FmFormShell::PrepareClose().
Referenced by sd::DrawViewShell::PrepareClose(), sd::OutlineViewShell::PrepareClose(), and sd::ViewShellBase::PrepareClose().
|
virtual |
Reimplemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 610 of file viewshe2.cxx.
Referenced by Activate(), SdModule::ApplyItemSet(), and SetFrameView().
void sd::ViewShell::ReadUserData | ( | ) |
Definition at line 798 of file viewshe2.cxx.
References SfxDispatcher::Execute(), SfxViewFrame::GetDispatcher(), SfxViewShell::GetViewFrame(), and SfxShell::GetViewShell().
Referenced by sd::ViewShellBase::ReadUserData().
|
virtual |
Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.
Definition at line 897 of file viewshe2.cxx.
References mpFrameView, and sd::FrameView::ReadUserDataSequence().
Referenced by sd::DrawViewShell::ReadUserDataSequence(), sd::OutlineViewShell::ReadUserDataSequence(), and sd::ViewShellBase::ReadUserDataSequence().
|
virtual |
Set the given window as new parent window.
This is not possible for all views, so the return value tells the caller if the relocation was successful.
Reimplemented in sd::DrawViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 1539 of file viewshel.cxx.
References mpContentWindow, mpHorizontalScrollBar, mpParentWindow, and mpVerticalScrollBar.
bool sd::ViewShell::RequestHelp | ( | const HelpEvent & | rEvt | ) |
Definition at line 583 of file viewshe2.cxx.
References GetCurrentFunction(), HelpEvent::GetMode(), and HasCurrentFunction().
Referenced by sd::Window::RequestHelp().
|
virtual |
Notify the view shell that its parent window has been resized.
The ViewShell places and resizes its UI elements accordingly. The new size can be obtained from the parent window.
Reimplemented in sd::DrawViewShell, and sd::PresentationViewShell.
Definition at line 908 of file viewshel.cxx.
References ArrangeGUIElements(), GetActiveWindow(), GetView(), Size::IsEmpty(), maViewPos, maViewSize, mpParentWindow, SetupRulers(), and SdrPaintView::VisAreaChanged().
Referenced by doShow(), sd::DrawViewShell::Resize(), sd::PresentationViewShell::Resize(), sd::framework::ViewShellWrapper::windowResized(), and sd::framework::ViewShellWrapper::windowShown().
void sd::ViewShell::Scroll | ( | ::tools::Long | nX, |
::tools::Long | nY | ||
) |
Definition at line 265 of file viewshe2.cxx.
References ASPECT_CONTENT, GetActiveWindow(), GetDocSh(), vcl::Window::GetOutputSizePixel(), GetView(), sd::DrawDocShell::GetVisArea(), mbHasRulers, mpHorizontalScrollBar, mpVerticalScrollBar, nScrollX, nScrollY, vcl::Window::PixelToLogic(), tools::Rectangle::SetPos(), SfxObjectShell::SetVisArea(), sd::Window::SetVisibleXY(), UpdateHRuler(), UpdateVRuler(), VisAreaChanged(), and SdrPaintView::VisAreaChanged().
Referenced by sd::FuZoom::MouseMove(), sd::slidesorter::controller::ScrollBarManager::RepeatAutoScroll(), and ScrollLines().
void sd::ViewShell::ScrollLines | ( | ::tools::Long | nLinesX, |
::tools::Long | nLinesY | ||
) |
Scroll a specific number of lines.
Is used in the automatic scrolling (character/drag).
Definition at line 251 of file viewshe2.cxx.
References mpHorizontalScrollBar, mpVerticalScrollBar, and Scroll().
Referenced by sd::Window::DropScroll(), ExecReq(), sd::FuPoor::ForceScroll(), and sd::FuPoor::KeyInput().
void sd::ViewShell::SetActiveWindow | ( | ::sd::Window * | pWindow | ) |
Set the active window.
When the shell is displayed in the center pane then the window of the ViewShellBase is also set to the given window.
Definition at line 549 of file viewshe2.cxx.
References vcl::Window::EnableChildTransparentMode(), GetCurrentFunction(), vcl::Window::GetOutDev(), GetView(), SfxShell::GetViewShell(), SfxViewShell::GetWindow(), HasCurrentFunction(), mpActiveWindow, and SdrSnapView::SetActualWin().
Referenced by Init(), sd::ShowWindow::KeyInput(), KeyInput(), sd::ShowWindow::MouseButtonDown(), MouseButtonDown(), MouseButtonUp(), sd::ShowWindow::MouseMove(), MouseMove(), and sd::slidesorter::SlideSorterViewShell::Paint().
void sd::ViewShell::SetCurrentFunction | ( | const rtl::Reference< FuPoor > & | xFunction | ) |
Definition at line 1422 of file viewshel.cxx.
References mxCurrentFunction, and mxOldFunction.
Referenced by sd::DrawViewShell::ExecGoToFirstPage(), sd::DrawViewShell::ExecGoToLastPage(), sd::DrawViewShell::ExecGoToNextPage(), sd::DrawViewShell::ExecGoToPreviousPage(), sd::DrawViewShell::FuPermanent(), sd::OutlineViewShell::FuPermanent(), sd::slidesorter::controller::SlotManager::FuPermanent(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), and sd::slidesorter::SlideSorter::SetCurrentFunction().
void sd::ViewShell::SetCursorMm100Position | ( | const Point & | rPosition, |
bool | bPoint, | ||
bool | bClearMark | ||
) |
Allows adjusting the point or mark of the selection to a document coordinate.
Definition at line 504 of file viewshel.cxx.
References GetView(), and EditView::SetCursorLogicPosition().
void sd::ViewShell::SetDefTabHRuler | ( | sal_uInt16 | nDefTab | ) |
set DefTab at horizontal rulers
Definition at line 1067 of file viewshel.cxx.
References mpHorizontalRuler.
Referenced by SdModule::ApplyItemSet().
void sd::ViewShell::SetFrameView | ( | FrameView * | pFrameView | ) |
Setting a frame view triggers ReadFrameViewData() for the new frame.
pFrameView | The new frame view that replaces the old one. |
Definition at line 598 of file viewshe2.cxx.
References mpFrameView, and ReadFrameViewData().
Referenced by sd::PresentationViewShell::FinishInitialization().
void sd::ViewShell::SetGraphicMm100Position | ( | bool | bStart, |
const Point & | rPosition | ||
) |
Allows starting or ending a graphic move or resize action.
Definition at line 533 of file viewshel.cxx.
References Point::getX(), Point::getY(), MOUSE_LEFT, MouseButtonDown(), MouseButtonUp(), MouseMove(), and mpActiveWindow.
void sd::ViewShell::SetIsMainViewShell | ( | bool | bIsMainViewShell | ) |
Set or reset the flag that indicates whether the called shell is the one displayed in the center pane.
By default this flag is set to <FALSE>. For the main view shell it thus has to be set to <TRUE>.
Definition at line 1498 of file viewshel.cxx.
References sd::DrawDocShell::Connect(), sd::DrawDocShell::Disconnect(), GetDocSh(), and mpImpl.
void sd::ViewShell::SetOldFunction | ( | const rtl::Reference< FuPoor > & | xFunction | ) |
Definition at line 1430 of file viewshel.cxx.
References mxCurrentFunction, and mxOldFunction.
Referenced by sd::DrawViewShell::FuPermanent(), sd::OutlineViewShell::FuPermanent(), sd::slidesorter::controller::SlotManager::FuPermanent(), sd::DrawViewShell::FuTemporary(), and sd::slidesorter::SlideSorter::SetCurrentFunction().
void sd::ViewShell::SetPageSizeAndBorder | ( | PageKind | ePageKind, |
const Size & | rNewSize, | ||
::tools::Long | nLeft, | ||
::tools::Long | nRight, | ||
::tools::Long | nUpper, | ||
::tools::Long | nLower, | ||
bool | bScaleAll, | ||
Orientation | eOrient, | ||
sal_uInt16 | nPaperBin, | ||
bool | bBackgroundFullSize | ||
) |
Definition at line 450 of file viewshe2.cxx.
References SdDrawDocument::AdaptPageSizeForAllPages(), SfxUndoManager::AddUndoAction(), ASPECT_CONTENT, SdPage::CreateTitleAndLayout(), SfxDispatcher::Execute(), SfxViewFrame::GetBindings(), SfxViewFrame::GetDispatcher(), GetDoc(), GetDocSh(), SdrPage::GetLeftBorder(), SfxViewFrame::GetObjectShell(), SdDrawDocument::GetSdPage(), SdrPaintView::GetSdrPageView(), SdrPage::GetSize(), SfxShell::GetUndoManager(), SdrPage::GetUpperBorder(), GetView(), SfxViewShell::GetViewFrame(), SfxShell::GetViewShell(), sd::DrawDocShell::GetVisArea(), Handout, Size::Height(), sd::ViewShellHint::HINT_PAGE_RESIZE_END, sd::ViewShellHint::HINT_PAGE_RESIZE_START, InitWindows(), SfxBindings::Invalidate(), SdResId(), SdrPageView::SetPageOrigin(), SdrDragView::SetWorkArea(), Standard, tools::Rectangle::TopLeft(), UpdateScrollBars(), and Size::Width().
Referenced by sd::FuPage::ApplyItemSet(), and sd::DrawViewShell::SetPageProperties().
|
inline |
Definition at line 270 of file ViewShell.hxx.
|
inline |
Definition at line 267 of file ViewShell.hxx.
void sd::ViewShell::SetRuler | ( | bool | bRuler | ) |
Switch ruler on/off.
Definition at line 814 of file viewshe2.cxx.
References GetDocSh(), SfxShell::GetViewShell(), SfxViewShell::InvalidateBorder(), IsMainViewShell(), SfxObjectShell::IsPreview(), mbHasRulers, mpHorizontalRuler, and mpVerticalRuler.
Referenced by SdModule::ApplyItemSet(), sd::PresentationViewShell::FinishInitialization(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), and sd::DrawViewShell::ReadFrameViewData().
void sd::ViewShell::SetScrollBarsVisible | ( | bool | bVisible | ) |
Definition at line 847 of file viewshe2.cxx.
References bVisible, mpHorizontalScrollBar, and mpVerticalScrollBar.
|
inline |
Definition at line 263 of file ViewShell.hxx.
Referenced by sd::FuCustomShowDlg::DoExecute().
void sd::ViewShell::SetUIUnit | ( | FieldUnit | eUnit | ) |
Definition at line 1054 of file viewshel.cxx.
References mpHorizontalRuler, and mpVerticalRuler.
Referenced by SdModule::ApplyItemSet().
|
private |
Create the rulers.
Definition at line 810 of file viewshel.cxx.
References CreateHRuler(), CreateVRuler(), GetActiveWindow(), GetViewShellBase(), sd::SlideShow::IsRunning(), mbHasRulers, mpContentWindow, mpHorizontalRuler, mpVerticalRuler, and VclPtr< class reference_type >::reset().
Referenced by GetBorder(), and Resize().
void sd::ViewShell::SetWinViewPos | ( | const Point & | rWinPos | ) |
Definition at line 908 of file viewshe2.cxx.
References GetActiveWindow(), vcl::Window::GetOutputSizePixel(), GetView(), mbHasRulers, mpContentWindow, vcl::Window::PixelToLogic(), UpdateHRuler(), UpdateScrollBars(), UpdateVRuler(), VisAreaChanged(), and SdrPaintView::VisAreaChanged().
Referenced by HandleScrollCommand(), and sd::SdUnoDrawView::SetViewOffset().
|
virtual |
Set zoom factor for all split windows.
Reimplemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 309 of file viewshe2.cxx.
References GetActiveWindow(), GetDoc(), vcl::Window::GetOutputSizePixel(), SdrModel::GetUIScale(), GetView(), mpContentWindow, mpHorizontalRuler, mpVerticalRuler, vcl::Window::PixelToLogic(), UpdateScrollBars(), VisAreaChanged(), and SdrPaintView::VisAreaChanged().
Referenced by sd::FuScale::DoExecute(), HandleScrollCommand(), sd::FuPoor::KeyInput(), sd::DrawViewShell::SetZoom(), sd::OutlineViewShell::SetZoom(), and SetZoomFactor().
|
protectedvirtual |
Set zoom factor for InPlace.
Reimplemented in sd::DrawViewShell.
Definition at line 543 of file viewshe2.cxx.
References SetZoom().
Referenced by sd::DrawViewShell::SetZoomFactor(), and sd::ViewShellBase::SetZoomFactor().
|
virtual |
Set zoom rectangle for active window.
Sets all split windows to the same zoom factor.
Reimplemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 358 of file viewshe2.cxx.
References GetActiveWindow(), GetDoc(), vcl::Window::GetOutputSizePixel(), SdrModel::GetUIScale(), GetView(), sd::Window::GetWinViewPos(), comphelper::LibreOfficeKit::isActive(), mpContentWindow, mpHorizontalRuler, mpVerticalRuler, vcl::Window::PixelToLogic(), Point::setX(), Point::setY(), sd::Window::SetZoomRect(), UpdateScrollBars(), VisAreaChanged(), SdrPaintView::VisAreaChanged(), Point::X(), and Point::Y().
Referenced by sd::FuPoor::KeyInput(), sd::FuZoom::MouseButtonUp(), sd::DrawViewShell::SetZoomRect(), sd::OutlineViewShell::SetZoomRect(), and sd::slidesorter::SlideSorterViewShell::SetZoomRect().
|
virtual |
Show controls of the UI or hide them, depending on the given flag.
As a result the border is adapted.
Reimplemented in sd::DrawViewShell.
Definition at line 1518 of file viewshel.cxx.
References bVisible, mbHasRulers, mpContentWindow, mpHorizontalRuler, mpHorizontalScrollBar, mpVerticalRuler, and mpVerticalScrollBar.
Referenced by sd::ViewShellBase::ShowUIControls(), and sd::DrawViewShell::ShowUIControls().
|
virtual |
This method is more or less an alias to Deactivate().
It is called before an object of this class is taken from the stack of view shells.
When this method is not called before a view shell is taken from a stack then the Deactivate() call from the SFX as a response to RemoveSubShell() comes too late when the view shell is not on the stack anymore.
Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.
Definition at line 386 of file viewshel.cxx.
References Exit().
Referenced by sd::DrawViewShell::Shutdown(), and sd::OutlineViewShell::Shutdown().
void sd::ViewShell::SwitchActiveViewFireFocus | ( | ) |
Definition at line 1565 of file viewshel.cxx.
References mpContentWindow, and SwitchViewFireFocus().
Referenced by KeyInput().
|
virtual |
Reimplemented in sd::slidesorter::SlideSorterViewShell.
Definition at line 1556 of file viewshel.cxx.
References accessibility::AccessibleDocumentViewBase::SwitchViewActivated().
Referenced by SwitchActiveViewFireFocus().
|
virtual |
Reimplemented in sd::DrawViewShell.
Definition at line 338 of file viewshel.cxx.
References sd::ViewShellBase::GetToolBarManager(), SfxShell::GetViewShell(), and GetViewShellBase().
Referenced by sd::DrawViewShell::UIActivating(), and sd::ViewShellBase::UIActivating().
|
virtual |
Reimplemented in sd::DrawViewShell.
Definition at line 344 of file viewshel.cxx.
References GetDrawView(), sd::ViewShellBase::GetToolBarManager(), SfxShell::GetViewShell(), and GetViewShellBase().
Referenced by sd::DrawViewShell::UIDeactivated(), and sd::ViewShellBase::UIDeactivated().
|
protectedvirtual |
Reimplemented in sd::DrawViewShell.
Definition at line 239 of file viewshe2.cxx.
Referenced by Scroll(), SetWinViewPos(), UpdateScrollBars(), and VirtHScrollHdl().
|
virtual |
This method is still used by the OutlineViewShell to update the model according to the content of the outline view.
This in turn updates the previews in the slide sorter.
Reimplemented in sd::OutlineViewShell.
Definition at line 1087 of file viewshel.cxx.
Referenced by Activate(), sd::FuPage::ApplyItemSet(), sd::DrawViewShell::ExecCtrl(), sd::slidesorter::controller::SlotManager::ExecCtrl(), sd::slidesorter::controller::SelectionManager::SelectionHasChanged(), and sd::DrawViewShell::SwitchPage().
|
virtual |
Set internal values of all scroll bars that determine thumb size and position.
adjust Thumbpos and VisibleSize
The external values like size and position of the scroll bar controls are not modified.
Reimplemented in sd::slidesorter::SlideSorterViewShell.
Definition at line 71 of file viewshe2.cxx.
References GetActualPage(), GetDoc(), SdPage::GetPageKind(), SdrPage::GetPageNum(), SdDrawDocument::GetSdPageCount(), IsPageFlipMode(), mbHasRulers, mpContentWindow, mpHorizontalScrollBar, mpVerticalScrollBar, UpdateHRuler(), and UpdateVRuler().
Referenced by ArrangeGUIElements(), sd::OutlineViewShell::ArrangeGUIElements(), refreshpage(), sd::View::SdrBeginTextEdit(), SetPageSizeAndBorder(), sd::DrawViewShell::SetupPage(), SetWinViewPos(), SetZoom(), and SetZoomRect().
|
protectedvirtual |
Reimplemented in sd::DrawViewShell.
Definition at line 243 of file viewshe2.cxx.
Referenced by Scroll(), SetWinViewPos(), UpdateScrollBars(), and VirtVScrollHdl().
|
protectedvirtual |
virtual scroll handler for horizontal Scrollbars
Reimplemented in sd::OutlineViewShell.
Definition at line 133 of file viewshe2.cxx.
References ASPECT_CONTENT, GetActiveWindow(), GetDocSh(), vcl::Window::GetOutputSizePixel(), ScrollAdaptor::GetRange(), SdrObjEditView::GetTextEditOutlinerView(), ScrollAdaptor::GetThumbPos(), GetView(), sd::DrawDocShell::GetVisArea(), OutlinerView::HideCursor(), Range::Len(), mbHasRulers, mpContentWindow, vcl::Window::PixelToLogic(), tools::Rectangle::SetPos(), SfxObjectShell::SetVisArea(), OutlinerView::ShowCursor(), UpdateHRuler(), VisAreaChanged(), and SdrPaintView::VisAreaChanged().
|
protectedvirtual |
handling for vertical Scrollbars
Reimplemented in sd::OutlineViewShell.
Definition at line 181 of file viewshe2.cxx.
References ASPECT_CONTENT, GetActiveWindow(), GetActualPage(), GetDocSh(), vcl::Window::GetOutputSizePixel(), SdrPage::GetPageNum(), ScrollAdaptor::GetRange(), SdrObjEditView::GetTextEditOutlinerView(), ScrollAdaptor::GetThumbPos(), GetView(), sd::DrawDocShell::GetVisArea(), OutlinerView::HideCursor(), IsPageFlipMode(), Range::Len(), mbHasRulers, mpContentWindow, vcl::Window::PixelToLogic(), tools::Rectangle::SetPos(), SfxObjectShell::SetVisArea(), OutlinerView::ShowCursor(), UpdateVRuler(), VisAreaChanged(), and SdrPaintView::VisAreaChanged().
|
virtual |
this method is called when the visible area of the view from this viewshell is changed
Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.
Definition at line 902 of file viewshe2.cxx.
References SfxShell::GetViewShell(), and SfxViewShell::VisAreaChanged().
Referenced by sd::FuInsertOLE::DoExecute(), InitWindows(), Scroll(), SetWinViewPos(), SetZoom(), SetZoomRect(), VirtHScrollHdl(), VirtVScrollHdl(), sd::DrawViewShell::VisAreaChanged(), and sd::OutlineViewShell::VisAreaChanged().
|
virtual |
Reimplemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.
Definition at line 620 of file viewshe2.cxx.
Referenced by SdModule::ApplyItemSet(), SdModule::CreateItemSet(), Deactivate(), and WriteUserData().
void sd::ViewShell::WriteUserData | ( | ) |
Definition at line 805 of file viewshe2.cxx.
References WriteFrameViewData().
Referenced by sd::ViewShellBase::WriteUserData().
|
virtual |
Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.
Definition at line 878 of file viewshe2.cxx.
References sd::ViewShellBase::GetMainViewShell(), SfxShell::GetViewShell(), GetViewShellBase(), sd::IMPRESS_FACTORY_ID, mpFrameView, nIndex, sUNO_View_ViewId, and sd::FrameView::WriteUserDataSequence().
Referenced by sd::DrawViewShell::WriteUserDataSequence(), sd::OutlineViewShell::WriteUserDataSequence(), and sd::ViewShellBase::WriteUserDataSequence().
|
friend |
Definition at line 428 of file ViewShell.hxx.
|
protected |
Area covered by all windows, i.e.
the area of the parent window without the controls at the borders like rulers, scroll bars, tab bar, buttons. This rectangle may be set in window coordinates (i.e. pixel values relative to the parent window). It is transformed by every call to GetAllWindowRectangle() into screen coordinates (relative to the upper left corner of the screen.
Definition at line 480 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), and GetAllWindowRect().
|
protected |
Definition at line 463 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), sd::DrawViewShell::ArrangeGUIElements(), sd::OutlineViewShell::ArrangeGUIElements(), doShow(), and GetBorder().
|
protected |
Definition at line 461 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), sd::slidesorter::SlideSorterViewShell::ArrangeGUIElements(), and Resize().
|
protected |
Definition at line 462 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), sd::GraphicViewShell::ArrangeGUIElements(), sd::slidesorter::SlideSorterViewShell::ArrangeGUIElements(), Resize(), sd::DrawViewShell::Resize(), and sd::PresentationViewShell::Resize().
|
static |
Definition at line 105 of file ViewShell.hxx.
|
static |
Definition at line 106 of file ViewShell.hxx.
|
protected |
This flag controls whether the rulers are visible.
Definition at line 448 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), construct(), GetBorder(), ImpSidRedo(), ImpSidUndo(), Scroll(), SetRuler(), SetupRulers(), SetWinViewPos(), sd::DrawViewShell::ShowMousePosInfo(), ShowUIControls(), UpdateScrollBars(), VirtHScrollHdl(), and VirtVScrollHdl().
|
protected |
Definition at line 465 of file ViewShell.hxx.
|
protected |
The type of the shell. Returned by GetShellType().
Definition at line 483 of file ViewShell.hxx.
Referenced by sd::OutlineViewShell::Construct(), sd::DrawViewShell::Construct(), sd::GraphicViewShell::ConstructGraphicViewShell(), GetShellType(), sd::PresentationViewShell::PresentationViewShell(), and sd::slidesorter::SlideSorterViewShell::SlideSorterViewShell().
|
protected |
Definition at line 459 of file ViewShell.hxx.
Referenced by HandleScrollCommand().
|
protected |
Definition at line 458 of file ViewShell.hxx.
Referenced by construct(), and HandleScrollCommand().
|
static |
Definition at line 107 of file ViewShell.hxx.
|
protected |
Definition at line 467 of file ViewShell.hxx.
|
protected |
Definition at line 466 of file ViewShell.hxx.
|
protected |
The active window.
Definition at line 451 of file ViewShell.hxx.
Referenced by construct(), GetFrameWeld(), SetActiveWindow(), and SetGraphicMm100Position().
|
protected |
Window inside the rulers and scroll bars that shows a view of the document.
Definition at line 434 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), sd::OutlineViewShell::ArrangeGUIElements(), doShow(), DrawMarkRect(), GetAllWindowRect(), GetBorder(), GetContentWindow(), GetViewOrigin(), GetWinViewPos(), GetZoom(), HandleScrollCommand(), Init(), sd::slidesorter::SlideSorterViewShell::Init(), sd::slidesorter::SlideSorterViewShell::Initialize(), InitWindows(), InvalidateWindows(), IsPageFlipMode(), sd::DrawViewShell::MouseMove(), RelocateToParentWindow(), SetupRulers(), SetWinViewPos(), SetZoom(), sd::OutlineViewShell::SetZoom(), SetZoomRect(), sd::OutlineViewShell::SetZoomRect(), ShowUIControls(), SwitchActiveViewFireFocus(), UpdateScrollBars(), VirtHScrollHdl(), sd::OutlineViewShell::VirtHScrollHdl(), sd::OutlineViewShell::VirtVScrollHdl(), VirtVScrollHdl(), and ~ViewShell().
|
protected |
Definition at line 453 of file ViewShell.hxx.
Referenced by sd::PresentationViewShell::Activate(), Activate(), sd::OutlineViewShell::Construct(), construct(), sd::DrawViewShell::Construct(), sd::DrawViewShell::ExecOptionsBar(), ExecReq(), sd::DrawViewShell::FuSupport(), sd::DrawViewShell::GetOptionsBarState(), sd::DrawViewShell::ImplDestroy(), sd::OutlineViewShell::OutlineViewShell(), sd::OutlineViewShell::ReadFrameViewData(), sd::slidesorter::SlideSorterViewShell::ReadFrameViewData(), ReadUserDataSequence(), sd::DrawViewShell::ReadUserDataSequence(), sd::OutlineViewShell::ReadUserDataSequence(), sd::slidesorter::SlideSorterViewShell::RelocateToParentWindow(), SetFrameView(), sd::slidesorter::SlideSorterViewShell::SlideSorterViewShell(), sd::DrawViewShell::SwitchPage(), sd::DrawViewShell::WriteFrameViewData(), sd::OutlineViewShell::WriteFrameViewData(), sd::slidesorter::SlideSorterViewShell::WriteFrameViewData(), WriteUserDataSequence(), and sd::OutlineViewShell::~OutlineViewShell().
Horizontal ruler is not shown by default.
Definition at line 441 of file ViewShell.hxx.
Referenced by Activate(), ArrangeGUIElements(), Deactivate(), GetBorder(), SetDefTabHRuler(), SetRuler(), SetUIUnit(), SetupRulers(), SetZoom(), SetZoomRect(), sd::DrawViewShell::ShowMousePosInfo(), ShowUIControls(), sd::DrawViewShell::UpdateHRuler(), and ~ViewShell().
|
protected |
Horizontal scroll bar for the current slide is displayed when needed.
Definition at line 437 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), doShow(), GetBorder(), HandleScrollCommand(), sd::slidesorter::SlideSorterViewShell::Initialize(), RelocateToParentWindow(), Scroll(), ScrollLines(), SetScrollBarsVisible(), ShowUIControls(), UpdateScrollBars(), and ~ViewShell().
|
protected |
Definition at line 485 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), sd::DrawViewShell::ChangeEditMode(), sd::DrawViewShell::FuTemporary(), sd::slidesorter::SlideSorterViewShell::FuTemporary(), sd::slidesorter::controller::SlotManager::FuTemporary(), Init(), IsMainViewShell(), MouseButtonDown(), MouseButtonUp(), MouseMove(), SetIsMainViewShell(), and ~ViewShell().
|
protected |
Layer tab bar.
Definition at line 445 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), sd::GraphicViewShell::ArrangeGUIElements(), sd::GraphicViewShell::ConstructGraphicViewShell(), sd::DrawViewShell::GetLayerTabControl(), and ~ViewShell().
|
private |
Definition at line 535 of file ViewShell.hxx.
Referenced by RelocateToParentWindow(), and Resize().
Vertical ruler is not shown by default.
Definition at line 443 of file ViewShell.hxx.
Referenced by Activate(), ArrangeGUIElements(), Deactivate(), GetBorder(), SetRuler(), SetUIUnit(), SetupRulers(), SetZoom(), SetZoomRect(), sd::DrawViewShell::ShowMousePosInfo(), ShowUIControls(), sd::DrawViewShell::UpdateVRuler(), and ~ViewShell().
|
protected |
Vertical scroll bar for whole document is always visible.
Definition at line 439 of file ViewShell.hxx.
Referenced by ArrangeGUIElements(), doShow(), GetBorder(), HandleScrollCommand(), sd::slidesorter::SlideSorterViewShell::Initialize(), RelocateToParentWindow(), Scroll(), ScrollLines(), SetScrollBarsVisible(), ShowUIControls(), UpdateScrollBars(), and ~ViewShell().
|
protected |
Definition at line 452 of file ViewShell.hxx.
Referenced by sd::OutlineViewShell::Construct(), construct(), sd::DrawViewShell::Construct(), sd::slidesorter::SlideSorterViewShell::CreateAccessibleDocumentView(), sd::DrawViewShell::ExecChar(), sd::DrawViewShell::FuTable(), sd::DrawViewShell::FuTemporary(), GetDrawView(), GetNumBulletItem(), sd::DrawViewShell::ImplDestroy(), and sd::slidesorter::SlideSorterViewShell::Initialize().
|
private |
This window updater is used to keep all relevant windows up to date with reference to the digit language used to display digits in text shapes.
Definition at line 540 of file ViewShell.hxx.
Referenced by GetWindowUpdater().
|
protected |
Definition at line 457 of file ViewShell.hxx.
Referenced by construct(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::OutlineViewShell::FuTemporary(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), and ~ViewShell().
|
protected |
Definition at line 455 of file ViewShell.hxx.
Referenced by Cancel(), DeactivateCurrentFunction(), DisposeFunctions(), SetCurrentFunction(), and SetOldFunction().
|
protected |
Definition at line 456 of file ViewShell.hxx.
Referenced by Cancel(), DeactivateCurrentFunction(), DisposeFunctions(), SetCurrentFunction(), and SetOldFunction().