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 () |
bool | ResetFormDesignMode () const |
bool | FormDesignModeToReset () const |
void | SetVScrollbarThumbPos (const sal_uInt16 _nNewThumbPos) |
Adjust position of vertical scrollbar. More... | |
SwPagePreview (SfxViewFrame &rFrame, SfxViewShell *) | |
virtual | ~SwPagePreview () override |
Public Member Functions inherited from SfxViewShell | |
SfxViewShell (SfxViewFrame &rFrame, SfxViewShellFlags nFlags) | |
virtual | ~SfxViewShell () override |
SfxInPlaceClient * | GetIPClient () const |
SfxInPlaceClient * | GetUIActiveClient () const |
SfxInPlaceClient * | FindIPClient (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, vcl::Window *pObjParentWin) const |
virtual ErrCode | DoVerb (sal_Int32 nVerb) |
void | OutplaceActivated (bool bActive) |
virtual void | UIActivating (SfxInPlaceClient *pClient) |
virtual void | UIDeactivated (SfxInPlaceClient *pClient) |
void | JumpToMark (const OUString &rMark) |
void | VisAreaChanged () |
virtual bool | PrepareClose (bool bUI=true) |
virtual OUString | GetSelectionText (bool bCompleteWords=false, bool bOnlyASample=false) |
virtual bool | HasSelection (bool bText=true) const |
virtual SdrView * | GetDrawView () const |
void | AddSubShell (SfxShell &rShell) |
void | RemoveSubShell (SfxShell *pShell=nullptr) |
SfxShell * | GetSubShell (sal_uInt16) |
virtual SfxShell * | GetFormShell () |
virtual const SfxShell * | GetFormShell () const |
virtual void | notifyWindow (vcl::LOKWindowId nLOKWindowId, const OUString &rAction, const std::vector< vcl::LOKPayloadItem > &rPayload=std::vector< vcl::LOKPayloadItem >()) const override |
virtual void | ShowCursor (bool bOn=true) |
virtual bool | KeyInput (const KeyEvent &rKeyEvent) |
bool | Escape () |
vcl::Window * | GetWindow () const |
weld::Window * | GetFrameWeld () const |
void | SetWindow (vcl::Window *pViewPort) |
const SvBorder & | GetBorderPixel () const |
void | SetBorderPixel (const SvBorder &rBorder) |
void | InvalidateBorder () |
SfxViewFrame & | GetViewFrame () const |
virtual SfxPrinter * | GetPrinter (bool bCreate=false) |
virtual sal_uInt16 | SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL) |
virtual bool | HasPrintOptionsPage () const |
virtual std::unique_ptr< SfxTabPage > | CreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions) |
Printer * | GetActivePrinter () const |
virtual void | WriteUserData (OUString &, bool bBrowse=false) |
virtual void | ReadUserData (const OUString &, bool bBrowse=false) |
virtual void | WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &) |
virtual void | ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &) |
virtual void | QueryObjAreaPixel (tools::Rectangle &rRect) const |
virtual SfxObjectShell * | GetObjectShell () override |
virtual css::uno::Reference< css::frame::XModel > | GetCurrentDocument () const |
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 rtl::Reference< VCLXPopupMenu > &rIn, const OUString &rMenuIdentifier, rtl::Reference< VCLXPopupMenu > &rOut, css::ui::ContextMenuExecuteEvent aEvent) |
bool | TryContextMenuInterception (const rtl::Reference< VCLXPopupMenu > &, const OUString &rMenuIdentifier, css::ui::ContextMenuExecuteEvent aEvent) |
void | ExecPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool) |
void | StartPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool) |
const std::shared_ptr< vcl::PrinterController > & | GetPrinterController () const |
void | AddRemoveClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &, bool) |
css::uno::Reference< css::datatransfer::clipboard::XClipboardNotifier > | GetClipboardNotifier () const |
SAL_DLLPRIVATE SfxInPlaceClient * | GetUIActiveIPClient_Impl () const |
SAL_DLLPRIVATE void | AddContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) |
SAL_DLLPRIVATE void | RemoveContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) |
SAL_DLLPRIVATE bool | GlobalKeyInput_Impl (const KeyEvent &rKeyEvent) |
SAL_DLLPRIVATE void | NewIPClient_Impl (SfxInPlaceClient *pIPClient) |
SAL_DLLPRIVATE void | IPClientGone_Impl (SfxInPlaceClient const *pIPClient) |
SAL_DLLPRIVATE void | ResetAllClients_Impl (SfxInPlaceClient const *pIP) |
SAL_DLLPRIVATE void | SetPrinter_Impl (VclPtr< SfxPrinter > &pNewPrinter) |
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) |
SfxLokCallbackInterface * | getLibreOfficeKitViewCallback () const |
void | dumpLibreOfficeKitViewState (rtl::OStringBuffer &rState) |
virtual void | libreOfficeKitViewCallback (int nType, const OString &pPayload) const override |
virtual void | libreOfficeKitViewCallbackWithViewId (int nType, const OString &pPayload, int nViewId) const override |
virtual void | libreOfficeKitViewInvalidateTilesCallback (const tools::Rectangle *pRect, int nPart, int nMode) const override |
virtual void | libreOfficeKitViewUpdatedCallback (int nType) const override |
virtual void | libreOfficeKitViewUpdatedCallbackPerViewId (int nType, int nViewId, int nSourceViewId) const override |
virtual void | flushPendingLOKInvalidateTiles () |
virtual void | libreOfficeKitViewAddPendingInvalidateTiles () override |
virtual std::optional< OString > | getLOKPayload (int nType, int nViewId) const |
void | setTiledSearching (bool bTiledSearching) |
virtual int | getPart () const |
virtual int | getEditMode () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
ViewShellId | GetViewShellId () const override |
ViewShellDocId | GetDocId () const override |
virtual void | notifyInvalidation (tools::Rectangle const *) 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 |
virtual ::Color | GetColorConfigColor (svtools::ColorConfigEntry nColorType) const |
virtual OUString | GetColorConfigName () const |
void | SetLOKLanguageTag (const OUString &rBcp47LanguageTag) |
const LanguageTag & | GetLOKLanguageTag () const |
void | SetLOKAccessibilityState (bool bEnabled) |
std::pair< bool, OUString > | GetLOKTimezone () const |
void | SetLOKTimezone (bool isSet, const OUString &rTimezone) |
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) |
void | SetStoringHelper (std::shared_ptr< SfxStoringHelper > xHelper) |
StylesHighlighterColorMap & | GetStylesHighlighterParaColorMap () |
StylesHighlighterColorMap & | GetStylesHighlighterCharColorMap () |
OUString | getA11yFocusedParagraph () const |
int | getA11yCaretPosition () const |
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 Member Functions | |
static void | StateUndo (SfxItemSet &) |
Static Public Member Functions inherited from SfxViewShell | |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | GetFirst (bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr) |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | GetNext (const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr) |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | Current () |
static SAL_WARN_UNUSED_RESULT SfxViewShell * | Get (const css::uno::Reference< css::frame::XController > &i_rController) |
static void | SetCurrentDocId (ViewShellDocId nId) |
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 &) |
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 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 |
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 &) |
SwPagePreview::SwPagePreview | ( | SfxViewFrame & | rFrame, |
SfxViewShell * | pOldSh | ||
) |
Definition at line 1144 of file pview.cxx.
References CreateScrollbar(), vcl::EnumContext::GetContextName(), SwDocShell::GetDoc(), 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(), SfxViewShell::SetWindow(), VSHELLFLAG_ISPREVIEW, and SfxViewShell::WriteUserData().
|
overridevirtual |
Definition at line 1218 of file pview.cxx.
References VclPtr< class reference_type >::disposeAndClear(), m_pHScrollbar, m_pViewWin, m_pVScrollbar, SwViewShell::SetWin(), and SfxViewShell::SetWindow().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1230 of file pview.cxx.
References SfxShell::Activate(), and SfxViewShell::Activate().
void SwPagePreview::ApplyAccessibilityOptions | ( | ) |
Definition at line 1843 of file pview.cxx.
References SwViewShell::ApplyAccessibilityOptions(), and GetViewShell().
Referenced by SwModule::ConfigurationChanged().
|
private |
Definition at line 1295 of file pview.cxx.
References SvBorder::Bottom(), m_pHScrollbar, m_pViewWin, m_pVScrollbar, SvBorder::Right(), rSet, and SfxViewShell::SetBorderPixel().
Referenced by InnerResizePixel(), and OuterResizePixel().
|
private |
Definition at line 1260 of file pview.cxx.
References aStringList, FN_PAGEDOWN, FN_PAGEUP, FN_START_OF_DOCUMENT, FN_STAT_PAGE, SfxViewFrame::GetBindings(), SfxViewShell::GetViewFrame(), SfxBindings::Invalidate(), m_aVisArea, m_pViewWin, m_sPageStr, mnPageCount, SwPagePreviewWin::MV_CALC, SwPagePreviewWin::MV_NEWWINSIZE, ScrollViewSzChg(), and SfxBindings::SetState().
Referenced by DocSzChgd(), EndScrollHdl(), ExecPgUpAndPgDown(), Execute(), and SetVisArea().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1710 of file pview.cxx.
References CreatePrintOptionsPage(), and m_bNormalPrint.
|
private |
Definition at line 1241 of file pview.cxx.
References VclPtr< class reference_type >::Create(), SfxViewShell::GetViewFrame(), SfxViewFrame::GetWindow(), SfxViewShell::InvalidateBorder(), LINK, m_pHScrollbar, m_pVScrollbar, and ScrollDocSzChg().
Referenced by SwPagePreview().
|
private |
|
private |
void SwPagePreview::DocSzChgd | ( | const Size & | rNewSize | ) |
Definition at line 1531 of file pview.cxx.
References ChgPage(), SwViewShell::GetNumPages(), GetViewShell(), tools::Rectangle::GetWidth(), m_aDocSize, m_aVisArea, m_pViewWin, mnPageCount, SwPagePreviewWin::MV_CALC, and ScrollDocSzChg().
Referenced by Init().
void SwPagePreview::EnableHScrollbar | ( | bool | bEnable | ) |
Definition at line 1860 of file pview.cxx.
References mbHScrollbarEnabled, and ScrollViewSzChg().
Referenced by SwModule::ApplyUsrPref().
void SwPagePreview::EnableVScrollbar | ( | bool | bEnable | ) |
Definition at line 1869 of file pview.cxx.
References mbVScrollbarEnabled, and ScrollViewSzChg().
Referenced by SwModule::ApplyUsrPref().
|
private |
Definition at line 1436 of file pview.cxx.
References weld::Scrollbar::adjustment_get_value(), ChgPage(), SwPagePreviewLayout::DoesPreviewLayoutColsFitIntoWindow(), FN_PAGEDOWN, FN_PAGEUP, FN_START_OF_DOCUMENT, FN_STAT_PAGE, SfxViewFrame::GetBindings(), SfxViewShell::GetViewFrame(), GetViewShell(), SwPagePreviewLayout::GetWinPagesScrollAmount(), SfxBindings::Invalidate(), SwPagePreviewLayout::IsPageVisible(), Help::IsQuickHelpEnabled(), m_pViewWin, m_pVScrollbar, SwPagePreviewLayout::MarkNewSelectedPage(), SwPagePreviewWin::MV_SCROLL, SwViewShell::PagePreviewLayout(), ScrollViewSzChg(), SwViewShell::ShowPreviewSelection(), and Help::ShowQuickHelp().
Referenced by ScrollHdl().
|
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 583 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().
void SwPagePreview::Execute | ( | SfxRequest & | rReq | ) |
Definition at line 656 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(), SfxItemSet::Put(), RET_CANCEL, ScrollViewSzChg(), SetAppPrintOptions(), SfxRequest::SetReturnValue(), SfxRequest::SetSlot(), SvxZoomItem::SetValueSet(), SetVScrollbarThumbPos(), SetZoom(), SwViewShell::ShowPreviewSelection(), and SID_JUMP_TO_SPECIFIC_PAGE.
|
inline |
Definition at line 280 of file pview.hxx.
Referenced by SwView::SwView().
SwDocShell * SwPagePreview::GetDocShell | ( | ) |
Definition at line 1236 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 1646 of file pview.cxx.
References m_pViewWin.
Referenced by Execute().
|
inline |
Definition at line 253 of file pview.hxx.
Referenced by lcl_GetPrintUIOptions().
void SwPagePreview::GetState | ( | SfxItemSet & | rSet | ) |
Definition at line 928 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, SfxShell::GetInterface(), SfxItemSet::GetItemState(), SfxItemSet::GetPool(), SfxShell::GetSlotState(), 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(), rSet, and SvxZoomItem::SetValueSet().
|
inline |
Definition at line 236 of file pview.hxx.
Referenced by ApplyAccessibilityOptions(), DocSzChgd(), EndScrollHdl(), ExecPgUpAndPgDown(), Execute(), GetState(), HandleWheelCommands(), Init(), lcl_GetPrintUIOptions(), ScrollHdl(), ScrollViewSzChg(), SetPrinter(), SetVisArea(), and SetZoom().
bool SwPagePreview::HandleWheelCommands | ( | const CommandEvent & | rCEvt | ) |
Definition at line 1791 of file pview.cxx.
References CommandWheelData::GetDelta(), CommandWheelData::GetMode(), Application::GetSettings(), SwViewShell::GetViewOptions(), GetViewShell(), CommandEvent::GetWheelData(), SwViewOption::GetZoom(), m_pHScrollbar, m_pViewWin, m_pVScrollbar, MAX_PREVIEW_ZOOM, MIN_PREVIEW_ZOOM, and SetZoom().
Referenced by SwPagePreviewWin::Command().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
|
private |
Definition at line 1081 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 1306 of file pview.cxx.
References CalcAndSetBorderPixel(), tools::Rectangle::GetSize(), m_pHScrollbar, m_pViewWin, m_pVScrollbar, tools::Rectangle::TopLeft(), and ViewResizePixel().
|
overrideprivatevirtual |
Reimplemented from SfxViewShell.
Definition at line 1320 of file pview.cxx.
References CalcAndSetBorderPixel(), Size::Height(), Size::IsEmpty(), m_pHScrollbar, m_pViewWin, m_pVScrollbar, ScrollDocSzChg(), SetVisArea(), ViewResizePixel(), and Size::Width().
|
inline |
|
inline |
Definition at line 275 of file pview.hxx.
Referenced by SwView::SwView().
void SwPagePreview::ScrollDocSzChg | ( | ) |
Definition at line 1640 of file pview.cxx.
References ScrollViewSzChg().
Referenced by SwPagePreviewWin::CalcWish(), CreateScrollbar(), DocSzChgd(), and OuterResizePixel().
|
private |
Definition at line 1403 of file pview.cxx.
References weld::Scrollbar::adjustment_get_value(), EndScrollHdl(), weld::Scrollbar::get_scroll_type(), GetViewShell(), Help::IsQuickHelpEnabled(), tools::Rectangle::Left(), m_pViewWin, m_pVScrollbar, m_sPageStr, tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), Point::setY(), Help::ShowQuickHelp(), tools::Rectangle::Top(), Point::X(), and Point::Y().
void SwPagePreview::ScrollViewSzChg | ( | ) |
Definition at line 1552 of file pview.cxx.
References tools::Rectangle::GetHeight(), SwPagePreviewLayout::GetPreviewDocSize(), GetViewShell(), tools::Rectangle::GetWidth(), Size::Height(), SwPagePreviewLayout::IsPageVisible(), tools::Rectangle::Left(), m_pHScrollbar, m_pViewWin, m_pVScrollbar, Range::Max(), mbHScrollbarEnabled, mbVScrollbarEnabled, mnPageCount, SwViewShell::PagePreviewLayout(), ShowHScrollbar(), ShowVScrollbar(), tools::Rectangle::Top(), and Size::Width().
Referenced by SwPagePreviewWin::CalcWish(), ChgPage(), EnableHScrollbar(), EnableVScrollbar(), EndScrollHdl(), 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 1651 of file pview.cxx.
References SwViewShell::ChgAllPageOrientation(), SwViewShell::ChgAllPageSize(), SwEditShell::EndAllAction(), SfxViewFrame::GetBindings(), SwViewShell::getIDocumentDeviceAccess(), SvxPaperInfo::GetPaperSize(), IDocumentDeviceAccess::getPrinter(), SfxViewShell::GetViewFrame(), GetViewShell(), SfxBindings::Invalidate(), m_bNormalPrint, m_pViewWin, SwEditShell::SetModified(), SetPrinter(), IDocumentDeviceAccess::setPrinter(), SFX_PRINTERROR_BUSY, and SwEditShell::StartAllAction().
Referenced by SetPrinter().
void SwPagePreview::SetVisArea | ( | const tools::Rectangle & | rRect | ) |
Definition at line 1345 of file pview.cxx.
References abs(), tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustRight(), AlignToPixel(), tools::Rectangle::Bottom(), tools::Rectangle::BottomRight(), ChgPage(), tools::Rectangle::GetSize(), GetViewShell(), tools::Rectangle::Left(), m_aVisArea, m_pViewWin, SwPagePreviewWin::MV_NEWWINSIZE, tools::Rectangle::Right(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), 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 1897 of file pview.cxx.
References m_pVScrollbar.
Referenced by Execute(), and SwPagePreviewWin::MouseButtonDown().
|
private |
Definition at line 1878 of file pview.cxx.
References SwViewShell::ApplyViewOptions(), eType, GetBindings(), SfxViewShell::GetViewFrame(), SwViewShell::GetViewOptions(), GetViewShell(), SwViewOption::GetZoom(), SwViewOption::GetZoomType(), lcl_InvalidateZoomSlots(), m_pViewWin, ScrollViewSzChg(), SwViewOption::SetZoom(), and SwViewOption::SetZoomType().
Referenced by Execute(), and HandleWheelCommands().
SwPagePreview::SFX_DECL_VIEWFACTORY | ( | SwPagePreview | ) |
References SFX_DECL_INTERFACE.
void SwPagePreview::ShowHScrollbar | ( | bool | bShow | ) |
Definition at line 1848 of file pview.cxx.
References SfxViewShell::InvalidateBorder(), and m_pHScrollbar.
Referenced by ScrollViewSzChg().
void SwPagePreview::ShowVScrollbar | ( | bool | bShow | ) |
Definition at line 1854 of file pview.cxx.
References SfxViewShell::InvalidateBorder(), and m_pVScrollbar.
Referenced by ScrollViewSzChg().
|
static |
Definition at line 1069 of file pview.cxx.
References SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SfxWhichIter::NextWhich(), and rSet.
|
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 184 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 165 of file pview.hxx.
Referenced by AlignToPixel(), CalcAndSetBorderPixel(), ChgPage(), DocSzChgd(), EndScrollHdl(), ExecPgUpAndPgDown(), Execute(), GetPrinter(), GetState(), HandleWheelCommands(), InnerResizePixel(), OuterResizePixel(), ScrollHdl(), ScrollViewSzChg(), SetPrinter(), SetVisArea(), SetZoom(), SwPagePreview(), and ~SwPagePreview().
|
private |
Definition at line 179 of file pview.hxx.
Referenced by CalcAndSetBorderPixel(), CreateScrollbar(), EndScrollHdl(), HandleWheelCommands(), InnerResizePixel(), OuterResizePixel(), ScrollHdl(), ScrollViewSzChg(), SetVScrollbarThumbPos(), ShowVScrollbar(), and ~SwPagePreview().
|
private |
Definition at line 173 of file pview.hxx.
Referenced by ChgPage(), GetState(), and ScrollHdl().
|
private |
Definition at line 167 of file pview.hxx.
Referenced by SwPagePreview().
|
private |
Definition at line 189 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 188 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 183 of file pview.hxx.
Referenced by ChgPage(), DocSzChgd(), ExecPgUpAndPgDown(), Execute(), GetState(), and ScrollViewSzChg().