113 mxAccessible->SendTableUpdateEvent( nFirstColumn, nLastColumn, bAllRows );
119 mxAccessible->SendInsertColumnEvent( nFirstColumn, nLastColumn );
125 mxAccessible->SendRemoveColumnEvent( nFirstColumn, nLastColumn );
145 OSL_ENSURE(
IsNoRepaint(),
"ScCsvControl::EnableRepaint - invalid call" );
259 if( bHomeEnd )
switch( nCode )
276 if( bHomeEnd )
switch( nCode )
void DrawRect(const tools::Rectangle &rRect)
void SetRasterOp(RasterOp eRasterOp)
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
void Set(ScCsvCmdType eType, sal_Int32 nParam1, sal_Int32 nParam2)
void EnableRepaint()
Decreases no-repaint counter and repaints if counter reaches 0.
void Execute(ScCsvCmdType eType, sal_Int32 nParam1=CSV_POS_INVALID, sal_Int32 nParam2=CSV_POS_INVALID)
Executes a command by calling command handler.
void DisableRepaint()
Increases no-repaint counter (controls do not repaint until the last EnableRepaint()).
sal_Int32 GetFirstVisPos() const
Returns the first visible position.
static ScMoveMode GetVertDirection(sal_uInt16 nCode, bool bHomeEnd)
Returns direction code for the keys UP, DOWN, HOME, END, PAGE UP, PAGE DOWN.
bool IsNoRepaint() const
Returns true, if controls will not repaint.
static void ImplInvertRect(OutputDevice &rOutDev, const tools::Rectangle &rRect)
Inverts a rectangle in the specified output device.
sal_Int32 GetPosCount() const
Returns the number of available positions.
virtual void GetFocus() override
bool IsVisibleLine(sal_Int32 nLine) const
Returns true, if nLine is a valid and visible line index.
sal_Int32 GetMaxLineOffset() const
Returns highest possible index for first line.
sal_Int32 GetPosFromX(sal_Int32 nX) const
Returns position from output coordinate.
void AccSendSelectionEvent()
Sends a selection changed event to the accessibility object.
sal_Int32 GetLastVisLine() const
Returns index of last visible line.
bool IsValidLine(sal_Int32 nLine) const
Returns true, if nLine is a valid line index.
void InvalidateGfx()
Sets the graphic invalid (next Redraw() will not use cached graphic).
bool IsRTL() const
Returns true, if the Right-to-Left layout mode is active.
void AccSendFocusEvent(bool bFocused)
Sends a GetFocus or LoseFocus event to the accessibility object.
sal_Int32 GetCharWidth() const
Returns the width of one character column.
void AccSendTableUpdateEvent(sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn, bool bAllRows=true)
Sends a table model changed event for changed cell contents to the accessibility object.
ScCsvControl(const ScCsvLayoutData &rData)
Reference to the accessible implementation object.
sal_Int32 GetLineHeight() const
Returns the height of one line.
ScCsvCmd maCmd
External command handler.
sal_Int32 GetFirstVisLine() const
Returns index of first visible line.
virtual void LoseFocus() override
void AccSendCaretEvent()
Sends a caret changed event to the accessibility object.
sal_Int32 GetHdrWidth() const
Returns the width of the header column.
void AccSendVisibleEvent()
Sends a visible area changed event to the accessibility object.
Link< ScCsvControl &, void > maCmdHdl
void AccSendRemoveColumnEvent(sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn)
Sends a table model changed event for a removed column to the accessibility object.
sal_Int32 GetVisLineCount() const
Returns the number of visible lines (including partly visible bottom line).
sal_Int32 GetLineCount() const
Returns the number of data lines.
sal_Int32 GetX(sal_Int32 nPos) const
Returns output X coordinate of the specified position.
void AccSendInsertColumnEvent(sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn)
Sends a table model changed event for an inserted column to the accessibility object.
sal_Int32 GetLineFromY(sal_Int32 nY) const
Returns line index from output coordinate.
sal_Int32 GetHdrHeight() const
Returns the height of the header line.
rtl::Reference< ScAccessibleCsvControl > mxAccessible
Content of virtual devices valid?
const ScCsvLayoutData & mrData
Data of last command.
sal_Int32 GetLastVisPos() const
Returns the last visible position.
bool IsVisibleSplitPos(sal_Int32 nPos) const
Returns true, if nPos is an allowed AND visible split position.
sal_Int32 GetLastX() const
Returns the X position of the last pixel of the data area.
void Repaint(bool bInvalidate=false)
Repaints all controls.
sal_Int32 GetHdrX() const
Returns the start position of the header column.
sal_Int32 GetMaxPosOffset() const
Returns highest possible position for first visible character.
sal_Int32 GetFirstX() const
Returns the X position of the first pixel of the data area.
static ScMoveMode GetHorzDirection(sal_uInt16 nCode, bool bHomeEnd)
Returns direction code for the keys LEFT, RIGHT, HOME, END.
sal_Int32 GetVisPosCount() const
Returns the number of visible positions.
bool IsValidSplitPos(sal_Int32 nPos) const
Returns true, if it is allowed to set a split at nPos.
virtual ~ScCsvControl() override
sal_Int32 GetY(sal_Int32 nLine) const
Returns output Y coordinate of the specified line.
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
ScMoveMode
Specifies which element should be used to perform an action.
@ MOVE_NEXTPAGE
Previous page relative to current context.
@ MOVE_LAST
First element in current context.
@ MOVE_PREVPAGE
Successor of current element in current context.
@ MOVE_NEXT
Predecessor of current element in current context.
@ MOVE_PREV
Last element in current context.
ScCsvDiff
Flags for comparison of old and new control layout data.
ScCsvCmdType
Enumeration of possible commands to change any settings of the CSV controls.
@ CSVCMD_REPAINT
No command. [-].
const sal_Int32 CSV_POS_INVALID
Constant for an invalid ruler position.
constexpr sal_uInt16 KEY_HOME
constexpr sal_uInt16 KEY_LEFT
constexpr sal_uInt16 KEY_PAGEDOWN
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_RIGHT
constexpr sal_uInt16 KEY_DOWN
constexpr sal_uInt16 KEY_PAGEUP
constexpr sal_uInt16 KEY_END
A structure containing all layout data valid for both ruler and data grid (i.e.
ScCsvLayoutData()
true = application in RTL mode.
sal_Int32 mnPosCursor
Height of a data line.
sal_Int32 mnPosOffset
Number of positions.
sal_Int32 mnHdrWidth
Width of ruler and data grid.
ScCsvDiff GetDiff(const ScCsvLayoutData &rData) const
Returns differences to rData.
sal_Int32 mnLineOffset
Number of data lines.
sal_Int32 mnCharWidth
Width of the header column.
sal_Int32 mnWinHeight
Index of first visible line (0-based).
sal_Int32 mnHdrHeight
Height of entire data grid (incl. header).
sal_Int32 mnNoRepaint
Position of grid column cursor.
sal_Int32 mnLineCount
Pixel width of one character.
sal_Int32 mnWinWidth
Horizontal scroll offset.
sal_Int32 mnColCursor
Position of ruler cursor.
sal_Int32 mnLineHeight
Height of the header line.