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 setDrawPopupButtonMulti (bool b)
 
void setDrawToggleButton (bool b, bool bCollapse, sal_Int32 nIndent)
 
void setHasHiddenMember (bool b)
 
void setPopupPressed (bool b)
 
void setPopupLeft (bool b)
 
void draw ()
 
void getPopupBoundingBox (Point &rPos, Size &rSize) const
 
void getToggleBoundingBox (Point &rPos, Size &rSize) const
 

Private Member Functions

void drawPopupButton ()
 
void drawToggleButton ()
 

Private Attributes

Point maPos
 
Size maSize
 
OUString maText
 
Fraction maZoomY
 
ScDocumentmpDoc
 
VclPtr< OutputDevicempOutDev
 
const StyleSettingsmpStyle
 
sal_Int32 mnToggleIndent
 
bool mbBaseButton
 
bool mbPopupButton
 
bool mbPopupButtonMulti
 
bool mbToggleButton
 
bool mbToggleCollapse
 
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 51 of file dpcontrol.cxx.

Member Function Documentation

◆ draw()

void ScDPFieldButton::draw ( )

◆ drawPopupButton()

void ScDPFieldButton::drawPopupButton ( )
private

◆ drawToggleButton()

void ScDPFieldButton::drawToggleButton ( )
private

◆ getPopupBoundingBox()

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

◆ getToggleBoundingBox()

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

◆ setBoundingBox()

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

◆ setDrawBaseButton()

void ScDPFieldButton::setDrawBaseButton ( bool  b)

Definition at line 71 of file dpcontrol.cxx.

References mbBaseButton.

Referenced by ScGridWindow::DrawButtons().

◆ setDrawPopupButton()

void ScDPFieldButton::setDrawPopupButton ( bool  b)

Definition at line 76 of file dpcontrol.cxx.

References mbPopupButton.

Referenced by ScGridWindow::DrawButtons().

◆ setDrawPopupButtonMulti()

void ScDPFieldButton::setDrawPopupButtonMulti ( bool  b)

◆ setDrawToggleButton()

void ScDPFieldButton::setDrawToggleButton ( bool  b,
bool  bCollapse,
sal_Int32  nIndent 
)

◆ setHasHiddenMember()

void ScDPFieldButton::setHasHiddenMember ( bool  b)

Definition at line 93 of file dpcontrol.cxx.

References mbHasHiddenMember.

Referenced by ScGridWindow::DrawButtons().

◆ setPopupLeft()

void ScDPFieldButton::setPopupLeft ( bool  b)

◆ setPopupPressed()

void ScDPFieldButton::setPopupPressed ( bool  b)

Definition at line 98 of file dpcontrol.cxx.

References mbPopupPressed.

◆ setText()

void ScDPFieldButton::setText ( const OUString &  rText)

Definition at line 55 of file dpcontrol.cxx.

References maText.

Referenced by ScGridWindow::DrawButtons().

Member Data Documentation

◆ maPos

Point ScDPFieldButton::maPos
private

Definition at line 61 of file dpcontrol.hxx.

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

◆ maSize

Size ScDPFieldButton::maSize
private

Definition at line 62 of file dpcontrol.hxx.

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

◆ maText

OUString ScDPFieldButton::maText
private

Definition at line 63 of file dpcontrol.hxx.

Referenced by draw(), and setText().

◆ maZoomY

Fraction ScDPFieldButton::maZoomY
private

Definition at line 64 of file dpcontrol.hxx.

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

◆ mbBaseButton

bool ScDPFieldButton::mbBaseButton
private

Definition at line 69 of file dpcontrol.hxx.

Referenced by draw(), and setDrawBaseButton().

◆ mbHasHiddenMember

bool ScDPFieldButton::mbHasHiddenMember
private

Definition at line 74 of file dpcontrol.hxx.

Referenced by drawPopupButton(), and setHasHiddenMember().

◆ mbPopupButton

bool ScDPFieldButton::mbPopupButton
private

Definition at line 70 of file dpcontrol.hxx.

Referenced by draw(), and setDrawPopupButton().

◆ mbPopupButtonMulti

bool ScDPFieldButton::mbPopupButtonMulti
private

Definition at line 71 of file dpcontrol.hxx.

Referenced by draw(), and setDrawPopupButtonMulti().

◆ mbPopupLeft

bool ScDPFieldButton::mbPopupLeft
private

Definition at line 76 of file dpcontrol.hxx.

Referenced by getPopupBoundingBox(), and setPopupLeft().

◆ mbPopupPressed

bool ScDPFieldButton::mbPopupPressed
private

Definition at line 75 of file dpcontrol.hxx.

Referenced by drawPopupButton(), and setPopupPressed().

◆ mbToggleButton

bool ScDPFieldButton::mbToggleButton
private

Definition at line 72 of file dpcontrol.hxx.

Referenced by draw(), and setDrawToggleButton().

◆ mbToggleCollapse

bool ScDPFieldButton::mbToggleCollapse
private

Definition at line 73 of file dpcontrol.hxx.

Referenced by drawToggleButton(), and setDrawToggleButton().

◆ mnToggleIndent

sal_Int32 ScDPFieldButton::mnToggleIndent
private

Definition at line 68 of file dpcontrol.hxx.

Referenced by getToggleBoundingBox(), and setDrawToggleButton().

◆ mpDoc

ScDocument* ScDPFieldButton::mpDoc
private

Definition at line 65 of file dpcontrol.hxx.

Referenced by draw().

◆ mpOutDev

VclPtr<OutputDevice> ScDPFieldButton::mpOutDev
private

◆ mpStyle

const StyleSettings* ScDPFieldButton::mpStyle
private

Definition at line 67 of file dpcontrol.hxx.

Referenced by draw(), and drawPopupButton().


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