LibreOffice Module sc (master)  1
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
address.hxx File Reference
#include <rtl/ustrbuf.hxx>
#include <rtl/strbuf.hxx>
#include <array>
#include <limits>
#include <ostream>
#include "scdllapi.h"
#include "types.hxx"
#include <formula/grammar.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <o3tl/underlyingenumvalue.hxx>
Include dependency graph for address.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  com::sun::star::uno::Sequence< class >
 
struct  o3tl::typed_flags< ScRefFlags >
 
class  ScAddress
 
struct  ScAddress::Details
 
struct  ScAddress::ExternalInfo
 
struct  ScAddressHashFunctor
 
class  ScRange
 
class  ScRangePair
 
class  ScRefAddress
 

Namespaces

 com::sun::star
 
 com::sun::star::sheet
 
 com::sun::star::uno
 
 o3tl
 

Macros

#define BCA_BRDCST_ALWAYS   ScAddress( 0, SCROW_MAX, 0 )
 
#define BCA_LISTEN_ALWAYS   ScRange( BCA_BRDCST_ALWAYS, BCA_BRDCST_ALWAYS )
 

Typedefs

typedef size_t SCSIZE
 size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to read/write from/to streams. More...
 

Enumerations

enum  ScRefFlags : sal_uInt16 {
  ScRefFlags::ZERO = 0x0000,
  ScRefFlags::COL_ABS = 0x0001,
  ScRefFlags::ROW_ABS = 0x0002,
  ScRefFlags::TAB_ABS = 0x0004,
  ScRefFlags::TAB_3D = 0x0008,
  ScRefFlags::COL2_ABS = 0x0010,
  ScRefFlags::ROW2_ABS = 0x0020,
  ScRefFlags::TAB2_ABS = 0x0040,
  ScRefFlags::TAB2_3D = 0x0080,
  ScRefFlags::ROW_VALID = 0x0100,
  ScRefFlags::COL_VALID = 0x0200,
  ScRefFlags::TAB_VALID = 0x0400,
  ScRefFlags::BITS,
  ScRefFlags::FORCE_DOC = 0x0800,
  ScRefFlags::ROW2_VALID = 0x1000,
  ScRefFlags::COL2_VALID = 0x2000,
  ScRefFlags::TAB2_VALID = 0x4000,
  ScRefFlags::VALID = 0x8000,
  ScRefFlags::TAB_ABS_3D = TAB_ABS | TAB_3D,
  ScRefFlags::ADDR_ABS = VALID | COL_ABS | ROW_ABS | TAB_ABS,
  ScRefFlags::RANGE_ABS = ADDR_ABS | COL2_ABS | ROW2_ABS | TAB2_ABS,
  ScRefFlags::ADDR_ABS_3D = ADDR_ABS | TAB_3D,
  ScRefFlags::RANGE_ABS_3D = RANGE_ABS | TAB_3D
}
 

Functions

bool ValidCol (SCCOL nCol, SCCOL nMaxCol)
 
bool ValidRow (SCROW nRow, SCROW nMaxRow)
 
bool ValidTab (SCTAB nTab)
 
bool ValidTab (SCTAB nTab, SCTAB nMaxTab)
 
bool ValidColRow (SCCOL nCol, SCROW nRow, SCCOL nMaxCol, SCROW nMaxRow)
 
bool ValidColRowTab (SCCOL nCol, SCROW nRow, SCTAB nTab, SCCOL nMaxCol, SCROW nMaxRow)
 
SCCOL SanitizeCol (SCCOL nCol, SCCOL nMaxCol)
 
SCROW SanitizeRow (SCROW nRow, SCROW nMaxRow)
 
SCTAB SanitizeTab (SCTAB nTab)
 
void applyStartToEndFlags (ScRefFlags &target, const ScRefFlags source)
 
void applyStartToEndFlags (ScRefFlags &target)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const ScAddress &rAddress)
 
