29struct RefUpdateContext;
33namespace vcl {
class ILibreOfficeKitNotifier; }
77 bool DoMacro(
const ScAddress& rPos,
const OUString& rInput,
80 bool DoScript(
const ScAddress& rPos,
const OUString& rInput,
83 using ScConditionEntry::operator==;
89 const OUString& rExpr1,
const OUString& rExpr2,
91 const OUString& rExprNmsp1 = OUString(),
const OUString& rExprNmsp2 = OUString(),
108 void SetInput(
const OUString& rTitle,
const OUString& rMsg );
109 void SetError(
const OUString& rTitle,
const OUString& rMsg,
112 bool GetInput( OUString& rTitle, OUString& rMsg )
const
113 { rTitle = aInputTitle; rMsg = aInputMessage;
return bShowInput; }
114 bool GetErrMsg( OUString& rTitle, OUString& rMsg,
ScValidErrorStyle& rStyle )
const;
121 void SetListType( sal_Int16 nListType ) { mnListType = nListType; }
126 bool HasSelectionList()
const;
131 bool FillSelectionList(std::vector<ScTypedStrData>& rStrings,
const ScAddress& rPos)
const;
153 bool IsDataValidCustom(
155 const ScAddress& rPos,
const CustomValidationPrivateAccess& )
const;
161 OUString& rStrResult,
double& nVal, sal_uInt32& nFormat,
bool& bIsVal)
const;
167 bool IsEmpty()
const;
168 sal_uInt32
GetKey()
const {
return nKey; }
169 void SetKey(sal_uInt32 nNew) { nKey = nNew; }
185 bool GetSelectionFromFormula(
201 bool IsDataValidTextLen( std::u16string_view rTest,
const ScAddress& rPos,
209 bool operator()( std::unique_ptr<ScValidationData>
const& lhs, std::unique_ptr<ScValidationData>
const& rhs )
const {
return (*lhs)<(*rhs); }
223 typedef ScValidationDataListDataType::iterator
iterator;
231 void InsertNew( std::unique_ptr<ScValidationData> pNew )
232 {
maData.insert(std::move(pNew)); }
ScDocument * GetDocument() const
ScValidationDataListDataType::iterator iterator
ScValidationDataListDataType maData
void UpdateDeleteTab(sc::RefUpdateDeleteTabContext &rCxt)
void UpdateReference(sc::RefUpdateContext &rCxt)
void UpdateMoveTab(sc::RefUpdateMoveTabContext &rCxt)
void InsertNew(std::unique_ptr< ScValidationData > pNew)
void UpdateInsertTab(sc::RefUpdateInsertTabContext &rCxt)
ScValidationData * GetData(sal_uInt32 nKey)
std::set< std::unique_ptr< ScValidationData >, CompareScValidationDataPtr > ScValidationDataListDataType
ScValidationDataListDataType::const_iterator const_iterator
void SetListType(sal_Int16 nListType)
ScValidationData * Clone(ScDocument *pNew) const override
sal_uInt32 GetKey() const
ScValidationMode GetDataMode() const
DECL_STATIC_LINK(ScValidationData, InstallLOKNotifierHdl, void *, vcl::ILibreOfficeKitNotifier *)
sal_Int16 GetListType() const
bool GetInput(OUString &rTitle, OUString &rMsg) const
ScValidationMode eDataMode
ScValidErrorStyle eErrorStyle
ScValidationData * Clone() const
void SetKey(sal_uInt32 nNew)
bool operator<(const ScDPCollection::DBType &left, const ScDPCollection::DBType &right)
CAUTION! The following defines must be in the same namespace as the respective type.
bool operator()(std::unique_ptr< ScValidationData > const &lhs, std::unique_ptr< ScValidationData > const &rhs) const
This is very similar to ScCellValue, except that it references the original value instead of copying ...
To test numeric data text length in IsDataValidTextLen().
CustomValidationPrivateAccess()
Context for reference update during shifting, moving or copying of cell ranges.