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 30 of file dpcontrol.cxx.
ScDPFieldButton::~ScDPFieldButton | ( | ) |
Definition at line 46 of file dpcontrol.cxx.
void ScDPFieldButton::draw | ( | ) |
Definition at line 91 of file dpcontrol.cxx.
References ATTR_PATTERN(), vcl::CLIPREGION, OutputDevice::DrawLine(), drawPopupButton(), OutputDevice::DrawRect(), OutputDevice::DrawText(), OutputDevice::EnableMapMode(), StyleSettings::GetAppFont(), StyleSettings::GetButtonTextColor(), SfxItemPool::GetDefaultItem(), StyleSettings::GetFaceColor(), GetFont(), vcl::Font::GetFontSize(), StyleSettings::GetLightColor(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), ScDocument::GetPool(), StyleSettings::GetShadowColor(), OutputDevice::GetTextHeight(), Size::Height(), OutputDevice::IntersectClipRegion(), OutputDevice::IsMapModeEnabled(), maPos, maSize, maText, maZoomY, mbBaseButton, mbPopupButton, mpDoc, mpOutDev, mpStyle, Point, OutputDevice::Pop(), OutputDevice::Push(), SC_AUTOCOL_BLACK, OutputDevice::SetFillColor(), OutputDevice::SetFont(), OutputDevice::SetLineColor(), OutputDevice::SetTextColor(), and Size::Width().
|
private |
Definition at line 176 of file dpcontrol.cxx.
References COL_BLACK, OutputDevice::DrawPolygon(), OutputDevice::DrawRect(), StyleSettings::GetButtonTextColor(), OutputDevice::GetDPIScaleFactor(), StyleSettings::GetFaceColor(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), getPopupBoundingBox(), StyleSettings::GetShadowColor(), Size::Height(), comphelper::LibreOfficeKit::isActive(), mbHasHiddenMember, mbPopupPressed, mpOutDev, mpStyle, Point, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), tools::Polygon::SetPoint(), and Size::Width().
Referenced by draw().
Definition at line 148 of file dpcontrol.cxx.
References OutputDevice::GetDPIScaleFactor(), Size::getHeight(), Size::getWidth(), maPos, maSize, maZoomY, mbPopupLeft, mpOutDev, Size::setHeight(), and Size::setWidth().
Referenced by ScGridWindow::DPTestFieldPopupArrow(), and drawPopupButton().
Definition at line 55 of file dpcontrol.cxx.
References maPos, maSize, and Size::Width().
Referenced by ScGridWindow::DPTestFieldPopupArrow().
void ScDPFieldButton::setDrawBaseButton | ( | bool | b | ) |
Definition at line 66 of file dpcontrol.cxx.
References mbBaseButton.
void ScDPFieldButton::setDrawPopupButton | ( | bool | b | ) |
Definition at line 71 of file dpcontrol.cxx.
References mbPopupButton.
void ScDPFieldButton::setHasHiddenMember | ( | bool | b | ) |
Definition at line 76 of file dpcontrol.cxx.
References mbHasHiddenMember.
void ScDPFieldButton::setPopupLeft | ( | bool | b | ) |
Definition at line 86 of file dpcontrol.cxx.
References mbPopupLeft.
Referenced by ScGridWindow::DPTestFieldPopupArrow().
void ScDPFieldButton::setPopupPressed | ( | bool | b | ) |
Definition at line 81 of file dpcontrol.cxx.
References mbPopupPressed.
void ScDPFieldButton::setText | ( | const OUString & | rText | ) |
Definition at line 50 of file dpcontrol.cxx.
References maText.
|
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().