bool ValidAddress (const ScAddress &rAddress, SCCOL nMaxCol=MAXCOL, SCROW nMaxRow=MAXROW)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const ScRange &rRange)
 
bool ValidRange (const ScRange &rRange, SCCOL nMaxCol=MAXCOL, SCROW nMaxRow=MAXROW)
 
template<typename T >
void PutInOrder (T &nStart, T &nEnd)
 
bool ConvertSingleRef (const ScDocument &pDocument, const OUString &rRefString, SCTAB nDefTab, ScRefAddress &rRefAddress, const ScAddress::Details &rDetails, ScAddress::ExternalInfo *pExtInfo=nullptr)
 
bool ConvertDoubleRef (const ScDocument &rDocument, const OUString &rRefString, SCTAB nDefTab, ScRefAddress &rStartRefAddress, ScRefAddress &rEndRefAddress, const ScAddress::Details &rDetails, ScAddress::ExternalInfo *pExtInfo=nullptr)
 
SC_DLLPUBLIC void ScColToAlpha (OUStringBuffer &rBuffer, SCCOL nCol)
 append alpha representation of column to buffer More...
 
void ScColToAlpha (OUString &rStr, SCCOL nCol)
 
OUString ScColToAlpha (SCCOL nCol)
 
bool AlphaToCol (const ScDocument &rDoc, SCCOL &rCol, const OUString &rStr)
 get column number of A..IV... string More...
 

Variables

const SCROW SCROW_MAX = ::std::numeric_limits<SCROW>::max()
 
const SCCOL SCCOL_MAX = ::std::numeric_limits<SCCOL>::max()
 
const SCTAB SCTAB_MAX = ::std::numeric_limits<SCTAB>::max()
 
const SCCOLROW SCCOLROW_MAX = ::std::numeric_limits<SCCOLROW>::max()
 
const SCSIZE SCSIZE_MAX = ::std::numeric_limits<SCSIZE>::max()
 
const SCROW MAXROWCOUNT = 1048576
 
const SCCOL MAXCOLCOUNT = 1024
 
const SCCOL INITIALCOLCOUNT = 64
 
const SCTAB MAXTABCOUNT = 10000
 limiting to 10000 for now, problem with 32 bit builds for now More...
 
const SCROW MAXROW = MAXROWCOUNT - 1
 
const SCCOL MAXCOL = MAXCOLCOUNT - 1
 
const SCTAB MAXTAB = MAXTABCOUNT - 1
 
const SCCOLROW MAXCOLROW = MAXROW
 
const SCROW MAXROW_JUMBO = 16 * 1000 * 1000 - 1
 
const SCCOL MAXCOL_JUMBO = 16384 - 1
 
const SCROW MAXTILEDROW = 500000
 
const SCTAB MAXINITTAB = 1024
 
const SCTAB MININITTAB = 1
 
const SCTAB SC_TAB_APPEND = SCTAB_MAX
 
const SCTAB TABLEID_DOC = SCTAB_MAX
 
const SCROW SCROWS32K = 32000
 
const SCCOL SCCOL_REPEAT_NONE = SCCOL_MAX
 
const SCROW SCROW_REPEAT_NONE = SCROW_MAX
 
const SCCOL SC_TABSTART_NONE = SCCOL_MAX
 
const SCROW MAXROW_30 = 8191
 

Macro Definition Documentation

#define BCA_BRDCST_ALWAYS   ScAddress( 0, SCROW_MAX, 0 )
#define BCA_LISTEN_ALWAYS   ScRange( BCA_BRDCST_ALWAYS, BCA_BRDCST_ALWAYS )

Typedef Documentation

typedef size_t SCSIZE

size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to read/write from/to streams.

Definition at line 45 of file address.hxx.

Enumeration Type Documentation

enum ScRefFlags : sal_uInt16
strong
Enumerator
ZERO 
COL_ABS 
ROW_ABS 
TAB_ABS 
TAB_3D 
COL2_ABS 
ROW2_ABS 
TAB2_ABS 
TAB2_3D 
ROW_VALID 
COL_VALID 
TAB_VALID 
BITS 
FORCE_DOC 
ROW2_VALID 
COL2_VALID 
TAB2_VALID 
VALID 
TAB_ABS_3D 
ADDR_ABS 
RANGE_ABS 
ADDR_ABS_3D 
RANGE_ABS_3D 

