22#include <com/sun/star/awt/Size.hpp>
23#include <com/sun/star/drawing/XShapes.hpp>
24#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
51 std::map< PPPOptimizerTokenEnum, uno::Any >::const_iterator aIter(
maStats.find( eStat ) );
52 return aIter !=
maStats.end() ? &((*aIter).second) :
nullptr;
58 uno::Sequence< PropertyValue > aStatsSequence(
maStats.size() );
59 std::transform(
maStats.begin(),
maStats.end(), aStatsSequence.getArray(),
60 [](
const auto& rEntry)
61 { return comphelper::makePropertyValue(TKGet( rEntry.first ), rEntry.second); });
62 return aStatsSequence;
68 for(
const auto& rStat : rOptimizationStats )
77 Reference< XDrawPagesSupplier > xDrawPagesSupplier( rxModel, UNO_QUERY_THROW );
78 Reference< XDrawPages > xDrawPages( xDrawPagesSupplier->getDrawPages(), UNO_SET_THROW );
css::beans::PropertyValues GetStatusSequence()
void SetStatusValue(const PPPOptimizerTokenEnum eStat, const css::uno::Any &rStatValue)
std::map< PPPOptimizerTokenEnum, css::uno::Any > maStats
const css::uno::Any * GetStatusValue(const PPPOptimizerTokenEnum eStat) const
void InitializeStatusValues(const css::uno::Sequence< css::beans::PropertyValue > &rOptimizationStats)
void InitializeStatusValuesFromDocument(const css::uno::Reference< css::frame::XModel > &rxModel)
PPPOptimizerTokenEnum TKGet(std::u16string_view rToken)