Kaydet (Commit) 3df141b2 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods

Change-Id: Ie90e53583484ee4f378ec92634adf3be7cd9ecbb
Reviewed-on: https://gerrit.libreoffice.org/70650
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 7811a0e5
......@@ -479,28 +479,11 @@ void TableTreeListBox::UpdateTableList( const Reference< XConnection >& _rxConne
m_xTreeView->make_sorted();
}
bool OTableTreeListBox::isWildcardChecked(SvTreeListEntry* _pEntry)
{
if (_pEntry)
{
OBoldListboxString* pTextItem = static_cast<OBoldListboxString*>(_pEntry->GetFirstItem(SvLBoxItemType::String));
if (pTextItem)
return pTextItem->isEmphasized();
}
return false;
}
bool TableTreeListBox::isWildcardChecked(weld::TreeIter& rEntry)
{
return m_xTreeView->get_text_emphasis(rEntry, m_nTextColumn);
}
void OTableTreeListBox::checkWildcard(SvTreeListEntry* _pEntry)
{
SetCheckButtonState(_pEntry, SvButtonState::Checked);
checkedButton_noBroadcast(_pEntry);
}
void TableTreeListBox::checkWildcard(weld::TreeIter& rEntry)
{
if (!m_bShowToggles)
......
......@@ -46,9 +46,6 @@ public:
virtual void CheckButtonHdl() override;
void CheckButtons(); // make the button states consistent (bottom-up)
/// the handler given is called whenever the check state of one or more items changed
void SetCheckHandler(const Link<void*,void>& _rHdl) { m_aCheckButtonHandler = _rHdl; }
protected:
virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& _rRect) override;
virtual void checkedButton_noBroadcast(SvTreeListEntry* _pEntry);
......
......@@ -48,13 +48,9 @@ class OTableTreeListBox final : public OMarkableTreeListBox
public:
OTableTreeListBox(vcl::Window* pParent, WinBits nWinStyle);
void init() { m_bVirtualRoot = true; }
typedef std::pair< OUString, bool > TTableViewName;
typedef std::vector< TTableViewName > TNames;
void suppressEmptyFolders() { m_bNoEmptyFolders = true; }
/** call when HiContrast change.
*/
void notifyHiContrastChanged();
......@@ -109,18 +105,6 @@ public:
SvTreeListEntry* getAllObjectsEntry() const;
/** does a wildcard check of the given entry
<p>There are two different 'checked' states: If the user checks all children of an entry, this is different
from checking the entry itself. The second is called 'wildcard' checking, 'cause in the resulting
table filter it's represented by a wildcard.</p>
*/
void checkWildcard(SvTreeListEntry* _pEntry);
/** determine if the given entry is 'wildcard checked'
@see checkWildcard
*/
static bool isWildcardChecked(SvTreeListEntry* pEntry);
private:
virtual void InitEntry(SvTreeListEntry* _pEntry, const OUString& _rString, const Image& _rCollapsedBitmap, const Image& _rExpandedBitmap, SvLBoxButtonKind _eButtonKind) override;
......@@ -184,10 +168,6 @@ public:
void SuppressEmptyFolders() { m_bNoEmptyFolders = true; }
void DisableCheckButtons();
/** determines whether the given entry denotes a tables folder
*/
static bool isFolderEntry( const SvTreeListEntry* _pEntry );
/** fill the table list with the tables belonging to the connection described by the parameters
@param _rxConnection
the connection, which must support the service com.sun.star.sdb.Connection
......@@ -211,27 +191,6 @@ public:
const css::uno::Sequence< OUString>& _rViews
);
/** returns a NamedDatabaseObject record which describes the given entry
*/
css::sdb::application::NamedDatabaseObject
describeObject( SvTreeListEntry* _pEntry );
/** to be used if a foreign instance added a table
*/
SvTreeListEntry* addedTable( const OUString& _rName );
/** to be used if a foreign instance removed a table
*/
void removedTable( const OUString& _rName );
/** returns the fully qualified name of a table entry
@param _pEntry
the entry whose name is to be obtained. Must not denote a folder entry.
*/
OUString getQualifiedTableName( SvTreeListEntry* _pEntry ) const;
SvTreeListEntry* getEntryByQualifiedName( const OUString& _rName );
std::unique_ptr<weld::TreeIter> getAllObjectsEntry() const;
/** does a wildcard check of the given entry
......
......@@ -43,7 +43,6 @@ class Timer;
class SFX2_DLLPUBLIC SfxModalDialog: public ModalDialog
{
OUString aExtraData;
const SfxItemSet* pInputSet;
std::unique_ptr<SfxItemSet> pOutputSet;
private:
......@@ -58,16 +57,10 @@ protected:
SfxModalDialog(vcl::Window *pParent, const OUString& rID, const OUString& rUIXMLDescription);
OUString& GetExtraData() { return aExtraData; }
void CreateOutputItemSet( const SfxItemSet& rInput );
void SetInputSet( const SfxItemSet* pInSet ) { pInputSet = pInSet; }
SfxItemSet* GetOutputSetImpl() { return pOutputSet.get(); }
public:
virtual ~SfxModalDialog() override;
virtual void dispose() override;
const SfxItemSet* GetOutputItemSet() const { return pOutputSet.get(); }
const SfxItemSet* GetInputItemSet() const { return pInputSet; }
};
// class SfxModelessDialog --------------------------------------------------
......@@ -195,13 +188,6 @@ public:
// class SfxNoLayoutSingleTabDialog --------------------------------------------------
struct SingleTabDlgImpl
{
VclPtr<SfxTabPage> m_pSfxPage;
SingleTabDlgImpl();
};
typedef const sal_uInt16* (*GetTabPageRanges)(); // provides international Which values
class SFX2_DLLPUBLIC SfxOkDialogController : public SfxDialogController
......
......@@ -127,16 +127,10 @@ public:
CreateTabPage pCreateFunc, // != 0
sal_uInt16 nPos = TAB_APPEND);
void RemoveTabPage( sal_uInt16 nId );
void SetCurPageId(sal_uInt16 nId)
{
m_nAppPageId = nId;
}
void SetCurPageId(const OString& rName)
{
m_nAppPageId = m_pTabCtrl->GetPageId(rName);
}
sal_uInt16 GetCurPageId() const
{
return m_pTabCtrl->GetCurPageId();
......@@ -158,7 +152,6 @@ public:
// may provide local slots converted by Map
const sal_uInt16* GetInputRanges( const SfxItemPool& );
void SetInputSet( const SfxItemSet* pInSet );
const SfxItemSet* GetOutputItemSet() const { return m_pOutSet.get(); }
short Execute() override;
......
......@@ -492,7 +492,6 @@ public:
void CopyINetBookmark( const INetBookmark& rBkmk );
void CopyString( const OUString& rStr );
void CopyString( SotClipboardFormatId nFmt, const OUString& rStr );
void CopyAny( SotClipboardFormatId nFmt, const css::uno::Any& rAny );
void CopyByteString( SotClipboardFormatId nFormatId, const OString& rStr );
void CopyAnyData( SotClipboardFormatId nFormatId, const sal_Char* pData, sal_uLong nLen );
......
......@@ -40,8 +40,6 @@ public:
VendorSettings();
boost::optional<VersionInfo> getVersionInformation(const OUString & sVendor) const;
::std::vector< OUString> getSupportedVendors() const;
};
/* The class offers functions to retrieve verified bootstrap parameters.
......
......@@ -210,32 +210,6 @@ boost::optional<VersionInfo> VendorSettings::getVersionInformation(const OUStrin
return aVersionInfo;
}
std::vector<OUString> VendorSettings::getSupportedVendors() const
{
std::vector<OUString> vecVendors;
//get the nodeset for the vendor elements
jfw::CXPathObjectPtr result;
result = xmlXPathEvalExpression(
reinterpret_cast<xmlChar const *>("/jf:javaSelection/jf:vendorInfos/jf:vendor"),
m_xmlPathContextVendorSettings);
if (!xmlXPathNodeSetIsEmpty(result->nodesetval))
{
//get the values of the vendor elements + name attribute
xmlNode* cur = result->nodesetval->nodeTab[0];
while (cur != nullptr)
{
//between vendor elements are also text elements
if (cur->type == XML_ELEMENT_NODE)
{
jfw::CXmlCharPtr sAttrVendor(xmlGetProp(cur, reinterpret_cast<xmlChar const *>("name")));
vecVendors.push_back(sAttrVendor);
}
cur = cur->next;
}
}
return vecVendors;
}
::std::vector<OString> BootParams::getVMParameters()
{
::std::vector<OString> vecParams;
......
......@@ -2200,7 +2200,6 @@ public:
void Broadcast( const ScHint& rHint );
void BroadcastCells( const ScRange& rRange, SfxHintId nHint, bool bBroadcastSingleBroadcasters = true );
void BroadcastRefMoved( const sc::RefMovedHint& rHint );
/// only area, no cell broadcast
void AreaBroadcast( const ScHint& rHint );
......@@ -2218,8 +2217,6 @@ public:
void EndListeningCell( sc::EndListeningContext& rCxt, const ScAddress& rPos, SvtListener& rListener );
void EndListeningFormulaCells( std::vector<ScFormulaCell*>& rCells );
void CollectAllAreaListeners(
std::vector<SvtListener*>& rListeners, const ScRange& rRange, sc::AreaOverlapType eType );
void PutInFormulaTree( ScFormulaCell* pCell );
void RemoveFromFormulaTree( ScFormulaCell* pCell );
......
......@@ -22,7 +22,6 @@ class RefHint : public SfxHint
{
public:
enum Type {
Moved,
ColumnReordered,
RowReordered,
StartListening,
......@@ -47,30 +46,6 @@ public:
Type getType() const;
};
class RefMovedHint : public RefHint
{
ScRange const maRange;
ScAddress const maMoveDelta;
const sc::RefUpdateContext& mrCxt;
public:
RefMovedHint( const ScRange& rRange, const ScAddress& rMove, const sc::RefUpdateContext& rCxt );
virtual ~RefMovedHint() override;
/**
* Get the source range from which the references have moved.
*/
const ScRange& getRange() const;
/**
* Get the movement vector.
*/
const ScAddress& getDelta() const;
const sc::RefUpdateContext& getContext() const;
};
class RefColReorderHint : public RefHint
{
const sc::ColRowReorderMapType& mrColMap;
......
......@@ -187,95 +187,6 @@ void ScDocument::BroadcastCells( const ScRange& rRange, SfxHintId nHint, bool bB
BroadcastUno(SfxHint(SfxHintId::ScDataChanged));
}
namespace {
class RefMovedNotifier
{
const sc::RefMovedHint& mrHint;
public:
explicit RefMovedNotifier( const sc::RefMovedHint& rHint ) : mrHint(rHint) {}
void operator() ( SvtListener* p )
{
p->Notify(mrHint);
}
};
}
void ScDocument::BroadcastRefMoved( const sc::RefMovedHint& rHint )
{
if (!pBASM)
// clipboard or undo document.
return;
const ScRange& rSrcRange = rHint.getRange(); // old range
const ScAddress& rDelta = rHint.getDelta();
// Get all area listeners that listens on the old range, and end their listening.
std::vector<sc::AreaListener> aAreaListeners = pBASM->GetAllListeners(rSrcRange, sc::AreaInside);
{
for (auto& rAreaListener : aAreaListeners)
{
pBASM->EndListeningArea(rAreaListener.maArea, rAreaListener.mbGroupListening, rAreaListener.mpListener);
rAreaListener.mpListener->Notify(rHint); // Adjust the references.
}
}
// Collect all listeners listening into the range.
std::vector<SvtListener*> aListeners;
for (SCTAB nTab = rSrcRange.aStart.Tab(); nTab <= rSrcRange.aEnd.Tab(); ++nTab)
{
ScTable* pTab = FetchTable(nTab);
if (!pTab)
continue;
pTab->CollectListeners(
aListeners,
rSrcRange.aStart.Col(), rSrcRange.aStart.Row(),
rSrcRange.aEnd.Col(), rSrcRange.aEnd.Row());
}
// Remove any duplicate listener entries. We must ensure that we notify
// each unique listener only once.
std::sort(aListeners.begin(), aListeners.end());
aListeners.erase(std::unique(aListeners.begin(), aListeners.end()), aListeners.end());
// Notify the listeners.
std::for_each(aListeners.begin(), aListeners.end(), RefMovedNotifier(rHint));
for (SCTAB nTab = rSrcRange.aStart.Tab(); nTab <= rSrcRange.aEnd.Tab(); ++nTab)
{
ScTable* pTab = FetchTable(nTab);
if (!pTab)
continue;
SCTAB nDestTab = nTab + rDelta.Tab();
ScTable* pDestTab = FetchTable(nDestTab);
if (!pDestTab)
continue;
// Move the listeners from the old location to the new.
pTab->TransferListeners(
*pDestTab, rSrcRange.aStart.Col(), rSrcRange.aStart.Row(),
rSrcRange.aEnd.Col(), rSrcRange.aEnd.Row(), rDelta.Col(), rDelta.Row());
}
// Re-start area listeners on the new range.
{
ScRange aErrorRange( ScAddress::UNINITIALIZED );
for (auto& rAreaListener : aAreaListeners)
{
ScRange aNewRange = rAreaListener.maArea;
if (!aNewRange.Move(rDelta.Col(), rDelta.Row(), rDelta.Tab(), aErrorRange))
{
assert(!"can't move AreaListener");
}
pBASM->StartListeningArea(aNewRange, rAreaListener.mbGroupListening, rAreaListener.mpListener);
}
}
}
void ScDocument::AreaBroadcast( const ScHint& rHint )
{
if ( !pBASM )
......
......@@ -397,17 +397,6 @@ void ScDocument::AddDelayedFormulaGroupingCell( const ScFormulaCell* cell )
pDelayedFormulaGrouping->ExtendTo( cell->aPos );
}
void ScDocument::CollectAllAreaListeners(
std::vector<SvtListener*>& rListener, const ScRange& rRange, sc::AreaOverlapType eType )
{
if (!pBASM)
return;
std::vector<sc::AreaListener> aAL = pBASM->GetAllListeners(rRange, eType);
for (const auto& rItem : aAL)
rListener.push_back(rItem.mpListener);
}
bool ScDocument::HasFormulaCell( const ScRange& rRange ) const
{
if (!rRange.IsValid())
......
......@@ -2363,24 +2363,6 @@ void ScFormulaCell::Notify( const SfxHint& rHint )
switch (rRefHint.getType())
{
case sc::RefHint::Moved:
{
// One of the references has moved.
const sc::RefMovedHint& rRefMoved = static_cast<const sc::RefMovedHint&>(rRefHint);
if (!IsShared() || IsSharedTop())
{
sc::RefUpdateResult aRes = pCode->MoveReference(aPos, rRefMoved.getContext());
if (aRes.mbNameModified)
{
// RPN token needs to be re-generated.
bCompile = true;
CompileTokenArray();
SetDirtyVar();
}
}
}
break;
case sc::RefHint::ColumnReordered:
{
const sc::RefColReorderHint& rRefColReorder =
......
......@@ -19,26 +19,6 @@ RefHint::Type RefHint::getType() const
return meType;
}
RefMovedHint::RefMovedHint( const ScRange& rRange, const ScAddress& rMove, const sc::RefUpdateContext& rCxt ) :
RefHint(Moved), maRange(rRange), maMoveDelta(rMove), mrCxt(rCxt) {}
RefMovedHint::~RefMovedHint() {}
const ScRange& RefMovedHint::getRange() const
{
return maRange;
}
const ScAddress& RefMovedHint::getDelta() const
{
return maMoveDelta;
}
const sc::RefUpdateContext& RefMovedHint::getContext() const
{
return mrCxt;
}
RefColReorderHint::RefColReorderHint( const sc::ColRowReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 ) :
RefHint(ColumnReordered), mrColMap(rColMap), mnTab(nTab), mnRow1(nRow1), mnRow2(nRow2) {}
......
......@@ -29,64 +29,6 @@ struct ScRangeNameLine
OUString aScope;
};
//Implements the table for the manage names dialog
//TODO: cache the lines for performance improvements
//otherwise handling of a large set of range names might get extremely slow
//Need some sort of a filter to handle several range names
class SC_DLLPUBLIC ScRangeManagerTable : public SvSimpleTable
{
public:
class InitListener
{
public:
virtual ~InitListener();
virtual void tableInitialized() = 0;
};
private:
OUString const maGlobalString;
// should be const because we should not modify it here
const std::map<OUString, std::unique_ptr<ScRangeName>>& m_RangeMap;
// for performance, save which entries already have the formula entry
// otherwise opening the dialog with a lot of range names is extremely slow because
// we would calculate all formula strings during opening
std::map<SvTreeListEntry*, bool> maCalculatedFormulaEntries;
const ScAddress maPos;
InitListener* mpInitListener;
static void GetLine(ScRangeNameLine& aLine, SvTreeListEntry* pEntry);
void Init();
void CheckForFormulaString();
const ScRangeData* findRangeData(const ScRangeNameLine& rLine);
void setColWidths();
public:
ScRangeManagerTable(SvSimpleTableContainer& rParent,
const std::map<OUString, std::unique_ptr<ScRangeName>>& rTabRangeNames,
const ScAddress& rPos);
virtual ~ScRangeManagerTable() override;
virtual void dispose() override;
virtual void Resize() override;
virtual void StateChanged( StateChangedType nStateChange ) override;
void setInitListener( InitListener* pListener );
void addEntry( const ScRangeNameLine& rLine, bool bSetCurEntry );
void DeleteSelectedEntries();
void SetEntry( const ScRangeNameLine& rLine );
void GetCurrentLine(ScRangeNameLine& rLine);
bool IsMultiSelection();
std::vector<ScRangeNameLine> GetSelectedEntries();
DECL_LINK( ScrollHdl, SvTreeListBox*, void);
DECL_LINK( HeaderEndDragHdl, HeaderBar*, void);
};
class SC_DLLPUBLIC RangeManagerTable
{
private:
......
......@@ -69,7 +69,6 @@ public:
void SetObjectSelectHdl( const Link<ScEditWindow&,void>& aLink) { aObjectSelectLink = aLink; }
void SetGetFocusHdl(const std::function<void (ScEditWindow&)>& rLink) { m_GetFocusLink = rLink; }
void SetLocation(ScEditWindowLocation eLoc) { eLocation = eLoc; }
protected:
virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
virtual bool MouseMove( const MouseEvent& rMEvt ) override;
......
......@@ -22,118 +22,6 @@
#include <vcl/layout.hxx>
#include <tools/link.hxx>
#define ITEMID_NAME 1
#define ITEMID_RANGE 2
#define ITEMID_SCOPE 3
#define MINSIZE 80
static OUString createEntryString(const ScRangeNameLine& rLine)
{
OUString aRet = rLine.aName + "\t" + rLine.aExpression + "\t" + rLine.aScope;
return aRet;
}
ScRangeManagerTable::InitListener::~InitListener() {}
ScRangeManagerTable::ScRangeManagerTable(SvSimpleTableContainer& rParent,
const std::map<OUString, std::unique_ptr<ScRangeName>>& rRangeMap,
const ScAddress& rPos)
: SvSimpleTable( rParent, WB_SORT | WB_HSCROLL | WB_CLIPCHILDREN | WB_TABSTOP )
, maGlobalString( ScResId(STR_GLOBAL_SCOPE))
, m_RangeMap(rRangeMap)
, maPos( rPos )
, mpInitListener(nullptr)
{
static long aStaticTabs[] = { 0, 0, 0 };
SetTabs( SAL_N_ELEMENTS(aStaticTabs), aStaticTabs, MapUnit::MapPixel );
OUString aNameStr(ScResId(STR_HEADER_NAME));
OUString aRangeStr(ScResId(STR_HEADER_RANGE_OR_EXPR));
OUString aScopeStr(ScResId(STR_HEADER_SCOPE));
HeaderBar& rHeaderBar = GetTheHeaderBar();
InsertHeaderEntry( aNameStr );
InsertHeaderEntry( aRangeStr );
InsertHeaderEntry( aScopeStr );
rHeaderBar.SetEndDragHdl( LINK( this, ScRangeManagerTable, HeaderEndDragHdl ) );
setColWidths();
UpdateViewSize();
Init();
ShowTable();
SetSelectionMode(SelectionMode::Multiple);
SetScrolledHdl( LINK( this, ScRangeManagerTable, ScrollHdl ) );
HeaderEndDragHdl(nullptr);
}
void ScRangeManagerTable::Resize()
{
SvSimpleTable::Resize();
if (isInitialLayout(this))
setColWidths();
}
void ScRangeManagerTable::StateChanged( StateChangedType nStateChange )
{
SvSimpleTable::StateChanged(nStateChange);
if (nStateChange == StateChangedType::InitShow)
{
if (GetEntryCount())
{
SetCurEntry(GetEntryOnPos(0));
CheckForFormulaString();
}
if (mpInitListener)
mpInitListener->tableInitialized();
}
}
void ScRangeManagerTable::setColWidths()
{
HeaderBar &rHeaderBar = GetTheHeaderBar();
if (rHeaderBar.GetItemCount() < 3)
return;
long nTabSize = GetSizePixel().Width() / 3;
rHeaderBar.SetItemSize( ITEMID_NAME, nTabSize);
rHeaderBar.SetItemSize( ITEMID_RANGE, nTabSize);
rHeaderBar.SetItemSize( ITEMID_SCOPE, nTabSize);
static long aStaticTabs[] = {0, nTabSize, 2*nTabSize };
SetTabs( SAL_N_ELEMENTS(aStaticTabs), aStaticTabs, MapUnit::MapPixel );
HeaderEndDragHdl(nullptr);
}
ScRangeManagerTable::~ScRangeManagerTable()
{
disposeOnce();
}
void ScRangeManagerTable::dispose()
{
Clear();
SvSimpleTable::dispose();
}
void ScRangeManagerTable::setInitListener( InitListener* pListener )
{
mpInitListener = pListener;
}
void ScRangeManagerTable::addEntry(const ScRangeNameLine& rLine, bool bSetCurEntry)
{
SvTreeListEntry* pEntry = InsertEntryToColumn( createEntryString(rLine));
if (bSetCurEntry)
SetCurEntry(pEntry);
}
void ScRangeManagerTable::GetCurrentLine(ScRangeNameLine& rLine)
{
SvTreeListEntry* pCurrentEntry = GetCurEntry();
GetLine(rLine, pCurrentEntry);
}
void RangeManagerTable::GetCurrentLine(ScRangeNameLine& rLine)
{
std::unique_ptr<weld::TreeIter> xCurrentEntry(m_xTreeView->make_iterator());
......@@ -141,72 +29,6 @@ void RangeManagerTable::GetCurrentLine(ScRangeNameLine& rLine)
GetLine(rLine, *xCurrentEntry);
}
void ScRangeManagerTable::GetLine(ScRangeNameLine& rLine, SvTreeListEntry* pEntry)
{
rLine.aName = GetEntryText( pEntry, 0);
rLine.aExpression = GetEntryText(pEntry, 1);
rLine.aScope = GetEntryText(pEntry, 2);
}
void ScRangeManagerTable::Init()
{
SetUpdateMode(false);
Clear();
for (auto const& itr : m_RangeMap)
{
const ScRangeName *const pLocalRangeName = itr.second.get();
ScRangeNameLine aLine;
if (itr.first == STR_GLOBAL_RANGE_NAME)
aLine.aScope = maGlobalString;
else
aLine.aScope = itr.first;
for (const auto& rEntry : *pLocalRangeName)
{
if (!rEntry.second->HasType(ScRangeData::Type::Database))
{
aLine.aName = rEntry.second->GetName();
addEntry(aLine, false);
}
}
}
SetUpdateMode(true);
}
const ScRangeData* ScRangeManagerTable::findRangeData(const ScRangeNameLine& rLine)
{
const ScRangeName* pRangeName;
if (rLine.aScope == maGlobalString)
pRangeName = m_RangeMap.find(OUString(STR_GLOBAL_RANGE_NAME))->second.get();
else
pRangeName = m_RangeMap.find(rLine.aScope)->second.get();
return pRangeName->findByUpperName(ScGlobal::pCharClass->uppercase(rLine.aName));
}
void ScRangeManagerTable::CheckForFormulaString()
{
for (SvTreeListEntry* pEntry = GetFirstEntryInView(); pEntry ; pEntry = GetNextEntryInView(pEntry))
{
std::map<SvTreeListEntry*, bool>::const_iterator itr = maCalculatedFormulaEntries.find(pEntry);
if (itr == maCalculatedFormulaEntries.end() || !itr->second)
{
ScRangeNameLine aLine;
GetLine( aLine, pEntry);
const ScRangeData* pData = findRangeData( aLine );
OUString aFormulaString;
pData->GetSymbol(aFormulaString, maPos);
SetEntryText(aFormulaString, pEntry, 1);
maCalculatedFormulaEntries.insert( std::pair<SvTreeListEntry*, bool>(pEntry, true) );
}