diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-27 11:22:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-27 13:29:58 +0100 |
commit | 34bdbcecf18990c8cc6830c7f8dec7078d0a6f18 (patch) | |
tree | a8a5cc1e63bd6ee6c69522101f269c0b761f75f9 /sdext | |
parent | 6fc5a80009d7426c30d2b9656f76549536b45bb0 (diff) |
can detangle the sdext graphic resource now
Change-Id: I2992b859bbebfa4bfae3ea5bfe76e8aa62193f69
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/Library_PresentationMinimizer.mk | 5 | ||||
-rw-r--r-- | sdext/inc/bitmaps.hlst | 17 | ||||
-rw-r--r-- | sdext/source/minimizer/optimizerdialog.cxx | 7 |
3 files changed, 24 insertions, 5 deletions
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 ) ); |