void ScDDComboBoxButton::Draw( const Point& rAt, const Size& rSize )
{ if ( rSize.IsEmpty() ) return;
// save old state bool bHadFill = pOut->IsFillColor();
Color aOldFill = pOut->GetFillColor(); bool bHadLine = pOut->IsLineColor();
Color aOldLine = pOut->GetLineColor(); bool bOldEnable = pOut->IsMapModeEnabled();
tools::Rectangle aBtnRect( rAt, rSize );
if (!comphelper::LibreOfficeKit::isActive())
pOut->EnableMapMode(false);
// restore old state
pOut->EnableMapMode( bOldEnable ); if (bHadLine)
pOut->SetLineColor(aOldLine); else
pOut->SetLineColor(); if (bHadFill)
pOut->SetFillColor(aOldFill); else
pOut->SetFillColor();
}
void ScDDComboBoxButton::ImpDrawArrow( const tools::Rectangle& rRect )
{ // no need to save old line and fill color here (is restored after the call)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.