68 explicit Func_Select(
bool bSelect ) : mbSelect( bSelect ) {}
70 { rState.
Select( mbSelect ); }
77 , mpTableBox(pTableBox)
80 , mxPopup(
std::move(xPopup))
81 , mpColorConfig( nullptr )
89 , mbMTSelecting( false )
111 Size aInitialSize(10, 10);
113 aInitialSize =
Size(-1, 150);
126 OSL_ENSURE(
mpColorConfig,
"the object hasn't been initialized properly");
136 OSL_PRECOND(!
mpColorConfig,
"the object has already been initialized");
160 sal_Int32 nDigits = 2;
168 nDigits = std::max( nDigits, sal_Int32( 3 ) );
227 sal_Int32 nNewPos =
nPos;
246 OSL_PRECOND(
mpColorConfig,
"the object hasn't been initialized properly");
285 ::GetDefaultFonts( aLatinItem, aAsianItem, aComplexItem );
290 aDefSet.
Put( aAsianItem );
291 aDefSet.
Put( aComplexItem );
300 std::unique_ptr<SfxPoolItem> pNewItem(rWeightItem.
Clone());
302 aDefSet.
Put( *pNewItem );
304 aDefSet.
Put( *pNewItem );
306 pNewItem.reset(rItalicItem.
Clone());
308 aDefSet.
Put( *pNewItem );
310 aDefSet.
Put( *pNewItem );
312 pNewItem.reset(rLangItem.
Clone());
314 aDefSet.
Put( *pNewItem );
316 aDefSet.
Put( *pNewItem );
402 for( sal_uInt32 nIx = 0; nIx <
nCount; ++nIx )
550 OSL_ENSURE( !rTypeNames.empty(),
"ScCsvGrid::SetTypeNames - vector is empty" );
556 for (sal_uInt32 nIx = 0; nIx <
nCount; ++nIx)
564 sal_uInt32 nTypeIx =
static_cast< sal_uInt32
>(
GetColumnType( nColIndex ) );
573 return pExtTypes[ ((0 <= nIntType) && (nIntType < nExtTypeCount)) ? nIntType : 0 ];
581 for( sal_uInt32 nColIx = 0; nColIx <
nCount; ++nColIx )
585 aDataVec.emplace_back(
586 static_cast< sal_Int32
>( nColIx + 1 ),
597 for( sal_uInt32 nColIx = 0; nColIx <
nCount; ++nColIx )
630 if (!sItemId.isEmpty())
649 for( sal_uInt32 nColIx = nFromIndex + 1; nColIx < nColCount; ++nColIx )
680 else if( nColIndex1 > nColIndex2 )
688 for( sal_uInt32 nColIx = nColIndex1; nColIx <= nColIndex2; ++nColIx )
713 sal_Int32 nMinPos = std::max( nPosBeg -
CSV_SCROLL_DIST, sal_Int32( 0 ) );
776 sal_Int32 nLine,
const OUString& rTextLine,
777 const OUString& rSepChars,
sal_Unicode cTextSep,
bool bMergeSep,
bool bRemoveSpace )
782 while(
maTexts.size() <= nLineIx )
784 std::vector<OUString>& rStrVec =
maTexts[ nLineIx ];
791 sal_uInt32 nColIx = 0;
796 bool bIsQuoted =
false;
797 bool bOverflowCell =
false;
799 cTextSep, pSepChars, bMergeSep, bIsQuoted, bOverflowCell, bRemoveSpace );
811 for( sal_uInt32 nSplitIx =
GetColumnCount() - 1; nSplitIx > nColIx; --nSplitIx )
828 rStrVec.push_back( aCellText );
845 while(
maTexts.size() <= nLineIx )
848 std::vector<OUString>& rStrVec =
maTexts[ nLineIx ];
851 sal_Int32 nStrLen = rTextLine.getLength();
852 sal_Int32 nStrIx = 0;
853 for( sal_uInt32 nColIx = 0; (nColIx < nColCount) && (nStrIx < nStrLen); ++nColIx )
856 sal_Int32 nLastIx = nStrIx;
858 sal_Int32 nLen = std::min(
CSV_MAXSTRLEN, nLastIx - nStrIx );
859 rStrVec.push_back( rTextLine.copy( nStrIx, nLen ) );
860 nStrIx = nStrIx + nLen;
870 if( nLineIx >=
maTexts.size() )
return OUString();
872 const std::vector<OUString>& rStrVec =
maTexts[ nLineIx ];
873 if( nColIndex >= rStrVec.size() )
return OUString();
875 return rStrVec[ nColIndex ];
962 sal_uInt16 nCode = rKCode.
GetCode();
963 bool bShift = rKCode.
IsShift();
964 bool bMod1 = rKCode.
IsMod1();
996 else if( !bShift && bMod1 )
1000 else if( (
KEY_1 <= nCode) && (nCode <=
KEY_9) )
1014 bool bConsumed =
true;
1017 case CommandEventId::ContextMenu:
1041 case CommandEventId::Wheel:
1047 if(
pData && (
pData->GetMode() == CommandWheelMode::SCROLL) && !
pData->IsHorz() )
1130 OUString aPlainText = rText.replaceAll(
"\t",
" " );
1131 aPlainText = aPlainText.replaceAll(
"\n",
" " );
1136 sal_Int32 nCharIx = 0;
1137 while( (nCharIx = rText.indexOf(
'\t', nCharIx )) != -1 )
1150 while( (nCharIx = rText.indexOf(
'\n', nCharIx )) != -1 )
1203 sal_Int32 nStrPos = nFirstVisPos -
GetColumnPos( nColIndex );
1204 sal_Int32 nStrLen = nLastVisPos - nFirstVisPos + 1;
1205 sal_Int32 nStrX =
GetX( nFirstVisPos );
1206 for(
size_t nLine = 0; nLine < nLineCount; ++nLine )
1208 std::vector<OUString>& rStrVec =
maTexts[ nLine ];
1209 if( (nColIndex < rStrVec.size()) && (rStrVec[ nColIndex ].getLength() > nStrPos) )
1211 const OUString& rStr = rStrVec[ nColIndex ];
1212 OUString aText = rStr.copy( nStrPos, ::std::min( nStrLen, rStr.getLength() - nStrPos) );
1240 for( sal_Int32 nLine =
GetFirstVisLine(); nLine <= nLastLine; ++nLine )
1242 OUString aText( OUString::number( nLine + 1 ) );
1338 sal_uInt32 nFirstColIx, nLastColIx;
1339 if(
nPos < nOldPos )
1365 for( sal_uInt32 nColIx = nFirstColIx; nColIx <= nLastColIx; ++nColIx )
1400 sal_Int32 nX2 = std::min(
GetColumnX( nColIndex + 1 ) - sal_Int32( 1 ),
GetLastX() );
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
CommandEventId GetCommand() const
const CommandWheelData * GetWheelData() const
const Point & GetMousePosPixel() const
bool IsMouseEvent() const
static void SetFontInfoInItemSet(SfxItemSet &rItemSet, const vcl::Font &rFont)
const vcl::KeyCode & GetKeyCode() const
sal_uInt16 GetModifier() const
const Point & GetPosPixel() const
const vcl::Font & GetFont() const
void SetFont(const vcl::Font &rNewFont)
void DrawRect(const tools::Rectangle &rRect)
void DrawLine(const Point &rStartPt, const Point &rEndPt)
tools::Long GetTextWidth(const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::text::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
void SetTextColor(const Color &rColor)
SAL_DLLPRIVATE void DrawOutDev(const Point &, const Size &, const Point &, const Size &, const Printer &)=delete
tools::Long GetTextHeight() const
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
void DrawText(const Point &rStartPt, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, std::vector< tools::Rectangle > *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pLayoutCache=nullptr)
constexpr tools::Long Y() const
constexpr tools::Long X() const
Accessible class representing the CSV grid control.
void SetColumnInfo(const ScCsvExpDataVec &rDataVec)
Base class for the CSV ruler and the data grid control.
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.
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.
void AccSendSelectionEvent()
Sends a selection changed event to the accessibility object.
sal_Int32 GetLastVisLine() const
Returns index of last visible line.
sal_Int32 GetRulerCursorPos() const
Returns the ruler cursor position.
sal_Int32 GetGridCursorPos() const
Returns the data grid cursor position (not column 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.
sal_Int32 GetCharWidth() const
Returns the width of one character column.
void ValidateGfx()
Sets the graphic valid (next Redraw() will use cached graphic).
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.
sal_Int32 GetLineHeight() const
Returns the height of one line.
sal_Int32 GetFirstVisLine() const
Returns index of first visible line.
virtual void LoseFocus() override
bool IsValidGfx() const
Returns true, if cached graphic is valid.
sal_Int32 GetHdrWidth() const
Returns the width of the header column.
void AccSendVisibleEvent()
Sends a visible area changed event to the accessibility object.
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 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 GetHdrHeight() const
Returns the height of the header line.
rtl::Reference< ScAccessibleCsvControl > mxAccessible
Content of virtual devices valid?
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.
const ScCsvLayoutData & GetLayoutData() const
Returns a reference to the current layout data.
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.
sal_Int32 GetY(sal_Int32 nLine) const
Returns output Y coordinate of the specified line.
virtual bool KeyInput(const KeyEvent &rKEvt) override
ScCsvGrid(const ScCsvLayoutData &rData, std::unique_ptr< weld::Menu > xPopup, ScCsvTableBox *pTableBox)
Mouse tracking mode: true = select, false = deselect.
void MoveSplit(sal_Int32 nPos, sal_Int32 nNewPos)
Inserts a new or removes an existing split.
sal_uInt32 GetLastVisColumn() const
Returns the index of the last visible column.
sal_Int32 GetNoScrollCol(sal_Int32 nPos) const
Finds a column position nearest to nPos which does not cause scrolling the visible area.
Color maGridPBColor
Table grid color.
SAL_DLLPRIVATE void ImplDrawColumnHeader(OutputDevice &rOutDev, sal_uInt32 nColIndex, Color aFillColor)
Draws the header of the specified column to the specified output device.
void SetSelColumnType(sal_Int32 nType)
Changes the data type of all selected columns.
sal_Int32 mnFirstImpLine
2D-vector for cell texts.
void FillColumnDataSep(ScAsciiOptions &rOptions) const
Fills the options object with column data for separators mode.
sal_Int32 GetColumnPos(sal_uInt32 nColIndex) const
Returns start position of the column with the specified index.
SAL_DLLPRIVATE sal_Int32 GetColumnType(sal_uInt32 nColIndex) const
Returns the data type of the specified column.
SAL_DLLPRIVATE void MoveCursor(sal_uInt32 nColIndex)
Moves column cursor to a new position.
vcl::Font maMonoFont
Font for column and row headers.
bool mbTracking
Current column of mouse tracking.
SAL_DLLPRIVATE void ExecutePopup(const Point &rPos)
Executes the data type popup menu.
SAL_DLLPRIVATE void ImplDrawFirstLineSep(bool bSet)
Draws the "first imported line" separator to maBackgrDev (or erases, if bSet is false).
void SelectAll(bool bSelect=true)
Selects or deselects all columns.
void RemoveAllSplits()
Removes all splits.
SAL_DLLPRIVATE void ImplDrawColumnSelection(sal_uInt32 nColIndex)
Draws the column with index nColIndex with its selection state to maGridDev.
virtual void GetFocus() override
Color maHeaderGridColor
Background color for headers.
void RemoveSplit(sal_Int32 nPos)
Removes a split.
SAL_DLLPRIVATE void InitSizeData()
Initializes all data dependent from the control's size.
Size maWinSize
Monospace font for data cells.
sal_Int32 GetColumnWidth(sal_uInt32 nColIndex) const
Returns the character width of the column with the specified index.
sal_uInt32 GetColumnFromPos(sal_Int32 nPos) const
Returns column index from position.
sal_Int32 GetColumnX(sal_uInt32 nColIndex) const
Returns X coordinate of the specified column.
bool IsValidColumn(sal_uInt32 nColIndex) const
Returns true, if nColIndex points to an existing column.
virtual void ConfigurationChanged(::utl::ConfigurationBroadcaster *, ConfigurationHints) override
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
SAL_DLLPRIVATE void ImplDrawBackgrDev()
Draws all columns and the row headers column to maBackgrDev.
SAL_DLLPRIVATE void InitFonts()
Initializes all font settings.
void FillColumnDataFix(ScAsciiOptions &rOptions) const
Fills the options object with column data for fixed width mode.
SAL_DLLPRIVATE void ImplDrawCellText(const Point &rPos, const OUString &rText)
Draws the text at the specified position to maBackgrDev.
vcl::Font maHeaderFont
For drawing cell texts.
ScCsvSplits maSplits
Paper size for edit engine.
sal_uInt32 mnMTCurrCol
Index of most recently selected column.
SAL_DLLPRIVATE void ImplDrawHorzScrolled(sal_Int32 nOldPos)
Optimized drawing: Scrolls horizontally and redraws only missing parts.
bool IsVisibleColumn(sal_uInt32 nColIndex) const
Returns true, if column with index nColIndex is (at least partly) visible.
SAL_DLLPRIVATE void ImplClearSplits()
Clears the split array and re-inserts boundary splits.
void SetSplits(const ScCsvSplits &rSplits)
Removes all splits and inserts the splits from rSplits.
void ApplyLayout(const ScCsvLayoutData &rOldData)
Apply current layout data to the grid control.
sal_uInt32 GetFocusColumn() const
Returns index of the focused column.
SAL_DLLPRIVATE void InitColors()
Reads colors from system settings.
SAL_DLLPRIVATE void ImplDrawColumn(sal_uInt32 nColIndex)
Redraws the entire column (background and selection).
sal_uInt32 GetNextSelected(sal_uInt32 nFromIndex) const
Returns index of the first selected column really after nFromIndex.
SAL_DLLPRIVATE void ImplDrawRowHeaders()
Draws the row headers column to maBackgrDev.
std::unique_ptr< weld::Menu > mxPopup
Data grid with selection and cursor.
void SelectRange(sal_uInt32 nColIndex1, sal_uInt32 nColIndex2, bool bSelect=true)
Selects or deselects the specified column range.
void ImplRedraw(vcl::RenderContext &rRenderContext)
Redraws the entire data grid.
void Select(sal_uInt32 nColIndex, bool bSelect=true)
Selects or deselects the specified column.
SAL_DLLPRIVATE bool ImplRemoveSplit(sal_Int32 nPos)
Removes a split and adjusts column data.
void UpdateLayoutData()
Updates layout data dependent from the control's state.
SAL_DLLPRIVATE void ImplSetColumnClipRegion(OutputDevice &rOutDev, sal_uInt32 nColIndex)
Sets a clip region in the specified output device for the specified column.
SAL_DLLPRIVATE void ScrollVertRel(ScMoveMode eDir)
Scrolls data grid vertically.
EditEngine * GetEditEngine()
Returns a pointer to the used edit engine.
void ToggleSelect(sal_uInt32 nColIndex)
Toggles selection of the specified column.
Color maAppBackColor
Grid color for "first imported line" delimiter.
SAL_DLLPRIVATE bool ImplInsertSplit(sal_Int32 nPos)
Inserts a split and adjusts column data.
std::vector< OUString > maTypeNames
State of each column.
virtual tools::Rectangle GetFocusRect() override
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
Creates a new accessible object.
ScCsvColStateVec maColStates
Vector with split positions.
virtual void LoseFocus() override
void InsertSplit(sal_Int32 nPos)
Inserts a split.
sal_Int32 GetWidth() const
Returns the width of the control.
SAL_DLLPRIVATE void ImplDrawColumnBackgr(sal_uInt32 nColIndex)
Draws the column with index nColIndex to maBackgrDev.
::svtools::ColorConfig * mpColorConfig
Popup menu for column types.
Color maSelectColor
Text color for headers.
void UpdateOffsetX()
Updates X coordinate of first visible position dependent from line numbers.
SAL_DLLPRIVATE void ImplDrawGridDev()
Draws all columns with selection and cursor to maGridDev.
VclPtr< VirtualDevice > mpGridDev
Grid background, headers, cell texts.
virtual bool Command(const CommandEvent &rCEvt) override
SAL_DLLPRIVATE void ImplInvertCursor(sal_Int32 nPos)
Inverts the cursor bar at the specified position in maGridDev.
void ImplSetTextLineSep(sal_Int32 nLine, const OUString &rTextLine, const OUString &rSepChars, sal_Unicode cTextSep, bool bMergeSep, bool bRemoveSpace=false)
Fills all cells of a line with the passed text (separators mode).
sal_uInt32 GetFirstSelected() const
Returns index of the first selected column.
std::unique_ptr< ScEditEngineDefaulter > mpEditEngine
Header color of selected columns.
Color maBackColor
Application color configuration.
void SetColumnStates(ScCsvColStateVec &&rColStates)
Sets all column states to the values in the passed vector.
sal_uInt32 mnRecentSelCol
First imported line (0-based).
sal_uInt32 GetColumnCount() const
Returns the number of columns.
SAL_DLLPRIVATE void SetColumnType(sal_uInt32 nColIndex, sal_Int32 nColType)
Sets the data type of the specified column.
SAL_DLLPRIVATE void MoveCursorRel(ScMoveMode eDir)
Moves column cursor to the given direction.
Color maHeaderTextColor
Grid color for headers.
virtual ~ScCsvGrid() override
bool IsSelected(sal_uInt32 nColIndex) const
Returns true, if the specified column is selected.
OUString GetCellText(sal_uInt32 nColIndex, sal_Int32 nLine) const
Returns the text of the specified cell.
VclPtr< VirtualDevice > mpBackgrDev
Grid Parent.
Color maGridColor
Cell background color.
bool mbMTSelecting
True if Mouse tracking.
Color maTextColor
Background color for unused area.
SAL_DLLPRIVATE void DoSelectAction(sal_uInt32 nColIndex, sal_uInt16 nModifier)
Executes selection action for a specific column.
Size maEdEngSize
Size of the control.
OUString GetColumnTypeName(sal_uInt32 nColIndex) const
Returns the UI type name of the specified column.
virtual void Resize() override
virtual void StyleUpdated() override
Color maHeaderBackColor
Text color for data area.
sal_Int32 GetSelColumnType() const
Returns the data type of the selected columns.
virtual bool MouseMove(const MouseEvent &rMEvt) override
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
sal_uInt32 GetFirstVisColumn() const
Returns the index of the first visible column.
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &) override
void SetTypeNames(std::vector< OUString > &&rTypeNames)
Sets new UI data type names.
std::vector< std::vector< OUString > > maTexts
UI names of data types.
void ImplSetTextLineFix(sal_Int32 nLine, const OUString &rTextLine)
Fills all cells of a line with the passed text (fixed width mode).
sal_Int32 GetHeight() const
Returns the height of the control.
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
void Init()
Finishes initialization.
void SetFirstImportedLine(sal_Int32 nLine)
Sets the number of the first imported line (for visual feedback).
ScCsvTableBox * mpTableBox
SAL_DLLPRIVATE void ImplClearSelection()
Clears the entire selection without notify.
sal_uInt32 GetColumnFromX(sal_Int32 nX) const
Returns column index from output coordinate.
A vector of column splits that supports inserting, removing and moving splits.
bool Remove(sal_Int32 nPos)
Removes a split by position.
sal_uInt32 Count() const
Returns the number of splits.
bool Insert(sal_Int32 nPos)
The split container.
void RemoveRange(sal_Int32 nPosStart, sal_Int32 nPosEnd)
Removes a range of splits in the given position range.
void Clear()
Removes all elements from the vector.
sal_uInt32 UpperBound(sal_Int32 nPos) const
Returns index of the last split less than or equal to nPos.
The control in the CSV import dialog that contains a ruler and a data grid to visualize and modify th...
SAL_DLLPRIVATE void InitControls()
Initializes the children controls (pos/size, scroll bars, ...).
static sal_Int32 CountVisualWidth(const OUString &rStr, sal_Int32 &nIdx, sal_Int32 nMaxWidth)
ScImportExport::CountVisualWidth Count the width of string visually ( in multiple of western characte...
static const sal_Unicode * ScanNextFieldFromString(const sal_Unicode *p, OUString &rField, sal_Unicode cStr, const sal_Unicode *pSeps, bool bMergeSeps, bool &rbIsQuoted, bool &rbOverflowCell, bool bRemoveSpace)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void SetWhich(sal_uInt16 nId)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const Color & GetDarkShadowColor() const
const Color & GetActiveColor() const
const Color & GetFaceColor() const
const vcl::Font & GetAppFont() const
const Color & GetButtonTextColor() const
reference_type * get() const
void SetFontSize(const Size &)
const Size & GetFontSize() const
sal_uInt16 GetGroup() const
sal_uInt16 GetCode() const
virtual OutputDevice & get_ref_device()=0
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
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.
const sal_Int32 CSV_TYPE_DEFAULT
Default column data type.
::std::vector< ScCsvExpData > ScCsvExpDataVec
const sal_Int32 CSV_SCROLL_DIST
Minimum distance to border for auto scroll.
const sal_Int32 CSV_TYPE_NOSELECTION
No column selected.
const sal_uInt8 SC_COL_TEXT
const sal_Int32 CSV_MAXSTRLEN
Maximum length of a cell string.
ScCsvDiff
Flags for comparison of old and new control layout data.
const sal_Int32 CSV_MAXCOLCOUNT
Maximum count of columns.
const sal_uInt8 SC_COL_MDY
const sal_Int32 CSV_TYPE_MULTI
Multi selection with different types.
const sal_uInt8 SC_COL_YMD
const sal_Int32 CSV_MINCOLWIDTH
Minimum character count for a column in separators mode.
const sal_uInt8 SC_COL_STANDARD
const sal_uInt8 SC_COL_DMY
const sal_uInt8 SC_COL_ENGLISH
const sal_uInt16 CSV_HDR_TRANSPARENCY
Transparency for header color of selected columns.
@ CSVCMD_SETCOLUMNTYPE
Update cell texts with current split settings. [-].
@ CSVCMD_SETHDRWIDTH
Change position offset (scroll pos). [position].
@ CSVCMD_SETLINEHEIGHT
Change height of top header line. [height in pixel].
@ CSVCMD_MOVEGRIDCURSOR
Move ruler cursor to new position. [position].
@ CSVCMD_SETPOSCOUNT
Repaint all controls. [-].
@ CSVCMD_EXPORTCOLUMNTYPE
Change data type of selected columns. [column type].
@ CSVCMD_UPDATECELLTEXTS
Recalculate splits and cell texts. [-].
@ CSVCMD_SETPOSOFFSET
Change position/column count. [character count].
@ CSVCMD_SETCHARWIDTH
Change width of the header column. [width in pixel].
@ CSVCMD_MAKEPOSVISIBLE
Move data grid cursor to new column. [position].
@ CSVCMD_SETHDRHEIGHT
Change first visible line. [line index].
@ CSVCMD_SETLINEOFFSET
Change number of data lines. [line count].
const sal_uInt8 SC_COL_SKIP
static sal_uInt8 lcl_GetExtColumnType(sal_Int32 nIntType)
::std::vector< ScCsvColState > ScCsvColStateVec
const sal_uInt32 CSV_COLUMN_INVALID
const sal_Int32 CSV_POS_INVALID
Constant for an invalid ruler position.
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CTL(EE_CHAR_START+16)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CTL(EE_CHAR_START+22)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CTL(EE_CHAR_START+20)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CJK(EE_CHAR_START+21)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CJK(EE_CHAR_START+15)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CJK(EE_CHAR_START+23)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CTL(EE_CHAR_START+24)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CJK(EE_CHAR_START+19)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
constexpr sal_uInt16 KEY_MOD1
constexpr sal_uInt16 KEY_1
constexpr sal_uInt16 KEY_9
constexpr sal_uInt16 KEY_A
constexpr sal_uInt16 KEY_SPACE
constexpr sal_uInt16 KEY_SHIFT
constexpr sal_uInt16 KEYGROUP_CURSOR
#define LANGUAGE_ENGLISH_US
#define SAL_N_ELEMENTS(arr)
std::unique_ptr< sal_Int32[]> pData
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
void SetPointFont(OutputDevice &rDevice, const vcl::Font &rFont)
This struct contains the state of one table column.
Exported data of a column (data used in the dialog).
sal_uInt8 mnType
Index of a column.
A structure containing all layout data valid for both ruler and data grid (i.e.
sal_Int32 mnPosCursor
Height of a data line.
sal_Int32 mnPosOffset
Number of positions.
ScCsvDiff GetDiff(const ScCsvLayoutData &rData) const
Returns differences to rData.