LibreOffice Module sc (master) 1
|
This class takes care of physically drawing field button controls inside data pilot tables. More...
#include <dpcontrol.hxx>
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 |
ScDocument * | mpDoc |
VclPtr< OutputDevice > | mpOutDev |
const StyleSettings * | mpStyle |
bool | mbBaseButton |
bool | mbPopupButton |
bool | mbHasHiddenMember |
bool | mbPopupPressed |
bool | mbPopupLeft |
This class takes care of physically drawing field button controls inside data pilot tables.
Definition at line 35 of file dpcontrol.hxx.
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 | ( | ) |
Definition at line 47 of file dpcontrol.cxx.
void ScDPFieldButton::draw | ( | ) |
Definition at line 92 of file dpcontrol.cxx.
References ATTR_PATTERN(), vcl::CLIPREGION, drawPopupButton(), StyleSettings::GetAppFont(), StyleSettings::GetButtonTextColor(), SfxItemPool::GetDefaultItem(), StyleSettings::GetFaceColor(), GetFont(), vcl::Font::GetFontSize(), StyleSettings::GetLightColor(), ScDocument::GetPool(), StyleSettings::GetShadowColor(), Size::Height(), maPos, maSize, maText, maZoomY, mbBaseButton, mbPopupButton, mpDoc, mpOutDev, mpStyle, Point, SC_AUTOCOL_BLACK, vcl::Font::SetFontSize(), and Size::Width().
Referenced by ScGridWindow::DrawButtons().
|
private |
Definition at line 177 of file dpcontrol.cxx.
References svtools::DOCCOLOR, StyleSettings::GetButtonTextColor(), svtools::ColorConfig::GetColorValue(), StyleSettings::GetFaceColor(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), StyleSettings::GetLabelTextColor(), getPopupBoundingBox(), StyleSettings::GetShadowColor(), Size::Height(), comphelper::LibreOfficeKit::isActive(), Color::IsBright(), Color::IsDark(), mbHasHiddenMember, mbPopupPressed, mpOutDev, mpStyle, svtools::ColorConfigValue::nColor, Point, tools::Polygon::SetPoint(), and Size::Width().
Referenced by draw().
Definition at line 149 of file dpcontrol.cxx.
References Size::getHeight(), Size::getWidth(), maPos, maSize, maZoomY, mbPopupLeft, mpOutDev, Size::setHeight(), and Size::setWidth().
Referenced by ScGridWindow::DPTestFieldPopupArrow(), and drawPopupButton().
Definition at line 56 of file dpcontrol.cxx.
References maPos, maSize, and Size::Width().
Referenced by ScGridWindow::DPTestFieldPopupArrow(), and ScGridWindow::DrawButtons().
void ScDPFieldButton::setDrawBaseButton | ( | bool | b | ) |
Definition at line 67 of file dpcontrol.cxx.
References mbBaseButton.
Referenced by ScGridWindow::DrawButtons().
void ScDPFieldButton::setDrawPopupButton | ( | bool | b | ) |
Definition at line 72 of file dpcontrol.cxx.
References mbPopupButton.
Referenced by ScGridWindow::DrawButtons().
void ScDPFieldButton::setHasHiddenMember | ( | bool | b | ) |
Definition at line 77 of file dpcontrol.cxx.
References mbHasHiddenMember.
Referenced by ScGridWindow::DrawButtons().
void ScDPFieldButton::setPopupLeft | ( | bool | b | ) |
Definition at line 87 of file dpcontrol.cxx.
References mbPopupLeft.
Referenced by ScGridWindow::DPTestFieldPopupArrow(), and ScGridWindow::DrawButtons().
void ScDPFieldButton::setPopupPressed | ( | bool | b | ) |
Definition at line 82 of file dpcontrol.cxx.
References mbPopupPressed.
void ScDPFieldButton::setText | ( | const OUString & | rText | ) |
Definition at line 51 of file dpcontrol.cxx.
References maText.
Referenced by ScGridWindow::DrawButtons().
|
private |
Definition at line 57 of file dpcontrol.hxx.
Referenced by draw(), getPopupBoundingBox(), and setBoundingBox().
|
private |
Definition at line 58 of file dpcontrol.hxx.
Referenced by draw(), getPopupBoundingBox(), and setBoundingBox().
|
private |
Definition at line 59 of file dpcontrol.hxx.
|
private |
Definition at line 60 of file dpcontrol.hxx.
Referenced by draw(), getPopupBoundingBox(), and ScDPFieldButton().
|
private |
Definition at line 64 of file dpcontrol.hxx.
Referenced by draw(), and setDrawBaseButton().
|
private |
Definition at line 66 of file dpcontrol.hxx.
Referenced by drawPopupButton(), and setHasHiddenMember().
|
private |
Definition at line 65 of file dpcontrol.hxx.
Referenced by draw(), and setDrawPopupButton().
|
private |
Definition at line 68 of file dpcontrol.hxx.
Referenced by getPopupBoundingBox(), and setPopupLeft().
|
private |
Definition at line 67 of file dpcontrol.hxx.
Referenced by drawPopupButton(), and setPopupPressed().
|
private |
Definition at line 61 of file dpcontrol.hxx.
Referenced by draw().
|
private |
Definition at line 62 of file dpcontrol.hxx.
Referenced by draw(), drawPopupButton(), and getPopupBoundingBox().
|
private |
Definition at line 63 of file dpcontrol.hxx.
Referenced by draw(), and drawPopupButton().