50 std::unique_ptr<weld::ScrolledWindow>
mxScroll;
76 void SetSeparatorsMode();
78 void SetFixedWidthMode();
84 SAL_DLLPRIVATE
void InitControls();
88 SAL_DLLPRIVATE
void InitHScrollBar();
90 SAL_DLLPRIVATE
void InitVScrollBar();
94 {
maData.mnPosOffset = std::clamp(
nPos, sal_Int32(0), mxGrid->GetMaxPosOffset() ); }
97 {
maData.mnLineOffset = std::clamp( nLine, sal_Int32(0), mxGrid->GetMaxLineOffset() ); }
99 SAL_DLLPRIVATE
void MakePosVisible( sal_Int32 nPos );
105 const OUString* pTextLines,
const OUString& rSepChars,
106 sal_Unicode cTextSep,
bool bMergeSep,
bool bRemoveSpace );
Base class for the CSV ruler and the data grid control.
A data grid control for the CSV import dialog.
A ruler control for the CSV import dialog.
The control in the CSV import dialog that contains a ruler and a data grid to visualize and modify th...
SAL_DLLPRIVATE void ImplSetLineOffset(sal_Int32 nLine)
Calculates and sets valid line offset nearest to nLine.
Idle maEndScrollIdle
Handler for exporting the column type.
std::unique_ptr< weld::CustomWeld > mxGridWeld
Connect the ruler to its drawingarea.
DECL_DLLPRIVATE_LINK(VScrollHdl, weld::ScrolledWindow &, void)
std::unique_ptr< weld::CustomWeld > mxRulerWeld
Scrolled Window.
sal_Int32 GetSelColumnType() const
Returns the data type of the selected columns.
Link< ScCsvTableBox &, void > maUpdateTextHdl
connect the grid to its drawingarea
bool mbFixedMode
Cached total width for fixed width mode.
sal_Int32 mnFixedWidth
Column states in separators mode.
DECL_DLLPRIVATE_LINK(CsvCmdHdl, ScCsvControl &, void)
SAL_DLLPRIVATE void ImplSetPosOffset(sal_Int32 nPos)
Calculates and sets valid position offset nearest to nPos.
ScCsvColStateVec maFixColStates
Called when horizontal scrolling has ended.
std::unique_ptr< ScCsvRuler > mxRuler
Current layout data of the controls.
ScCsvColStateVec maSepColStates
Column states in fixed width mode.
DECL_DLLPRIVATE_LINK(ScrollEndHdl, Timer *, void)
std::unique_ptr< ScCsvGrid > mxGrid
The ruler for fixed width mode.
DECL_DLLPRIVATE_LINK(HScrollHdl, weld::ScrolledWindow &, void)
void SetColTypeHdl(const Link< ScCsvTableBox &, void > &rHdl)
Sets a new handler for "column selection changed" events.
void SetUpdateTextHdl(const Link< ScCsvTableBox &, void > &rHdl)
Sets a new handler for "update cell texts" requests.
Link< ScCsvTableBox &, void > maColTypeHdl
Updates all cell texts.
std::unique_ptr< weld::ScrolledWindow > mxScroll
Calc-like data table for fixed width mode.
::std::vector< ScCsvColState > ScCsvColStateVec
std::vector< sal_Int8, boost::noinit_adaptor< std::allocator< sal_Int8 > > > maData
A structure containing all layout data valid for both ruler and data grid (i.e.