30namespace oox {
class AttributeList; }
31namespace oox {
class SequenceInputStream; }
102 void convertFormula(
const css::uno::Sequence<css::sheet::ExternalLinkInfo>& rExternalLinks );
103 std::unique_ptr<ScTokenArray>
getScTokens(
const css::uno::Sequence<css::sheet::ExternalLinkInfo>& rExternalLinks );
121 bool isValid(
const css::uno::Sequence<css::sheet::ExternalLinkInfo>& rExternalLinks)
const;
Base class for defined names and external names.
const OUString & getModelName() const
Returns the original name as imported from or exported to the file.
OUString maUpModelName
Model data for this defined name.
const OUString & getUpcaseModelName() const
Returns the original name as imported from or exported to the file.
const OUString & getCalcName() const
Returns the name as used in the Calc document.
OUString maCalcName
Model name converted to uppercase ASCII.
DefinedNameBase(const WorkbookHelper &rHelper)
bool isBuiltinName() const
Returns true, if this defined name is a special builtin name.
void convertFormula(const css::uno::Sequence< css::sheet::ExternalLinkInfo > &rExternalLinks)
Converts the formula string or BIFF token array for this defined name.
void createNameObject(sal_Int32 nIndex)
Creates a defined name in the Calc document.
StreamDataSeqPtr mxFormula
Identifier for built-in defined names.
sal_Int16 mnCalcSheet
Name index used in API token array.
bool isValid(const css::uno::Sequence< css::sheet::ExternalLinkInfo > &rExternalLinks) const
sal_Int16 getLocalCalcSheet() const
Returns the 0-based sheet index for local names, or -1 for global names.
void importDefinedName(const AttributeList &rAttribs)
Sets the attributes for this defined name from the passed attribute set.
sal_Int32 mnTokenIndex
ScRangeData of the defined name.
bool isMacroFunction() const
Returns true, if this defined name is a macro function call.
bool isGlobalName() const
Returns true, if this defined name is global in the document.
virtual ~DefinedName() override
bool getAbsoluteRange(ScRange &orRange) const
Tries to resolve the defined name to an absolute cell range.
::std::unique_ptr< StreamDataSequence > StreamDataSeqPtr
RangeDataRet maScRangeData
sal_Unicode mcBuiltinId
Calc sheet index for sheet-local names.
sal_Int32 getTokenIndex() const
Returns the token index used in API token arrays (com.sun.star.sheet.FormulaToken).
void setFormula(const OUString &rFormula)
Sets the formula string from the body of the definedName element.
sal_Unicode getBuiltinId() const
Returns the built-in identifier of the defined name.
bool isVBName() const
Returns true, if this defined name is a reference to a VBA macro.
std::unique_ptr< ScTokenArray > getScTokens(const css::uno::Sequence< css::sheet::ExternalLinkInfo > &rExternalLinks)
DefinedName(const WorkbookHelper &rHelper)
DefNameTokenIdMap maTokenIdMap
Maps all defined names by sheet index and built-in identifier.
DefinedNameRef getByModelName(const OUString &rModelName, sal_Int16 nCalcSheet=-1) const
Returns a defined name by its model name.
DefNameNameMap maModelNameMap
List of all defined names in insertion order.
::std::pair< sal_Int16, sal_Unicode > BuiltinKey
DefinedNameRef getByBuiltinId(sal_Unicode cBuiltinId, sal_Int16 nCalcSheet) const
Returns a built-in defined name by its built-in identifier.
RefMap< BuiltinKey, DefinedName > DefNameBuiltinMap
DefNameBuiltinMap maBuiltinMap
Maps all defined names by sheet index and model name.
DefinedNameRef importDefinedName(const AttributeList &rAttribs)
Imports a defined name from the passed attribute set.
void finalizeImport()
Creates all defined names in the document.
RefVector< DefinedName > DefNameVector
RefMap< sal_Int32, DefinedName > DefNameTokenIdMap
DefinedNameRef getByTokenIndex(sal_Int32 nIndex) const
Returns a defined name by token index (index in XDefinedNames container).
DefinedNamesBuffer(const WorkbookHelper &rHelper)
DefinedNameRef createDefinedName()
RefMap< SheetNameKey, DefinedName > DefNameNameMap
DefinedNameRef getByIndex(sal_Int32 nIndex) const
Returns a defined name by zero-based index (order of appearance).
::std::pair< sal_Int16, OUString > SheetNameKey
Helper class to provide access to global workbook data.
std::pair< ScRangeData *, bool > RangeDataRet
const sal_Unicode BIFF_DEFNAME_AUTOCLOSE
const sal_Unicode BIFF_DEFNAME_CRITERIA
const sal_Unicode BIFF_DEFNAME_UNKNOWN
const sal_Unicode BIFF_DEFNAME_DATABASE
const sal_Unicode BIFF_DEFNAME_DATAFORM
const sal_Unicode BIFF_DEFNAME_CONSOLIDATEAREA
const sal_Unicode BIFF_DEFNAME_AUTOOPEN
std::shared_ptr< DefinedName > DefinedNameRef
const sal_Unicode BIFF_DEFNAME_SHEETTITLE
const sal_Unicode BIFF_DEFNAME_AUTODEACTIVATE
const sal_Unicode BIFF_DEFNAME_EXTRACT
const sal_Unicode BIFF_DEFNAME_RECORDER
const sal_Unicode BIFF_DEFNAME_PRINTAREA
const sal_Unicode BIFF_DEFNAME_AUTOACTIVATE
const sal_Unicode BIFF_DEFNAME_PRINTTITLES
const sal_Unicode BIFF_DEFNAME_FILTERDATABASE
bool mbMacro
Function group identifier.
bool mbVBName
True = function, false = command.
sal_Int32 mnFuncGroupId
Sheet index for local names.
bool mbFunction
True = Macro name (VBA or sheet macro).
sal_Int32 mnSheet
The formula string.
bool mbHidden
True = VBA macro, false = sheet macro.
DefinedNameModel()
True = name hidden in UI.
OUString maFormula
The original name.