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

#include <pagectrl.hxx>

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

Public Member Functions

 SvxPageWindow ()
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual ~SvxPageWindow () override
 
void setHeaderFillAttributes (const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes)
 
void setFooterFillAttributes (const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes)
 
void setPageFillAttributes (const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes)
 
const drawinglayer::attribute::SdrAllFillAttributesHelperPtrgetPageFillAttributes () const
 
void SetSize (const Size &rSize)
 
const SizeGetSize () const
 
void SetTop (long nNew)
 
void SetBottom (long nNew)
 
void SetLeft (long nNew)
 
void SetRight (long nNew)
 
long GetTop () const
 
long GetBottom () const
 
long GetLeft () const
 
long GetRight () const
 
void SetHdLeft (long nNew)
 
void SetHdRight (long nNew)
 
void SetHdDist (long nNew)
 
void SetHdHeight (long nNew)
 
long GetHdLeft () const
 
long GetHdRight () const
 
long GetHdDist () const
 
long GetHdHeight () const
 
void SetFtLeft (long nNew)
 
void SetFtRight (long nNew)
 
void SetFtDist (long nNew)
 
void SetFtHeight (long nNew)
 
long GetFtLeft () const
 
long GetFtRight () const
 
long GetFtDist () const
 
long GetFtHeight () const
 
void SetUsage (SvxPageUsage eU)
 
SvxPageUsage GetUsage () const
 
void SetHeader (bool bNew)
 
void SetFooter (bool bNew)
 
void SetTable (bool bNew)
 
void SetHorz (bool bNew)
 
void SetVert (bool bNew)
 
void EnableFrameDirection (bool bEnable)
 
void SetFrameDirection (SvxFrameDirection nDirection)
 
void ResetBackground ()
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void Resize ()
 
virtual bool MouseButtonDown (const MouseEvent &)
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
virtual tools::Rectangle GetFocusRect ()
 
virtual FactoryFunction GetUITestFactory () const
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void GrabFocus ()
 
bool HasFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
bool IsActive () const
 
int GetTextHeight () const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void set_size_request (int nWidth, int nHeight)
 
void queue_resize ()
 
 CustomWidgetController ()
 
virtual ~CustomWidgetController ()
 
 CustomWidgetController (CustomWidgetController const &)=default
 
 CustomWidgetController (CustomWidgetController &&)=default
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 

Protected Member Functions

virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void DrawPage (vcl::RenderContext &rRenderContext, const Point &rPoint, const bool bSecond, const bool bEnabled)
 

Static Protected Member Functions

static void drawFillAttributes (vcl::RenderContext &rRenderContext, const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes, const tools::Rectangle &rPaintRange, const tools::Rectangle &rDefineRange)
 

Private Attributes

Size aWinSize
 
Size aSize
 
long nTop
 
long nBottom
 
long nLeft
 
long nRight
 
bool bResetBackground
 
bool bFrameDirection
 
SvxFrameDirection nFrameDirection
 
long nHdLeft
 
long nHdRight
 
long nHdDist
 
long nHdHeight
 
long nFtLeft
 
long nFtRight
 
long nFtDist
 
long nFtHeight
 
drawinglayer::attribute::SdrAllFillAttributesHelperPtr maHeaderFillAttributes
 
drawinglayer::attribute::SdrAllFillAttributesHelperPtr maFooterFillAttributes
 
drawinglayer::attribute::SdrAllFillAttributesHelperPtr maPageFillAttributes
 
bool bFooter: 1
 
bool bHeader: 1
 
bool bTable: 1
 
bool bHorz: 1
 
bool bVert: 1
 
SvxPageUsage eUsage
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Definition at line 29 of file pagectrl.hxx.

Constructor & Destructor Documentation

SvxPageWindow::SvxPageWindow ( )

Definition at line 40 of file pagectrl.cxx.

References All, and Horizontal_LR_TB.

SvxPageWindow::~SvxPageWindow ( )
overridevirtual

Definition at line 70 of file pagectrl.cxx.

Member Function Documentation

void SvxPageWindow::drawFillAttributes ( vcl::RenderContext rRenderContext,
const drawinglayer::attribute::SdrAllFillAttributesHelperPtr rFillAttributes,
const tools::Rectangle rPaintRange,
const tools::Rectangle rDefineRange 
)
staticprotected
void SvxPageWindow::DrawPage ( vcl::RenderContext rRenderContext,
const Point rPoint,
const bool  bSecond,
const bool  bEnabled 
)
protectedvirtual

