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

View of a document. More...

#include <pview.hxx>

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

Public Member Functions

 SFX_DECL_VIEWFACTORY (SwPagePreview)
 
SwViewShellGetViewShell () const
 
void RepaintCoreRect (const SwRect &rRect)
 
void DocSzChgd (const Size &rNewSize)
 
void SetVisArea (const tools::Rectangle &)
 
void ScrollViewSzChg ()
 
void ScrollDocSzChg ()
 
void ShowHScrollbar (bool bShow)
 
void ShowVScrollbar (bool bShow)
 
void EnableHScrollbar (bool bEnable)
 
void EnableVScrollbar (bool bEnable)
 
sal_uInt16 GetPageCount () const
 
sal_uInt16 GetSelectedPage () const
 
bool HandleWheelCommands (const CommandEvent &)
 
const OUString & GetPrevSwViewData () const
 
void SetNewCursorPos (const OUString &rStr)
 
const OUString & GetNewCursorPos () const
 
sal_uInt16 GetNewPage () const
 
void Execute (SfxRequest &)
 
void GetState (SfxItemSet &)
 
SwDocShellGetDocShell ()
 
void ApplyAccessibilityOptions (SvtAccessibilityOptions const &rAccessibilityOptions)
 
bool ResetFormDesignMode () const
 
bool FormDesignModeToReset () const
 
void SetVScrollbarThumbPos (const sal_uInt16 _nNewThumbPos)
 Adjust position of vertical scrollbar. More...
 
 SwPagePreview (SfxViewFrame *pFrame, SfxViewShell *)
 
virtual ~SwPagePreview () override
 
- Public Member Functions inherited from SfxViewShell
 SfxViewShell (SfxViewFrame *pFrame, SfxViewShellFlags nFlags)
 
virtual ~SfxViewShell () override
 
SfxInPlaceClientGetIPClient () const
 
SfxInPlaceClientGetUIActiveClient () const
 
SfxInPlaceClientFindIPClient (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, vcl::Window *pObjParentWin) const
 
virtual ErrCode DoVerb (sal_Int32 nVerb)
 
void OutplaceActivated (bool bActive)
 
virtual void UIActivating (SfxInPlaceClient *pClient)
 
virtual void UIDeactivated (SfxInPlaceClient *pClient)
 
void JumpToMark (const OUString &rMark)
 
void VisAreaChanged ()
 
virtual bool PrepareClose (bool bUI=true)
 
virtual OUString GetSelectionText (bool bCompleteWords=false, bool bOnlyASample=false)
 
virtual bool HasSelection (bool bText=true) const
 
virtual SdrViewGetDrawView () const
 
void AddSubShell (SfxShell &rShell)
 
void RemoveSubShell (SfxShell *pShell=nullptr)
 
SfxShellGetSubShell (sal_uInt16)
 
virtual SfxShellGetFormShell ()
 
virtual const SfxShellGetFormShell () const
 
virtual void notifyWindow (vcl::LOKWindowId nLOKWindowId, const OUString &rAction, const std::vector< vcl::LOKPayloadItem > &rPayload=std::vector< vcl::LOKPayloadItem >()) const override
 
virtual void ShowCursor (bool bOn=true)
 
virtual bool KeyInput (const KeyEvent &rKeyEvent)
 
bool Escape ()
 
vcl::WindowGetWindow () const
 
weld::WindowGetFrameWeld () const
 
void SetWindow (vcl::Window *pViewPort)
 
const SvBorderGetBorderPixel () const
 
void SetBorderPixel (const SvBorder &rBorder)
 
void InvalidateBorder ()
 
SfxViewFrameGetViewFrame () const
 
virtual SfxPrinterGetPrinter (bool bCreate=false)
 
virtual sal_uInt16 SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL)
 
virtual bool HasPrintOptionsPage () const
 
virtual std::unique_ptr< SfxTabPageCreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions)
 
PrinterGetActivePrinter () const
 
virtual void WriteUserData (OUString &, bool bBrowse=false)
 
virtual void ReadUserData (const OUString &, bool bBrowse=false)
 
virtual void WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &)
 
virtual void ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &)
 
virtual void QueryObjAreaPixel (tools::Rectangle &rRect) const
 
virtual SfxObjectShellGetObjectShell () override
 
virtual css::uno::Reference< css::frame::XModel > GetCurrentDocument () const
 
void SetCurrentDocument () const
 
