LibreOffice Module sw (master)
1
|
View of a document. More...
#include <pview.hxx>
Public Member Functions | |
SFX_DECL_VIEWFACTORY (SwPagePreview) | |
SwViewShell * | GetViewShell () 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 &) |
SwDocShell * | GetDocShell () |
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 |
![]() | |
SfxViewShell (SfxViewFrame *pFrame, SfxViewShellFlags nFlags) | |
virtual | ~SfxViewShell () override |
SfxInPlaceClient * | GetIPClient () const |
SfxInPlaceClient * | GetUIActiveClient () const |
SfxInPlaceClient * | FindIPClient (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, vcl::Window *pObjParentWin) const |
virtual ErrCode | DoVerb (sal_Int32 nVerb) |
void | OutplaceActivated (bool bActive) |
virtual void | UIActivating (SfxInPlaceClient *pClient) |
virtual void | UIDeactivated (SfxInPlaceClient *pClient) |
void | JumpToMark (const OUString &rMark) |
void | VisAreaChanged () |
virtual bool | PrepareClose (bool bUI=true) |
virtual OUString | GetSelectionText (bool bCompleteWords=false) |
virtual bool | HasSelection (bool bText=true) const |
virtual SdrView * | GetDrawView () const |
void | AddSubShell (SfxShell &rShell) |
void | RemoveSubShell (SfxShell *pShell=nullptr) |
SfxShell * | GetSubShell (sal_uInt16) |
virtual SfxShell * | GetFormShell () |
virtual const SfxShell * | GetFormShell () const |
virtual void | notifyWindow (vcl::LOKWindowId nLOKWindowId, const OUString &rAction, const std::vector< vcl::LOKPayloadItem > &rPayload=std::vector< vcl::LOKPayloadItem >()) const override |
virtual void | ShowCursor (bool bOn=true) |
virtual bool | KeyInput (const KeyEvent &rKeyEvent) |
bool | Escape () |
vcl::Window * | GetWindow () const |
weld::Window * | GetFrameWeld () const |
void | SetWindow (vcl::Window *pViewPort) |
const SvBorder & | GetBorderPixel () const |
void | SetBorderPixel (const SvBorder &rBorder) |
void | InvalidateBorder () |
SfxViewFrame * | GetViewFrame () const |
Printer * | GetActivePrinter () const |
virtual void | WriteUserData (OUString &, bool bBrowse=false) |
virtual void | ReadUserData (const OUString &, bool bBrowse=false) |
virtual void | WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &) |
virtual void | ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &) |
virtual void | QueryObjAreaPixel (tools::Rectangle &rRect) const |
virtual SfxObjectShell * | GetObjectShell () override |
virtual css::uno::Reference< css::frame::XModel > | GetCurrentDocument () const |
void | SetCurrentDocument () const |
virtual css::uno::Reference< css::view::XRenderable > | GetRenderable () |
virtual void | MarginChanged () |
const Size & | GetMargin () const |
void | SetMargin (const Size &) |
void | DisconnectAllClients () |
bool | NewWindowAllowed () const |
void | SetNewWindowAllowed (bool bSet) |
void | SetController (SfxBaseController *pController) |
css::uno::Reference< css::frame::XController > | GetController () const |
bool | TryContextMenuInterception (const css::uno::Reference< css::awt::XPopupMenu > &rIn, const OUString &rMenuIdentifier, css::uno::Reference< css::awt::XPopupMenu > &rOut, css::ui::ContextMenuExecuteEvent aEvent) |
bool | TryContextMenuInterception (const css::uno::Reference< css::awt::XPopupMenu > &, const OUString &rMenuIdentifier, css::ui::ContextMenuExecuteEvent aEvent) |
void | ExecPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool) |
void | StartPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool) |
const std::shared_ptr< vcl::PrinterController > & | GetPrinterController () const |
void | AddRemoveClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &, bool) |
css::uno::Reference< css::datatransfer::clipboard::XClipboardNotifier > | GetClipboardNotifier () const |
SAL_DLLPRIVATE SfxInPlaceClient * | GetUIActiveIPClient_Impl () const |
SAL_DLLPRIVATE void | AddContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) |
SAL_DLLPRIVATE void | RemoveContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) |
SAL_DLLPRIVATE bool | GlobalKeyInput_Impl (const KeyEvent &rKeyEvent) |
SAL_DLLPRIVATE void | NewIPClient_Impl (SfxInPlaceClient *pIPClient) |
SAL_DLLPRIVATE void | IPClientGone_Impl (SfxInPlaceClient const *pIPClient) |
SAL_DLLPRIVATE void | ResetAllClients_Impl (SfxInPlaceClient const *pIP) |
SAL_DLLPRIVATE void | SetPrinter_Impl (VclPtr< SfxPrinter > &pNewPrinter) |
SAL_DLLPRIVATE bool | HandleNotifyEvent_Impl (NotifyEvent const &rEvent) |
SAL_DLLPRIVATE bool | HasKeyListeners_Impl () const |
SAL_DLLPRIVATE bool | HasMouseClickListeners_Impl () const |
SAL_DLLPRIVATE SfxBaseController * | GetBaseController_Impl () const |
SAL_DLLPRIVATE void | ExecPrint_Impl (SfxRequest &) |
SAL_DLLPRIVATE void | ExecMisc_Impl (SfxRequest &) |
SAL_DLLPRIVATE void | GetState_Impl (SfxItemSet &) |
SAL_DLLPRIVATE void | CheckIPClient_Impl (SfxInPlaceClient const *, const tools::Rectangle &) |
SAL_DLLPRIVATE void | PushSubShells_Impl (bool bPush=true) |
SAL_DLLPRIVATE void | PopSubShells_Impl () |
SAL_DLLPRIVATE bool | ExecKey_Impl (const KeyEvent &aKey) |
void | setLibreOfficeKitViewCallback (SfxLokCallbackInterface *pCallback) |
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) const override |
virtual void | flushPendingLOKInvalidateTiles () |
virtual void | libreOfficeKitViewUpdatedCallback (int nType) const override |
virtual void | libreOfficeKitViewUpdatedCallbackPerViewId (int nType, int nViewId, int nSourceViewId) const override |
virtual OString | getLOKPayload (int nType, int nViewId, bool *ignore) const |
void | setTiledSearching (bool bTiledSearching) |
virtual int | getPart () 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::Window * | GetEditWindowForActiveOLEObj () const override |
void | SetLOKLanguageTag (const OUString &rBcp47LanguageTag) |
const LanguageTag & | GetLOKLanguageTag () const |
void | SetLOKLocale (const OUString &rBcp47LanguageTag) |
const LanguageTag & | GetLOKLocale () 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) |
![]() | |
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 |
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 |
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 Member Functions | |
static void | StateUndo (SfxItemSet &) |
![]() | |
static SfxViewShell * | GetFirst (bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr) |
static SfxViewShell * | GetNext (const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr) |
static SfxViewShell * | Current () |
static SfxViewShell * | Get (const css::uno::Reference< css::frame::XController > &i_rController) |
static void | SetCurrentDocId (ViewShellDocId nId) |
![]() | |
static SfxInterface * | GetStaticInterface () |
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 (ScrollHdl, ScrollBar *, void) | |
DECL_DLLPRIVATE_LINK (EndScrollHdl, ScrollBar *, void) | |
SAL_DLLPRIVATE bool | ChgPage (int eMvMode, bool bUpdateScrollbar=true) |
virtual SAL_DLLPRIVATE SfxPrinter * | GetPrinter (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< SfxTabPage > | CreatePrintOptionsPage (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< SwPagePreviewWin > | m_pViewWin |
OUString | m_sSwViewData |
OUString | m_sNewCursorPosition |
sal_uInt16 | m_nNewPage |
OUString | m_sPageStr |
Size | m_aDocSize |
tools::Rectangle | m_aVisArea |
VclPtr< SwScrollbar > | m_pHScrollbar |
VclPtr< SwScrollbar > | m_pVScrollbar |
bool | mbHScrollbarEnabled: 1 |
bool | mbVScrollbarEnabled: 1 |
VclPtr< vcl::Window > | m_pScrollFill |
sal_uInt16 | mnPageCount |
bool | m_bNormalPrint |
bool | mbResetFormDesignMode:1 |
bool | mbFormDesignModeToReset:1 |
Additional Inherited Members | |
![]() | |
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 |
![]() | |
SfxShell () | |
SfxShell (SfxViewShell *pViewSh) | |
void | SetViewShell_Impl (SfxViewShell *pView) |
SAL_DLLPRIVATE void | Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId) |
![]() | |
static void | HandleOpenXmlFilterSettings (SfxRequest &) |
SwPagePreview::SwPagePreview | ( | SfxViewFrame * | pFrame, |
SfxViewShell * | pOldSh | ||
) |
Definition at line 1138 of file pview.cxx.
References CreateScrollbar(), false, SwPagePreviewWin::GetCol(), vcl::EnumContext::GetContextName(), GetDocShell(), SwViewShell::GetDrawView(), SfxViewFrame::GetFirst(), SfxViewFrame::GetNext(), SfxViewFrame::GetObjectShell(), SfxShell::GetViewShell(), SwDocShell::GetWrtShell(), SwViewShell::HasDrawView(), Init(), SdrMarkView::IsDesignMode(), m_pViewWin, m_sSwViewData, mbFormDesignModeToReset, mbResetFormDesignMode, vcl::EnumContext::Printpreview, SfxShell::SetContextName(), SfxShell::SetName(), SwViewShell::SetSfxViewShell(), SwPagePreviewWin::SetSttPage(), SwPagePreviewWin::SetViewShell(), SfxViewShell::SetWindow(), VSHELLFLAG_ISPREVIEW, WB_SIZEABLE, and SfxViewShell::WriteUserData().
|
overridevirtual |
Definition at line 1213 of file pview.cxx.
References VclPtr< reference_type >::disposeAndClear(), VclPtr< vcl::Window >::disposeAndClear(), SwPagePreviewWin::GetViewShell(), m_pHScrollbar, m_pScrollFill, m_pViewWin, m_pVScrollbar, SwViewShell::SetWin(), and SfxViewShell::SetWindow().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1226 of file pview.cxx.
References SfxViewShell::Activate(), and SfxShell::Activate().
Definition at line 1513 of file pview.cxx.
References vcl::Window::LogicToPixel(), m_pViewWin, vcl::Window::PixelToLogic(), and Point.
Referenced by SetVisArea().
void SwPagePreview::ApplyAccessibilityOptions | ( | SvtAccessibilityOptions const & | rAccessibilityOptions | ) |
Definition at line 1831 of file pview.cxx.
References SwViewShell::ApplyAccessibilityOptions(), and GetViewShell().
Referenced by SwModule::ConfigurationChanged().
Definition at line 1291 of file pview.cxx.
References SvBorder::Bottom(), StyleSettings::GetScrollBarSize(), vcl::Window::GetSettings(), AllSettings::GetStyleSettings(), SwScrollbar::IsVisible(), m_pHScrollbar, m_pViewWin, m_pVScrollbar, SvBorder::Right(), and SfxViewShell::SetBorderPixel().
Referenced by InnerResizePixel(), and OuterResizePixel().
|
private |
Definition at line 1256 of file pview.cxx.
References aStringList, FN_PAGEDOWN, FN_PAGEUP, FN_START_OF_DOCUMENT, FN_STAT_PAGE, SfxViewFrame::GetBindings(), SwPagePreviewWin::GetStatusStr(), SfxViewShell::GetViewFrame(), SfxBindings::Invalidate(), vcl::Window::LogicToPixel(), m_aVisArea, m_pViewWin, m_sPageStr, mnPageCount, SwPagePreviewWin::MovePage(), SwPagePreviewWin::MV_CALC, SwPagePreviewWin::MV_NEWWINSIZE, vcl::Window::PixelToLogic(), ScrollViewSzChg(), and SfxBindings::SetState().
Referenced by DocSzChgd(), ExecPgUpAndPgDown(), Execute(), and SetVisArea().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1698 of file pview.cxx.
References CreatePrintOptionsPage(), and m_bNormalPrint.
|
private |
Definition at line 1237 of file pview.cxx.
References VclPtr< reference_type >::Create(), ScrollBar::EnableDrag(), SwScrollbar::ExtendedShow(), SfxViewShell::GetViewFrame(), SfxViewFrame::GetWindow(), SfxViewShell::InvalidateBorder(), LINK, m_pHScrollbar, m_pVScrollbar, ScrollDocSzChg(), ScrollBar::SetEndScrollHdl(), and ScrollBar::SetScrollHdl().
Referenced by SwPagePreview().
Definition at line 1518 of file pview.cxx.
References ChgPage(), SwViewShell::GetNumPages(), GetViewShell(), tools::Rectangle::GetWidth(), vcl::Window::Invalidate(), m_aDocSize, m_aVisArea, m_pViewWin, mnPageCount, SwPagePreviewWin::MV_CALC, and ScrollDocSzChg().
Referenced by Init().
void SwPagePreview::EnableHScrollbar | ( | bool | bEnable | ) |
Definition at line 1848 of file pview.cxx.
References mbHScrollbarEnabled, and ScrollViewSzChg().
Referenced by SwModule::ApplyUsrPref().
void SwPagePreview::EnableVScrollbar | ( | bool | bEnable | ) |
Definition at line 1857 of file pview.cxx.
References mbVScrollbarEnabled, and ScrollViewSzChg().
Referenced by SwModule::ApplyUsrPref().
|
private |
Helper method to execute SfxRequest FN_PAGE_UP and FN_PAGE_DOWN.
help method to execute SfxRequest FN_PAGEUP and FN_PAGEDOWN
_bPgUp | input parameter - boolean that indicates, if FN_PAGE_UP or FN_PAGE_DOWN has to be executed. |
_pReq | optional input parameter - pointer to the <SfxRequest> instance, if existing. |
Definition at line 582 of file pview.cxx.
References tools::Rectangle::Bottom(), ChgPage(), SwPagePreviewLayout::DoesPreviewLayoutColsFitIntoWindow(), SwPagePreviewLayout::DoesPreviewLayoutRowsFitIntoWindow(), SfxRequest::Done(), FN_PAGEDOWN, FN_PAGEUP, FN_START_OF_DOCUMENT, FN_STAT_PAGE, SfxViewFrame::GetBindings(), SwPagePreviewWin::GetCol(), vcl::Window::GetOutDev(), OutputDevice::GetOutputSize(), SwPagePreviewWin::GetPaintedPreviewDocRect(), SwPagePreviewLayout::GetPreviewDocSize(), SwPagePreviewWin::GetRow(), SfxViewShell::GetViewFrame(), GetViewShell(), SwPagePreviewLayout::GetWinPagesScrollAmount(), Size::Height(), SfxBindings::Invalidate(), vcl::Window::Invalidate(), m_pViewWin, min(), mnPageCount, SwPagePreviewWin::MV_PAGE_DOWN, SwPagePreviewWin::MV_PAGE_UP, SwViewShell::PagePreviewLayout(), SwPagePreviewWin::Scroll(), ScrollViewSzChg(), SwPagePreviewWin::SelectedPage(), SwPagePreviewWin::SetSelectedPage(), and tools::Rectangle::Top().
Referenced by Execute().
void SwPagePreview::Execute | ( | SfxRequest & | rReq | ) |
Definition at line 655 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(), SfxShell::ExecuteSlot(), false, 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(), SwViewShell::GetDoc(), SfxViewShell::GetFrameWeld(), SfxShell::GetInterface(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SwPagePreviewPrtData::GetLandscape(), AbstractSvxZoomDialog::GetOutputItemSet(), SfxShell::GetPool(), SwDoc::GetPreviewPrtData(), GetPrinter(), SfxRequest::GetSlot(), GetValue, SfxViewShell::GetViewFrame(), SwViewShell::GetViewOptions(), SwPagePreviewWin::GetViewShell(), GetViewShell(), SwViewOption::GetZoom(), SwViewOption::GetZoomType(), vcl::Window::Invalidate(), 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(), SwPagePreviewWin::SelectedPage(), SetAppPrintOptions(), SwPagePreviewWin::SetBookPreviewMode(), AbstractSvxZoomDialog::SetLimits(), SfxRequest::SetReturnValue(), SwPagePreviewWin::SetSelectedPage(), SfxRequest::SetSlot(), SwPagePreviewWin::SetSttPage(), SvxZoomItem::SetValueSet(), SetVScrollbarThumbPos(), SetZoom(), SwViewShell::ShowPreviewSelection(), and SID_JUMP_TO_SPECIFIC_PAGE.
|
inline |
SwDocShell * SwPagePreview::GetDocShell | ( | ) |
Definition at line 1232 of file pview.cxx.
References SfxViewFrame::GetObjectShell(), and SfxViewShell::GetViewFrame().
Referenced by SwPagePreviewWin::DataChanged(), and SwPagePreview().
|
inline |
|
inline |
Definition at line 252 of file pview.hxx.
Referenced by SwPagePreviewWin::CalcWish(), and SwPagePreviewWin::MovePage().
|
inline |
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1634 of file pview.cxx.
References SwViewShell::getIDocumentDeviceAccess(), IDocumentDeviceAccess::getPrinter(), SwPagePreviewWin::GetViewShell(), and m_pViewWin.
Referenced by Execute().
|
inline |
Definition at line 253 of file pview.hxx.
References SwPagePreviewWin::SelectedPage().
Referenced by lcl_GetPrintUIOptions().
void SwPagePreview::GetState | ( | SfxItemSet & | rSet | ) |
Definition at line 927 of file pview.cxx.
References SvxZoomSliderItem::AddSnappingPoint(), aStringList, SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), FN_PAGEDOWN, FN_PAGEUP, FN_PREVIEW_ZOOM, FN_PRINT_LAYOUT, FN_PRINT_PAGEPREVIEW, FN_SHOW_BOOKVIEW, FN_SHOW_MULTIPLE_PAGES, FN_SHOW_TWO_PAGES, FN_START_OF_DOCUMENT, FN_STAT_PAGE, FN_STAT_ZOOM, SwPagePreviewWin::GetCol(), SfxShell::GetInterface(), SfxItemSet::GetPool(), SwPagePreviewWin::GetRow(), SfxShell::GetSlotState(), SwPagePreviewWin::GetStatusStr(), SwViewShell::GetViewOptions(), GetViewShell(), SwPagePreviewLayout::GetWinPagesScrollAmount(), SwViewOption::GetZoom(), SwViewOption::GetZoomType(), SwViewOption::IsPagePrevBookview(), SwPagePreviewLayout::IsPageVisible(), m_pViewWin, m_sPageStr, MAX_PREVIEW_ZOOM, MAXZOOM, MIN_PREVIEW_ZOOM, MINZOOM, mnPageCount, SfxWhichIter::NextWhich(), SwViewShell::PagePreviewLayout(), SfxItemSet::Put(), and SvxZoomItem::SetValueSet().
|
inline |
Definition at line 236 of file pview.hxx.
References SwPagePreviewWin::GetViewShell().
Referenced by ApplyAccessibilityOptions(), DocSzChgd(), ExecPgUpAndPgDown(), Execute(), GetState(), HandleWheelCommands(), Init(), lcl_GetPrintUIOptions(), ScrollViewSzChg(), SetPrinter(), SetVisArea(), and SetZoom().
bool SwPagePreview::HandleWheelCommands | ( | const CommandEvent & | rCEvt | ) |
Definition at line 1779 of file pview.cxx.
References CommandWheelData::GetDelta(), MiscSettings::GetEnableATToolSupport(), AllSettings::GetMiscSettings(), CommandWheelData::GetMode(), Application::GetSettings(), SwViewShell::GetViewOptions(), GetViewShell(), CommandEvent::GetWheelData(), SwViewOption::GetZoom(), vcl::Window::HandleScrollCommand(), m_pHScrollbar, m_pViewWin, m_pVScrollbar, MAX_PREVIEW_ZOOM, MIN_PREVIEW_ZOOM, and SetZoom().
Referenced by SwPagePreviewWin::Command().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1075 of file pview.cxx.
References SwViewShell::AdjustOptionsForPagePreview(), SwViewShell::ApplyAccessibilityOptions(), SwViewShell::ApplyViewOptions(), SwViewShell::CalcLayout(), DocSzChgd(), SwViewShell::GetDrawView(), GetViewShell(), SwEditShell::IsModified(), SwViewOption::IsViewHScrollBar(), SwViewOption::IsViewVScrollBar(), m_bNormalPrint, mbHScrollbarEnabled, mbVScrollbarEnabled, SwEditShell::ResetModified(), SdrPaintView::SetAnimationEnabled(), SwViewOption::SetBlank(), SwViewOption::SetColumnBreak(), SwViewOption::SetFieldName(), SwViewOption::SetGraphic(), SwViewOption::SetGridVisible(), SwViewOption::SetHardBlank(), SwViewOption::SetHideWhitespaceMode(), SwViewOption::SetLineBreak(), SwViewOption::SetOnlineSpell(), SwViewOption::SetPageBreak(), SwViewOption::SetPagePreview(), SwViewOption::SetParagraph(), SwViewOption::SetPostIts(), SwViewOption::SetShowBookmarks(), SwViewOption::SetShowHiddenChar(), SwViewOption::SetShowHiddenField(), SwViewOption::SetShowHiddenPara(), SwViewOption::SetSnap(), SwViewOption::SetSoftHyph(), SwViewOption::SetTab(), SwViewOption::SetTable(), SwViewOption::SetViewHRuler(), SwViewOption::SetViewVRuler(), and SW_MOD.
Referenced by SwPagePreview().
|
staticprivate |
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1302 of file pview.cxx.
References CalcAndSetBorderPixel(), vcl::Window::GetOutDev(), vcl::Window::GetOutputSizePixel(), tools::Rectangle::GetSize(), m_pHScrollbar, m_pScrollFill, m_pViewWin, m_pVScrollbar, tools::Rectangle::TopLeft(), and ViewResizePixel().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1316 of file pview.cxx.
References CalcAndSetBorderPixel(), vcl::Window::GetOutDev(), vcl::Window::GetOutputSizePixel(), m_pHScrollbar, m_pScrollFill, m_pViewWin, m_pVScrollbar, vcl::Window::PixelToLogic(), Point, ScrollDocSzChg(), SetVisArea(), and ViewResizePixel().
Definition at line 238 of file pview.hxx.
References SwPagePreviewWin::RepaintCoreRect().
void SwPagePreview::ScrollDocSzChg | ( | ) |
Definition at line 1628 of file pview.cxx.
References ScrollViewSzChg().
Referenced by SwPagePreviewWin::CalcWish(), CreateScrollbar(), DocSzChgd(), and OuterResizePixel().
void SwPagePreview::ScrollViewSzChg | ( | ) |
Definition at line 1539 of file pview.cxx.
References SwPagePreviewWin::GetCol(), tools::Rectangle::GetHeight(), SwPagePreviewWin::GetPaintedPreviewDocRect(), SwPagePreviewLayout::GetPreviewDocSize(), SwPagePreviewWin::GetRow(), SwPagePreviewWin::GetSttPage(), GetViewShell(), tools::Rectangle::GetWidth(), Size::Height(), SwPagePreviewLayout::IsPageVisible(), tools::Rectangle::Left(), m_pHScrollbar, m_pScrollFill, m_pViewWin, m_pVScrollbar, Range::Max(), mbHScrollbarEnabled, mbVScrollbarEnabled, mnPageCount, SwViewShell::PagePreviewLayout(), SwPagePreviewWin::SelectedPage(), ScrollBar::SetLineSize(), ScrollBar::SetPageSize(), ScrollBar::SetRange(), ScrollBar::SetRangeMax(), ScrollBar::SetThumbPos(), ScrollBar::SetVisibleSize(), vcl::Window::Show(), ShowHScrollbar(), ShowVScrollbar(), tools::Rectangle::Top(), and Size::Width().
Referenced by SwPagePreviewWin::CalcWish(), ChgPage(), EnableHScrollbar(), EnableVScrollbar(), ExecPgUpAndPgDown(), Execute(), ScrollDocSzChg(), SwPagePreviewWin::SetPagePreview(), and SetZoom().
|
inline |
Definition at line 258 of file pview.hxx.
Referenced by SwPagePreviewWin::MouseButtonDown().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1639 of file pview.cxx.
References SwPagePreviewWin::CalcWish(), SwViewShell::ChgAllPageOrientation(), SwViewShell::ChgAllPageSize(), SwEditShell::EndAllAction(), false, SfxViewFrame::GetBindings(), SwPagePreviewWin::GetCol(), SwViewShell::getIDocumentDeviceAccess(), SvxPaperInfo::GetPaperSize(), IDocumentDeviceAccess::getPrinter(), SwPagePreviewWin::GetRow(), SfxViewShell::GetViewFrame(), GetViewShell(), SfxBindings::Invalidate(), m_bNormalPrint, m_pViewWin, SwEditShell::SetModified(), IDocumentDeviceAccess::setPrinter(), SFX_PRINTERROR_BUSY, and SwEditShell::StartAllAction().
void SwPagePreview::SetVisArea | ( | const tools::Rectangle & | rRect | ) |
Definition at line 1341 of file pview.cxx.
References abs(), SwViewShell::ActionPend(), tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustRight(), AlignToPixel(), tools::Rectangle::Bottom(), tools::Rectangle::BottomRight(), ChgPage(), tools::Rectangle::GetSize(), GetViewShell(), vcl::Window::Invalidate(), tools::Rectangle::Left(), m_aVisArea, m_pViewWin, SwPagePreviewWin::MV_NEWWINSIZE, vcl::Window::PaintImmediately(), Point, tools::Rectangle::Right(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), SwPagePreviewWin::SetWinSize(), tools::Rectangle::Top(), and tools::Rectangle::TopLeft().
Referenced by OuterResizePixel().
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.
_nNewThumbPos | input parameter - new position, which will be assigned to the vertical scrollbar. |
Definition at line 1885 of file pview.cxx.
References m_pVScrollbar, and ScrollBar::SetThumbPos().
Referenced by Execute(), and SwPagePreviewWin::MouseButtonDown().
|
private |
Definition at line 1866 of file pview.cxx.
References SwPagePreviewWin::AdjustPreviewToNewZoom(), SwViewShell::ApplyViewOptions(), GetBindings(), SfxViewShell::GetViewFrame(), SwViewShell::GetViewOptions(), GetViewShell(), lcl_InvalidateZoomSlots(), m_pViewWin, ScrollViewSzChg(), and SwViewOption::SetZoom().
Referenced by Execute(), and HandleWheelCommands().
SwPagePreview::SFX_DECL_VIEWFACTORY | ( | SwPagePreview | ) |
void SwPagePreview::ShowHScrollbar | ( | bool | bShow | ) |
Definition at line 1836 of file pview.cxx.
References SfxViewShell::InvalidateBorder(), m_pHScrollbar, and vcl::Window::Show().
Referenced by ScrollViewSzChg().
void SwPagePreview::ShowVScrollbar | ( | bool | bShow | ) |
Definition at line 1842 of file pview.cxx.
References SfxViewShell::InvalidateBorder(), m_pVScrollbar, and vcl::Window::Show().
Referenced by ScrollViewSzChg().
|
static |
Definition at line 1063 of file pview.cxx.
References SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), and SfxWhichIter::NextWhich().
|
private |
Definition at line 174 of file pview.hxx.
Referenced by DocSzChgd().
|
private |
Definition at line 175 of file pview.hxx.
Referenced by ChgPage(), DocSzChgd(), and SetVisArea().
|
private |
Definition at line 186 of file pview.hxx.
Referenced by CreatePrintOptionsPage(), Execute(), Init(), and SetPrinter().
|
private |
|
private |
Definition at line 178 of file pview.hxx.
Referenced by CalcAndSetBorderPixel(), CreateScrollbar(), HandleWheelCommands(), InnerResizePixel(), OuterResizePixel(), ScrollViewSzChg(), ShowHScrollbar(), and ~SwPagePreview().
|
private |
Definition at line 183 of file pview.hxx.
Referenced by InnerResizePixel(), OuterResizePixel(), ScrollViewSzChg(), and ~SwPagePreview().
|
private |
Definition at line 165 of file pview.hxx.
Referenced by AlignToPixel(), CalcAndSetBorderPixel(), ChgPage(), DocSzChgd(), ExecPgUpAndPgDown(), Execute(), GetPrinter(), GetState(), HandleWheelCommands(), InnerResizePixel(), OuterResizePixel(), ScrollViewSzChg(), SetPrinter(), SetVisArea(), SetZoom(), SwPagePreview(), and ~SwPagePreview().
|
private |
Definition at line 179 of file pview.hxx.
Referenced by CalcAndSetBorderPixel(), CreateScrollbar(), HandleWheelCommands(), InnerResizePixel(), OuterResizePixel(), ScrollViewSzChg(), SetVScrollbarThumbPos(), ShowVScrollbar(), and ~SwPagePreview().
|
private |
Definition at line 173 of file pview.hxx.
Referenced by ChgPage(), and GetState().
|
private |
Definition at line 167 of file pview.hxx.
Referenced by SwPagePreview().
|
private |
Definition at line 191 of file pview.hxx.
Referenced by SwPagePreview().
|
private |
Definition at line 180 of file pview.hxx.
Referenced by EnableHScrollbar(), Init(), and ScrollViewSzChg().
|
private |
Definition at line 190 of file pview.hxx.
Referenced by SwPagePreview().
|
private |
Definition at line 181 of file pview.hxx.
Referenced by EnableVScrollbar(), Init(), and ScrollViewSzChg().
|
private |
Definition at line 185 of file pview.hxx.
Referenced by ChgPage(), DocSzChgd(), ExecPgUpAndPgDown(), Execute(), GetState(), and ScrollViewSzChg().