Definition at line 131 of file pagectrl.cxx.

References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), Point::AdjustX(), Point::AdjustY(), aSize, bFooter, bFrameDirection, bHeader, bHorz, tools::Rectangle::Bottom(), bResetBackground, bTable, bVert, CELL_HEIGHT, CELL_WIDTH, COL_LIGHTGRAY(), COL_TRANSPARENT(), drawFillAttributes(), OutputDevice::DrawRect(), OutputDevice::DrawText(), eUsage, StyleSettings::GetDialogColor(), StyleSettings::GetDisableColor(), StyleSettings::GetFieldColor(), StyleSettings::GetFieldTextColor(), OutputDevice::GetFont(), tools::Rectangle::GetHeight(), OutputDevice::GetLineColor(), OutputDevice::GetOutputSize(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), tools::Rectangle::GetWidth(), Size::Height(), i, tools::Rectangle::Left(), maFooterFillAttributes, maHeaderFillAttributes, maPageFillAttributes, Mirror, tools::Rectangle::Move(), nBottom, nFrameDirection, nFtDist, nFtHeight, nFtLeft, nFtRight, nHdDist, nHdHeight, nHdLeft, nHdRight, nLeft, nRight, nTop, OutputDevice::PixelToLogic(), tools::Rectangle::SetBottom(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), tools::Rectangle::SetLeft(), OutputDevice::SetLineColor(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), tools::Rectangle::TopRight(), Size::Width(), Point::X(), and Point::Y().

Referenced by Paint().

void SvxPageWindow::EnableFrameDirection ( bool  bEnable)

Definition at line 374 of file pagectrl.cxx.

References bFrameDirection.

long SvxPageWindow::GetBottom ( ) const
inline

Definition at line 112 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

long SvxPageWindow::GetFtDist ( ) const
inline

Definition at line 133 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

long SvxPageWindow::GetFtHeight ( ) const
inline

Definition at line 134 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

long SvxPageWindow::GetFtLeft ( ) const
inline

Definition at line 131 of file pagectrl.hxx.

long SvxPageWindow::GetFtRight ( ) const
inline

Definition at line 132 of file pagectrl.hxx.

long SvxPageWindow::GetHdDist ( ) const
inline

Definition at line 123 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

long SvxPageWindow::GetHdHeight ( ) const
inline

Definition at line 124 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

long SvxPageWindow::GetHdLeft ( ) const
inline

Definition at line 121 of file pagectrl.hxx.

long SvxPageWindow::GetHdRight ( ) const
inline

Definition at line 122 of file pagectrl.hxx.

long SvxPageWindow::GetLeft ( ) const
inline

Definition at line 113 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

const drawinglayer::attribute::SdrAllFillAttributesHelperPtr& SvxPageWindow::getPageFillAttributes ( ) const
inline

Definition at line 93 of file pagectrl.hxx.

long SvxPageWindow::GetRight ( ) const
inline

Definition at line 114 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

const Size& SvxPageWindow::GetSize ( ) const
inline

Definition at line 101 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

long SvxPageWindow::GetTop ( ) const
inline

Definition at line 111 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

SvxPageUsage SvxPageWindow::GetUsage ( ) const
inline

Definition at line 137 of file pagectrl.hxx.

Referenced by SvxHFPage::TurnOn().

void SvxPageWindow::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprotectedvirtual
void SvxPageWindow::ResetBackground ( )

Definition at line 384 of file pagectrl.cxx.

References bResetBackground.

void SvxPageWindow::SetBottom ( long  nNew)
inline

Definition at line 107 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

void SvxPageWindow::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual
void SvxPageWindow::SetFooter ( bool  bNew)
inline

Definition at line 140 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::setFooterFillAttributes ( const drawinglayer::attribute::SdrAllFillAttributesHelperPtr rFillAttributes)
inline

Definition at line 85 of file pagectrl.hxx.

Referenced by SvxHFPage::ResetBackground_Impl().

void SvxPageWindow::SetFrameDirection ( SvxFrameDirection  nDirection)

Definition at line 379 of file pagectrl.cxx.

References nFrameDirection.

void SvxPageWindow::SetFtDist ( long  nNew)
inline

Definition at line 128 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::SetFtHeight ( long  nNew)
inline

Definition at line 129 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::SetFtLeft ( long  nNew)
inline

Definition at line 126 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::SetFtRight ( long  nNew)
inline

Definition at line 127 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::SetHdDist ( long  nNew)
inline

Definition at line 118 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::SetHdHeight ( long  nNew)
inline

