22#include <com/sun/star/frame/XModel.hpp>
23#include <com/sun/star/container/XChild.hpp>
24#include <com/sun/star/sheet/XSheetAnnotation.hpp>
25#include <com/sun/star/table/XCellRange.hpp>
32 uno::Reference< sheet::XSheetAnnotation > xAnno( aSource, uno::UNO_QUERY_THROW );
33 uno::Reference< container::XChild > xChild( xAnno, uno::UNO_QUERY_THROW );
34 uno::Reference< table::XCellRange > xCellRange( xChild->getParent(), uno::UNO_QUERY_THROW );
37 return uno::Any( uno::Reference< excel::XComment > (
38 new ScVbaComment( uno::Reference< XHelperInterface >(), xContext,
xModel, xCellRange ) ) );
45 css::uno::Reference< css::frame::XModel >
mxModel;
49 const uno::Reference< XHelperInterface >& xParent,
50 const uno::Reference< uno::XComponentContext >& xContext,
51 const uno::Reference< container::XEnumeration >& xEnumeration,
52 const uno::Reference< frame::XModel >& xModel ) :
57 virtual uno::Any SAL_CALL nextElement()
override
67 const uno::Reference< XHelperInterface >& xParent,
68 const uno::Reference< uno::XComponentContext > & xContext,
69 const uno::Reference< frame::XModel >& xModel,
70 const uno::Reference< container::XIndexAccess >& xIndexAccess ) :
78uno::Reference< container::XEnumeration >
81 uno::Reference< container::XEnumerationAccess > xEnumAccess(
m_xIndexAccess, uno::UNO_QUERY_THROW );
100 return "ScVbaComments";
103css::uno::Sequence<OUString>
106 static uno::Sequence< OUString >
const sNames
108 "ooo.vba.excel.Comments"
css::uno::Reference< css::frame::XModel2 > mxModel
css::uno::Reference< css::uno::XComponentContext > mxContext
css::uno::WeakReference< ov::XHelperInterface > mxParent
css::uno::Reference< css::container::XIndexAccess > m_xIndexAccess
css::uno::Type const & get()
Reference< XModel > xModel