summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-30 14:16:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-30 17:10:45 +0000
commitfb1a51560f614e784f22fb05e25b9a235f1ffd42 (patch)
treef7dc4ff9b35257d29866f824fc03c6e574cf414c
parent8036602120283b01dac0253c83b931cc94c3ac02 (diff)
-rw-r--r--sw/source/core/doc/doctxm.cxx6
-rw-r--r--sw/source/core/unocore/unodraw.cxx4
2 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 2fe5aa88bc..f34af4f75e 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -1246,8 +1246,7 @@ void SwTOXBaseSection::UpdateOutline( const SwTxtNode* pOwnChapterNode )
::SetProgressState( 0, pDoc->GetDocShell() );
SwTxtNode* pTxtNd = rOutlNds[ n ]->GetTxtNode();
if( pTxtNd && pTxtNd->Len() && pTxtNd->GetDepends() &&
- //USHORT(pTxtNd->GetTxtColl()->GetOutlineLevel()+1) <= GetLevel() && //#outline level,zhaojianwei
- USHORT( pTxtNd->GetAttrOutlineLevel()) <= GetLevel() && //<-end,zhaojianwei
+ USHORT( pTxtNd->GetAttrOutlineLevel()) <= GetLevel() &&
pTxtNd->GetFrm() &&
!pTxtNd->HasHiddenParaField() &&
!pTxtNd->HasHiddenCharAttribute( true ) &&
@@ -1279,8 +1278,7 @@ void SwTOXBaseSection::UpdateTemplate( const SwTxtNode* pOwnChapterNode )
if( !pColl ||
( TOX_CONTENT == SwTOXBase::GetType() &&
GetCreateType() & nsSwTOXElement::TOX_OUTLINELEVEL &&
- //NO_NUMBERING != pColl->GetOutlineLevel() ) )//#outline level,zhaojianwei
- pColl->IsAssignedToListLevelOfOutlineStyle()) )//<-end,zhaojianwei
+ pColl->IsAssignedToListLevelOfOutlineStyle()) )
continue;
SwClientIter aIter( *pColl );
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index acc3b9e4a0..8f3360845b 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -202,11 +202,11 @@ public:
{
return xTextRange;
}
- sal_Bool IsOpaque()
+ sal_Bool IsOpaque() const
{
return bOpaque;
}
- const sal_Bool& GetOpaque()
+ const sal_Bool& GetOpaque() const
{
return bOpaque;
}