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