Kaydet (Commit) 27b8fd53 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Adapt vcldemo code to layer NONE

...and being run via bin/run, taking care of setting URE_BOOTSTRAP

Change-Id: I6a3e54d244cc534e8526a501a075b3df0cc152d5
üst 2640e8d3
......@@ -7,7 +7,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <rtl/bootstrap.hxx>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/bootstrap.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
......@@ -49,22 +48,8 @@ class DemoWin : public DemoBase
public:
DemoWin() : DemoBase()
{
// Needed to find images
OUString aPath;
rtl::Bootstrap::get("SYSBINDIR", aPath);
#ifdef FIXME_THIS_FAILS
rtl::Bootstrap::set("BRAND_BASE_DIR", aPath + "/..");
if (Application::LoadBrandBitmap("intro", maIntro))
if (!Application::LoadBrandBitmap("intro", maIntro))
Application::Abort("Failed to load intro image");
#else
aPath = aPath + "/intro.png";
SvFileStream aFileStream( aPath, STREAM_READ );
GraphicFilter aGraphicFilter(false);
Graphic aGraphic;
if (aGraphicFilter.ImportGraphic(aGraphic, aPath, aFileStream) != 0)
Application::Abort("Failed to load intro image: " + aPath);
maIntro = aGraphic.GetBitmapEx();
#endif
maIntroBW = maIntro.GetBitmap();
maIntroBW.Filter( BMP_FILTER_EMBOSS_GREY );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment