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

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 ApplyAccessiblityOptions (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 (long nVerb)
 
void OutplaceActivated (bool bActive)
 
virtual void UIActivating (SfxInPlaceClient *pClient)
 
virtual void UIDeactivated (SfxInPlaceClient *pClient)
 
void JumpToMark (const OUString &rMark)
 
void VisAreaChanged ()
 
virtual bool PrepareClose (bool bUI=true)
 
virtual OUString GetSelectionText (bool bCompleteWords=false)
 
virtual bool HasSelection (bool bText=true) const
 
virtual SdrViewGetDrawView () const
 
void AddSubShell (SfxShell &rShell)
 
void RemoveSubShell (SfxShell *pShell=nullptr)
 
SfxShellGetSubShell (sal_uInt16)
 
virtual SfxShellGetFormShell ()
 
virtual const SfxShellGetFormShell () const
 
virtual void notifyWindow (vcl::LOKWindowId nLOKWindowId, const OUString &rAction, const std::vector< vcl::LOKPayloadItem > &rPayload=std::vector< vcl::LOKPayloadItem >()) const override
 
virtual void ShowCursor (bool bOn=true)
 
virtual bool KeyInput (const KeyEvent &rKeyEvent)
 
bool Escape ()
 
vcl::WindowGetWindow () const
 
weld::WindowGetFrameWeld () const
 
void SetWindow (vcl::Window *pViewPort)
 
const SvBorderGetBorderPixel () const
 
void SetBorderPixel (const SvBorder &rBorder)
 
void InvalidateBorder ()
 
SfxViewFrameGetViewFrame () const
 
PrinterGetActivePrinter () const
 
virtual void 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 (Menu &rIn, const OUString &rMenuIdentifier, VclPtr< Menu > &rpOut, css::ui::ContextMenuExecuteEvent aEvent)
 
bool TryContextMenuInterception (Menu &rMenu, 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 ()
 
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 ()
 
SAL_DLLPRIVATE bool HasMouseClickListeners_Impl ()
 
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 registerLibreOfficeKitViewCallback (LibreOfficeKitCallback pCallback, void *pLibreOfficeKitData)
 
void libreOfficeKitViewCallback (int nType, const char *pPayload) const override
 
void setTiledSearching (bool bTiledSearching)
 
virtual int getPart () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
ViewShellId GetViewShellId () 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
 
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
 
virtual SfxInterfaceGetInterface () const
 
void SetName (const OUString &rName)
 
const OUString & GetName () const
 
SfxViewShellGetViewShell () const
 
void CallExec (SfxExecFunc pFunc, SfxRequest &rReq)
 
void CallState (SfxStateFunc pFunc, SfxItemSet &rSet)
 
const SfxPoolItemGetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
 
const SfxPoolItemExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr)
 
void ExecuteSlot (SfxRequest &rReq, bool bAsync)
 
SfxItemPoolGetPool () const
 
void SetPool (SfxItemPool *pNewPool)
 
virtual SfxUndoManagerGetUndoManager ()
 
void SetUndoManager (SfxUndoManager *pNewUndoMgr)
 
SfxRepeatTargetGetRepeatTarget () const
 
void SetRepeatTarget (SfxRepeatTarget *pTarget)
 
virtual void Invalidate (sal_uInt16 nId=0)
 
virtual bool IsDesignMode () const
 
bool IsActive () const
 
SfxDispatcherGetDispatcher () const
 
SfxViewFrameGetFrame () const
 
virtual bool HasUIFeature (SfxShellFeature nFeature) const
 
void UIFeatureChanged ()
 
const SfxPoolItemGetItem (sal_uInt16 nSlotId) const
 
const T * GetItem (TypedWhichId< T > nWhich) const
 
void PutItem (const SfxPoolItem &rItem)
 
void SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs)
 
const css::uno::Sequence< css::embed::VerbDescriptor > & GetVerbs () const
 
void VerbExec (SfxRequest &)
 
