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