Definition at line 145 of file address.hxx.

Function Documentation

bool AlphaToCol ( const ScDocument rDoc,
SCCOL rCol,
const OUString &  rStr 
)
void applyStartToEndFlags ( ScRefFlags target,
const ScRefFlags  source 
)
inline
void applyStartToEndFlags ( ScRefFlags target)
inline

Definition at line 188 of file address.hxx.

References o3tl::underlyingEnumValue().

bool ConvertDoubleRef ( const ScDocument rDocument,
const OUString &  rRefString,
SCTAB  nDefTab,
ScRefAddress rStartRefAddress,
ScRefAddress rEndRefAddress,
const ScAddress::Details rDetails,
ScAddress::ExternalInfo pExtInfo = nullptr 
)
bool ConvertSingleRef ( const ScDocument pDocument,
const OUString &  rRefString,
SCTAB  nDefTab,
ScRefAddress rRefAddress,
const ScAddress::Details rDetails,
ScAddress::ExternalInfo pExtInfo = nullptr 
)
template<typename charT , typename traits >
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
const ScAddress rAddress 
)
inline

Definition at line 374 of file address.hxx.

References stream.

template<typename charT , typename traits >
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
const ScRange rRange 
)
inline

Definition at line 676 of file address.hxx.

References stream.

template<typename T >
void PutInOrder ( T &  nStart,
T &  nEnd 
)
inline

Definition at line 954 of file address.hxx.

Referenced by ScConsData::AddData(), ScTable::ApplyBlockFrame(), ScTable::ApplyPatternArea(), ScTable::ApplyStyleArea(), ScDocument::AutoFormat(), ScDocument::CanInsertCol(), ScDocument::CanInsertRow(), sc::FormulaGroupAreaListener::collectFormulaCells(), ScDocument::CopyTabToClip(), ScTable::CreateQueryParam(), ScTabViewShell::CreateRefDialogController(), ScDocument::DeleteArea(), ScDocument::DeleteAreaTab(), ScDocument::DeleteCol(), ScDocument::DeleteRow(), ScGridWindow::Draw(), ScOutputData::DrawOneChange(), ScOutputData::DrawRefMark(), ScDocument::ExtendMerge(), ScDocument::ExtendOverlapped(), ScDocument::Fill(), ScTable::FillAuto(), ScTable::FillFormulaVertical(), ScOutputData::FillReferenceMark(), ScTable::FillSeries(), ScDocument::GetAutoFormatData(), ScDocument::GetEmptyLinesInBlock(), ScMultiSel::GetNextMarked(), ScGridWindow::GetRectsAnyFor(), ScInputHandler::GetReferenceMark(), ScMarkData::GetSelectionCover(), ScTpUserLists::Init(), ScCellIterator::init(), ScDocument::InsertCol(), ScDocument::InsertMatrixFormula(), ScDocument::InsertRow(), ScDocument::InsertTableOp(), lcl_AddRanges(), ScTable::MergeBlockFrame(), ScDataTableView::MouseButtonUp(), ScTabView::PaintArea(), ScHorizontalValueIterator::ScHorizontalValueIterator(), ScUpdateRect::ScUpdateRect(), ScHeaderControl::SetMark(), ScMarkData::SetMultiMarkArea(), ScUpdateRect::SetNew(), ScTabView::ShowRefTip(), ScTable::ShrinkToUsedDataArea(), ScDocument::UndoToDocument(), ScTabViewShell::UpdateInputHandler(), ScInputHandler::UpdateLokReferenceMarks(), and ScTabView::UpdateRef().

SCCOL SanitizeCol ( SCCOL  nCol,
SCCOL  nMaxCol 
)
inline

Definition at line 127 of file address.hxx.

