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 36 of file dpcontrol.hxx.

Constructor & Destructor Documentation

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

Definition at line 29 of file dpcontrol.cxx.

References maZoomY.

ScDPFieldButton::~ScDPFieldButton ( )

Definition at line 45 of file dpcontrol.cxx.

Member Function Documentation

void ScDPFieldButton::draw ( )
void ScDPFieldButton::drawPopupButton ( )
private
void ScDPFieldButton::getPopupBoundingBox ( Point rPos,
Size rSize 
) const
void ScDPFieldButton::setBoundingBox ( const Point rPos,
const Size rSize,
bool  bLayoutRTL 
)

Definition at line 54 of file dpcontrol.cxx.

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

Referenced by ScGridWindow::DPTestFieldPopupArrow().

void ScDPFieldButton::setDrawBaseButton ( bool  b)

Definition at line 65 of file dpcontrol.cxx.

References mbBaseButton.

void ScDPFieldButton::setDrawPopupButton ( bool  b)

Definition at line 70 of file dpcontrol.cxx.

References mbPopupButton.

void ScDPFieldButton::setHasHiddenMember ( bool  b)

Definition at line 75 of file dpcontrol.cxx.

References mbHasHiddenMember.

void ScDPFieldButton::setPopupLeft ( bool  b)

Definition at line 85 of file dpcontrol.cxx.

References mbPopupLeft.

Referenced by ScGridWindow::DPTestFieldPopupArrow().

void ScDPFieldButton::setPopupPressed ( bool  b)

Definition at line 80 of file dpcontrol.cxx.

References mbPopupPressed.

void ScDPFieldButton::setText ( const OUString &  rText)

Definition at line 49 of file dpcontrol.cxx.

References maText.

Member Data Documentation

Point ScDPFieldButton::maPos
private

Definition at line 58 of file dpcontrol.hxx.

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

Size ScDPFieldButton::maSize
private

Definition at line 59 of file dpcontrol.hxx.

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

OUString ScDPFieldButton::maText
private

Definition at line 60 of file dpcontrol.hxx.

Referenced by draw(), and setText().

Fraction ScDPFieldButton::maZoomY
private

Definition at line 61 of file dpcontrol.hxx.

Referenced by draw(), and ScDPFieldButton().

bool ScDPFieldButton::mbBaseButton
private

Definition at line 65 of file dpcontrol.hxx.

Referenced by draw(), and setDrawBaseButton().

bool ScDPFieldButton::mbHasHiddenMember
private

Definition at line 67 of file dpcontrol.hxx.

Referenced by drawPopupButton(), and setHasHiddenMember().

bool ScDPFieldButton::mbPopupButton
private

Definition at line 66 of file dpcontrol.hxx.

Referenced by draw(), and setDrawPopupButton().

bool ScDPFieldButton::mbPopupLeft
private

Definition at line 69 of file dpcontrol.hxx.

Referenced by getPopupBoundingBox(), and setPopupLeft().

bool ScDPFieldButton::mbPopupPressed
private

Definition at line 68 of file dpcontrol.hxx.

Referenced by drawPopupButton(), and setPopupPressed().

ScDocument* ScDPFieldButton::mpDoc
private

Definition at line 62 of file dpcontrol.hxx.

Referenced by draw().

VclPtr<OutputDevice> ScDPFieldButton::mpOutDev
private

Definition at line 63 of file dpcontrol.hxx.

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

const StyleSettings* ScDPFieldButton::mpStyle
private

Definition at line 64 of file dpcontrol.hxx.

Referenced by draw(), and drawPopupButton().


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