Definition at line 119 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::SetHdLeft ( long  nNew)
inline

Definition at line 116 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::SetHdRight ( long  nNew)
inline

Definition at line 117 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::SetHeader ( bool  bNew)
inline

Definition at line 139 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage(), and SvxHFPage::UpdateExample().

void SvxPageWindow::setHeaderFillAttributes ( const drawinglayer::attribute::SdrAllFillAttributesHelperPtr rFillAttributes)
inline

Definition at line 81 of file pagectrl.hxx.

Referenced by SvxHFPage::ResetBackground_Impl().

void SvxPageWindow::SetHorz ( bool  bNew)
inline

Definition at line 142 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

void SvxPageWindow::SetLeft ( long  nNew)
inline

Definition at line 108 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

void SvxPageWindow::setPageFillAttributes ( const drawinglayer::attribute::SdrAllFillAttributesHelperPtr rFillAttributes)
inline

Definition at line 89 of file pagectrl.hxx.

Referenced by SvxHFPage::ResetBackground_Impl().

void SvxPageWindow::SetRight ( long  nNew)
inline

Definition at line 109 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

void SvxPageWindow::SetSize ( const Size rSize)
inline

Definition at line 97 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

void SvxPageWindow::SetTable ( bool  bNew)
inline

Definition at line 141 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

void SvxPageWindow::SetTop ( long  nNew)
inline

Definition at line 106 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

void SvxPageWindow::SetUsage ( SvxPageUsage  eU)
inline

Definition at line 136 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

void SvxPageWindow::SetVert ( bool  bNew)
inline

Definition at line 143 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

Member Data Documentation

Size SvxPageWindow::aSize
private

Definition at line 33 of file pagectrl.hxx.

Referenced by DrawPage(), and Paint().

Size SvxPageWindow::aWinSize
private

Definition at line 32 of file pagectrl.hxx.

Referenced by Paint(), and SetDrawingArea().

bool SvxPageWindow::bFooter
private

Definition at line 58 of file pagectrl.hxx.

Referenced by DrawPage().

bool SvxPageWindow::bFrameDirection
private

Definition at line 41 of file pagectrl.hxx.

Referenced by DrawPage(), and EnableFrameDirection().

bool SvxPageWindow::bHeader
private

Definition at line 59 of file pagectrl.hxx.

Referenced by DrawPage().

bool SvxPageWindow::bHorz
private

Definition at line 61 of file pagectrl.hxx.

Referenced by DrawPage().

bool SvxPageWindow::bResetBackground
private

Definition at line 40 of file pagectrl.hxx.

Referenced by DrawPage(), and ResetBackground().

bool SvxPageWindow::bTable
private

Definition at line 60 of file pagectrl.hxx.

Referenced by DrawPage().

bool SvxPageWindow::bVert
private

Definition at line 62 of file pagectrl.hxx.

Referenced by DrawPage().

SvxPageUsage SvxPageWindow::eUsage
private

Definition at line 64 of file pagectrl.hxx.

Referenced by DrawPage(), and Paint().

drawinglayer::attribute::SdrAllFillAttributesHelperPtr SvxPageWindow::maFooterFillAttributes
private

Definition at line 55 of file pagectrl.hxx.

Referenced by DrawPage().

drawinglayer::attribute::SdrAllFillAttributesHelperPtr SvxPageWindow::maHeaderFillAttributes
private

Definition at line 54 of file pagectrl.hxx.

Referenced by DrawPage().

drawinglayer::attribute::SdrAllFillAttributesHelperPtr SvxPageWindow::maPageFillAttributes
private

Definition at line 56 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nBottom
private

Definition at line 36 of file pagectrl.hxx.

Referenced by DrawPage().

SvxFrameDirection SvxPageWindow::nFrameDirection
private

Definition at line 42 of file pagectrl.hxx.

Referenced by DrawPage(), and SetFrameDirection().

long SvxPageWindow::nFtDist
private

Definition at line 51 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nFtHeight
private

Definition at line 52 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nFtLeft
private

Definition at line 49 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nFtRight
private

Definition at line 50 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nHdDist
private

Definition at line 46 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nHdHeight
private

Definition at line 47 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nHdLeft
private

Definition at line 44 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nHdRight
private

Definition at line 45 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nLeft
private

Definition at line 37 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nRight
private

Definition at line 38 of file pagectrl.hxx.

Referenced by DrawPage().

long SvxPageWindow::nTop
private

Definition at line 35 of file pagectrl.hxx.

Referenced by DrawPage().


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