virtual css::uno::Reference< css::view::XRenderable > GetRenderable ()
 
virtual void MarginChanged ()
 
const SizeGetMargin () const
 
void SetMargin (const Size &)
 
void DisconnectAllClients ()
 
bool NewWindowAllowed () const
 
void SetNewWindowAllowed (bool bSet)
 
void SetController (SfxBaseController *pController)
 
css::uno::Reference< css::frame::XController > GetController () const
 
bool TryContextMenuInterception (const rtl::Reference< VCLXPopupMenu > &rIn, const OUString &rMenuIdentifier, rtl::Reference< VCLXPopupMenu > &rOut, css::ui::ContextMenuExecuteEvent aEvent)
 
bool TryContextMenuInterception (const rtl::Reference< VCLXPopupMenu > &, const OUString &rMenuIdentifier, css::ui::ContextMenuExecuteEvent aEvent)
 
void ExecPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool)
 
void StartPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool)
 
const std::shared_ptr< vcl::PrinterController > & GetPrinterController () const
 
void AddRemoveClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &, bool)
 
css::uno::Reference< css::datatransfer::clipboard::XClipboardNotifier > GetClipboardNotifier () const
 
SAL_DLLPRIVATE SfxInPlaceClientGetUIActiveIPClient_Impl () const
 
SAL_DLLPRIVATE void AddContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor)
 
SAL_DLLPRIVATE void RemoveContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor)
 
SAL_DLLPRIVATE bool GlobalKeyInput_Impl (const KeyEvent &rKeyEvent)
 
SAL_DLLPRIVATE void NewIPClient_Impl (SfxInPlaceClient *pIPClient)
 
SAL_DLLPRIVATE void IPClientGone_Impl (SfxInPlaceClient const *pIPClient)
 
SAL_DLLPRIVATE void ResetAllClients_Impl (SfxInPlaceClient const *pIP)
 
SAL_DLLPRIVATE void SetPrinter_Impl (VclPtr< SfxPrinter > &pNewPrinter)
 
SAL_DLLPRIVATE bool HandleNotifyEvent_Impl (NotifyEvent const &rEvent)
 
SAL_DLLPRIVATE bool HasKeyListeners_Impl () const
 
SAL_DLLPRIVATE bool HasMouseClickListeners_Impl () const
 
SAL_DLLPRIVATE SfxBaseControllerGetBaseController_Impl () const
 
SAL_DLLPRIVATE void ExecPrint_Impl (SfxRequest &)
 
SAL_DLLPRIVATE void ExecMisc_Impl (SfxRequest &)
 
SAL_DLLPRIVATE void GetState_Impl (SfxItemSet &)
 
SAL_DLLPRIVATE void CheckIPClient_Impl (SfxInPlaceClient const *, const tools::Rectangle &)
 
SAL_DLLPRIVATE void PushSubShells_Impl (bool bPush=true)
 
SAL_DLLPRIVATE void PopSubShells_Impl ()
 
SAL_DLLPRIVATE bool ExecKey_Impl (const KeyEvent &aKey)
 
void setLibreOfficeKitViewCallback (SfxLokCallbackInterface *pCallback)
 
SfxLokCallbackInterfacegetLibreOfficeKitViewCallback () const
 
void dumpLibreOfficeKitViewState (rtl::OStringBuffer &rState)
 
virtual void libreOfficeKitViewCallback (int nType, const char *pPayload) const override
 
virtual void libreOfficeKitViewCallbackWithViewId (int nType, const char *pPayload, int nViewId) const override
 
virtual void libreOfficeKitViewInvalidateTilesCallback (const tools::Rectangle *pRect, int nPart, int nMode) const override
 
virtual void libreOfficeKitViewUpdatedCallback (int nType) const override
 
virtual void libreOfficeKitViewUpdatedCallbackPerViewId (int nType, int nViewId, int nSourceViewId) const override
 
virtual void flushPendingLOKInvalidateTiles ()
 
virtual void libreOfficeKitViewAddPendingInvalidateTiles () override
 
virtual std::optional< OString > getLOKPayload (int nType, int nViewId) const
 
void setTiledSearching (bool bTiledSearching)
 
virtual int getPart () const
 
virtual int getEditMode () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
ViewShellId GetViewShellId () const override
 
ViewShellDocId GetDocId () const override
 
void NotifyOtherViews (int nType, const OString &rKey, const OString &rPayload) override
 
