20#include <config_folders.h>
25#include <com/sun/star/rendering/XIntegerReadOnlyBitmap.hpp>
26#include <com/sun/star/beans/PropertyValue.hpp>
27#include <com/sun/star/graphic/Primitive2DTools.hpp>
28#include <com/sun/star/uno/Reference.h>
32#include <osl/diagnose.h>
33#include <rtl/bootstrap.hxx>
42#include <sfx2/sfxsids.hrc>
54#define ShellClass_SfxApplication
55#include <sfxslots.hxx>
63 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_0);
64 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_1);
65 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_2);
66 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_3);
67 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_4);
68 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_5);
69 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_6);
70 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_7);
71 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_8);
72 GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_9);
85 return pImpl->pProgress;
97 OSL_FAIL(
"No module!" );
118 bRet = ( !aTitle.isEmpty() );
133 OUString aBaseName =
"/" + OUString::createFromAscii(
pName );
135 OUString uri =
"$BRAND_BASE_DIR/" LIBO_ETC_FOLDER + aBaseName +
".svg";
136 rtl::Bootstrap::expandMacros( uri );
147 const double fAspectRatio(
156 ? 1.0 : nWidth / fAspectRatio / aRange.
getHeight()));
164 uno::Reference< uno::XComponentContext > xContext(::comphelper::getProcessComponentContext());
168 const uno::Reference< graphic::XPrimitive2DRenderer > xPrimitive2DRenderer =
169 graphic::Primitive2DTools::create( xContext );
174 const double fFakeDPI=2.54 * 1000.0;
176 geometry::RealRectangle2D aRealRect(
178 nWidth, nWidth / fAspectRatio);
180 const uno::Reference< rendering::XBitmap > xBitmap(
181 xPrimitive2DRenderer->rasterize(
183 uno::Sequence< beans::PropertyValue >(),
191 const uno::Reference< rendering::XIntegerReadOnlyBitmap> xIntBmp(xBitmap, uno::UNO_QUERY_THROW);
196 catch(
const uno::Exception&)
static bool FileExists(const INetURLObject &rURL)
OUString GetMainURL(DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
OUString PathToFileName() const
INetProtocol GetProtocol() const
std::unique_ptr< SfxAppData_Impl > pImpl
SfxProgress * GetProgress() const
Returns the running SfxProgress for the entire application or 0 if none is running for the entire app...
SAL_DLLPRIVATE SfxSlotPool & GetAppSlotPool_Impl() const
static BitmapEx GetApplicationLogo(tools::Long nWidth)
loads the application logo as used in the impress slideshow pause screen
static bool loadBrandSvg(const char *pName, BitmapEx &rBitmap, int nWidth)
SAL_DLLPRIVATE SfxDispatcher * GetAppDispatcher_Impl()
static SAL_DLLPRIVATE SfxModule * GetModule_Impl()
static SfxModule * GetActiveModule(SfxViewFrame *pFrame=nullptr)
The class SfxShell is the base class for all classes, which provide the functionality of the form <Sl...
static SAL_WARN_UNUSED_RESULT SfxViewFrame * GetFirst(const SfxObjectShell *pDoc=nullptr, bool bOnlyVisible=true)
const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > & getPrimitive2DSequence() const
const basegfx::B2DRange & getRange() const
void scale(double fX, double fY)
css::uno::Sequence< css::uno::Reference< css::graphic::XPrimitive2D > > toSequence() const
css::uno::Any getPropertyValue(const OUString &rPropertyName)
#define TOOLS_WARN_EXCEPTION(area, stream)
B2DHomMatrix createTranslateB2DHomMatrix(double fTranslateX, double fTranslateY)
Reference< XComponentContext > getProcessComponentContext()
#define SFX_IMPL_INTERFACE(Class, SuperClass)