Kaydet (Commit) 34006130 authored tarafından Jochen Nitschke's avatar Jochen Nitschke

tdf#48140 replace CellAddress in xlsx import (2)

Change-Id: I14bf283fe8a795944a08a4cde2fff3d670f6e3ed
Reviewed-on: https://gerrit.libreoffice.org/32969Reviewed-by: 's avatarJochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: 's avatarJochen Nitschke <j.nitschke+logerrit@ok.de>
üst 7d0e3b32
...@@ -144,7 +144,7 @@ public: ...@@ -144,7 +144,7 @@ public:
explicit VmlDrawing( const WorksheetHelper& rHelper ); explicit VmlDrawing( const WorksheetHelper& rHelper );
/** Returns the drawing shape for a cell note at the specified position. */ /** Returns the drawing shape for a cell note at the specified position. */
const ::oox::vml::ShapeBase* getNoteShape( const css::table::CellAddress& rPos ) const; const ::oox::vml::ShapeBase* getNoteShape( const ScAddress& rPos ) const;
/** Filters cell note shapes. */ /** Filters cell note shapes. */
virtual bool isShapeSupported( const ::oox::vml::ShapeBase& rShape ) const override; virtual bool isShapeSupported( const ::oox::vml::ShapeBase& rShape ) const override;
......
...@@ -162,7 +162,7 @@ void Comment::finalizeImport() ...@@ -162,7 +162,7 @@ void Comment::finalizeImport()
} }
// convert shape formatting and visibility // convert shape formatting and visibility
if( const ::oox::vml::ShapeBase* pNoteShape = getVmlDrawing().getNoteShape( aNotePos ) ) if( const ::oox::vml::ShapeBase* pNoteShape = getVmlDrawing().getNoteShape( maModel.maRange.aStart ) )
{ {
// position and formatting // position and formatting
pNoteShape->convertFormatting( xAnnoShape ); pNoteShape->convertFormatting( xAnnoShape );
......
...@@ -55,7 +55,6 @@ using namespace ::com::sun::star::container; ...@@ -55,7 +55,6 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::document; using namespace ::com::sun::star::document;
using namespace ::com::sun::star::drawing; using namespace ::com::sun::star::drawing;
using namespace ::com::sun::star::script; using namespace ::com::sun::star::script;
using namespace ::com::sun::star::table;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::xml::sax; using namespace ::com::sun::star::xml::sax;
using namespace ::oox::core; using namespace ::oox::core;
...@@ -313,7 +312,7 @@ namespace { ...@@ -313,7 +312,7 @@ namespace {
class VmlFindNoteFunc class VmlFindNoteFunc
{ {
public: public:
explicit VmlFindNoteFunc( const CellAddress& rPos ); explicit VmlFindNoteFunc( const ScAddress& rPos );
bool operator()( const ::oox::vml::ShapeBase& rShape ) const; bool operator()( const ::oox::vml::ShapeBase& rShape ) const;
private: private:
...@@ -321,9 +320,9 @@ private: ...@@ -321,9 +320,9 @@ private:
sal_Int32 mnRow; sal_Int32 mnRow;
}; };
VmlFindNoteFunc::VmlFindNoteFunc( const CellAddress& rPos ) : VmlFindNoteFunc::VmlFindNoteFunc( const ScAddress& rPos ) :
mnCol( rPos.Column ), mnCol( rPos.Col() ),
mnRow( rPos.Row ) mnRow( rPos.Row() )
{ {
} }
...@@ -409,7 +408,7 @@ VmlDrawing::VmlDrawing( const WorksheetHelper& rHelper ) : ...@@ -409,7 +408,7 @@ VmlDrawing::VmlDrawing( const WorksheetHelper& rHelper ) :
maListBoxFont.monSize = 160; maListBoxFont.monSize = 160;
} }
const ::oox::vml::ShapeBase* VmlDrawing::getNoteShape( const CellAddress& rPos ) const const ::oox::vml::ShapeBase* VmlDrawing::getNoteShape( const ScAddress& rPos ) const
{ {
return getShapes().findShape( VmlFindNoteFunc( rPos ) ); return getShapes().findShape( VmlFindNoteFunc( rPos ) );
} }
......
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