void NotifyOtherView (OutlinerViewShell *pOtherShell, int nType, const OString &rKey, const OString &rPayload) override
 
virtual void NotifyCursor (SfxViewShell *) const
 
virtual void afterCallbackRegistered ()
 
virtual vcl::WindowGetEditWindowForActiveOLEObj () const override
 
void SetLOKLanguageTag (const OUString &rBcp47LanguageTag)
 
const LanguageTagGetLOKLanguageTag () const
 
std::pair< bool, OUString > GetLOKTimezone () const
 
void SetLOKTimezone (bool isSet, const OUString &rTimezone)
 
void SetLOKLocale (const OUString &rBcp47LanguageTag)
 
const LanguageTagGetLOKLocale () const
 
LOKDeviceFormFactor GetLOKDeviceFormFactor () const
 
bool isLOKDesktop () const
 
bool isLOKTablet () const
 
bool isLOKMobilePhone () const
 
virtual tools::Rectangle getLOKVisibleArea () const
 
void setBlockedCommandList (const char *blockedCommandList)
 
bool isBlockedCommand (OUString command)
 
void SetStoringHelper (std::shared_ptr< SfxStoringHelper > xHelper)
 
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
 
virtual SfxInterfaceGetInterface () const
 
void SetName (const OUString &rName)
 
const OUString & GetName () const
 
SfxViewShellGetViewShell () const
 
const SfxPoolItemGetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
 
const SfxPoolItemExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr)
 
void ExecuteSlot (SfxRequest &rReq, bool bAsync)
 
SfxItemPoolGetPool () const
 
void SetPool (SfxItemPool *pNewPool)
 
virtual SfxUndoManagerGetUndoManager ()
 
void SetUndoManager (SfxUndoManager *pNewUndoMgr)
 
SfxRepeatTarget * GetRepeatTarget () const
 
void SetRepeatTarget (SfxRepeatTarget *pTarget)
 
virtual void Invalidate (sal_uInt16 nId=0)
 
virtual bool IsDesignMode () const
 
bool IsActive () const
 
virtual void Activate (bool bMDI)
 
virtual void Deactivate (bool bMDI)
 
SfxDispatcherGetDispatcher () const
 
SfxViewFrameGetFrame () const
 
virtual bool HasUIFeature (SfxShellFeature nFeature) const
 
void UIFeatureChanged ()
 
const SfxPoolItemGetItem (sal_uInt16 nSlotId) const
 
const T * GetItem (TypedWhichId< T > nWhich) const
 
void PutItem (const SfxPoolItem &rItem)
 
void SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs)
 
const css::uno::Sequence< css::embed::VerbDescriptor > & GetVerbs () const
 
void VerbExec (SfxRequest &)
 
SAL_DLLPRIVATE const SfxSlotGetVerbSlot_Impl (sal_uInt16 nId) const
 
virtual SfxObjectShellGetObjectShell ()
 
void SetDisableFlags (SfxDisableFlags nFlags)
 
SfxDisableFlags GetDisableFlags () const
 
virtual std::optional< SfxItemSetCreateItemSet (sal_uInt16 nId)
 
virtual void ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet)
 
void SetContextName (const OUString &rsContextName)
 
void BroadcastContextForActivation (const bool bIsActivated)
 
bool SetContextBroadcasterEnabled (const bool bIsEnabled)
 
SAL_DLLPRIVATE bool CanExecuteSlot_Impl (const SfxSlot &rSlot)
 
virtual bool IsConditionalFastCall (const SfxRequest &rReq)
 
SAL_DLLPRIVATE void DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI)
 
SAL_DLLPRIVATE void DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI)
 

Static Public Member Functions

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

Private Member Functions

SAL_DLLPRIVATE void Init ()
 
SAL_DLLPRIVATE Point AlignToPixel (const Point &rPt) const
 
SAL_DLLPRIVATE void CreateScrollbar (bool bHori)
 
 DECL_DLLPRIVATE_LINK (HoriScrollHdl, weld::Scrollbar &, void)
 
 DECL_DLLPRIVATE_LINK (VertScrollHdl, weld::Scrollbar &, void)
 
SAL_DLLPRIVATE void ScrollHdl (weld::Scrollbar &, bool bHorizontal)
 
SAL_DLLPRIVATE void EndScrollHdl (weld::Scrollbar &, bool bHorizontal)
 
SAL_DLLPRIVATE bool ChgPage (int eMvMode, bool bUpdateScrollbar=true)
 
