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