LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScDPFieldButton Class Reference

This class takes care of physically drawing field button controls inside data pilot tables. More...

#include <dpcontrol.hxx>

Collaboration diagram for ScDPFieldButton:
[legend]

Public Member Functions

 ScDPFieldButton (OutputDevice *pOutDev, const StyleSettings *pStyle, const Fraction *pZoomY=nullptr, ScDocument *pDoc=nullptr)
 
 ~ScDPFieldButton ()
 
void setText (const OUString &rText)
 
void setBoundingBox (const Point &rPos, const Size &rSize, bool bLayoutRTL)
 
void setDrawBaseButton (bool b)
 
void setDrawPopupButton (bool b)
 
void setHasHiddenMember (bool b)
 
void setPopupPressed (bool b)
 
void setPopupLeft (bool b)
 
void draw ()
 
void getPopupBoundingBox (Point &rPos, Size &rSize) const
 

Private Member Functions

void drawPopupButton ()
 

Private Attributes

Point maPos
 
Size maSize
 
OUString maText
 
Fraction maZoomY
 
ScDocumentmpDoc
 
VclPtr< OutputDevicempOutDev
 
const StyleSettingsmpStyle
 
bool mbBaseButton
 
bool mbPopupButton
 
bool mbHasHiddenMember
 
bool mbPopupPressed
 
bool mbPopupLeft
 

Detailed Description

This class takes care of physically drawing field button controls inside data pilot tables.

Definition at line 35 of file dpcontrol.hxx.

Constructor & Destructor Documentation

◆ ScDPFieldButton()

ScDPFieldButton::ScDPFieldButton ( OutputDevice pOutDev,
const StyleSettings pStyle,
const Fraction pZoomY = nullptr,
ScDocument pDoc = nullptr 
)

Definition at line 31 of file dpcontrol.cxx.

References maZoomY.

◆ ~ScDPFieldButton()

ScDPFieldButton::~ScDPFieldButton ( )

Definition at line 47 of file dpcontrol.cxx.

Member Function Documentation

◆ draw()

void ScDPFieldButton::draw ( )

◆ drawPopupButton()

void ScDPFieldButton::drawPopupButton ( )
private

◆ getPopupBoundingBox()

void ScDPFieldButton::getPopupBoundingBox ( Point rPos,
Size rSize 
) const

◆ setBoundingBox()

void ScDPFieldButton::setBoundingBox ( const Point rPos,
const Size rSize,
bool  bLayoutRTL 
)

Definition at line 56 of file dpcontrol.cxx.

References maPos, maSize, and Size::Width().

Referenced by ScGridWindow::DPTestFieldPopupArrow(), and ScGridWindow::DrawButtons().

◆ setDrawBaseButton()

void ScDPFieldButton::setDrawBaseButton ( bool  b)

Definition at line 67 of file dpcontrol.cxx.

References mbBaseButton.

Referenced by ScGridWindow::DrawButtons().

◆ setDrawPopupButton()

void ScDPFieldButton::setDrawPopupButton ( bool  b)

Definition at line 72 of file dpcontrol.cxx.

References mbPopupButton.

Referenced by ScGridWindow::DrawButtons().

◆ setHasHiddenMember()

void ScDPFieldButton::setHasHiddenMember ( bool  b)

Definition at line 77 of file dpcontrol.cxx.

References mbHasHiddenMember.

Referenced by ScGridWindow::DrawButtons().

◆ setPopupLeft()

void ScDPFieldButton::setPopupLeft ( bool  b)

Definition at line 87 of file dpcontrol.cxx.

References mbPopupLeft.

Referenced by ScGridWindow::DPTestFieldPopupArrow(), and ScGridWindow::DrawButtons().

◆ setPopupPressed()

void ScDPFieldButton::setPopupPressed ( bool  b)

Definition at line 82 of file dpcontrol.cxx.

References mbPopupPressed.

◆ setText()

void ScDPFieldButton::setText ( const OUString &  rText)

Definition at line 51 of file dpcontrol.cxx.

References maText.

Referenced by ScGridWindow::DrawButtons().

Member Data Documentation

◆ maPos

Point ScDPFieldButton::maPos
private

Definition at line 57 of file dpcontrol.hxx.

Referenced by draw(), getPopupBoundingBox(), and setBoundingBox().

◆ maSize

Size ScDPFieldButton::maSize
private

Definition at line 58 of file dpcontrol.hxx.

Referenced by draw(), getPopupBoundingBox(), and setBoundingBox().

◆ maText

OUString ScDPFieldButton::maText
private

Definition at line 59 of file dpcontrol.hxx.

Referenced by draw(), and setText().

◆ maZoomY

Fraction ScDPFieldButton::maZoomY
private

Definition at line 60 of file dpcontrol.hxx.

Referenced by draw(), getPopupBoundingBox(), and ScDPFieldButton().

◆ mbBaseButton

bool ScDPFieldButton::mbBaseButton
private

Definition at line 64 of file dpcontrol.hxx.

Referenced by draw(), and setDrawBaseButton().

◆ mbHasHiddenMember

bool ScDPFieldButton::mbHasHiddenMember
private

Definition at line 66 of file dpcontrol.hxx.

Referenced by drawPopupButton(), and setHasHiddenMember().

◆ mbPopupButton

bool ScDPFieldButton::mbPopupButton
private

Definition at line 65 of file dpcontrol.hxx.

Referenced by draw(), and setDrawPopupButton().

◆ mbPopupLeft

bool ScDPFieldButton::mbPopupLeft
private

Definition at line 68 of file dpcontrol.hxx.

Referenced by getPopupBoundingBox(), and setPopupLeft().

◆ mbPopupPressed

bool ScDPFieldButton::mbPopupPressed
private

Definition at line 67 of file dpcontrol.hxx.

Referenced by drawPopupButton(), and setPopupPressed().

◆ mpDoc

ScDocument* ScDPFieldButton::mpDoc
private

Definition at line 61 of file dpcontrol.hxx.

Referenced by draw().

◆ mpOutDev

VclPtr<OutputDevice> ScDPFieldButton::mpOutDev
private

Definition at line 62 of file dpcontrol.hxx.

Referenced by draw(), drawPopupButton(), and getPopupBoundingBox().

◆ mpStyle

const StyleSettings* ScDPFieldButton::mpStyle
private

Definition at line 63 of file dpcontrol.hxx.

Referenced by draw(), and drawPopupButton().


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