SAL_DLLPRIVATE const SfxSlotGetVerbSlot_Impl (sal_uInt16 nId) const
 
void SetDisableFlags (SfxDisableFlags nFlags)
 
SfxDisableFlags GetDisableFlags () const
 
virtual std::unique_ptr< 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 size_t GetActiveShells (bool bOnlyVisible=true)
 
static SfxViewShellGetFirst (bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
 
static SfxViewShellGetNext (const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
 
static SfxViewShellCurrent ()
 
static SfxViewShellGet (const css::uno::Reference< css::frame::XController > &i_rController)
 
- Static Public Member Functions inherited from SfxShell
static SfxInterfaceGetStaticInterface ()
 
static void EmptyExecStub (SfxShell *pShell, SfxRequest &)
 
static void EmptyStateStub (SfxShell *pShell, SfxItemSet &)
 
static void VerbState (SfxItemSet &)
 

Protected Member Functions

virtual void InnerResizePixel (const Point &rOfs, const Size &rSize, bool inplaceEditModeChange) override
 
virtual void OuterResizePixel (const Point &rOfs, const Size &rSize) override
 
void SetZoom (SvxZoomType eSet, sal_uInt16 nFactor)
 
- Protected Member Functions inherited from SfxViewShell
virtual void Activate (bool IsMDIActivate) override
 
virtual void Deactivate (bool IsMDIActivate) override
 
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)
 

Private Member Functions

SAL_DLLPRIVATE void Init ()
 
SAL_DLLPRIVATE Point AlignToPixel (const Point &rPt) const
 
SAL_DLLPRIVATE void CreateScrollbar (bool bHori)
 
 DECL_DLLPRIVATE_LINK (ScrollHdl, ScrollBar *, void)
 
 DECL_DLLPRIVATE_LINK (EndScrollHdl, ScrollBar *, void)
 
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 VclPtr< SfxTabPageCreatePrintOptionsPage (TabPageParent pParent, 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...
 

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 const m_sPageStr
 
Size m_aDocSize
 
tools::Rectangle m_aVisArea
 
VclPtr< SwScrollbarm_pHScrollbar
 
VclPtr< SwScrollbarm_pVScrollbar
 
bool mbHScrollbarEnabled: 1
 
bool mbVScrollbarEnabled: 1
 
VclPtr< vcl::Windowm_pScrollFill
 
sal_uInt16 mnPageCount
 
bool m_bNormalPrint
 
bool mbResetFormDesignMode:1
 
bool mbFormDesignModeToReset:1
 

Additional Inherited Members

- 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 ( SfxViewFrame pFrame,
SfxViewShell pOldSh 
)
SwPagePreview::~SwPagePreview ( )
overridevirtual

Member Function Documentation

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

Definition at line 1513 of file pview.cxx.

References OutputDevice::LogicToPixel(), m_pViewWin, and OutputDevice::PixelToLogic().

Referenced by SetVisArea().

void SwPagePreview::ApplyAccessiblityOptions ( SvtAccessibilityOptions const &  rAccessibilityOptions)

Definition at line 1830 of file pview.cxx.

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

void SwPagePreview::CalcAndSetBorderPixel ( SvBorder rToFill)
private
bool SwPagePreview::ChgPage ( int  eMvMode,
bool  bUpdateScrollbar = true 
)
private
VclPtr< SfxTabPage > SwPagePreview::CreatePrintOptionsPage ( TabPageParent  pParent,
const SfxItemSet rOptions 
)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1698 of file pview.cxx.

References CreatePrintOptionsPage(), and m_bNormalPrint.

void SwPagePreview::CreateScrollbar ( bool  bHori)
private
SwPagePreview::DECL_DLLPRIVATE_LINK ( ScrollHdl  ,
ScrollBar ,
void   
)
private
SwPagePreview::DECL_DLLPRIVATE_LINK ( EndScrollHdl  ,
ScrollBar ,
void   
)
private
void SwPagePreview::DocSzChgd ( const Size rNewSize)
void SwPagePreview::EnableHScrollbar ( bool  bEnable)

Definition at line 1847 of file pview.cxx.

References mbHScrollbarEnabled, and ScrollViewSzChg().

Referenced by SwModule::ApplyUsrPref().

void SwPagePreview::EnableVScrollbar ( bool  bEnable)

Definition at line 1856 of file pview.cxx.

References mbVScrollbarEnabled, and ScrollViewSzChg().

Referenced by SwModule::ApplyUsrPref().

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

Definition at line 660 of file pview.cxx.

References SwPagePreviewLayout::CalcStartValuesForSelectedPageMove(), SwPagePreviewWin::CalcWish(), ChgPage(), SfxItemSet::Count(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxZoomDialog(), ScopedVclPtr< reference_type >::disposeAndReset(), SfxRequest::Done(), eType, ExecPgUpAndPgDown(), SfxDispatcher::Execute(), SfxBindings::Execute(), SwPreviewZoomDlg::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_REFRESH_VIEW, 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(), SwViewShell::GetDoc(), SfxViewShell::GetFrameWeld(), SfxShell::GetInterface(), SfxItemSet::GetItemState(), SwPagePreviewPrtData::GetLandscape(), AbstractSvxZoomDialog::GetOutputItemSet(), SfxShell::GetPool(), SwDoc::GetPreviewPrtData(), GetPrinter(), SfxRequest::GetSlot(), GetValue, SfxViewShell::GetViewFrame(), SwViewShell::GetViewOptions(), SwPagePreviewWin::GetViewShell(), GetViewShell(), SfxViewShell::GetWindow(), SwViewOption::GetZoom(), SfxBindings::Invalidate(), vcl::Window::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(), RET_CANCEL, ScrollViewSzChg(), SwPagePreviewWin::SelectedPage(), SetAppPrintOptions(), SwPagePreviewWin::SetBookPreviewMode(), AbstractSvxZoomDialog::SetLimits(), SfxRequest::SetReturnValue(), SwPagePreviewWin::SetSelectedPage(), SfxRequest::SetSlot(), SwPagePreviewWin::SetSttPage(), SvxZoomItem::SetValueSet(), SetVScrollbarThumbPos(), SetZoom(), SwViewShell::ShowPreviewSelection(), SID_JUMP_TO_SPECIFIC_PAGE, and USHRT_MAX.

bool SwPagePreview::FormDesignModeToReset ( ) const
inline

Definition at line 279 of file pview.hxx.

SwDocShell * SwPagePreview::GetDocShell ( )
const OUString& SwPagePreview::GetNewCursorPos ( ) const
inline

Definition at line 258 of file pview.hxx.

sal_uInt16 SwPagePreview::GetNewPage ( ) const
inline

Definition at line 260 of file pview.hxx.

sal_uInt16 SwPagePreview::GetPageCount ( ) const
inline

Definition at line 251 of file pview.hxx.

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

const OUString& SwPagePreview::GetPrevSwViewData ( ) const
inline

Definition at line 256 of file pview.hxx.

SfxPrinter * SwPagePreview::GetPrinter ( bool  bCreate = false)
overrideprivatevirtual
sal_uInt16 SwPagePreview::GetSelectedPage ( ) const
inline

Definition at line 252 of file pview.hxx.

References SwPagePreviewWin::SelectedPage().

Referenced by lcl_GetPrintUIOptions().

void SwPagePreview::GetState ( SfxItemSet rSet)
SwViewShell* SwPagePreview::GetViewShell ( ) const
inline
bool SwPagePreview::HandleWheelCommands ( const CommandEvent rCEvt)
bool SwPagePreview::HasPrintOptionsPage ( ) const
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1693 of file pview.cxx.

void SwPagePreview::Init ( void  )
private
void SwPagePreview::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 92 of file pview.cxx.

References SFX_OBJECTBAR_OBJECT.

void SwPagePreview::InnerResizePixel ( const Point rOfs,
const Size rSize,
bool  inplaceEditModeChange 
)
overrideprotectedvirtual
void SwPagePreview::OuterResizePixel ( const Point rOfs,
const Size rSize 
)
overrideprotectedvirtual
void SwPagePreview::RepaintCoreRect ( const SwRect rRect)
inline

Definition at line 237 of file pview.hxx.

References SwPagePreviewWin::RepaintCoreRect().

bool SwPagePreview::ResetFormDesignMode ( ) const
inline

Definition at line 274 of file pview.hxx.

void SwPagePreview::ScrollDocSzChg ( )

Definition at line 1628 of file pview.cxx.

References ScrollViewSzChg().

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

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

Definition at line 257 of file pview.hxx.

Referenced by SwPagePreviewWin::MouseButtonDown().

sal_uInt16 SwPagePreview::SetPrinter ( SfxPrinter pNewPrinter,
SfxPrinterChangeFlags  nDiffFlags = SFX_PRINTER_ALL 
)
overrideprivatevirtual
void SwPagePreview::SetVisArea ( const tools::Rectangle rRect)
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 1884 of file pview.cxx.

References m_pVScrollbar, and ScrollBar::SetThumbPos().

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

void SwPagePreview::SetZoom ( SvxZoomType  eSet,
sal_uInt16  nFactor 
)
protected
SwPagePreview::SFX_DECL_VIEWFACTORY ( SwPagePreview  )
void SwPagePreview::ShowHScrollbar ( bool  bShow)

Definition at line 1835 of file pview.cxx.

References SfxViewShell::InvalidateBorder(), m_pHScrollbar, and vcl::Window::Show().

Referenced by ScrollViewSzChg().

void SwPagePreview::ShowVScrollbar ( bool  bShow)

Definition at line 1841 of file pview.cxx.

References SfxViewShell::InvalidateBorder(), m_pVScrollbar, and vcl::Window::Show().

Referenced by ScrollViewSzChg().

void SwPagePreview::StateUndo ( SfxItemSet rSet)
static

Member Data Documentation

Size SwPagePreview::m_aDocSize
private

Definition at line 174 of file pview.hxx.

Referenced by DocSzChgd().

tools::Rectangle SwPagePreview::m_aVisArea
private

Definition at line 175 of file pview.hxx.

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

bool SwPagePreview::m_bNormalPrint
private

Definition at line 186 of file pview.hxx.

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

sal_uInt16 SwPagePreview::m_nNewPage
private

Definition at line 171 of file pview.hxx.

Referenced by Execute().

VclPtr<SwScrollbar> SwPagePreview::m_pHScrollbar
private
VclPtr<vcl::Window> SwPagePreview::m_pScrollFill
private

Definition at line 183 of file pview.hxx.

Referenced by InnerResizePixel(), OuterResizePixel(), ScrollViewSzChg(), and ~SwPagePreview().

VclPtr<SwPagePreviewWin> SwPagePreview::m_pViewWin
private
VclPtr<SwScrollbar> SwPagePreview::m_pVScrollbar
private
OUString SwPagePreview::m_sNewCursorPosition
private

Definition at line 169 of file pview.hxx.

OUString const SwPagePreview::m_sPageStr
private

Definition at line 173 of file pview.hxx.

Referenced by ChgPage(), and GetState().

OUString SwPagePreview::m_sSwViewData
private

Definition at line 167 of file pview.hxx.

Referenced by SwPagePreview().

bool SwPagePreview::mbFormDesignModeToReset
private

Definition at line 191 of file pview.hxx.

Referenced by SwPagePreview().

bool SwPagePreview::mbHScrollbarEnabled
private

Definition at line 180 of file pview.hxx.

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

bool SwPagePreview::mbResetFormDesignMode
private

Definition at line 190 of file pview.hxx.

Referenced by SwPagePreview().

bool SwPagePreview::mbVScrollbarEnabled
private

Definition at line 181 of file pview.hxx.

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

sal_uInt16 SwPagePreview::mnPageCount
private

Definition at line 185 of file pview.hxx.

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


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