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 (tools::Long nNew)
 
void SetBottom (tools::Long nNew)
 
void SetLeft (tools::Long nNew)
 
void SetRight (tools::Long nNew)
 
tools::Long GetTop () const
 
tools::Long GetBottom () const
 
tools::Long GetLeft () const
 
tools::Long GetRight () const
 
void SetHdLeft (tools::Long nNew)
 
void SetHdRight (tools::Long nNew)
 
void SetHdDist (tools::Long nNew)
 
void SetHdHeight (tools::Long nNew)
 
tools::Long GetHdLeft () const
 
tools::Long GetHdRight () const
 
tools::Long GetHdDist () const
 
tools::Long GetHdHeight () const
 
void SetFtLeft (tools::Long nNew)
 
void SetFtRight (tools::Long nNew)
 
void SetFtDist (tools::Long nNew)
 
void SetFtHeight (tools::Long nNew)
 
tools::Long GetFtLeft () const
 
tools::Long GetFtRight () const
 
tools::Long GetFtDist () const
 
tools::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 Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0
 
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)
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void SetCursor (void *pData)
 
void GrabFocus ()
 
bool HasFocus () const
 
bool HasChildFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
void Enable () const
 
void Disable () const
 
bool IsActive () const
 
int GetTextHeight () const
 
int GetTextWidth (const OUString &rText) const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
Point GetPointerPosPixel () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OUString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void SetInputContext (const InputContext &rInputContext)
 
void SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth)
 
virtual int GetSurroundingText (OUString &)
 
virtual bool DeleteSurroundingText (const Selection &)
 
css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget ()
 
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const
 
void SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants)
 
virtual bool StartDrag ()
 
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
 
tools::Long nTop
 
tools::Long nBottom
 
tools::Long nLeft
 
tools::Long nRight
 
bool bResetBackground
 
bool bFrameDirection
 
SvxFrameDirection nFrameDirection
 
tools::Long nHdLeft
 
tools::Long nHdRight
 
tools::Long nHdDist
 
tools::Long nHdHeight
 
tools::Long nFtLeft
 
tools::Long nFtRight
 
tools::Long nFtDist
 
tools::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::SvxPageWindow ( )

Definition at line 39 of file pagectrl.cxx.

References All, and Horizontal_LR_TB.

◆ ~SvxPageWindow()

SvxPageWindow::~SvxPageWindow ( )
overridevirtual

Definition at line 64 of file pagectrl.cxx.

Member Function Documentation

◆ drawFillAttributes()

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

◆ DrawPage()

void SvxPageWindow::DrawPage ( vcl::RenderContext rRenderContext,
const Point rPoint,
const bool  bSecond,
const bool  bEnabled 
)
protectedvirtual

Definition at line 125 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(), vcl::Font::GetFontSize(), 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(), vcl::Font::SetFontSize(), tools::Rectangle::SetLeft(), OutputDevice::SetLineColor(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), Point::setX(), Point::setY(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), tools::Rectangle::TopRight(), Size::Width(), X, Point::X(), and Point::Y().

Referenced by Paint().

◆ EnableFrameDirection()

void SvxPageWindow::EnableFrameDirection ( bool  bEnable)

Definition at line 364 of file pagectrl.cxx.

References bFrameDirection.

◆ GetBottom()

tools::Long SvxPageWindow::GetBottom ( ) const
inline

Definition at line 112 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

◆ GetFtDist()

tools::Long SvxPageWindow::GetFtDist ( ) const
inline

Definition at line 133 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

◆ GetFtHeight()

tools::Long SvxPageWindow::GetFtHeight ( ) const
inline

Definition at line 134 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

◆ GetFtLeft()

tools::Long SvxPageWindow::GetFtLeft ( ) const
inline

Definition at line 131 of file pagectrl.hxx.

◆ GetFtRight()

tools::Long SvxPageWindow::GetFtRight ( ) const
inline

Definition at line 132 of file pagectrl.hxx.

◆ GetHdDist()

tools::Long SvxPageWindow::GetHdDist ( ) const
inline

Definition at line 123 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

◆ GetHdHeight()