virtual SAL_DLLPRIVATE SfxPrinterGetPrinter (bool bCreate=false) override
 
virtual SAL_DLLPRIVATE sal_uInt16 SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL) override
 
virtual SAL_DLLPRIVATE bool HasPrintOptionsPage () const override
 
virtual SAL_DLLPRIVATE std::unique_ptr< SfxTabPageCreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions) override
 
SAL_DLLPRIVATE void CalcAndSetBorderPixel (SvBorder &rToFill)
 
SAL_DLLPRIVATE void ExecPgUpAndPgDown (const bool _bPgUp, SfxRequest *_pReq)
 Helper method to execute SfxRequest FN_PAGE_UP and FN_PAGE_DOWN. More...
 
virtual void InnerResizePixel (const Point &rOfs, const Size &rSize, bool inplaceEditModeChange) override
 
virtual void OuterResizePixel (const Point &rOfs, const Size &rSize) override
 
void Activate (bool bMDI) override
 
void SetZoom (SvxZoomType eSet, sal_uInt16 nFactor)
 

Static Private Member Functions

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

Private Attributes

VclPtr< SwPagePreviewWinm_pViewWin
 
OUString m_sSwViewData
 
OUString m_sNewCursorPosition
 
sal_uInt16 m_nNewPage
 
OUString m_sPageStr
 
Size m_aDocSize
 
tools::Rectangle m_aVisArea
 
VclPtr< SwScrollbarm_pHScrollbar
 
VclPtr< SwScrollbarm_pVScrollbar
 
bool mbHScrollbarEnabled: 1
 
bool mbVScrollbarEnabled: 1
 
sal_uInt16 mnPageCount
 
bool m_bNormalPrint
 
bool mbResetFormDesignMode:1
 
bool mbFormDesignModeToReset:1
 

Additional Inherited Members

- Protected Member Functions inherited from SfxViewShell
virtual void Activate (bool IsMDIActivate) override
 
virtual void Deactivate (bool IsMDIActivate) override
 
virtual void InnerResizePixel (const Point &rOfs, const Size &rSize, bool inplaceEditModeChange)
 
virtual void OuterResizePixel (const Point &rOfs, const Size &rSize)
 
virtual void SetZoomFactor (const Fraction &rZoomX, const Fraction &rZoomY)
 
virtual void Move ()
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SfxShell
 SfxShell ()
 
 SfxShell (SfxViewShell *pViewSh)
 
void SetViewShell_Impl (SfxViewShell *pView)
 
SAL_DLLPRIVATE void Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId)
 
- Static Protected Member Functions inherited from SfxShell
static void HandleOpenXmlFilterSettings (SfxRequest &)
 

Detailed Description

View of a document.

Definition at line 161 of file pview.hxx.

Constructor & Destructor Documentation

◆ SwPagePreview()

SwPagePreview::SwPagePreview ( SfxViewFrame pFrame,
SfxViewShell pOldSh 
)

◆ ~SwPagePreview()

SwPagePreview::~SwPagePreview ( )
overridevirtual

Member Function Documentation

◆ Activate()

void SwPagePreview::Activate ( bool  bMDI)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1224 of file pview.cxx.

References SfxShell::Activate(), and SfxViewShell::Activate().

◆ AlignToPixel()

Point SwPagePreview::AlignToPixel ( const Point rPt) const
private

Definition at line 1520 of file pview.cxx.

References m_pViewWin, and Point.

Referenced by SetVisArea().

◆ ApplyAccessibilityOptions()

void SwPagePreview::ApplyAccessibilityOptions ( SvtAccessibilityOptions const &  rAccessibilityOptions)

Definition at line 1837 of file pview.cxx.

References SwViewShell::ApplyAccessibilityOptions(), and GetViewShell().

Referenced by SwModule::ConfigurationChanged().

◆ CalcAndSetBorderPixel()

void SwPagePreview::CalcAndSetBorderPixel ( SvBorder rToFill)
private

◆ ChgPage()

bool SwPagePreview::ChgPage ( int  eMvMode,
bool  bUpdateScrollbar = true 
)
private

◆ CreatePrintOptionsPage()

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

Reimplemented from SfxViewShell.

Definition at line 1704 of file pview.cxx.

References CreatePrintOptionsPage(), and m_bNormalPrint.

◆ CreateScrollbar()

void SwPagePreview::CreateScrollbar ( bool  bHori)
private

