summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-20 15:52:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-21 08:14:07 +0000
commitbd6f61ad7afcd51f7cb23c14558fdccbda1803a1 (patch)
tree82f1016d4ca2036a54cf1c1b388a1ce909000046 /sc/source/ui/docshell
parent64144c28fef385625b0edc95e1aceed82e028d40 (diff)
convert SC_LINK constants to scoped enum
Change-Id: I20470070740fcc39bce85f90ff4e8c14cdd86862 Reviewed-on: https://gerrit.libreoffice.org/18731 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/tablink.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx
index a391691e86d5..07d5c7a3ba92 100644
--- a/sc/source/ui/docshell/tablink.cxx
+++ b/sc/source/ui/docshell/tablink.cxx
@@ -101,7 +101,7 @@ ScTableLink::~ScTableLink()
SCTAB nCount = rDoc.GetTableCount();
for (SCTAB nTab=0; nTab<nCount; nTab++)
if (rDoc.IsLinked(nTab) && aFileName.equals(rDoc.GetLinkDoc(nTab)))
- rDoc.SetLink( nTab, SC_LINK_NONE, "", "", "", "", 0 );
+ rDoc.SetLink( nTab, ScLinkMode::NONE, "", "", "", "", 0 );
delete pImpl;
}
@@ -230,8 +230,8 @@ bool ScTableLink::Refresh(const OUString& rNewFile, const OUString& rNewFilter,
SCTAB nCount = rDoc.GetTableCount();
for (SCTAB nTab=0; nTab<nCount; nTab++)
{
- sal_uInt8 nMode = rDoc.GetLinkMode(nTab);
- if (nMode && aFileName.equals(rDoc.GetLinkDoc(nTab)))
+ ScLinkMode nMode = rDoc.GetLinkMode(nTab);
+ if (nMode != ScLinkMode::NONE && aFileName.equals(rDoc.GetLinkDoc(nTab)))
{
OUString aTabName = rDoc.GetLinkTab(nTab);
@@ -254,7 +254,7 @@ bool ScTableLink::Refresh(const OUString& rNewFile, const OUString& rNewFilter,
// Tabellenname einer ExtDocRef anpassen
- if ( bNewUrlName && nMode == SC_LINK_VALUE )
+ if ( bNewUrlName && nMode == ScLinkMode::VALUE )
{
OUString aName;
rDoc.GetName( nTab, aName );
@@ -285,13 +285,13 @@ bool ScTableLink::Refresh(const OUString& rNewFile, const OUString& rNewFilter,
if (bFound)
rDoc.TransferTab( &rSrcDoc, nSrcTab, nTab, false, // nicht neu einfuegen
- (nMode == SC_LINK_VALUE) ); // nur Werte?
+ (nMode == ScLinkMode::VALUE) ); // nur Werte?
else
{
rDoc.DeleteAreaTab( 0,0,MAXCOL,MAXROW, nTab, IDF_ALL );
bool bShowError = true;
- if ( nMode == SC_LINK_VALUE )
+ if ( nMode == ScLinkMode::VALUE )
{
// Value link (used with external references in formulas):
// Look for formulas that reference the sheet, and put errors in the referenced cells.