References assert(), MAXCOL, and MAXCOL_JUMBO.

Referenced by ScSheetLimits::SanitizeCol(), and ScDocument::SanitizeCol().

SCROW SanitizeRow ( SCROW  nRow,
SCROW  nMaxRow 
)
inline

Definition at line 133 of file address.hxx.

References assert(), MAXROW, and MAXROW_JUMBO.

Referenced by ScSheetLimits::SanitizeRow(), and ScDocument::SanitizeRow().

SCTAB SanitizeTab ( SCTAB  nTab)
inline

Definition at line 139 of file address.hxx.

References MAXTAB.

Referenced by ImportLotus::NamedSheet(), OP_ApplyPatternArea123(), PutFormString(), and SetFormat().

SC_DLLPUBLIC void ScColToAlpha ( OUStringBuffer &  rBuffer,
SCCOL  nCol 
)
void ScColToAlpha ( OUString &  rStr,
SCCOL  nCol 
)
inline

Definition at line 976 of file address.hxx.

References aBuf, and ScColToAlpha().

OUString ScColToAlpha ( SCCOL  nCol)
inline

Definition at line 983 of file address.hxx.

References aBuf, and ScColToAlpha().

bool ValidAddress ( const ScAddress rAddress,
SCCOL  nMaxCol = MAXCOL,
SCROW  nMaxRow = MAXROW 
)
inline
bool ValidCol ( SCCOL  nCol,
SCCOL  nMaxCol 
)
inline
bool ValidColRow ( SCCOL  nCol,
SCROW  nRow,
SCCOL  nMaxCol,
SCROW  nMaxRow 
)
inline
bool ValidColRowTab ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
SCCOL  nMaxCol,
SCROW  nMaxRow 
)
inline
bool ValidRange ( const ScRange rRange,
SCCOL  nMaxCol = MAXCOL,
SCROW  nMaxRow = MAXROW 
)
inline
bool ValidRow ( SCROW  nRow,
SCROW  nMaxRow 
)
inline
bool ValidTab ( SCTAB  nTab)
inline

Definition at line 105 of file address.hxx.

References MAXTAB.

Referenced by ScDocument::AddCondFormat(), ScDocument::AddPrintRange(), ScDocumentImport::appendSheet(), ScDocument::AppendTabOnLoad(), ScDocument::ApplyAttr(), ScDocument::ApplyFlagsTab(), ScDocument::ApplyPattern(), ScDocument::ApplyPatternAreaTab(), ScDocument::ApplyStyle(), ScDocument::ApplyStyleAreaTab(), ScDocument::ClearPrintRanges(), ScDocument::ColFiltered(), ScDocument::ColHidden(), ScDocument::CompareDocument(), ExcelToSc::Convert(), ExcelToSc8::Convert(), ScDocument::CopyScenario(), ScDocument::CopyTab(), ScDocument::CopyTabProtection(), ScDocument::CopyToDocument(), ScDocument::CountNonFilteredRows(), ScDocument::CountVisibleRows(), ScDocument::DeleteAreaTab(), ScDocument::DeleteConditionalFormat(), ScDocument::DeleteSelectionTab(), ScDocument::DeleteTab(), ScDocument::DeleteTabs(), ScViewData::DeriveLOKFreezeIfNeeded(), ScDocument::DoAutoOutline(), ScDocument::DoSubTotals(), ScDocument::EndListeningCell(), ScDocShell::Execute(), ScXMLExport::ExportCellTextAutoStyles(), ScDocument::ExtendHidden(), ScDocument::ExtendMerge(), ScDocument::ExtendOverlapped(), ScDocument::ExtendPrintArea(), ScModelObj::FillRenderMarkData(), ScDocument::FillTab(), ScDocument::FillTabMarked(), ScDocument::FindAreaPos(), ScDocument::FindMaxRotCol(), ScRangeListTabs::First(), ScCellIterator::first(), ScDocument::FirstNonFilteredRow(), ScDocument::FirstVisibleRow(), ExcelToSc::GetAbsRefs(), ExcelToSc8::GetAbsRefs(), ScDocument::GetAllColBreaks(), ScDocument::GetAllRowBreaks(), ScDocument::GetAnonymousDBData(), ScDocument::GetAttr(), ScDocument::GetAutoFormatData(), ScDocument::GetCellArea(), ScDocument::GetCellType(), ScDocument::GetCodeName(), ScDocument::GetColFlags(), ScDocument::GetColOffset(), ScDocument::GetColWidth(), ScDocument::GetCommonWidth(), ScDocument::GetCondFormList(), ScDocument::GetCopyTabName(), ScViewData::GetCurXForTab(), ScViewData::GetCurYForTab(), ScDocument::GetDataArea(), ScDocument::GetDataAreaSubrange(), ScDocument::GetDataEntries(), ScDocument::GetDataStart(), ScDocument::GetEmptyLinesInBlock(), ScDocument::GetFilterEntries(), ScDocument::GetFilterEntriesArea(), ScDocument::GetFilterSelCount(), ScDocument::GetFormula(), ScDocument::GetFormulaHash(), ScDocument::GetFormulaVectorState(), ScDocument::GetHashCode(), ScDocument::GetHiddenRowCount(), ScDocument::GetInputString(), ScDocument::GetLastChangedCol(), ScDocument::GetLastChangedRow(), ScDocument::GetLastFlaggedRow(), ScDocument::GetLinkDoc(), ScDocument::GetLinkFlt(), ScDocument::GetLinkMode(), ScDocument::GetLinkOpt(), ScDocument::GetLinkRefreshDelay(), ScDocument::GetLinkTab(), ScViewData::GetLOKHeightHelper(), ScViewData::GetLOKWidthHelper(), ScDocument::GetMaxNumberStringLen(), ScDocument::GetMaxStringLen(), ScDocument::GetMMRect(), ScDocument::GetMostUsedPattern(), ScDocument::GetName(), ScDocument::GetNeededSize(), ScDocument::GetNextDifferentChangedCol(), ScDocument::GetNextDifferentChangedRow(), ScDocument::GetNextMarkedCell(), ScDocument::GetNextPos(), ScDocument::GetNextSpellingCell(), ScDocument::GetNote(), ScDocument::GetNumberFormat(), ScDocument::GetOptimalColWidth(), ScDocument::GetOriginalHeight(), ScDocument::GetOriginalWidth(), ScDocument::GetOutlineTable(), ScDocument::GetPageSize(), ScDocument::GetPageStyle(), ScDocument::GetPatternCount(), ScViewData::GetPosFromPixel(), ScViewData::GetPosX(), ScViewData::GetPosY(), ScDocument::GetPrintArea(), ScDocument::GetPrintAreaHor(), ScDocument::GetPrintAreaVer(), ScDocument::GetPrintRange(), ScDocument::GetPrintRangeCount(), ScDocument::GetRangeName(), ScDocument::GetRepeatColRange(), ScDocument::GetRepeatRowRange(), ScDocument::GetRowBreakData(), ScDocument::GetRowBreakIterator(), ScDocument::GetRowFlags(), ScDocument::GetRowHeight(), ScDocument::GetRowOffset(), ScDocument::GetScaledRowHeight(), ScDocument::GetScenarioData(), ScDocument::GetScenarioFlags(), ScDocument::GetScenarioRanges(), ScDocument::GetScriptType(), ScViewData::GetScrPos(), ScDocument::GetSheetEvents(), ScDocument::GetStyle(), ScDocument::GetTabBgColor(), ScDocument::GetTableArea(), ScDocument::GetTabProtection(), ScDocument::GetTextWidth(), ScDocument::GetUpperCellString(), ScDocument::HasCalcNotification(), ScDocument::HasColBreak(), ScDocument::HasColHeader(), ScDocument::HasData(), ScDocument::HasFilteredRows(), ScDocument::HasHiddenRows(), ScDocument::HasManualBreaks(), ScDocument::HasRowBreak(), ScDocument::HasRowHeader(), ScDocument::HasScenarioRange(), ScDocument::HasStringData(), ScDocument::HasTable(), ScDocument::HasValueData(), ScDocument::IdleCalcTextWidth(), ScCellIterator::init(), ScDocument::InsertTab(), ScDocument::InsertTabs(), ScDocument::InvalidatePageBreaks(), ScDocument::IsActiveScenario(), ScDocument::IsBlockEditable(), ScDocument::IsBlockEmpty(), ScTable::IsColRowTabValid(), ScDocument::IsDefaultTabBgColor(), ScDocument::IsLayoutRTL(), ScDocument::IsLinked(), ScDocument::IsManualRowHeight(), ScDocument::IsPendingRowHeights(), ScDocument::IsPrintEntireSheet(), ScDocument::IsScenario(), ScDocument::IsStreamValid(), ScDocument::IsTabProtected(), ScDocument::IsVisible(), ScDocument::LastNonFilteredRow(), ScDocument::LastVisibleRow(), ScDocument::LimitChartArea(), ScDocument::LimitRangeToAvailableSheets(), ScDocument::LockTable(), ScDocument::MakeTable(), ScDocument::MarkScenario(), ScPreview::MouseButtonUp(), ScDocument::MoveTab(), ScDrawView::Notify(), OP_SheetName123(), ScDocShell::PageStyleModified(), ScDocument::PageStyleModified(), ScDocument::Query(), ScDocument::RemoveColBreak(), ScDocument::RemoveFlagsTab(), ScDocument::RemoveManualBreaks(), ScDocument::RemoveRowBreak(), ScDocument::RemoveSubTotals(), ScDocument::RenameTab(), ScDocument::ReservePatternCount(), ScDocument::RowFiltered(), ScDocument::RowHidden(), ScAttrRectIterator::ScAttrRectIterator(), ScDocAttrIterator::ScDocAttrIterator(), ScHorizontalValueIterator::ScHorizontalValueIterator(), ScValueIterator::ScValueIterator(), ScDocument::SearchAndReplace(), sc::ColumnSpanSet::set(), ScDocument::SetActiveScenario(), ScSingleRefData::SetAddress(), ScDocument::SetAnonymousDBData(), ScDocument::SetCalcNotification(), ScDocument::SetCodeName(), ScDocument::SetColBreak(), ScDocument::SetColHidden(), ScDocument::SetColWidth(), ScDocument::SetColWidthOnly(), ScDocument::SetCondFormList(), ScViewData::SetCurXForTab(), ScViewData::SetCurYForTab(), ScDocument::SetDrawPageSize(), ScDocument::SetError(), ScDocument::SetLayoutRTL(), ScDocument::SetLink(), ScViewData::SetLOKSheetFreezeIndex(), ScDocument::SetManualHeight(), ScDocument::SetOutlineTable(), ScDocument::SetPageSize(), ScDocument::SetPageStyle(), ScDocument::SetPattern(), ScDocument::SetPendingRowHeights(), ScDocument::SetPrintEntireSheet(), ScDocument::SetRangeName(), ScDocument::SetRepeatArea(), ScDocument::SetRepeatColRange(), ScDocument::SetRepeatRowRange(), ScDocument::SetRowBreak(), ScDocument::SetRowFiltered(), ScDocument::SetRowFlags(), ScDocument::SetRowHeight(), ScDocument::SetRowHeightOnly(), ScDocument::SetRowHeightRange(), ScDocument::SetRowHidden(), ScDocument::SetScenario(), ScDocument::SetScenarioData(), ScDocument::SetScriptType(), ScDocument::SetSheetEvents(), ScDocument::SetStreamValid(), ScDocument::SetTabBgColor(), ScDocument::SetTabNameOnLoad(), ScTabView::SetTabNo(), ScViewData::SetTabNo(), ScDocument::SetTabProtection(), ScDocument::SetVisible(), ScDocument::ShowCol(), ScDocument::ShowRow(), ScDocument::ShowRows(), ScDocument::ShrinkToDataArea(), ScDocument::ShrinkToUsedDataArea(), ScDocument::Solver(), ScDocument::Sort(), ScDocument::StartListeningCell(), ScDocument::StripHidden(), ScDocument::TableExists(), ScDocument::TestCopyScenario(), ScDocument::TestRemoveSubTotals(), ScSingleRefData::toAbs(), ScDocument::TransferTab(), ScDocument::UndoToDocument(), ScDocument::UnlockTable(), ScDocRowHeightUpdater::update(), ScDocRowHeightUpdater::updateAll(), ScViewData::UpdateFixX(), ScViewData::UpdateFixY(), ScDocument::UpdateOutlineCol(), ScDocument::UpdateOutlineRow(), ScDocument::UpdatePageBreaks(), ScDocShell::UseScenario(), ValidAddress(), and ValidColRowTab().

