summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--postprocess/CustomTarget_images.mk1
-rw-r--r--sd/inc/bitmaps.hlst4
-rw-r--r--sdext/Library_PresentationMinimizer.mk5
-rw-r--r--sdext/inc/bitmaps.hlst17
-rw-r--r--sdext/source/minimizer/optimizerdialog.cxx7
5 files changed, 25 insertions, 9 deletions
diff --git a/postprocess/CustomTarget_images.mk b/postprocess/CustomTarget_images.mk
index 3da3cee1a4e8..4ea776509866 100644
--- a/postprocess/CustomTarget_images.mk
+++ b/postprocess/CustomTarget_images.mk
@@ -64,6 +64,7 @@ $(packimages_DIR)/sourceimagelist.ilst : \
$(SRCDIR)/reportdesign/inc/bitmaps.hlst \
$(SRCDIR)/sc/inc/bitmaps.hlst \
$(SRCDIR)/sd/inc/bitmaps.hlst \
+ $(SRCDIR)/sdext/inc/bitmaps.hlst \
$(SRCDIR)/sfx2/inc/bitmaps.hlst \
$(SRCDIR)/svtools/inc/bitmaps.hlst \
$(SRCDIR)/svx/inc/bitmaps.hlst \
diff --git a/sd/inc/bitmaps.hlst b/sd/inc/bitmaps.hlst
index 1ec2041de31b..36a8b67720b2 100644
--- a/sd/inc/bitmaps.hlst
+++ b/sd/inc/bitmaps.hlst
@@ -177,10 +177,6 @@
#define BMP_PRESENTERSCREEN_SCROLLBAR_THUMB_BOTTOM_NORMAL "sd/res/presenterscreen-ScrollbarThumbBottomNormal.png"
#define BMP_PRESENTERSCREEN_BUTTON_PLUS_DISABLED "sd/res/presenterscreen-ButtonPlusDisabled.png"
-// This definition is not used directly.
-// It is only here to be shipped in images.zip.
-// The bitmap itself is used from sdext/source/minimizer.
-#define BMP_PRESENTATION_MINIMIZER "sd/res/minimize_presi_80.png"
#define BMP_EMBEDDED "sd/res/nv08.png"
#define BMP_LINK "sd/res/nv09.png"
#define BMP_HYPERLINK "sd/res/nv010.png"
diff --git a/sdext/Library_PresentationMinimizer.mk b/sdext/Library_PresentationMinimizer.mk
index eb8995f00be0..77a1e5a27c40 100644
--- a/sdext/Library_PresentationMinimizer.mk
+++ b/sdext/Library_PresentationMinimizer.mk
@@ -24,6 +24,11 @@ $(eval $(call gb_Library_use_api,PresentationMinimizer,\
udkapi \
))
+$(eval $(call gb_Library_set_include,PresentationMinimizer,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/sdext/inc \
+))
+
$(eval $(call gb_Library_use_libraries,PresentationMinimizer,\
cppu \
cppuhelper \
diff --git a/sdext/inc/bitmaps.hlst b/sdext/inc/bitmaps.hlst
new file mode 100644
index 000000000000..57050a95ed3e
--- /dev/null
+++ b/sdext/inc/bitmaps.hlst
@@ -0,0 +1,17 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_SDEXT_INC_BITMAPS_HRC
+#define INCLUDED_SDEXT_INC_BITMAPS_HRC
+
+#define BMP_PRESENTATION_MINIMIZER "sd/res/minimize_presi_80.png"
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/sdext/source/minimizer/optimizerdialog.cxx b/sdext/source/minimizer/optimizerdialog.cxx
index c72b44a12ad7..43c848050386 100644
--- a/sdext/source/minimizer/optimizerdialog.cxx
+++ b/sdext/source/minimizer/optimizerdialog.cxx
@@ -30,7 +30,7 @@
#include <sal/macros.h>
#include <osl/time.h>
#include <tools/urlobj.hxx>
-
+#include "bitmaps.hlst"
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::ui;
@@ -112,10 +112,7 @@ void OptimizerDialog::InitRoadmap()
InsertRoadmapItem( 3, getString( STR_OLE_OBJECTS ), ITEM_ID_OLE_OPTIMIZATION );
InsertRoadmapItem( 4, getString( STR_SUMMARY ), ITEM_ID_SUMMARY );
- // Well, that's messy, but the
- // BMP_PRESENTATION_MINIMIZER from sd module cannot be used here directly
- // that UNO wizard dialog should be converted to ui
- OUString sURL( "private:graphicrepository/sd/res/minimize_presi_80.png" );
+ OUString sURL("private:graphicrepository/" + OUString(BMP_PRESENTATION_MINIMIZER));
xPropertySet->setPropertyValue( "ImageURL", Any( sURL ) );
xPropertySet->setPropertyValue( "Activated", Any( true ) );