LibreOffice Module sc (master) 1
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
sc::UpdatedRangeNames Class Reference

Keep track of all named expressions that have been updated during reference update. More...

#include <refupdatecontext.hxx>

Public Types

typedef std::unordered_set< sal_uInt16 > NameIndicesType
 

Public Member Functions

void setUpdatedName (SCTAB nTab, sal_uInt16 nIndex)
 
bool isNameUpdated (SCTAB nTab, sal_uInt16 nIndex) const
 
NameIndicesType getUpdatedNames (SCTAB nTab) const
 
bool isEmpty (SCTAB nTab) const
 

Private Types

typedef std::unordered_map< SCTAB, NameIndicesTypeUpdatedNamesType
 

Private Attributes

UpdatedNamesType maUpdatedNames
 

Detailed Description

Keep track of all named expressions that have been updated during reference update.

Can also be used to collect any set of named expressions / ranges.

Definition at line 32 of file refupdatecontext.hxx.

Member Typedef Documentation

◆ NameIndicesType

typedef std::unordered_set<sal_uInt16> sc::UpdatedRangeNames::NameIndicesType

Definition at line 35 of file refupdatecontext.hxx.

◆ UpdatedNamesType

typedef std::unordered_map<SCTAB, NameIndicesType> sc::UpdatedRangeNames::UpdatedNamesType
private

Definition at line 43 of file refupdatecontext.hxx.

Member Function Documentation

◆ getUpdatedNames()

UpdatedRangeNames::NameIndicesType sc::UpdatedRangeNames::getUpdatedNames ( SCTAB  nTab) const

Definition at line 53 of file refupdatecontext.cxx.

References maUpdatedNames.

Referenced by ScDocument::CopyRangeNamesToClip().

◆ isEmpty()

bool sc::UpdatedRangeNames::isEmpty ( SCTAB  nTab) const

Definition at line 61 of file refupdatecontext.cxx.

References maUpdatedNames.

Referenced by ScDocument::CopyAdjustRangeName().

◆ isNameUpdated()

bool sc::UpdatedRangeNames::isNameUpdated ( SCTAB  nTab,
sal_uInt16  nIndex 
) const

Definition at line 43 of file refupdatecontext.cxx.

References maUpdatedNames, and nIndex.

Referenced by ScDocument::FindRangeNamesReferencingSheet().

◆ setUpdatedName()

void sc::UpdatedRangeNames::setUpdatedName ( SCTAB  nTab,
sal_uInt16  nIndex 
)

Member Data Documentation

◆ maUpdatedNames

UpdatedNamesType sc::UpdatedRangeNames::maUpdatedNames
private

Definition at line 45 of file refupdatecontext.hxx.

Referenced by getUpdatedNames(), isEmpty(), isNameUpdated(), and setUpdatedName().


The documentation for this class was generated from the following files: