24#include <com/sun/star/uno/XComponentContext.hpp>
57 const Reference< XComponentContext >& rxContext,
58 const Reference< XFrame >& rFrame,
66 Image aImage(AddonsOptions().GetImageFromURL(
aCommand, bBigImages,
true));
86 if( rControlCommand.Command !=
"SetImag" &&
87 rControlCommand.Command !=
"SetImage" )
90 for (
const NamedValue& rArg : rControlCommand.Arguments )
92 if ( rArg.Name ==
"URL" )
107 uno::Sequence< beans::NamedValue > aInfo { {
"URL", css::uno::Any(
aURL) } };
120 if ( !pStream || ( pStream->GetErrorCode() !=
ERRCODE_NONE ))
136 ::Size aNoScaleSize( aBmpSize.
Width(), aSize.Height() );
137 if ( aBmpSize != aNoScaleSize )
138 aBitmapEx.
Scale( aNoScaleSize, BmpScaleFlag::BestQuality );
139 aImage =
Image( aBitmapEx );
bool Scale(const Size &rNewSize, BmpScaleFlag nScaleFlag=BmpScaleFlag::Default)
const Size & GetSizePixel() const
static GraphicFilter & GetGraphicFilter()
ErrCode ImportGraphic(Graphic &rGraphic, const INetURLObject &rPath, sal_uInt16 nFormat=GRFILTER_FORMAT_DONTKNOW, sal_uInt16 *pDeterminedFormat=nullptr, GraphicFilterImportFlags nImportFlags=GraphicFilterImportFlags::NONE)
BitmapEx GetBitmapEx(const GraphicConversionParameters &rParameters=GraphicConversionParameters()) const
constexpr tools::Long Width() const
static bool AreCurrentSymbolsLarge()
static std::unique_ptr< SvStream > CreateStream(const OUString &rFileName, StreamMode eOpenMode, css::uno::Reference< css::awt::XWindow > xParentWin=nullptr)
COMPHELPER_DLLPUBLIC OUString getExpandedUri(css::uno::Reference< css::uno::XComponentContext > const &context, OUString const &uri)
Reference< XComponentContext > getProcessComponentContext()
static void SubstituteVariables(OUString &aURL)