bool ValidTab ( SCTAB  nTab,
SCTAB  nMaxTab 
)
inline

Definition at line 110 of file address.hxx.

Variable Documentation

const SCCOL INITIALCOLCOUNT = 64

Definition at line 65 of file address.hxx.

const SCCOL MAXCOL = MAXCOLCOUNT - 1
const SCCOL MAXCOL_JUMBO = 16384 - 1

Definition at line 74 of file address.hxx.

Referenced by CreateSheetLimits(), SanitizeCol(), and ValidCol().

const SCCOL MAXCOLCOUNT = 1024
const SCCOLROW MAXCOLROW = MAXROW

Definition at line 72 of file address.hxx.

const SCTAB MAXINITTAB = 1024

Definition at line 80 of file address.hxx.

Referenced by ScTpDefaultsOptions::CheckNumSheets().

const SCROW MAXROW = MAXROWCOUNT - 1
const SCROW MAXROW_30 = 8191

Definition at line 91 of file address.hxx.

Referenced by ImportExcel::TableOp(), and ScViewData::WriteUserData().

const SCROW MAXROW_JUMBO = 16 * 1000 * 1000 - 1

Definition at line 73 of file address.hxx.

Referenced by CreateSheetLimits(), SanitizeRow(), ValidColRow(), ValidColRowTab(), and ValidRow().