◆ DECL_DLLPRIVATE_LINK() [1/2]

SwPagePreview::DECL_DLLPRIVATE_LINK ( HoriScrollHdl  ,
weld::Scrollbar ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/2]

SwPagePreview::DECL_DLLPRIVATE_LINK ( VertScrollHdl  ,
weld::Scrollbar ,
void   
)
private

◆ DocSzChgd()

void SwPagePreview::DocSzChgd ( const Size rNewSize)

◆ EnableHScrollbar()

void SwPagePreview::EnableHScrollbar ( bool  bEnable)

Definition at line 1854 of file pview.cxx.

References mbHScrollbarEnabled, and ScrollViewSzChg().

Referenced by SwModule::ApplyUsrPref().

◆ EnableVScrollbar()

void SwPagePreview::EnableVScrollbar ( bool  bEnable)

Definition at line 1863 of file pview.cxx.

References mbVScrollbarEnabled, and ScrollViewSzChg().

Referenced by SwModule::ApplyUsrPref().

◆ EndScrollHdl()

void SwPagePreview::EndScrollHdl ( weld::Scrollbar rScrollbar,
bool  bHorizontal 
)
private

◆ ExecPgUpAndPgDown()

void SwPagePreview::ExecPgUpAndPgDown ( const bool  _bPgUp,
SfxRequest _pReq 
)
private

Helper method to execute SfxRequest FN_PAGE_UP and FN_PAGE_DOWN.

help method to execute SfxRequest FN_PAGEUP and FN_PAGEDOWN

Parameters
_bPgUpinput parameter - boolean that indicates, if FN_PAGE_UP or FN_PAGE_DOWN has to be executed.
_pReqoptional input parameter - pointer to the <SfxRequest> instance, if existing.

Definition at line 582 of file pview.cxx.

References ChgPage(), SwPagePreviewLayout::DoesPreviewLayoutColsFitIntoWindow(), SwPagePreviewLayout::DoesPreviewLayoutRowsFitIntoWindow(), SfxRequest::Done(), FN_PAGEDOWN, FN_PAGEUP, FN_START_OF_DOCUMENT, FN_STAT_PAGE, SfxViewFrame::GetBindings(), SwPagePreviewLayout::GetPreviewDocSize(), SfxViewShell::GetViewFrame(), GetViewShell(), SwPagePreviewLayout::GetWinPagesScrollAmount(), Size::Height(), SfxBindings::Invalidate(), m_pViewWin, min(), mnPageCount, SwPagePreviewWin::MV_PAGE_DOWN, SwPagePreviewWin::MV_PAGE_UP, SwViewShell::PagePreviewLayout(), and ScrollViewSzChg().

Referenced by Execute().

◆ Execute()

void SwPagePreview::Execute ( SfxRequest rReq)

Definition at line 655 of file pview.cxx.

