Kaydet (Commit) 4465e689 authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide: trivial GetNode() conversion in access

Change-Id: I5e1e18ee4033d9c5776d856aaa61ead9dde3e702
üst c801bba3
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <flyfrm.hxx> #include <flyfrm.hxx>
#include "accembedded.hxx" #include "accembedded.hxx"
#include <cntfrm.hxx> #include <cntfrm.hxx>
#include <notxtfrm.hxx>
#include <ndole.hxx> #include <ndole.hxx>
#include <doc.hxx> #include <doc.hxx>
#include <docsh.hxx> #include <docsh.hxx>
...@@ -110,7 +111,8 @@ css::uno::Any SAL_CALL SwAccessibleEmbeddedObject::getExtendedAttributes() ...@@ -110,7 +111,8 @@ css::uno::Any SAL_CALL SwAccessibleEmbeddedObject::getExtendedAttributes()
pCFrame = pFFrame->ContainsContent(); pCFrame = pFFrame->ContainsContent();
if( pCFrame ) if( pCFrame )
{ {
SwContentNode* pCNode = pCFrame->GetNode(); assert(pCFrame->IsNoTextFrame());
SwContentNode *const pCNode = static_cast<SwNoTextFrame*>(pCFrame)->GetNode();
if( pCNode ) if( pCNode )
{ {
style += static_cast<SwOLENode*>(pCNode)->GetOLEObj().GetStyleString(); style += static_cast<SwOLENode*>(pCNode)->GetOLEObj().GetStyleString();
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <crsrsh.hxx> #include <crsrsh.hxx>
#include <txtfrm.hxx> #include <txtfrm.hxx>
#include <notxtfrm.hxx>
#include <ndtxt.hxx> #include <ndtxt.hxx>
#include <dcontact.hxx> #include <dcontact.hxx>
#include <fmtanchr.hxx> #include <fmtanchr.hxx>
...@@ -100,8 +101,8 @@ SwNodeType SwAccessibleFrameBase::GetNodeType( const SwFlyFrame *pFlyFrame ) ...@@ -100,8 +101,8 @@ SwNodeType SwAccessibleFrameBase::GetNodeType( const SwFlyFrame *pFlyFrame )
{ {
if( pFlyFrame->Lower()->IsNoTextFrame() ) if( pFlyFrame->Lower()->IsNoTextFrame() )
{ {
const SwContentFrame *pContentFrame = const SwNoTextFrame *const pContentFrame =
static_cast<const SwContentFrame *>( pFlyFrame->Lower() ); static_cast<const SwNoTextFrame *>(pFlyFrame->Lower());
nType = pContentFrame->GetNode()->GetNodeType(); nType = pContentFrame->GetNode()->GetNodeType();
} }
} }
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <ndnotxt.hxx> #include <ndnotxt.hxx>
#include <flyfrm.hxx> #include <flyfrm.hxx>
#include <cntfrm.hxx> #include <cntfrm.hxx>
#include <notxtfrm.hxx>
#include <hints.hxx> #include <hints.hxx>
#include "accnotextframe.hxx" #include "accnotextframe.hxx"
#include <fmturl.hxx> #include <fmturl.hxx>
...@@ -43,8 +44,8 @@ const SwNoTextNode *SwAccessibleNoTextFrame::GetNoTextNode() const ...@@ -43,8 +44,8 @@ const SwNoTextNode *SwAccessibleNoTextFrame::GetNoTextNode() const
const SwFlyFrame *pFlyFrame = static_cast< const SwFlyFrame *>( GetFrame() ); const SwFlyFrame *pFlyFrame = static_cast< const SwFlyFrame *>( GetFrame() );
if( pFlyFrame->Lower() && pFlyFrame->Lower()->IsNoTextFrame() ) if( pFlyFrame->Lower() && pFlyFrame->Lower()->IsNoTextFrame() )
{ {
const SwContentFrame *pContentFrame = const SwNoTextFrame *pContentFrame =
static_cast<const SwContentFrame *>( pFlyFrame->Lower() ); static_cast<const SwNoTextFrame *>(pFlyFrame->Lower());
const SwContentNode* pSwContentNode = pContentFrame->GetNode(); const SwContentNode* pSwContentNode = pContentFrame->GetNode();
if(pSwContentNode != nullptr) if(pSwContentNode != nullptr)
{ {
......
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