tools::Long SvxPageWindow::GetHdHeight ( ) const
inline

Definition at line 124 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

◆ GetHdLeft()

tools::Long SvxPageWindow::GetHdLeft ( ) const
inline

Definition at line 121 of file pagectrl.hxx.

◆ GetHdRight()

tools::Long SvxPageWindow::GetHdRight ( ) const
inline

Definition at line 122 of file pagectrl.hxx.

◆ GetLeft()

tools::Long SvxPageWindow::GetLeft ( ) const
inline

Definition at line 113 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

◆ getPageFillAttributes()

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

Definition at line 93 of file pagectrl.hxx.

◆ GetRight()

tools::Long SvxPageWindow::GetRight ( ) const
inline

Definition at line 114 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

◆ GetSize()

const Size & SvxPageWindow::GetSize ( ) const
inline

Definition at line 101 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

◆ GetTop()

tools::Long SvxPageWindow::GetTop ( ) const
inline

Definition at line 111 of file pagectrl.hxx.

Referenced by SvxHFPage::RangeHdl().

◆ GetUsage()

SvxPageUsage SvxPageWindow::GetUsage ( ) const
inline

Definition at line 137 of file pagectrl.hxx.

Referenced by SvxHFPage::TurnOn().

◆ Paint()

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

◆ ResetBackground()

void SvxPageWindow::ResetBackground ( )

Definition at line 374 of file pagectrl.cxx.

References bResetBackground.

◆ SetBottom()

void SvxPageWindow::SetBottom ( tools::Long  nNew)
inline

Definition at line 107 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

◆ SetDrawingArea()

void SvxPageWindow::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

◆ SetFooter()

void SvxPageWindow::SetFooter ( bool  bNew)
inline

Definition at line 140 of file pagectrl.hxx.

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

◆ setFooterFillAttributes()

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

Definition at line 85 of file pagectrl.hxx.

Referenced by SvxHFPage::ResetBackground_Impl().

◆ SetFrameDirection()

void SvxPageWindow::SetFrameDirection ( SvxFrameDirection  nDirection)

Definition at line 369 of file pagectrl.cxx.

References nFrameDirection.

◆ SetFtDist()

void SvxPageWindow::SetFtDist ( tools::Long  nNew)
inline

Definition at line 128 of file pagectrl.hxx.

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

◆ SetFtHeight()

void SvxPageWindow::SetFtHeight ( tools::Long  nNew)
inline

Definition at line 129 of file pagectrl.hxx.

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

◆ SetFtLeft()

void SvxPageWindow::SetFtLeft ( tools::Long  nNew)
inline

Definition at line 126 of file pagectrl.hxx.

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

◆ SetFtRight()

void SvxPageWindow::SetFtRight ( tools::Long  nNew)
inline

Definition at line 127 of file pagectrl.hxx.

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

◆ SetHdDist()

void SvxPageWindow::SetHdDist ( tools::Long  nNew)
inline

Definition at line 118 of file pagectrl.hxx.

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

◆ SetHdHeight()

void SvxPageWindow::SetHdHeight ( tools::Long  nNew)
inline

Definition at line 119 of file pagectrl.hxx.

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

◆ SetHdLeft()

void SvxPageWindow::SetHdLeft ( tools::Long  nNew)
inline

Definition at line 116 of file pagectrl.hxx.

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

◆ SetHdRight()

void SvxPageWindow::SetHdRight ( tools::Long  nNew)
inline

Definition at line 117 of file pagectrl.hxx.

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

◆ SetHeader()

void SvxPageWindow::SetHeader ( bool  bNew)
inline

Definition at line 139 of file pagectrl.hxx.

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

◆ setHeaderFillAttributes()

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

Definition at line 81 of file pagectrl.hxx.

Referenced by SvxHFPage::ResetBackground_Impl().

◆ SetHorz()

void SvxPageWindow::SetHorz ( bool  bNew)
inline

Definition at line 142 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

◆ SetLeft()

void SvxPageWindow::SetLeft ( tools::Long  nNew)
inline

Definition at line 108 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

◆ setPageFillAttributes()

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

Definition at line 89 of file pagectrl.hxx.