References SwPagePreviewLayout::CalcStartValuesForSelectedPageMove(), ChgPage(), SfxItemSet::Count(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxZoomDialog(), ScopedVclPtr< class reference_type >::disposeAndReset(), SfxRequest::Done(), eType, ExecPgUpAndPgDown(), SfxBindings::Execute(), SfxDispatcher::Execute(), SfxShell::ExecuteSlot(), FN_CHAR_LEFT, FN_CHAR_RIGHT, FN_CLOSE_PAGEPREVIEW, FN_END_OF_LINE, FN_LINE_DOWN, FN_LINE_UP, FN_PAGEDOWN, FN_PAGEUP, FN_PREVIEW_ZOOM, FN_PRINT_PAGEPREVIEW, FN_SHOW_BOOKVIEW, FN_SHOW_MULTIPLE_PAGES, FN_SHOW_SINGLE_PAGE, FN_SHOW_TWO_PAGES, FN_START_OF_DOCUMENT, FN_START_OF_LINE, FN_STAT_PAGE, FN_STAT_ZOOM, SfxItemSet::Get(), SfxRequest::GetArgs(), SfxViewFrame::GetBindings(), SfxViewFrame::GetDispatcher(), SfxViewShell::GetFrameWeld(), SfxShell::GetInterface(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SwPagePreviewPrtData::GetLandscape(), SfxShell::GetPool(), GetPrinter(), SfxRequest::GetSlot(), GetValue, SfxViewShell::GetViewFrame(), SwViewShell::GetViewOptions(), GetViewShell(), SwViewOption::GetZoom(), SwViewOption::GetZoomType(), SfxBindings::Invalidate(), SwViewOption::IsPagePrevBookview(), SwPagePreviewLayout::IsPageVisible(), lcl_GetNextZoomStep(), m_bNormalPrint, m_nNewPage, m_pViewWin, SwPagePreviewLayout::MarkNewSelectedPage(), MAXZOOM, MINZOOM, mnPageCount, SwPagePreviewWin::MV_DOC_END, SwPagePreviewWin::MV_DOC_STT, SwPagePreviewWin::MV_SELPAGE, SwPagePreviewWin::MV_SPECIFIC_PAGE, SwViewShell::PagePreviewLayout(), Point, SfxItemSet::Put(), RET_CANCEL, ScrollViewSzChg(), SetAppPrintOptions(), SfxRequest::SetReturnValue(), SfxRequest::SetSlot(), SvxZoomItem::SetValueSet(), SetVScrollbarThumbPos(), SetZoom(), SwViewShell::ShowPreviewSelection(), and SID_JUMP_TO_SPECIFIC_PAGE.

◆ FormDesignModeToReset()

bool SwPagePreview::FormDesignModeToReset ( ) const
inline

Definition at line 280 of file pview.hxx.

Referenced by SwView::SwView().

◆ GetDocShell()

SwDocShell * SwPagePreview::GetDocShell ( )

◆ GetNewCursorPos()

const OUString & SwPagePreview::GetNewCursorPos ( ) const
inline

Definition at line 259 of file pview.hxx.

◆ GetNewPage()

sal_uInt16 SwPagePreview::GetNewPage ( ) const
inline

Definition at line 261 of file pview.hxx.

◆ GetPageCount()

sal_uInt16 SwPagePreview::GetPageCount ( ) const
inline

Definition at line 252 of file pview.hxx.

Referenced by SwPagePreviewWin::CalcWish(), and SwPagePreviewWin::MovePage().

◆ GetPrevSwViewData()

const OUString & SwPagePreview::GetPrevSwViewData ( ) const
inline

Definition at line 257 of file pview.hxx.

◆ GetPrinter()

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

Reimplemented from SfxViewShell.

Definition at line 1640 of file pview.cxx.

References m_pViewWin.

Referenced by Execute().

◆ GetSelectedPage()

sal_uInt16 SwPagePreview::GetSelectedPage ( ) const
inline

Definition at line 253 of file pview.hxx.

Referenced by lcl_GetPrintUIOptions().

◆ GetState()

void SwPagePreview::GetState ( SfxItemSet rSet)

◆ GetViewShell()

SwViewShell * SwPagePreview::GetViewShell ( ) const
inline

◆ HandleWheelCommands()

bool SwPagePreview::HandleWheelCommands ( const CommandEvent rCEvt)

◆ HasPrintOptionsPage()

bool SwPagePreview::HasPrintOptionsPage ( ) const
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1699 of file pview.cxx.

◆ Init()

void SwPagePreview::Init ( void  )
private

◆ InitInterface_Impl()

void SwPagePreview::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 84 of file pview.cxx.

References SFX_OBJECTBAR_OBJECT.

◆ InnerResizePixel()

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

◆ OuterResizePixel()

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

◆ RepaintCoreRect()

void SwPagePreview::RepaintCoreRect ( const SwRect rRect)
inline

Definition at line 238 of file pview.hxx.

◆ ResetFormDesignMode()

bool SwPagePreview::ResetFormDesignMode ( ) const
inline

Definition at line 275 of file pview.hxx.

Referenced by SwView::SwView().

◆ ScrollDocSzChg()

void SwPagePreview::ScrollDocSzChg ( )

Definition at line 1634 of file pview.cxx.

References ScrollViewSzChg().

Referenced by SwPagePreviewWin::CalcWish(), CreateScrollbar(), DocSzChgd(), and OuterResizePixel().

◆ ScrollHdl()

void SwPagePreview::ScrollHdl ( weld::Scrollbar rScrollbar,
bool  bHorizontal 
)
private

◆ ScrollViewSzChg()

void SwPagePreview::ScrollViewSzChg ( )

◆ SetNewCursorPos()

void SwPagePreview::SetNewCursorPos ( const OUString &  rStr)
inline

Definition at line 258 of file pview.hxx.

Referenced by SwPagePreviewWin::MouseButtonDown().

◆ SetPrinter()

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

◆ SetVisArea()

void SwPagePreview::SetVisArea ( const tools::Rectangle rRect)

◆ SetVScrollbarThumbPos()

void SwPagePreview::SetVScrollbarThumbPos ( const sal_uInt16  _nNewThumbPos)

Adjust position of vertical scrollbar.

adjust position of vertical scrollbar

Currently used, if the complete preview layout rows fit into to the given window, if a new page is selected and this page is visible.

Parameters
_nNewThumbPosinput parameter - new position, which will be assigned to the vertical scrollbar.

Definition at line 1891 of file pview.cxx.

References m_pVScrollbar.

Referenced by Execute(), and SwPagePreviewWin::MouseButtonDown().

◆ SetZoom()

void SwPagePreview::SetZoom ( SvxZoomType  eSet,
sal_uInt16  nFactor 
)
private

◆ SFX_DECL_VIEWFACTORY()

SwPagePreview::SFX_DECL_VIEWFACTORY ( SwPagePreview  )

References SFX_DECL_INTERFACE.

◆ ShowHScrollbar()

void SwPagePreview::ShowHScrollbar ( bool  bShow)

Definition at line 1842 of file pview.cxx.

References SfxViewShell::InvalidateBorder(), and m_pHScrollbar.

Referenced by ScrollViewSzChg().

◆ ShowVScrollbar()

void SwPagePreview::ShowVScrollbar ( bool  bShow)

Definition at line 1848 of file pview.cxx.

References SfxViewShell::InvalidateBorder(), and m_pVScrollbar.

Referenced by ScrollViewSzChg().

◆ StateUndo()

void SwPagePreview::StateUndo ( SfxItemSet rSet)
static

Member Data Documentation

◆ m_aDocSize

Size SwPagePreview::m_aDocSize
private

Definition at line 174 of file pview.hxx.

Referenced by DocSzChgd().

◆ m_aVisArea

tools::Rectangle SwPagePreview::m_aVisArea
private

Definition at line 175 of file pview.hxx.

Referenced by ChgPage(), DocSzChgd(), and SetVisArea().

◆ m_bNormalPrint

bool SwPagePreview::m_bNormalPrint
private

Definition at line 184 of file pview.hxx.

Referenced by CreatePrintOptionsPage(), Execute(), Init(), and SetPrinter().

◆ m_nNewPage

sal_uInt16 SwPagePreview::m_nNewPage
private

Definition at line 171 of file pview.hxx.

Referenced by Execute().

◆ m_pHScrollbar

VclPtr<SwScrollbar> SwPagePreview::m_pHScrollbar
private

◆ m_pViewWin

VclPtr<SwPagePreviewWin> SwPagePreview::m_pViewWin
private

◆ m_pVScrollbar

VclPtr<SwScrollbar> SwPagePreview::m_pVScrollbar
private

◆ m_sNewCursorPosition

OUString SwPagePreview::m_sNewCursorPosition
private

Definition at line 169 of file pview.hxx.

◆ m_sPageStr

OUString SwPagePreview::m_sPageStr
private

Definition at line 173 of file pview.hxx.

Referenced by ChgPage(), GetState(), and ScrollHdl().

◆ m_sSwViewData

OUString SwPagePreview::m_sSwViewData
private

Definition at line 167 of file pview.hxx.

Referenced by SwPagePreview().

◆ mbFormDesignModeToReset

bool SwPagePreview::mbFormDesignModeToReset
private

Definition at line 189 of file pview.hxx.

Referenced by SwPagePreview().

◆ mbHScrollbarEnabled

bool SwPagePreview::mbHScrollbarEnabled
private

Definition at line 180 of file pview.hxx.

Referenced by EnableHScrollbar(), Init(), and ScrollViewSzChg().

◆ mbResetFormDesignMode

bool SwPagePreview::mbResetFormDesignMode
private

Definition at line 188 of file pview.hxx.

Referenced by SwPagePreview().

◆ mbVScrollbarEnabled

bool SwPagePreview::mbVScrollbarEnabled
private

Definition at line 181 of file pview.hxx.

Referenced by EnableVScrollbar(), Init(), and ScrollViewSzChg().

◆ mnPageCount

sal_uInt16 SwPagePreview::mnPageCount
private

Definition at line 183 of file pview.hxx.

Referenced by ChgPage(), DocSzChgd(), ExecPgUpAndPgDown(), Execute(), GetState(), and ScrollViewSzChg().


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