25 #include <document.hxx>
59 sal_uInt16 nMaxXclTab =
static_cast< sal_uInt16
>(
GetMaxPos().
Tab() );
83 tools::Long lclGetScZoom( sal_uInt16 nXclZoom, sal_uInt16 nDefZoom )
85 return static_cast< tools::Long >( nXclZoom ? nXclZoom : nDefZoom );
111 if ( ColorIndex >= 8 && ColorIndex <= 63 )
158 sal_uInt16 nGridColorIdx;
183 sal_uInt16 nNum, nDenom;
186 OSL_ENSURE( nDenom > 0,
"XclImpPageSettings::ReadScl - invalid denominator" );
bool mbPageMode
true = Frozen panes; false = split window.
void SetOption(ScViewOption eOpt, bool bNew)
sal_uInt16 mnDisplXclTab
Additional flags.
ScExtPanePos meActivePane
Active (focused) pane.
XclAddress maFirstXclPos
Grid color.
void ReadWindow2(XclImpStream &rStrm, bool bChart)
Reads a WINDOW2 record.
sal_uInt32 mnSplitY
Split X position, or number of frozen columns.
Bottom, or bottom-left pane.
SCTAB GetDisplScTab() const
Returns the Calc index of the displayed sheet.
void Initialize()
Initializes the object to be used for a new sheet.
ScAddress maCursor
The cursor position (column/row only).
SC_DLLPUBLIC void SetTabBgColor(SCTAB nTab, const Color &rColor)
const sal_uInt8 EXC_PANE_TOPRIGHT
Bottom-right pane.
SC_DLLPUBLIC void SetLayoutRTL(SCTAB nTab, bool bRTL, ScObjectHandling eObjectHandling=ScObjectHandling::RecalcPosMode)
ScAddress maSecondVis
Top-left visible cell in add. panes (column/row only).
constexpr::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
void Finalize()
Sets the view settings at the current sheet or the extended sheet options object. ...
bool mbShowOutline
true = Show zero value zells.
void ConvertRangeList(ScRangeList &rScRanges, const XclRangeList &rXclRanges, SCTAB nScTab, bool bWarn)
Converts the passed Excel cell range list to a Calc cell range list.
const sal_uInt16 EXC_WIN2_MIRRORED
tools::Long mnNormalZoom
Zoom in percent for normal view.
const ScExtDocSettings & GetDocSettings() const
bool mbFrozenPanes
true = Mirrored (right-to-left) sheet.
const sal_uInt16 EXC_WIN2_SHOWHEADINGS
ScDocument & GetDoc() const
Returns reference to the destination document (import) or source document (export).
ScRangeList maSelection
Selected cell ranges (columns/rows only).
void Read(XclImpStream &rStrm, bool bCol16Bit=true, sal_uInt16 nCountInStream=0)
const sal_uInt8 EXC_SHEETEXT_TABCOLOR
header id for sheetext
double mfTabBarWidth
Width of the tabbar, relative to frame window width (0.0 ... 1.0).
XclRangeList maXclSelection
Cell cursor position.
Provides functions to convert Excel cell addresses to Calc cell addresses.
const sal_uInt16 EXC_WIN2_PAGEZOOM_DEF
Default zoom for normal view.
XclImpPalette & GetPalette() const
Returns the color buffer.
bool mbSelected
Active pane (with cell cursor).
const sal_uInt8 EXC_PANE_BOTTOMRIGHT
void ReadScl(XclImpStream &rStrm)
Reads an SCL record.
XclSelectionData & CreateSelectionData(sal_uInt8 nPane)
Returns read/write access to the selection data of the specified pane.
const sal_uInt16 EXC_WIN2_DISPLAYED
bool mbShowGrid
Whether or not to display gridlines.
Contains all settings for a selection in a single pane of a sheet.
const sal_uInt16 EXC_WIN2_SELECTED
bool mbFrozenPanes
true = Frozen panes; false = Normal splits.
ScExtTabSettings & GetOrCreateTabSettings(SCTAB nTab)
bool mbDefGridColor
true = Pagebreak preview; false = Normal view.
bool mbShowFormulas
true = Default grid color.
MS Excel 5.0, MS Excel 7.0 (95)
const ScAddress & GetMaxPos() const
Returns the highest possible cell address valid in Calc and Excel (using current BIFF version)...
const sal_uInt16 EXC_WIN2_NORMALZOOM_DEF
ScExtDocOptions & GetExtDocOptions() const
Returns the extended document options.
const sal_uInt16 EXC_WIN2_PAGEBREAKMODE
SC_DLLPUBLIC void SetViewOptions(const ScViewOptions &rOpt)
XclImpDocViewSettings(const XclImpRoot &rRoot)
XclImpAddressConverter & GetAddressConverter() const
Returns the address converter.
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
sal_uInt16 mnCursorIdx
Selected cell ranges.
void ReadTabBgColor(XclImpStream &rStrm, const XclImpPalette &rPal)
Reads a SHEETEXT record (Tab Color).
const sal_uInt16 EXC_WIN1_TABBAR
void ReadWindow1(XclImpStream &rStrm)
Reads a WINDOW1 record.
bool mbSelected
true = Sheet is selected.
void ReadSelection(XclImpStream &rStrm)
Reads a SELECTION record.
Color maGridColor
Selections of all panes.
Color maGridColor
Grid color.
const sal_uInt16 EXC_WIN2_DEFGRIDCOLOR
void SetDefaults()
Sets Excel default view settings.
const sal_uInt16 EXC_WIN1_VER_SCROLLBAR
const sal_uInt16 EXC_WIN2_SHOWFORMULAS
const sal_uInt16 EXC_WIN2_SHOWZEROS
Extended settings for a sheet, used in import/export filters.
bool mbShowGrid
true = Show formulas instead of results.
Color maTabBgColor
true = Show outlines.
Right, or top-right pane.
void Set(sal_uInt16 nCol, sal_uInt32 nRow)
ScAddress CreateValidAddress(const XclAddress &rXclPos, SCTAB nScTab, bool bWarn)
Returns a valid cell address by moving it into allowed dimensions.
SCTAB GetCurrScTab() const
Returns the current Calc sheet index.
ScAddress maFreezePos
Position of frozen panes (column/row only).
SC_DLLPUBLIC const ScViewOptions & GetViewOptions() const
Color GetColor(sal_uInt16 nXclIndex) const
Returns the color for a (non-zero-based) Excel palette entry.
bool mbDisplayed
true = Sheet is selected.
std::size_t GetRecLeft()
Returns remaining data size of the whole record without record headers.
sal_uInt16 mnWinHeight
Width of the document window (twips).
XclImpTabViewSettings(const XclImpRoot &rRoot)
sal_uInt16 mnPageZoom
Zoom factor for normal view.
sal_uInt16 mnFlags
Height of the document window (twips).
const sal_uInt16 EXC_WIN1_HOR_SCROLLBAR
bool mbShowHeadings
true = Show cell grid.
sal_uInt16 mnWinWidth
Y position of the document window (twips).
sal_uInt16 mnTabBarWidth
Number of selected sheets.
const sal_uInt8 EXC_PANE_BOTTOMLEFT
Right, or top-right pane.
void Ignore(std::size_t nBytes)
Seeks forward inside the current record.
bool IsDefaultTabBgColor() const
Tab Color default = (COL_AUTO )
void Finalize()
Sets the view settings at the document.
XclBiff GetBiff() const
Returns the current BIFF version of the importer/exporter.
void ReadPane(XclImpStream &rStrm)
Reads a PANE record.
const sal_uInt8 EXC_PANE_TOPLEFT
Bottom, or bottom-left pane.
sal_uInt8 mnActivePane
Zoom factor for current view.
sal_uInt16 mnXclSelectCnt
First visible sheet.
const ScAddress & GetScMaxPos() const
Returns the highest possible cell address in a Calc document.
Stores the default colors for the current BIFF version and the contents of a PALETTE record...
const sal_uInt16 EXC_WIN2_FROZEN
Point maSplitPos
Position of split.
XclImpDocViewSettings & GetDocViewSettings() const
Returns the view settings of the entire document.
sal_uInt16 mnSplitX
First visible cell in additional panes.
bool mbShowZeros
true = Show column/row headings.
const sal_uInt16 EXC_WIN2_SHOWGRID
This class is used to import record oriented streams.
ScAddress maFirstVis
Top-left visible cell (column/row only).
Single, top, left, or top-left pane.
Access to global data from other classes.
const sal_uInt16 EXC_WIN2_SHOWOUTLINE
sal_uInt16 mnFirstVisXclTab
Displayed (active) sheet.
const XclSelectionData * GetSelectionData(sal_uInt8 nPane) const
Returns the selection data, if available, otherwise 0.
sal_uInt16 mnCurrentZoom
Zoom factor for pagebreak preview.
tools::Long mnPageZoom
Zoom in percent for pagebreak preview.
sal_uInt16 mnWinY
X position of the document window (twips).
sal_uInt16 mnNormalZoom
Split Y position, or number of frozen rows.
bool mbPageMode
true = Pagebreak mode; false = Normal view mode.
XclAddress maSecondXclPos
First visible cell.
SCTAB mnDisplTab
Index of displayed sheet.
bool mbMirrored
true = Sheet is displayed (active).