21#include <com/sun/star/document/XRedlinesSupplier.hpp>
22#include <com/sun/star/container/XIndexAccess.hpp>
23#include <com/sun/star/frame/XModel.hpp>
33SwVbaRevision::SwVbaRevision(
const uno::Reference< ooo::vba::XHelperInterface >& rParent,
const uno::Reference< uno::XComponentContext >& rContext, uno::Reference< frame::XModel > xModel, uno::Reference< beans::XPropertySet > xRedlineProps ) :
SwVbaRevision_BASE( rParent, rContext ),
mxModel(
std::move(
xModel )), mxRedlineProps(
std::move( xRedlineProps ))
44 uno::Reference< document::XRedlinesSupplier > xRedlinesSupp(
mxModel, uno::UNO_QUERY_THROW );
45 uno::Reference< container::XIndexAccess > xRedlines( xRedlinesSupp->getRedlines(), uno::UNO_QUERY_THROW );
46 sal_Int32
nCount = xRedlines->getCount();
49 uno::Reference< beans::XPropertySet > xProps( xRedlines->getByIndex(
i ), uno::UNO_QUERY_THROW );
58 throw uno::RuntimeException();
82 return "SwVbaRevision";
85uno::Sequence< OUString >
90 "ooo.vba.word.Revision"
css::uno::Reference< css::frame::XModel2 > mxModel
virtual bool RejectRedline(SwRedlineTable::size_type nPos, bool bCallDelete)=0
virtual bool AcceptRedline(SwRedlineTable::size_type nPos, bool bCallDelete)=0
SwDoc * GetDoc()
returns Doc. But be careful!
IDocumentRedlineAccess const & getIDocumentRedlineAccess() const
virtual void SAL_CALL Accept() override
virtual ~SwVbaRevision() override
virtual void SAL_CALL Reject() override
SwVbaRevision(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::frame::XModel > xModel, css::uno::Reference< css::beans::XPropertySet > xRedlineProps)
virtual OUString getServiceImplName() override
css::uno::Reference< css::frame::XModel > mxModel
css::uno::Reference< css::beans::XPropertySet > mxRedlineProps
virtual css::uno::Sequence< OUString > getServiceNames() override
Sequence< OUString > aServiceNames
#define SAL_INFO(area, stream)
SwDocShell * getDocShell(const uno::Reference< frame::XModel > &xModel)
Reference< XModel > xModel