Referenced by SvxHFPage::ResetBackground_Impl().

◆ SetRight()

void SvxPageWindow::SetRight ( tools::Long  nNew)
inline

Definition at line 109 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

◆ SetSize()

void SvxPageWindow::SetSize ( const Size rSize)
inline

Definition at line 97 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

◆ SetTable()

void SvxPageWindow::SetTable ( bool  bNew)
inline

Definition at line 141 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

◆ SetTop()

void SvxPageWindow::SetTop ( tools::Long  nNew)
inline

Definition at line 106 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

◆ SetUsage()

void SvxPageWindow::SetUsage ( SvxPageUsage  eU)
inline

Definition at line 136 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

◆ SetVert()

void SvxPageWindow::SetVert ( bool  bNew)
inline

Definition at line 143 of file pagectrl.hxx.

Referenced by SvxHFPage::ActivatePage().

Member Data Documentation

◆ aSize

Size SvxPageWindow::aSize
private

Definition at line 33 of file pagectrl.hxx.

Referenced by DrawPage(), and Paint().

◆ aWinSize

Size SvxPageWindow::aWinSize
private

Definition at line 32 of file pagectrl.hxx.

Referenced by Paint(), and SetDrawingArea().

◆ bFooter

bool SvxPageWindow::bFooter
private

Definition at line 58 of file pagectrl.hxx.

Referenced by DrawPage().

◆ bFrameDirection

bool SvxPageWindow::bFrameDirection
private

Definition at line 41 of file pagectrl.hxx.

Referenced by DrawPage(), and EnableFrameDirection().

◆ bHeader

bool SvxPageWindow::bHeader
private

Definition at line 59 of file pagectrl.hxx.

Referenced by DrawPage().

◆ bHorz

bool SvxPageWindow::bHorz
private

Definition at line 61 of file pagectrl.hxx.

Referenced by DrawPage().

◆ bResetBackground

bool SvxPageWindow::bResetBackground
private

Definition at line 40 of file pagectrl.hxx.

Referenced by DrawPage(), and ResetBackground().

◆ bTable

bool SvxPageWindow::bTable
private

Definition at line 60 of file pagectrl.hxx.

Referenced by DrawPage().

◆ bVert

bool SvxPageWindow::bVert
private

Definition at line 62 of file pagectrl.hxx.

Referenced by DrawPage().

◆ eUsage

SvxPageUsage SvxPageWindow::eUsage
private

Definition at line 64 of file pagectrl.hxx.

Referenced by DrawPage(), and Paint().

◆ maFooterFillAttributes

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

Definition at line 55 of file pagectrl.hxx.

Referenced by DrawPage().

◆ maHeaderFillAttributes

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

Definition at line 54 of file pagectrl.hxx.

Referenced by DrawPage().

◆ maPageFillAttributes

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

Definition at line 56 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nBottom

tools::Long SvxPageWindow::nBottom
private

Definition at line 36 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nFrameDirection

SvxFrameDirection SvxPageWindow::nFrameDirection
private

Definition at line 42 of file pagectrl.hxx.

Referenced by DrawPage(), and SetFrameDirection().

◆ nFtDist

tools::Long SvxPageWindow::nFtDist
private

Definition at line 51 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nFtHeight

tools::Long SvxPageWindow::nFtHeight
private

Definition at line 52 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nFtLeft

tools::Long SvxPageWindow::nFtLeft
private

Definition at line 49 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nFtRight

tools::Long SvxPageWindow::nFtRight
private

Definition at line 50 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nHdDist

tools::Long SvxPageWindow::nHdDist
private

Definition at line 46 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nHdHeight

tools::Long SvxPageWindow::nHdHeight
private

Definition at line 47 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nHdLeft

tools::Long SvxPageWindow::nHdLeft
private

Definition at line 44 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nHdRight

tools::Long SvxPageWindow::nHdRight
private

Definition at line 45 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nLeft

tools::Long SvxPageWindow::nLeft
private

Definition at line 37 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nRight

tools::Long SvxPageWindow::nRight
private

Definition at line 38 of file pagectrl.hxx.

Referenced by DrawPage().

◆ nTop

tools::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: