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 | 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 |
ScDocument * | mpDoc |
VclPtr< OutputDevice > | mpOutDev |
const StyleSettings * | mpStyle |
sal_Int32 | mnToggleIndent |
bool | mbBaseButton |
bool | mbPopupButton |
bool | mbPopupButtonMulti |
bool | mbToggleButton |
bool | mbToggleCollapse |
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 51 of file dpcontrol.cxx.
void ScDPFieldButton::draw | ( | ) |
Definition at line 108 of file dpcontrol.cxx.
References ATTR_PATTERN(), vcl::CLIPREGION, drawPopupButton(), drawToggleButton(), StyleSettings::GetAppFont(), StyleSettings::GetButtonTextColor(), SfxItemPool::GetDefaultItem(), StyleSettings::GetFaceColor(), vcl::Font::GetFontSize(), StyleSettings::GetLightColor(), ScDocument::GetPool(), StyleSettings::GetShadowColor(), Point::getX(), Point::getY(), Size::Height(), maPos, maSize, maText, maZoomY, mbBaseButton, mbPopupButton, mbPopupButtonMulti, mbToggleButton, mpDoc, mpOutDev, mpStyle, vcl::Font::SetFontSize(), Point::setX(), Point::setY(), Size::Width(), Point::X(), and Point::Y().
Referenced by ScGridWindow::DrawButtons().
|
private |
Definition at line 223 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, tools::Polygon::SetPoint(), Size::Width(), Point::X(), and Point::Y().
Referenced by draw().
|
private |
Definition at line 275 of file dpcontrol.cxx.
References COL_BLACK(), Size::getHeight(), getToggleBoundingBox(), Size::getWidth(), mbToggleCollapse, mpOutDev, Point::X(), and Point::Y().
Referenced by draw().
Definition at line 167 of file dpcontrol.cxx.
References Size::getHeight(), Size::getWidth(), Point::getX(), Point::getY(), maPos, maSize, maZoomY, mbPopupLeft, mpOutDev, Size::setHeight(), Size::setWidth(), Point::setX(), and Point::setY().
Referenced by ScGridWindow::DPTestFieldPopupArrow(), ScGridWindow::DPTestMultiFieldPopupArrow(), and drawPopupButton().
Definition at line 195 of file dpcontrol.cxx.
References o3tl::convert(), Size::getHeight(), Size::getWidth(), Point::getX(), Point::getY(), maPos, maSize, maZoomY, mnToggleIndent, mpOutDev, o3tl::px, Size::setHeight(), Size::setWidth(), Point::setX(), Point::setY(), and o3tl::twip.
Referenced by ScGridWindow::DoPushPivotToggle(), and drawToggleButton().
Definition at line 60 of file dpcontrol.cxx.
References Point::AdjustX(), maPos, maSize, and Size::Width().
Referenced by ScGridWindow::DoPushPivotToggle(), ScGridWindow::DPTestFieldPopupArrow(), ScGridWindow::DPTestMultiFieldPopupArrow(), and ScGridWindow::DrawButtons().
void ScDPFieldButton::setDrawBaseButton | ( | bool | b | ) |
Definition at line 71 of file dpcontrol.cxx.
References mbBaseButton.
Referenced by ScGridWindow::DrawButtons().
void ScDPFieldButton::setDrawPopupButton | ( | bool | b | ) |
Definition at line 76 of file dpcontrol.cxx.
References mbPopupButton.
Referenced by ScGridWindow::DrawButtons().
void ScDPFieldButton::setDrawPopupButtonMulti | ( | bool | b | ) |
Definition at line 81 of file dpcontrol.cxx.
References mbPopupButtonMulti.
Referenced by ScGridWindow::DPTestMultiFieldPopupArrow(), and ScGridWindow::DrawButtons().
void ScDPFieldButton::setDrawToggleButton | ( | bool | b, |
bool | bCollapse, | ||
sal_Int32 | nIndent | ||
) |
Definition at line 86 of file dpcontrol.cxx.
References mbToggleButton, mbToggleCollapse, and mnToggleIndent.
Referenced by ScGridWindow::DoPushPivotToggle(), and ScGridWindow::DrawButtons().
void ScDPFieldButton::setHasHiddenMember | ( | bool | b | ) |
Definition at line 93 of file dpcontrol.cxx.
References mbHasHiddenMember.
Referenced by ScGridWindow::DrawButtons().
void ScDPFieldButton::setPopupLeft | ( | bool | b | ) |
Definition at line 103 of file dpcontrol.cxx.
References mbPopupLeft.
Referenced by ScGridWindow::DPTestFieldPopupArrow(), ScGridWindow::DPTestMultiFieldPopupArrow(), and ScGridWindow::DrawButtons().
void ScDPFieldButton::setPopupPressed | ( | bool | b | ) |
Definition at line 98 of file dpcontrol.cxx.
References mbPopupPressed.
void ScDPFieldButton::setText | ( | const OUString & | rText | ) |
Definition at line 55 of file dpcontrol.cxx.
References maText.
Referenced by ScGridWindow::DrawButtons().
|
private |
Definition at line 61 of file dpcontrol.hxx.
Referenced by draw(), getPopupBoundingBox(), getToggleBoundingBox(), and setBoundingBox().
|
private |
Definition at line 62 of file dpcontrol.hxx.
Referenced by draw(), getPopupBoundingBox(), getToggleBoundingBox(), and setBoundingBox().
|
private |
Definition at line 63 of file dpcontrol.hxx.
|
private |
Definition at line 64 of file dpcontrol.hxx.
Referenced by draw(), getPopupBoundingBox(), getToggleBoundingBox(), and ScDPFieldButton().
|
private |
Definition at line 69 of file dpcontrol.hxx.
Referenced by draw(), and setDrawBaseButton().
|
private |
Definition at line 74 of file dpcontrol.hxx.
Referenced by drawPopupButton(), and setHasHiddenMember().
|
private |
Definition at line 70 of file dpcontrol.hxx.
Referenced by draw(), and setDrawPopupButton().
|
private |
Definition at line 71 of file dpcontrol.hxx.
Referenced by draw(), and setDrawPopupButtonMulti().
|
private |
Definition at line 76 of file dpcontrol.hxx.
Referenced by getPopupBoundingBox(), and setPopupLeft().
|
private |
Definition at line 75 of file dpcontrol.hxx.
Referenced by drawPopupButton(), and setPopupPressed().
|
private |
Definition at line 72 of file dpcontrol.hxx.
Referenced by draw(), and setDrawToggleButton().
|
private |
Definition at line 73 of file dpcontrol.hxx.
Referenced by drawToggleButton(), and setDrawToggleButton().
|
private |
Definition at line 68 of file dpcontrol.hxx.
Referenced by getToggleBoundingBox(), and setDrawToggleButton().
|
private |
Definition at line 65 of file dpcontrol.hxx.
Referenced by draw().
|
private |
Definition at line 66 of file dpcontrol.hxx.
Referenced by draw(), drawPopupButton(), drawToggleButton(), getPopupBoundingBox(), and getToggleBoundingBox().
|
private |
Definition at line 67 of file dpcontrol.hxx.
Referenced by draw(), and drawPopupButton().