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

remove unnecessary header macro wizardry

using the #define SW_DECL_SWSERVEROBJECT_DEFINED to turn typedefs
on and off. Rather just use SvRef<T> everywhere, like we do for
other reference types.

Change-Id: Id939c46c5861cd7440b66c5a84122f900ddb882c
üst da36ded0
......@@ -40,12 +40,7 @@ class SwDoc;
class SwSection;
class SwSectionNode;
class SwTOXBase;
#ifndef SW_DECL_SWSERVEROBJECT_DEFINED
#define SW_DECL_SWSERVEROBJECT_DEFINED
class SwServerObject;
typedef tools::SvRef<SwServerObject> SwServerObjectRef;
#endif
typedef std::vector<SwSection*> SwSections;
......@@ -154,7 +149,7 @@ class SW_DLLPUBLIC SwSection
private:
mutable SwSectionData m_Data;
SwServerObjectRef m_RefObj; // Set if DataServer.
tools::SvRef<SwServerObject> m_RefObj; // Set if DataServer.
::sfx2::SvBaseLinkRef m_RefLink;
SAL_DLLPRIVATE void ImplSetHiddenFlag(
......
......@@ -76,11 +76,6 @@ public:
void SetDdeBookmark( ::sw::mark::IMark& rBookmark);
};
#ifndef SW_DECL_SWSERVEROBJECT_DEFINED
#define SW_DECL_SWSERVEROBJECT_DEFINED
typedef tools::SvRef<SwServerObject> SwServerObjectRef;
#endif
#endif // INCLUDED_SW_INC_SWSERV_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -58,12 +58,7 @@ class SwUndoTblCpyTbl;
class SwBoxSelection;
struct SwSaveRowSpan;
struct Parm;
#ifndef SW_DECL_SWSERVEROBJECT_DEFINED
#define SW_DECL_SWSERVEROBJECT_DEFINED
class SwServerObject;
typedef tools::SvRef<SwServerObject> SwServerObjectRef;
#endif
class SwTableLines : public std::vector<SwTableLine*> {
public:
......@@ -99,7 +94,7 @@ class SW_DLLPUBLIC SwTable: public SwClient //Client of FrmFmt.
protected:
SwTableLines aLines;
SwTableSortBoxes m_TabSortContentBoxes;
SwServerObjectRef refObj; // In case DataServer -> pointer is set.
tools::SvRef<SwServerObject> refObj; // In case DataServer -> pointer is set.
SwHTMLTableLayout *pHTMLLayout;
......
......@@ -1292,7 +1292,7 @@ static void lcl_UpdateLinksInSect( SwBaseLink& rUpdLnk, SwSectionNode& rSectNd )
bool bRecursion = false;
if( pSrcDoc == pDoc )
{
SwServerObjectRef refObj( (SwServerObject*)
tools::SvRef<SwServerObject> refObj( (SwServerObject*)
pDoc->CreateLinkSource( sRange ));
if( refObj.Is() )
{
......
......@@ -463,7 +463,7 @@ const SwNode* SwBaseLink::GetAnchor() const
bool SwBaseLink::IsRecursion( const SwBaseLink* pChkLnk ) const
{
SwServerObjectRef aRef( (SwServerObject*)GetObj() );
tools::SvRef<SwServerObject> aRef( (SwServerObject*)GetObj() );
if( aRef.Is() )
{
// As it's a ServerObject, we query all contained Links
......
......@@ -155,7 +155,7 @@ namespace sw {
virtual ~DdeBookmark();
private:
SwServerObjectRef m_aRefObj;
tools::SvRef<SwServerObject> m_aRefObj;
};
class Bookmark
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment