26 std::unique_ptr<weld::TreeIter> xCurrentEntry(
m_xTreeView->make_iterator());
33 std::vector<int> aRows =
m_xTreeView->get_selected_rows();
34 std::sort(aRows.begin(), aRows.end());
35 for (
auto it = aRows.rbegin(); it != aRows.rend(); ++it)
46 for (
int i = 0, nEntryCount =
m_xTreeView->n_children();
i < nEntryCount; ++
i)
57 const std::map<OUString, ScRangeName>& rRangeMap,
59 : m_xTreeView(
std::move(xTreeView))
60 , maGlobalString(
ScResId(STR_GLOBAL_SCOPE))
61 , m_RangeMap(rRangeMap)
66 auto nColWidth =
m_xTreeView->get_size_request().Width() / 7;
67 std::vector<int> aWidths{ o3tl::narrowing<int>(nColWidth * 2),
68 o3tl::narrowing<int>(nColWidth * 3) };
72 m_xTreeView->set_selection_mode(SelectionMode::Multiple);
79 CheckForFormulaString();
106 OUString aFormulaString =
pData->GetSymbol(
maPos);
153 for (
const auto& rEntry : rLocalRangeName)
157 aLine.
aName = rEntry.second->GetName();
167 std::vector<ScRangeNameLine> aSelectedEntries;
171 aSelectedEntries.push_back(aLine);
174 return aSelectedEntries;
static SC_DLLPUBLIC const CharClass & getCharClass()
void addEntry(const ScRangeNameLine &rLine, bool bSetCurEntry)
void CheckForFormulaString()
ScRangeManagerTable(std::unique_ptr< weld::TreeView >, const std::map< OUString, ScRangeName > &rTabRangeNames, const ScAddress &rPos)
const std::map< OUString, ScRangeName > & m_RangeMap
void GetCurrentLine(ScRangeNameLine &rLine)
void SetEntry(const ScRangeNameLine &rLine)
void GetLine(ScRangeNameLine &aLine, const weld::TreeIter &rEntry)
void DeleteSelectedEntries()
bool IsMultiSelection() const
std::unique_ptr< weld::TreeView > m_xTreeView
std::map< OUString, bool > maCalculatedFormulaEntries
const ScRangeData * findRangeData(const ScRangeNameLine &rLine)
std::vector< ScRangeNameLine > GetSelectedEntries()
bool UpdatesBlocked() const
SC_DLLPUBLIC ScRangeData * findByUpperName(const OUString &rName)
constexpr OUStringLiteral STR_GLOBAL_RANGE_NAME
#define LINK(Instance, Class, Member)
std::unique_ptr< sal_Int32[]> pData
IMPL_LINK_NOARG(ScRangeManagerTable, VisRowsScrolledHdl, weld::TreeView &, void)
OUString ScResId(TranslateId aId)