const SCROW MAXROWCOUNT = 1048576

Definition at line 63 of file address.hxx.

Referenced by ScOrcusSheet::get_sheet_size(), and GetElementsMax().

const SCTAB MAXTAB = MAXTABCOUNT - 1

Definition at line 71 of file address.hxx.

Referenced by ScLabelRangesObj::addNew(), ScRangeListTabs::Append(), ScChangeTrack::AppendContentsIfInRefDoc(), ExcScenario::Apply(), ScDocument::CompareDocument(), ScChangeTrack::ConfigurationChanged(), ScDocument::CopyBlockFromClip(), ScViewData::CopyTab(), ScDocument::CopyTab(), ScChart2DataProvider::createDataSource(), ScXMLBodyContext::createFastChildContext(), ScDocument::CreateValidTabName(), ScDocFunc::DeleteCells(), ScViewFunc::DeleteMulti(), ScDocument::DeleteTab(), ScDocument::DeleteTabs(), ScUndoModifyStyle::DoChange(), ScUndoMoveTab::DoChange(), ScUndoImportTab::DoChange(), ScUndoFillTable::DoChange(), ScCellShell::Execute(), ScTabViewShell::ExecuteTable(), ExcTable::FillAsTableBinary(), ExcTable::FillAsTableXml(), ScTabViewShell::GetStateTable(), ScDocument::HasNotes(), ScViewFunc::HideTable(), IMPL_LINK_NOARG(), ScViewFunc::ImportTables(), ScCellIterator::init(), ScInsertTableDlg::Init_Impl(), ScDocFunc::InsertCells(), ScDetectiveFunc::InsertSuccLevel(), ScDocument::InsertTab(), ScViewFunc::InsertTableLink(), ScDocument::InsertTabs(), ScDocument::InvalidateTextWidth(), ScRangeUtil::IsAbsArea(), ScRangeUtil::IsAbsPos(), ScDocumentImportImpl::isValid(), ScDocDefaultsObj::ItemsChanged(), lcl_InvalidateReference(), ScDocShell::LoadStyles(), ScDocShell::LoadStylesArgs(), ScBigAddress::MakeAddress(), ScDBFunc::MakePivotTable(), ScLabelRangeObj::Modify_Impl(), ScDBDocFunc::ModifyAllDBData(), ScDocument::ModifyStyleSheet(), ScAddress::Move(), ScViewFunc::MoveTable(), ScDocShell::PageStyleModified(), ScDocShell::PostPaintExtras(), ScDocShell::PostPaintGridAll(), ScUndoCopyTab::Redo(), ScAreaLink::Refresh(), ScTableLink::Refresh(), ScDocShell::ReloadTabLinks(), ScLabelRangesObj::removeByIndex(), ScStyleFamilyObj::removeByName(), ScViewFunc::RemoveStyleSheetInUse(), SanitizeTab(), ScHorizontalValueIterator::ScHorizontalValueIterator(), ScSingleRefData::SetAddress(), ScStyleObj::setAllPropertiesToDefault(), ScDocFunc::SetLayoutRTL(), ScXMLChangeTrackingImportHelper::SetNewCell(), ScStyleSheet::SetParent(), ScStyleObj::setParentStyle(), ScDocShell::SetPrinter(), ScStyleObj::setPropertyValue_Impl(), ScDocFunc::SetTableVisible(), ScPivotLayoutDialog::SetupDestination(), ScDocShell::SetVisAreaOrSize(), ScViewFunc::ShowTable(), ScSingleRefData::TabValid(), ScUndoDeleteTab::Undo(), ScUndoCopyTab::Undo(), ScUndoMakeScenario::Undo(), ScUndoReplace::Undo(), ScDocument::UndoToDocument(), ScTable::UpdateDeleteTab(), ScTable::UpdateInsertTab(), ScTable::UpdateMoveTab(), ScViewFunc::UpdateStyleSheetInUse(), ScDocument::UpdateTranspose(), ScDocShell::UseScenario(), and ValidTab().

const SCTAB MAXTABCOUNT = 10000

limiting to 10000 for now, problem with 32 bit builds for now

Definition at line 67 of file address.hxx.

Referenced by XclImpPivotCache::ReadPivotCacheStream().

const SCROW MAXTILEDROW = 500000
const SCTAB MININITTAB = 1

Definition at line 81 of file address.hxx.

Referenced by ScTpDefaultsOptions::CheckNumSheets().

const SCTAB SC_TAB_APPEND = SCTAB_MAX
const SCCOL SC_TABSTART_NONE = SCCOL_MAX
const SCCOL SCCOL_MAX = ::std::numeric_limits<SCCOL>::max()
const SCCOL SCCOL_REPEAT_NONE = SCCOL_MAX

Definition at line 87 of file address.hxx.

Referenced by ScPrintFunc::InitParam(), and ScTable::UpdatePageBreaks().

const SCCOLROW SCCOLROW_MAX = ::std::numeric_limits<SCCOLROW>::max()

Definition at line 59 of file address.hxx.

const SCROW SCROW_MAX = ::std::numeric_limits<SCROW>::max()
const SCROW SCROW_REPEAT_NONE = SCROW_MAX

Definition at line 88 of file address.hxx.

Referenced by ScPrintFunc::InitParam(), and ScTable::UpdatePageBreaks().

const SCROW SCROWS32K = 32000

Definition at line 86 of file address.hxx.

const SCSIZE SCSIZE_MAX = ::std::numeric_limits<SCSIZE>::max()
const SCTAB SCTAB_MAX = ::std::numeric_limits<SCTAB>::max()
const SCTAB TABLEID_DOC = SCTAB_MAX