summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xelink.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xelink.cxx')
-rw-r--r--sc/source/filter/excel/xelink.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xelink.cxx b/sc/source/filter/excel/xelink.cxx
index 4142ae5e625e..3dd30eb9a9fa 100644
--- a/sc/source/filter/excel/xelink.cxx
+++ b/sc/source/filter/excel/xelink.cxx
@@ -49,6 +49,8 @@ using namespace oox;
// External names =============================================================
+namespace {
+
/** This is a base class for any external name (i.e. add-in names or DDE links).
@descr Derived classes implement creation and export of the external names. */
class XclExpExtNameBase : public XclExpRecord, protected XclExpRoot
@@ -190,7 +192,7 @@ private:
SCROW mnScRow; /// Row index of the external cells.
};
-namespace { class XclExpCrnList; }
+class XclExpCrnList;
/** Represents the record XCT which is the header record of a CRN record list.
*/
@@ -387,7 +389,7 @@ struct XclExpXti
{ rStrm << mnSupbook << mnFirstSBTab << mnLastSBTab; }
};
-static bool operator==( const XclExpXti& rLeft, const XclExpXti& rRight )
+bool operator==( const XclExpXti& rLeft, const XclExpXti& rRight )
{
return
(rLeft.mnSupbook == rRight.mnSupbook) &&
@@ -483,6 +485,8 @@ private:
sal_uInt16 mnAddInSB; /// Index to add-in SUPBOOK.
};
+}
+
// Export link manager ========================================================
/** Abstract base class for implementation classes of the link manager. */
@@ -535,6 +539,8 @@ protected:
explicit XclExpLinkManagerImpl( const XclExpRoot& rRoot );
};
+namespace {
+
/** Implementation of the link manager for BIFF5/BIFF7. */
class XclExpLinkManagerImpl5 : public XclExpLinkManagerImpl
{
@@ -658,6 +664,8 @@ private:
XclExpXtiVec maXtiVec; /// List of XTI structures for the EXTERNSHEET record.
};
+}
+
// *** Implementation ***
// Excel sheet indexes ========================================================
@@ -869,6 +877,8 @@ void XclExpTabInfo::CalcXclIndexes()
typedef ::std::pair< OUString, SCTAB > XclExpTabName;
+namespace {
+
struct XclExpTabNameSort {
bool operator ()( const XclExpTabName& rArg1, const XclExpTabName& rArg2 )
{
@@ -877,6 +887,8 @@ struct XclExpTabNameSort {
}
};
+}
+
void XclExpTabInfo::CalcSortedIndexes()
{
ScDocument& rDoc = GetDoc();