LibreOffice Module sw (master) 1
Macros | Functions
pview.cxx File Reference
#include <config_wasm_strip.h>
#include <sfx2/objface.hxx>
#include <vcl/help.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <vcl/syswin.hxx>
#include <vcl/weld.hxx>
#include <svl/whiter.hxx>
#include <svl/slstitm.hxx>
#include <svl/eitem.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/request.hxx>
#include <sfx2/dispatch.hxx>
#include <editeng/paperinf.hxx>
#include <svx/svdview.hxx>
#include <svx/viewlayoutitem.hxx>
#include <svx/zoomslideritem.hxx>
#include <tools/svborder.hxx>
#include <osl/diagnose.h>
#include <globdoc.hxx>
#include <wdocsh.hxx>
#include <pvprtdat.hxx>
#include <swmodule.hxx>
#include <wrtsh.hxx>
#include <docsh.hxx>
#include <viewopt.hxx>
#include <doc.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <pview.hxx>
#include <view.hxx>
#include <scroll.hxx>
#include <prtopt.hxx>
#include <usrpref.hxx>
#include "viewfunc.hxx"
#include <helpids.h>
#include <cmdid.h>
#include <strings.hrc>
#include <sfx2/msg.hxx>
#include <swslots.hxx>
#include <pagepreviewlayout.hxx>
#include <svx/svxdlg.hxx>
#include <memory>
#include <vcl/EnumContext.hxx>
#include <vcl/notebookbar/notebookbar.hxx>
Include dependency graph for pview.cxx:

Go to the source code of this file.

Macros

#define ShellClass_SwPagePreview
 
#define SWVIEWFLAGS   SfxViewShellFlags::HAS_PRINTOPTIONS
 
#define MIN_PREVIEW_ZOOM   25
 
#define MAX_PREVIEW_ZOOM   600
 

Functions

 SFX_IMPL_NAMED_VIEWFACTORY (SwPagePreview, "PrintPreview")
 
static sal_uInt16 lcl_GetNextZoomStep (sal_uInt16 nCurrentZoom, bool bZoomIn)
 
static void lcl_InvalidateZoomSlots (SfxBindings &rBindings)
 
 IMPL_LINK (SwPagePreview, HoriScrollHdl, weld::Scrollbar &, rScrollbar, void)
 
 IMPL_LINK (SwPagePreview, VertScrollHdl, weld::Scrollbar &, rScrollbar, void)
 

Macro Definition Documentation

◆ MAX_PREVIEW_ZOOM

#define MAX_PREVIEW_ZOOM   600

Definition at line 97 of file pview.cxx.

◆ MIN_PREVIEW_ZOOM

#define MIN_PREVIEW_ZOOM   25

Definition at line 96 of file pview.cxx.

◆ ShellClass_SwPagePreview

#define ShellClass_SwPagePreview

Definition at line 64 of file pview.cxx.

◆ SWVIEWFLAGS

#define SWVIEWFLAGS   SfxViewShellFlags::HAS_PRINTOPTIONS

Definition at line 94 of file pview.cxx.

Function Documentation

◆ IMPL_LINK() [1/2]

IMPL_LINK ( SwPagePreview  ,
HoriScrollHdl  ,
weld::Scrollbar ,
rScrollbar  ,
void   
)

Definition at line 1393 of file pview.cxx.

◆ IMPL_LINK() [2/2]

IMPL_LINK ( SwPagePreview  ,
VertScrollHdl  ,
weld::Scrollbar ,
rScrollbar  ,
void   
)

Definition at line 1398 of file pview.cxx.

◆ lcl_GetNextZoomStep()

static sal_uInt16 lcl_GetNextZoomStep ( sal_uInt16  nCurrentZoom,
bool  bZoomIn 
)
static

Definition at line 99 of file pview.cxx.

References i, MAX_PREVIEW_ZOOM, MIN_PREVIEW_ZOOM, and SAL_N_ELEMENTS.

Referenced by SwPagePreview::Execute().

◆ lcl_InvalidateZoomSlots()

static void lcl_InvalidateZoomSlots ( SfxBindings rBindings)
static

◆ SFX_IMPL_NAMED_VIEWFACTORY()

SFX_IMPL_NAMED_VIEWFACTORY ( SwPagePreview  ,
"PrintPreview"   
)

Definition at line 76 of file pview.cxx.

References SFX_VIEW_REGISTRATION.