36 :
Window( &_rTableControl.getAntiImpl() )
37 ,m_rTableControl( _rTableControl )
40 const Color aWindowColor(
GetSettings().GetStyleSettings().GetFieldColor() );
65 || !( nHelpMode & HelpEventMode::QUICK )
68 Window::RequestHelp( rHEvt );
80 if ( ( hitCol >= 0 ) && ( hitCol < pTableModel->getColumnCount() ) )
84 sHelpText = pTableModel->getColumnModel( hitCol )->getHelpText();
86 else if ( ( hitRow >= 0 ) && ( hitRow < pTableModel->getRowCount() ) )
89 pTableModel->getCellToolTip( hitCol, hitRow, aCellToolTip );
90 if ( !aCellToolTip.hasValue() )
93 pTableModel->getCellContent( hitCol, hitRow, aCellToolTip );
101 if ( pRenderer->FitsIntoCell( aCellToolTip, *
GetOutDev(), aCellRect ) )
102 aCellToolTip.clear();
105 pTableModel->getRenderer()->GetFormattedCellString( aCellToolTip, sHelpText );
107 if ( sHelpText.indexOf(
'\n' ) >= 0 )
108 nHelpStyle = QuickHelpFlags::TipStyleBalloon;
112 if ( !sHelpText.isEmpty() )
127 Window::RequestHelp( rHEvt );
143 Window::MouseMove( rMEvt );
158 Window::MouseButtonDown( rMEvt );
164 if ( isRowSelected != wasRowSelected || nCurSelRowCount != nPrevSelRowCount )
174 Window::MouseButtonUp( rMEvt );
183 if ( rNEvt.
GetType() == NotifyEventType::COMMAND )
186 if ( rCEvt.
GetCommand() == CommandEventId::Wheel )
189 if( !
pData->GetModifier() && (
pData->GetMode() == CommandWheelMode::SCROLL ) )
195 return bDone || Window::EventNotify( rNEvt );
CommandEventId GetCommand() const
const CommandWheelData * GetWheelData() const
HelpEventMode GetMode() const
const Point & GetMousePosPixel() const
static void HideBalloonAndQuickHelp()
static void ShowQuickHelp(vcl::Window *pParent, const tools::Rectangle &rScreenRect, const OUString &rHelpText, QuickHelpFlags nStyle=QuickHelpFlags::NONE)
bool IsLeaveWindow() const
const Point & GetPosPixel() const
const CommandEvent * GetCommandEvent() const
NotifyEventType GetType() const
a helper representing geometry information of a cell
tools::Rectangle getRect() const
RowPos getRowAtPoint(const Point &rPoint) const
ScrollBar * getVertScrollbar()
ScrollBar * getHorzScrollbar()
const PTableInputHandler & getInputHandler() const
ColPos getColAtPoint(const Point &rPoint) const
const TableControl & getAntiImpl() const
void doPaintContent(vcl::RenderContext &rRenderContext, const tools::Rectangle &_rUpdateRect)
paints the table control content which intersects with the given rectangle
virtual PTableModel getModel() const override
returns the table model
virtual bool isRowSelected(RowPos i_row) const override
determines whether a given row is selected
size_t getSelectedRowCount() const
virtual void GrabFocus() override
virtual bool EventNotify(NotifyEvent &rNEvt) override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual void dispose() override
TableControl_Impl & m_rTableControl
TableDataWindow(TableControl_Impl &_rTableControl)
virtual ~TableDataWindow() override
virtual void RequestHelp(const HelpEvent &rHEvt) override
virtual void MouseMove(const MouseEvent &rMEvt) override
Link< LinkParamNone *, void > m_aSelectHdl
static void impl_hideTipWindow()
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
Point OutputToScreenPixel(const Point &rPos) const
bool IsMouseCaptured() const
bool HandleScrollCommand(const CommandEvent &rCmd, Scrollable *pHScrl, Scrollable *pVScrl)
const AllSettings & GetSettings() const
::OutputDevice const * GetOutDev() const
Size GetOutputSizePixel() const
Point ScreenToOutputPixel(const Point &rPos) const
std::unique_ptr< sal_Int32[]> pData
sal_Int32 RowPos
a value denoting a row position within a table
std::shared_ptr< ITableModel > PTableModel
std::shared_ptr< ITableRenderer > PTableRenderer
sal_Int32 ColPos
a value denoting a column position within a table
#define ROW_COL_HEADERS
denotes the row containing the column headers