[Libreoffice-commits] core.git: 2 commits - include/sfx2 offapi/com sfx2/AllLangResTarget_sfx2.mk sfx2/inc sfx2/source svtools/source

Caolán McNamara caolanm at redhat.com
Wed Apr 26 10:53:36 UTC 2017


 include/sfx2/sfx.hrc                            |   13 --
 offapi/com/sun/star/graphic/MediaProperties.idl |    6 -
 sfx2/AllLangResTarget_sfx2.mk                   |    2 
 sfx2/inc/bitmaps.hlst                           |  127 ++++++++++++++----------
 sfx2/inc/doc.hrc                                |    8 -
 sfx2/source/appl/sfx.src                        |   55 ----------
 sfx2/source/control/recentdocsview.cxx          |   17 +--
 sfx2/source/control/recentdocsviewitem.cxx      |    5 
 sfx2/source/control/templatelocalview.cxx       |    9 -
 sfx2/source/control/templatesearchview.cxx      |    9 -
 sfx2/source/control/templateview.hrc            |    4 
 sfx2/source/control/templateview.src            |   20 ---
 sfx2/source/control/templateviewitem.cxx        |    3 
 sfx2/source/dialog/dialog.hrc                   |    3 
 sfx2/source/dialog/dinfdlg.cxx                  |    3 
 sfx2/source/dialog/dinfdlg.src                  |    5 
 sfx2/source/dialog/templdlg.cxx                 |    7 -
 sfx2/source/dialog/templdlg.src                 |   15 --
 sfx2/source/dialog/titledockwin.cxx             |    3 
 sfx2/source/dialog/titledockwin.src             |   28 -----
 sfx2/source/doc/doc.src                         |    5 
 sfx2/source/doc/graphhelp.cxx                   |   24 ++--
 sfx2/source/doc/graphhelp.hxx                   |    6 -
 sfx2/source/doc/graphhelp.src                   |   47 --------
 sfx2/source/doc/objstor.cxx                     |    6 -
 sfx2/source/doc/templatedlg.cxx                 |    5 
 sfx2/source/inc/sfxlocal.hrc                    |    4 
 svtools/source/graphic/provider.cxx             |    2 
 28 files changed, 134 insertions(+), 307 deletions(-)

New commits:
commit e6628f7a77b4707fb6ed8bf94282eebc0221e0e3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Apr 26 11:27:02 2017 +0100

    last private:resource ... bitmap user is gone
    
    so drop private:resource ... bitmap example and remove bitmap case,
    bitmapex case persists
    
    Change-Id: Iabf7c48517c17e3117f88daa80a258b7303b85dd

diff --git a/offapi/com/sun/star/graphic/MediaProperties.idl b/offapi/com/sun/star/graphic/MediaProperties.idl
index a107e2bec939..aa0182ad9e3c 100644
--- a/offapi/com/sun/star/graphic/MediaProperties.idl
+++ b/offapi/com/sun/star/graphic/MediaProperties.idl
@@ -44,17 +44,13 @@ published service MediaProperties
         lying inside the resource system within an Office context:
 
         <ul>
-            <li>private:resource/projectshortname/bitmap/12345</li>
+            <li><code>private:graphicrepository/<em><path_in_repository></em></code></li>
             <li>private:resource/projectshortname/bitmapex/12345</li>
         </ul>
 And additionally, GraphicObject scheme URLs like
             <ul> <li>vnd.sun.star.GraphicObject:10000000000001940000012FB99807BD</li> </ul>
               can be used to access graphics held by the GraphicCache implementation.
         </p>
-
-        <p>Yet more, you can access graphics in the application-wide image
-        repository by specifying URLs of the form
-        <code>private:graphicrepository/<em><path_in_repository></em></code>.
 </p>
     */
     [optional, property ] string URL;
diff --git a/svtools/source/graphic/provider.cxx b/svtools/source/graphic/provider.cxx
index 542cdb251857..12f3dfa413de 100644
--- a/svtools/source/graphic/provider.cxx
+++ b/svtools/source/graphic/provider.cxx
@@ -269,7 +269,7 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadResource( const O
             {
                 BitmapEx aBmpEx;
 
-                if( aResourceType == "bitmap" || aResourceType == "bitmapex" )
+                if (aResourceType == "bitmapex")
                 {
                     aResId.SetRT( RSC_BITMAP );
 
commit 505573b8c76fd8e99aae3ac2555a3fbb0ac9a975
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Apr 26 11:00:38 2017 +0100

    remove sfx2 bitmaps from .src files
    
    Change-Id: Ibc4261af5f479badd281211e467d2c7b524af3f3

diff --git a/include/sfx2/sfx.hrc b/include/sfx2/sfx.hrc
index c104d4e12e0a..3653eca24339 100644
--- a/include/sfx2/sfx.hrc
+++ b/include/sfx2/sfx.hrc
@@ -121,19 +121,6 @@
 #define STR_SIGNATURE_PARTIAL_OK            (RID_SFX_START+142)
 #define STR_SIGNATURE_OK                    (RID_SFX_START+143)
 
-#define SFX_THUMBNAIL_TEXT                  (RID_SFX_START+158)
-#define SFX_THUMBNAIL_SHEET                 (RID_SFX_START+159)
-#define SFX_THUMBNAIL_PRESENTATION          (RID_SFX_START+160)
-#define SFX_THUMBNAIL_DRAWING               (RID_SFX_START+161)
-
-#define SFX_FILE_THUMBNAIL_TEXT             (RID_SFX_START+162)
-#define SFX_FILE_THUMBNAIL_SHEET            (RID_SFX_START+163)
-#define SFX_FILE_THUMBNAIL_PRESENTATION     (RID_SFX_START+164)
-#define SFX_FILE_THUMBNAIL_DRAWING          (RID_SFX_START+165)
-#define SFX_FILE_THUMBNAIL_DATABASE         (RID_SFX_START+166)
-#define SFX_FILE_THUMBNAIL_MATH             (RID_SFX_START+167)
-#define SFX_FILE_THUMBNAIL_DEFAULT          (RID_SFX_START+168)
-
 // group ids
 
 // !! If you add a new group, please change sfxbasecontroller.cxx and
diff --git a/sfx2/AllLangResTarget_sfx2.mk b/sfx2/AllLangResTarget_sfx2.mk
index b8e5e41f4141..b8a722fe8267 100644
--- a/sfx2/AllLangResTarget_sfx2.mk
+++ b/sfx2/AllLangResTarget_sfx2.mk
@@ -57,8 +57,6 @@ $(eval $(call gb_SrsTarget_add_files,sfx/res,\
 
 $(eval $(call gb_SrsTarget_add_nonlocalizable_files,sfx/res,\
     sfx2/source/bastyp/bastyp.src \
-    sfx2/source/dialog/titledockwin.src \
-    sfx2/source/doc/graphhelp.src \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/sfx2/inc/bitmaps.hlst b/sfx2/inc/bitmaps.hlst
index d6fb2f3416cc..c420ba89bd78 100644
--- a/sfx2/inc/bitmaps.hlst
+++ b/sfx2/inc/bitmaps.hlst
@@ -10,58 +10,89 @@
 #ifndef INCLUDED_SFX2_INC_BITMAPS_HRC
 #define INCLUDED_SFX2_INC_BITMAPS_HRC
 
-#define BMP_HELP_TOOLBOX_INDEX_ON       "sfx2/res/indexon_small.png"
-#define BMP_HELP_TOOLBOX_INDEX_OFF      "sfx2/res/indexoff_small.png"
-#define BMP_HELP_TOOLBOX_START          "res/sc06303.png"
-#define BMP_HELP_TOOLBOX_PREV           "res/sc06301.png"
-#define BMP_HELP_TOOLBOX_NEXT           "res/sc06300.png"
-#define BMP_HELP_TOOLBOX_PRINT          "res/sc05504.png"
-#define BMP_HELP_TOOLBOX_BOOKMARKS      "sfx2/res/favourite.png"
-#define BMP_HELP_TOOLBOX_SEARCHDIALOG   "sfx2/res/sc05961.png"
-#define BMP_HELP_TOOLBOX_COPY           "sfx2/res/sc05711.png"
-#define BMP_HELP_CONTENT_BOOK_OPEN      "sfx2/res/hlpbookopen.png"
-#define BMP_HELP_CONTENT_BOOK_CLOSED    "sfx2/res/hlpbookclosed.png"
-#define BMP_HELP_CONTENT_DOC            "sfx2/res/hlpdoc.png"
-#define BMP_HELP_TOOLBOX_L_INDEX_ON     "sfx2/res/indexon_big.png"
-#define BMP_HELP_TOOLBOX_L_INDEX_OFF    "sfx2/res/indexoff_big.png"
-#define BMP_HELP_TOOLBOX_L_START        "res/lc06303.png"
-#define BMP_HELP_TOOLBOX_L_PREV         "res/lc06301.png"
-#define BMP_HELP_TOOLBOX_L_NEXT         "res/lc06300.png"
-#define BMP_HELP_TOOLBOX_L_PRINT        "res/lc05504.png"
-#define BMP_HELP_TOOLBOX_L_BOOKMARKS    "sfx2/res/favourite_big.png"
-#define BMP_HELP_TOOLBOX_L_SEARCHDIALOG "res/lc05961.png"
+#define BMP_HELP_TOOLBOX_INDEX_ON           "sfx2/res/indexon_small.png"
+#define BMP_HELP_TOOLBOX_INDEX_OFF          "sfx2/res/indexoff_small.png"
+#define BMP_HELP_TOOLBOX_START              "res/sc06303.png"
+#define BMP_HELP_TOOLBOX_PREV               "res/sc06301.png"
+#define BMP_HELP_TOOLBOX_NEXT               "res/sc06300.png"
+#define BMP_HELP_TOOLBOX_PRINT              "res/sc05504.png"
+#define BMP_HELP_TOOLBOX_BOOKMARKS          "sfx2/res/favourite.png"
+#define BMP_HELP_TOOLBOX_SEARCHDIALOG       "sfx2/res/sc05961.png"
+#define BMP_HELP_TOOLBOX_COPY               "sfx2/res/sc05711.png"
+#define BMP_HELP_CONTENT_BOOK_OPEN          "sfx2/res/hlpbookopen.png"
+#define BMP_HELP_CONTENT_BOOK_CLOSED        "sfx2/res/hlpbookclosed.png"
+#define BMP_HELP_CONTENT_DOC                "sfx2/res/hlpdoc.png"
+#define BMP_HELP_TOOLBOX_L_INDEX_ON         "sfx2/res/indexon_big.png"
+#define BMP_HELP_TOOLBOX_L_INDEX_OFF        "sfx2/res/indexoff_big.png"
+#define BMP_HELP_TOOLBOX_L_START            "res/lc06303.png"
+#define BMP_HELP_TOOLBOX_L_PREV             "res/lc06301.png"
+#define BMP_HELP_TOOLBOX_L_NEXT             "res/lc06300.png"
+#define BMP_HELP_TOOLBOX_L_PRINT            "res/lc05504.png"
+#define BMP_HELP_TOOLBOX_L_BOOKMARKS        "sfx2/res/favourite_big.png"
+#define BMP_HELP_TOOLBOX_L_SEARCHDIALOG     "res/lc05961.png"
 
 //start, sfx2/source/sidebar/Theme.cxx
-#define CLOSEDOC                       "sfx2/res/closedoc.png"
-#define GRIP                           "sfx2/res/grip.png"
-#define OPEN_MORE                      "sfx2/res/symphony/open_more.png"
-#define MOREBUTTON                     "sfx2/res/symphony/morebutton.png"
-#define SIDEBAR_3D_LARGE               "sfx2/res/symphony/sidebar-3d-large.png"
-#define SIDEBAR_3D_SMALL               "sfx2/res/symphony/sidebar-3d-small.png"
-#define SIDEBAR_ANIMATION_LARGE        "sfx2/res/symphony/sidebar-animation-large.png"
-#define SIDEBAR_ANIMATION_SMALL        "sfx2/res/symphony/sidebar-animation-small.png"
-#define SIDEBAR_COLORS_LARGE           "sfx2/res/symphony/sidebar-colors-large.png"
-#define SIDEBAR_COLORS_SMALL           "sfx2/res/symphony/sidebar-colors-small.png"
-#define SIDEBAR_EYEDROPPER_LARGE       "sfx2/res/symphony/sidebar-eyedropper-large.png"
-#define SIDEBAR_EYEDROPPER_SMALL       "sfx2/res/symphony/sidebar-eyedropper-small.png"
-#define SIDEBAR_GALLERY_LARGE          "sfx2/res/symphony/sidebar-gallery-large.png"
-#define SIDEBAR_GALLERY_SMALL          "sfx2/res/symphony/sidebar-gallery-small.png"
-#define SIDEBAR_IMGANIM_LARGE          "sfx2/res/symphony/sidebar-imganim-large.png"
-#define SIDEBAR_IMGANIM_SMALL          "sfx2/res/symphony/sidebar-imganim-small.png"
-#define SIDEBAR_NAVIGATOR_LARGE        "sfx2/res/symphony/sidebar-navigator-large.png"
-#define SIDEBAR_NAVIGATOR_SMALL        "sfx2/res/symphony/sidebar-navigator-small.png"
-#define SIDEBAR_PROPERTY_LARGE         "sfx2/res/symphony/sidebar-property-large.png"
-#define SIDEBAR_PROPERTY_SMALL         "sfx2/res/symphony/sidebar-property-small.png"
-#define SIDEBAR_STYLE_LARGE            "sfx2/res/symphony/sidebar-style-large.png"
-#define SIDEBAR_STYLE_SMALL            "sfx2/res/symphony/sidebar-style-small.png"
-#define SIDEBAR_TEMPLATE_LARGE         "sfx2/res/symphony/sidebar-template-large.png"
-#define SIDEBAR_TEMPLATE_SMALL         "sfx2/res/symphony/sidebar-template-small.png"
-#define SIDEBAR_TRANSITION_LARGE       "sfx2/res/symphony/sidebar-transition-large.png"
-#define SIDEBAR_TRANSITION_SMALL       "sfx2/res/symphony/sidebar-transition-small.png"
-#define SIDEBAR_FUNCTIONS_LARGE        "sfx2/res/symphony/sidebar-functions-large.png"
-#define SIDEBAR_FUNCTIONS_SMALL        "sfx2/res/symphony/sidebar-functions-small.png"
+#define CLOSEDOC                            "sfx2/res/closedoc.png"
+#define GRIP                                "sfx2/res/grip.png"
+#define OPEN_MORE                           "sfx2/res/symphony/open_more.png"
+#define MOREBUTTON                          "sfx2/res/symphony/morebutton.png"
+#define SIDEBAR_3D_LARGE                    "sfx2/res/symphony/sidebar-3d-large.png"
+#define SIDEBAR_3D_SMALL                    "sfx2/res/symphony/sidebar-3d-small.png"
+#define SIDEBAR_ANIMATION_LARGE             "sfx2/res/symphony/sidebar-animation-large.png"
+#define SIDEBAR_ANIMATION_SMALL             "sfx2/res/symphony/sidebar-animation-small.png"
+#define SIDEBAR_COLORS_LARGE                "sfx2/res/symphony/sidebar-colors-large.png"
+#define SIDEBAR_COLORS_SMALL                "sfx2/res/symphony/sidebar-colors-small.png"
+#define SIDEBAR_EYEDROPPER_LARGE            "sfx2/res/symphony/sidebar-eyedropper-large.png"
+#define SIDEBAR_EYEDROPPER_SMALL            "sfx2/res/symphony/sidebar-eyedropper-small.png"
+#define SIDEBAR_GALLERY_LARGE               "sfx2/res/symphony/sidebar-gallery-large.png"
+#define SIDEBAR_GALLERY_SMALL               "sfx2/res/symphony/sidebar-gallery-small.png"
+#define SIDEBAR_IMGANIM_LARGE               "sfx2/res/symphony/sidebar-imganim-large.png"
+#define SIDEBAR_IMGANIM_SMALL               "sfx2/res/symphony/sidebar-imganim-small.png"
+#define SIDEBAR_NAVIGATOR_LARGE             "sfx2/res/symphony/sidebar-navigator-large.png"
+#define SIDEBAR_NAVIGATOR_SMALL             "sfx2/res/symphony/sidebar-navigator-small.png"
+#define SIDEBAR_PROPERTY_LARGE              "sfx2/res/symphony/sidebar-property-large.png"
+#define SIDEBAR_PROPERTY_SMALL              "sfx2/res/symphony/sidebar-property-small.png"
+#define SIDEBAR_STYLE_LARGE                 "sfx2/res/symphony/sidebar-style-large.png"
+#define SIDEBAR_STYLE_SMALL                 "sfx2/res/symphony/sidebar-style-small.png"
+#define SIDEBAR_TEMPLATE_LARGE              "sfx2/res/symphony/sidebar-template-large.png"
+#define SIDEBAR_TEMPLATE_SMALL              "sfx2/res/symphony/sidebar-template-small.png"
+#define SIDEBAR_TRANSITION_LARGE            "sfx2/res/symphony/sidebar-transition-large.png"
+#define SIDEBAR_TRANSITION_SMALL            "sfx2/res/symphony/sidebar-transition-small.png"
+#define SIDEBAR_FUNCTIONS_LARGE             "sfx2/res/symphony/sidebar-functions-large.png"
+#define SIDEBAR_FUNCTIONS_SMALL             "sfx2/res/symphony/sidebar-functions-small.png"
 //end, sfx2/source/sidebar/Theme.cxx
 
+#define SFX_THUMBNAIL_TEXT                  "res/ott_96_8.png"
+#define SFX_THUMBNAIL_SHEET                 "res/ots_96_8.png"
+#define SFX_THUMBNAIL_PRESENTATION          "res/otp_96_8.png"
+#define SFX_THUMBNAIL_DRAWING               "res/otg_96_8.png"
+#define SFX_FILE_THUMBNAIL_TEXT             "res/writer128.png"
+#define SFX_FILE_THUMBNAIL_SHEET            "res/calc128.png"
+#define SFX_FILE_THUMBNAIL_PRESENTATION     "res/impress128.png"
+#define SFX_FILE_THUMBNAIL_DRAWING          "res/draw128.png"
+#define SFX_FILE_THUMBNAIL_DATABASE         "res/base128.png"
+#define SFX_FILE_THUMBNAIL_MATH             "res/math128.png"
+#define SFX_FILE_THUMBNAIL_DEFAULT          "res/main128.png"
+
+#define BMP_WELCOME                         "sfx2/res/logo.png"
+#define BMP_RECENTDOC_REMOVE                "res/recentdoc_remove.png"
+#define BMP_RECENTDOC_REMOVE_HIGHLIGHTED    "res/recentdoc_remove_highlighted.png"
+#define BMP_DEFAULT                         "res/templatestar.png"
+#define BMP_ACTION_REFRESH                  "res/reload.png"
+
+#define BMP_128X128_CALC_DOC                "sfx2/res/128x128_calc_doc-p.png"
+#define BMP_128X128_DRAW_DOC                "sfx2/res/128x128_draw_doc-p.png"
+#define BMP_128X128_IMPRESS_DOC             "sfx2/res/128x128_impress_doc-p.png"
+#define BMP_128X128_MATH_DOC                "sfx2/res/128x128_math_doc-p.png"
+#define BMP_128X128_WRITER_DOC              "sfx2/res/128x128_writer_doc-p.png"
+
+#define SFX_BMP_PROPERTY_REMOVE             "sfx2/res/deleterow.png"
+#define SFX_BMP_CLOSE_DOC                   "sfx2/res/closedoc.png"
+
+#define RID_SFXBMP_WATERCAN                 "res/sc05554.png"
+#define RID_SFXBMP_NEW_BY_EXAMPLE           "res/sc05555.png"
+#define RID_SFXBMP_UPDATE_BY_EXAMPLE        "res/sc05556.png"
+
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/sfx2/inc/doc.hrc b/sfx2/inc/doc.hrc
index 1faf84e21c01..f6ae529b83df 100644
--- a/sfx2/inc/doc.hrc
+++ b/sfx2/inc/doc.hrc
@@ -55,13 +55,6 @@
 
 #define STR_LABEL_FILEFORMAT                (RID_SFX_DOC_START+96)
 
-// some icons are commented out since they are removed
-#define BMP_128X128_CALC_DOC                (RID_SFX_DOC_START+99)
-#define BMP_128X128_DRAW_DOC                (RID_SFX_DOC_START+102)
-#define BMP_128X128_IMPRESS_DOC             (RID_SFX_DOC_START+104)
-#define BMP_128X128_MATH_DOC                (RID_SFX_DOC_START+107)
-#define BMP_128X128_WRITER_DOC              (RID_SFX_DOC_START+108)
-
 #define STR_HIDDENINFO_CONTAINS             (RID_SFX_DOC_START+110)
 #define STR_HIDDENINFO_RECORDCHANGES        (RID_SFX_DOC_START+111)
 #define STR_HIDDENINFO_NOTES                (RID_SFX_DOC_START+112)
@@ -91,7 +84,6 @@
 #define STR_QMSG_SEL_FOLDER_DELETE          (RID_SFX_DOC_START+146)
 #define STR_QMSG_TEMPLATE_OVERWRITE         (RID_SFX_DOC_START+147)
 #define STR_QMSG_SEL_TEMPLATE_DELETE        (RID_SFX_DOC_START+148)
-#define BMP_ACTION_REFRESH                  (RID_SFX_DOC_START+150)
 
 #define STR_OPEN                            (RID_SFX_DOC_START+151)
 #define STR_EDIT_TEMPLATE                   (RID_SFX_DOC_START+152)
diff --git a/sfx2/source/appl/sfx.src b/sfx2/source/appl/sfx.src
index 45f4e8d3522b..c6162a8ff9e6 100644
--- a/sfx2/source/appl/sfx.src
+++ b/sfx2/source/appl/sfx.src
@@ -39,59 +39,4 @@ String STR_MODULENOTINSTALLED
     Text [ en-US ] = "The action could not be executed. The %PRODUCTNAME program module needed for this action is currently not installed.";
 };
 
-Bitmap ( SFX_THUMBNAIL_TEXT )
-{
-    File = "ott_96_8.png";
-};
-
-Bitmap ( SFX_THUMBNAIL_SHEET )
-{
-    File = "ots_96_8.png";
-};
-
-Bitmap ( SFX_THUMBNAIL_PRESENTATION )
-{
-    File = "otp_96_8.png";
-};
-
-Bitmap ( SFX_THUMBNAIL_DRAWING )
-{
-    File = "otg_96_8.png";
-};
-
-Bitmap ( SFX_FILE_THUMBNAIL_TEXT )
-{
-    File = "writer128.png";
-};
-
-Bitmap ( SFX_FILE_THUMBNAIL_SHEET )
-{
-    File = "calc128.png";
-};
-
-Bitmap ( SFX_FILE_THUMBNAIL_PRESENTATION )
-{
-    File = "impress128.png";
-};
-
-Bitmap ( SFX_FILE_THUMBNAIL_DRAWING )
-{
-    File = "draw128.png";
-};
-
-Bitmap ( SFX_FILE_THUMBNAIL_DATABASE )
-{
-    File = "base128.png";
-};
-
-Bitmap ( SFX_FILE_THUMBNAIL_MATH )
-{
-    File = "math128.png";
-};
-
-Bitmap ( SFX_FILE_THUMBNAIL_DEFAULT )
-{
-    File = "main128.png";
-};
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index e068c0f3d989..d61e0e05e6aa 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -31,6 +31,7 @@
 #include <com/sun/star/frame/Desktop.hpp>
 #include <com/sun/star/frame/XFrame.hpp>
 #include <templateview.hrc>
+#include "bitmaps.hlst"
 
 #include <officecfg/Office/Common.hxx>
 
@@ -62,7 +63,7 @@ RecentDocsView::RecentDocsView( vcl::Window* pParent )
     , mnItemPadding(5)
     , mnItemMaxTextLength(30)
     , mnLastMouseDownItem(THUMBNAILVIEW_ITEM_NOTFOUND)
-    , maWelcomeImage(BitmapEx(SfxResId(BMP_WELCOME)))
+    , maWelcomeImage(BitmapEx(BMP_WELCOME))
     , maWelcomeLine1(SfxResId(STR_WELCOME_LINE1))
     , maWelcomeLine2(SfxResId(STR_WELCOME_LINE2))
 {
@@ -140,19 +141,19 @@ BitmapEx RecentDocsView::getDefaultThumbnail(const OUString &rURL)
     OUString aExt = aUrl.getExtension();
 
     if (typeMatchesExtension(ApplicationType::TYPE_WRITER, aExt))
-        aImg = BitmapEx ( SfxResId( SFX_FILE_THUMBNAIL_TEXT ) );
+        aImg = BitmapEx(SFX_FILE_THUMBNAIL_TEXT);
     else if (typeMatchesExtension(ApplicationType::TYPE_CALC, aExt))
-        aImg = BitmapEx ( SfxResId( SFX_FILE_THUMBNAIL_SHEET ) );
+        aImg = BitmapEx(SFX_FILE_THUMBNAIL_SHEET);
     else if (typeMatchesExtension(ApplicationType::TYPE_IMPRESS, aExt))
-        aImg = BitmapEx ( SfxResId( SFX_FILE_THUMBNAIL_PRESENTATION ) );
+        aImg = BitmapEx(SFX_FILE_THUMBNAIL_PRESENTATION);
     else if (typeMatchesExtension(ApplicationType::TYPE_DRAW, aExt))
-        aImg = BitmapEx ( SfxResId( SFX_FILE_THUMBNAIL_DRAWING ) );
+        aImg = BitmapEx(SFX_FILE_THUMBNAIL_DRAWING);
     else if (typeMatchesExtension(ApplicationType::TYPE_DATABASE, aExt))
-        aImg = BitmapEx ( SfxResId( SFX_FILE_THUMBNAIL_DATABASE ) );
+        aImg = BitmapEx(SFX_FILE_THUMBNAIL_DATABASE);
     else if (typeMatchesExtension(ApplicationType::TYPE_MATH, aExt))
-        aImg = BitmapEx ( SfxResId( SFX_FILE_THUMBNAIL_MATH ) );
+        aImg = BitmapEx(SFX_FILE_THUMBNAIL_MATH);
     else
-        aImg = BitmapEx ( SfxResId( SFX_FILE_THUMBNAIL_DEFAULT ) );
+        aImg = BitmapEx(SFX_FILE_THUMBNAIL_DEFAULT);
 
     return aImg;
 }
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx
index 5b8080171d93..289edbb7ba19 100644
--- a/sfx2/source/control/recentdocsviewitem.cxx
+++ b/sfx2/source/control/recentdocsviewitem.cxx
@@ -24,6 +24,7 @@
 #include <vcl/svapp.hxx>
 
 #include <templateview.hrc>
+#include "bitmaps.hlst"
 
 using namespace basegfx;
 using namespace com::sun::star;
@@ -36,8 +37,8 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR
     : ThumbnailViewItem(rView, nId),
       maURL(rURL),
       m_bRemoveIconHighlighted(false),
-      m_aRemoveRecentBitmap(SfxResId(BMP_RECENTDOC_REMOVE)),
-      m_aRemoveRecentBitmapHighlighted(SfxResId(BMP_RECENTDOC_REMOVE_HIGHLIGHTED))
+      m_aRemoveRecentBitmap(BMP_RECENTDOC_REMOVE),
+      m_aRemoveRecentBitmapHighlighted(BMP_RECENTDOC_REMOVE_HIGHLIGHTED)
 {
     OUString aTitle(rTitle);
     INetURLObject aURLObj(rURL);
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index db5b07420333..d6432a65ed28 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -36,6 +36,7 @@
 
 #include <doc.hrc>
 #include "templateview.hrc"
+#include "bitmaps.hlst"
 
 #define MNI_OPEN               1
 #define MNI_EDIT               2
@@ -1020,13 +1021,13 @@ BitmapEx TemplateLocalView::getDefaultThumbnail( const OUString& rPath )
     OUString aExt = aUrl.getExtension();
 
     if ( ViewFilter_Application::isFilteredExtension( FILTER_APPLICATION::WRITER, aExt) )
-        aImg = BitmapEx ( SfxResId( SFX_THUMBNAIL_TEXT ) );
+        aImg = BitmapEx(SFX_THUMBNAIL_TEXT);
     else if ( ViewFilter_Application::isFilteredExtension( FILTER_APPLICATION::CALC, aExt) )
-        aImg = BitmapEx ( SfxResId( SFX_THUMBNAIL_SHEET ) );
+        aImg = BitmapEx(SFX_THUMBNAIL_SHEET);
     else if ( ViewFilter_Application::isFilteredExtension( FILTER_APPLICATION::IMPRESS, aExt) )
-        aImg = BitmapEx ( SfxResId( SFX_THUMBNAIL_PRESENTATION ) );
+        aImg = BitmapEx(SFX_THUMBNAIL_PRESENTATION);
     else if ( ViewFilter_Application::isFilteredExtension( FILTER_APPLICATION::DRAW, aExt) )
-        aImg = BitmapEx ( SfxResId( SFX_THUMBNAIL_DRAWING ) );
+        aImg = BitmapEx(SFX_THUMBNAIL_DRAWING);
 
     return aImg;
 }
diff --git a/sfx2/source/control/templatesearchview.cxx b/sfx2/source/control/templatesearchview.cxx
index 1695fa25913f..55e424873dc3 100644
--- a/sfx2/source/control/templatesearchview.cxx
+++ b/sfx2/source/control/templatesearchview.cxx
@@ -15,6 +15,7 @@
 #include <vcl/layout.hxx>
 
 #include <doc.hrc>
+#include "bitmaps.hlst"
 
 #include <vcl/builderfactory.hxx>
 
@@ -242,13 +243,13 @@ BitmapEx TemplateSearchView::getDefaultThumbnail( const OUString& rPath )
     OUString aExt = aUrl.getExtension();
 
     if ( ViewFilter_Application::isFilteredExtension( FILTER_APPLICATION::WRITER, aExt) )
-        aImg = BitmapEx ( SfxResId( SFX_THUMBNAIL_TEXT ) );
+        aImg = BitmapEx(SFX_THUMBNAIL_TEXT);
     else if ( ViewFilter_Application::isFilteredExtension( FILTER_APPLICATION::CALC, aExt) )
-        aImg = BitmapEx ( SfxResId( SFX_THUMBNAIL_SHEET ) );
+        aImg = BitmapEx(SFX_THUMBNAIL_SHEET);
     else if ( ViewFilter_Application::isFilteredExtension( FILTER_APPLICATION::IMPRESS, aExt) )
-        aImg = BitmapEx ( SfxResId( SFX_THUMBNAIL_PRESENTATION ) );
+        aImg = BitmapEx(SFX_THUMBNAIL_PRESENTATION);
     else if ( ViewFilter_Application::isFilteredExtension( FILTER_APPLICATION::DRAW, aExt) )
-        aImg = BitmapEx ( SfxResId( SFX_THUMBNAIL_DRAWING ) );
+        aImg = BitmapEx(SFX_THUMBNAIL_DRAWING);
 
     return aImg;
 }
diff --git a/sfx2/source/control/templateview.hrc b/sfx2/source/control/templateview.hrc
index 693cceafa509..c06aba80b963 100644
--- a/sfx2/source/control/templateview.hrc
+++ b/sfx2/source/control/templateview.hrc
@@ -9,9 +9,5 @@
 
 #define STR_WELCOME_LINE1                259
 #define STR_WELCOME_LINE2                260
-#define BMP_WELCOME                      261
-#define BMP_RECENTDOC_REMOVE             262
-#define BMP_RECENTDOC_REMOVE_HIGHLIGHTED 263
-#define BMP_DEFAULT                      264
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/control/templateview.src b/sfx2/source/control/templateview.src
index cf05b69773e9..0a39ee7243a6 100644
--- a/sfx2/source/control/templateview.src
+++ b/sfx2/source/control/templateview.src
@@ -19,24 +19,4 @@ String STR_WELCOME_LINE2
     Text [ en-US ] = "Drop a document here or pick an app from the left side to create one.";
 };
 
-Bitmap BMP_WELCOME
-{
-    File = "logo.png";
-};
-
-Bitmap BMP_RECENTDOC_REMOVE
-{
-    File = "recentdoc_remove.png";
-};
-
-Bitmap BMP_RECENTDOC_REMOVE_HIGHLIGHTED
-{
-    File = "recentdoc_remove_highlighted.png";
-};
-
-Bitmap BMP_DEFAULT
-{
-    File = "templatestar.png";
-};
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/control/templateviewitem.cxx b/sfx2/source/control/templateviewitem.cxx
index 9a32bc8efa09..ffa069410ab0 100644
--- a/sfx2/source/control/templateviewitem.cxx
+++ b/sfx2/source/control/templateviewitem.cxx
@@ -24,6 +24,7 @@
 #include <sfx2/sfxresid.hxx>
 
 #include <templateview.hrc>
+#include "bitmaps.hlst"
 
 using namespace basegfx;
 using namespace basegfx::tools;
@@ -34,7 +35,7 @@ TemplateViewItem::TemplateViewItem (ThumbnailView &rView, sal_uInt16 nId)
     : ThumbnailViewItem(rView, nId),
       mnRegionId(USHRT_MAX),
       mnDocId(USHRT_MAX),
-      maDefaultBitmap(SfxResId(BMP_DEFAULT)),
+      maDefaultBitmap(BMP_DEFAULT),
       mbIsDefaultTemplate(false)
 {
 }
diff --git a/sfx2/source/dialog/dialog.hrc b/sfx2/source/dialog/dialog.hrc
index fc3e67ea53ab..52e2477aec36 100644
--- a/sfx2/source/dialog/dialog.hrc
+++ b/sfx2/source/dialog/dialog.hrc
@@ -53,9 +53,6 @@
 #define STR_STYLE_ELEMTLIST             ( RC_DIALOG_BEGIN + 125 )
 #define STR_FONT_TABPAGE                ( RC_DIALOG_BEGIN + 126 )
 #define STR_PREVIEW_CHECKBOX            ( RC_DIALOG_BEGIN + 127 )
-#define RID_SFXBMP_WATERCAN             ( RC_DIALOG_BEGIN + 128 )
-#define RID_SFXBMP_NEW_BY_EXAMPLE       ( RC_DIALOG_BEGIN + 129 )
-#define RID_SFXBMP_UPDATE_BY_EXAMPLE    ( RC_DIALOG_BEGIN + 130 )
 
 #endif
 
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 68b5eda251a8..d74c57e53f23 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -70,6 +70,7 @@
 #include "app.hrc"
 #include "sfxlocal.hrc"
 #include <dialog.hrc>
+#include "bitmaps.hlst"
 #include <vcl/help.hxx>
 #include <vcl/builderfactory.hxx>
 
@@ -1450,7 +1451,7 @@ CustomPropertyLine::CustomPropertyLine( vcl::Window* pParent ) :
     m_aTimeField->SetExtFormat( ExtTimeFieldFormat::Long24H );
     m_aDateField->SetExtDateFormat( ExtDateFieldFormat::SystemShortYYYY );
 
-    m_aRemoveButton->SetModeImage(Image(BitmapEx(SfxResId(SFX_BMP_PROPERTY_REMOVE))));
+    m_aRemoveButton->SetModeImage(Image(BitmapEx(SFX_BMP_PROPERTY_REMOVE)));
     m_aRemoveButton->SetQuickHelpText(SfxResId(STR_SFX_REMOVE_PROPERTY).toString());
 
     m_aEditButton->SetText(SfxResId(SFX_ST_EDIT).toString());
diff --git a/sfx2/source/dialog/dinfdlg.src b/sfx2/source/dialog/dinfdlg.src
index 96cd929e63f5..15fca113f380 100644
--- a/sfx2/source/dialog/dinfdlg.src
+++ b/sfx2/source/dialog/dinfdlg.src
@@ -93,11 +93,6 @@ String STR_SFX_REMOVE_PROPERTY
     Text [ en-US ] = "Remove Property" ;
 };
 
-Bitmap SFX_BMP_PROPERTY_REMOVE
-{
-    File = "deleterow.bmp";
-};
-
 String STR_SFX_QUERY_WRONG_TYPE
 {
     Text [ en-US ] = "The value entered does not match the specified type.\nThe value will be stored as text." ;
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index bd5684b947a2..b2a323aa6fe7 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -58,6 +58,7 @@
 #include <sfx2/doctempl.hxx>
 #include <sfx2/module.hxx>
 #include "helpid.hrc"
+#include "bitmaps.hlst"
 #include "appdata.hxx"
 #include <sfx2/viewfrm.hxx>
 
@@ -2160,13 +2161,13 @@ SfxTemplateDialog_Impl::SfxTemplateDialog_Impl(SfxBindings* pB, SfxTemplatePanel
     , m_aActionTbL(VclPtrInstance<DropToolBox_Impl>(pDlgWindow, this))
     , m_aActionTbR(VclPtrInstance<ToolBox>(pDlgWindow))
 {
-    m_aActionTbR->InsertItem(SID_STYLE_WATERCAN, Image(BitmapEx(SfxResId(RID_SFXBMP_WATERCAN))), SfxResId(STR_STYLE_FILL_FORMAT_MODE).toString());
+    m_aActionTbR->InsertItem(SID_STYLE_WATERCAN, Image(BitmapEx(RID_SFXBMP_WATERCAN)), SfxResId(STR_STYLE_FILL_FORMAT_MODE).toString());
     m_aActionTbR->SetHelpId(SID_STYLE_WATERCAN, HID_TEMPLDLG_WATERCAN);
 
-    m_aActionTbR->InsertItem(SID_STYLE_NEW_BY_EXAMPLE, Image(BitmapEx(SfxResId(RID_SFXBMP_NEW_BY_EXAMPLE))), SfxResId(STR_STYLE_NEW_STYLE_FROM_SELECTION).toString());
+    m_aActionTbR->InsertItem(SID_STYLE_NEW_BY_EXAMPLE, Image(BitmapEx(RID_SFXBMP_NEW_BY_EXAMPLE)), SfxResId(STR_STYLE_NEW_STYLE_FROM_SELECTION).toString());
     m_aActionTbR->SetHelpId(SID_STYLE_NEW_BY_EXAMPLE, HID_TEMPLDLG_NEWBYEXAMPLE);
 
-    m_aActionTbR->InsertItem(SID_STYLE_UPDATE_BY_EXAMPLE, Image(BitmapEx(SfxResId(RID_SFXBMP_UPDATE_BY_EXAMPLE))), SfxResId(STR_STYLE_UPDATE_STYLE).toString());
+    m_aActionTbR->InsertItem(SID_STYLE_UPDATE_BY_EXAMPLE, Image(BitmapEx(RID_SFXBMP_UPDATE_BY_EXAMPLE)), SfxResId(STR_STYLE_UPDATE_STYLE).toString());
     m_aActionTbR->SetHelpId(SID_STYLE_UPDATE_BY_EXAMPLE, HID_TEMPLDLG_UPDATEBYEXAMPLE);
 
     Initialize();
diff --git a/sfx2/source/dialog/templdlg.src b/sfx2/source/dialog/templdlg.src
index 5eb3c9db886d..d1c7fc510171 100644
--- a/sfx2/source/dialog/templdlg.src
+++ b/sfx2/source/dialog/templdlg.src
@@ -21,21 +21,6 @@
 #include "dialog.hrc"
 #include "helpid.hrc"
 
-Bitmap RID_SFXBMP_WATERCAN
-{
-    File = "sc05554.png";
-};
-
-Bitmap RID_SFXBMP_NEW_BY_EXAMPLE
-{
-    File = "sc05555.png";
-};
-
-Bitmap RID_SFXBMP_UPDATE_BY_EXAMPLE
-{
-    File = "sc05556.png";
-};
-
 // Strings ---------------------------------------------------------------
 String STR_STYLE_ELEMTLIST
 {
diff --git a/sfx2/source/dialog/titledockwin.cxx b/sfx2/source/dialog/titledockwin.cxx
index e917c24a4b98..e8496186bb19 100644
--- a/sfx2/source/dialog/titledockwin.cxx
+++ b/sfx2/source/dialog/titledockwin.cxx
@@ -22,6 +22,7 @@
 #include <sfx2/bindings.hxx>
 #include <sfx2/dispatch.hxx>
 #include "sfxlocal.hrc"
+#include "bitmaps.hlst"
 #include <sfx2/sfxresid.hxx>
 
 #include <svl/eitem.hxx>
@@ -214,7 +215,7 @@ namespace sfx2
         m_aToolbox->Clear();
 
         // Get the closer bitmap and set it as right most button.
-        BitmapEx aBitmapEx(SfxResId(SFX_BMP_CLOSE_DOC));
+        BitmapEx aBitmapEx(SFX_BMP_CLOSE_DOC);
         m_aToolbox->InsertItem(1, Image(aBitmapEx));
         m_aToolbox->ShowItem( 1 );
     }
diff --git a/sfx2/source/dialog/titledockwin.src b/sfx2/source/dialog/titledockwin.src
deleted file mode 100644
index f60c61f17085..000000000000
--- a/sfx2/source/dialog/titledockwin.src
+++ /dev/null
@@ -1,28 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <sfx2/sfx.hrc>
-#include "sfxlocal.hrc"
-
-Bitmap SFX_BMP_CLOSE_DOC
-{
-    File = "closedoc.png";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/doc/doc.src b/sfx2/source/doc/doc.src
index a85b510eef75..f884e0d6651d 100644
--- a/sfx2/source/doc/doc.src
+++ b/sfx2/source/doc/doc.src
@@ -304,9 +304,4 @@ String STR_QMSG_ERROR_OPENING_FILE_CONTINUE
     Text [ en-US ] = "\nProceeding with import may cause data loss or corruption, and application may become unstable or crash.\n\nDo you want to ignore the error and attempt to continue loading the file?";
 };
 
-Bitmap BMP_ACTION_REFRESH
-{
-    File = "reload.png";
-};
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/doc/graphhelp.cxx b/sfx2/source/doc/graphhelp.cxx
index 581895ba693f..be1c58bc96ef 100644
--- a/sfx2/source/doc/graphhelp.cxx
+++ b/sfx2/source/doc/graphhelp.cxx
@@ -52,6 +52,7 @@
 #include <sfx2/sfxresid.hxx>
 #include "graphhelp.hxx"
 #include "doc.hrc"
+#include "bitmaps.hlst"
 
 #include <memory>
 
@@ -205,16 +206,16 @@ bool GraphicHelper::getThumbnailFormatFromGDI_Impl(GDIMetaFile* pMetaFile, const
 }
 
 // static
-bool GraphicHelper::getThumbnailReplacement_Impl( sal_Int32 nResID, const uno::Reference< io::XStream >& xStream )
+bool GraphicHelper::getThumbnailReplacement_Impl(const OUString& rResID, const uno::Reference< io::XStream >& xStream )
 {
     bool bResult = false;
-    if ( nResID && xStream.is() )
+    if (!rResID.isEmpty() && xStream.is())
     {
         uno::Reference< uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
         try
         {
             uno::Reference< graphic::XGraphicProvider > xGraphProvider(graphic::GraphicProvider::create(xContext));
-            const OUString aURL{"private:resource/sfx/bitmapex/"+OUString::number( nResID )};
+            const OUString aURL{"private:graphicrepository/" + rResID};
 
             uno::Sequence< beans::PropertyValue > aMediaProps( 1 );
             aMediaProps[0].Name = "URL";
@@ -241,34 +242,33 @@ bool GraphicHelper::getThumbnailReplacement_Impl( sal_Int32 nResID, const uno::R
     return bResult;
 }
 
-
 // static
-sal_uInt16 GraphicHelper::getThumbnailReplacementIDByFactoryName_Impl( const OUString& aFactoryShortName, bool /*bIsTemplate*/ )
+OUString GraphicHelper::getThumbnailReplacementIDByFactoryName_Impl( const OUString& aFactoryShortName, bool /*bIsTemplate*/ )
 {
-    sal_uInt16 nResult = 0;
+    OUString sResult;
 
     if ( aFactoryShortName == "scalc" )
     {
-        nResult = BMP_128X128_CALC_DOC;
+        sResult = BMP_128X128_CALC_DOC;
     }
     else if ( aFactoryShortName == "sdraw" )
     {
-        nResult = BMP_128X128_DRAW_DOC;
+        sResult = BMP_128X128_DRAW_DOC;
     }
     else if ( aFactoryShortName == "simpress" )
     {
-        nResult = BMP_128X128_IMPRESS_DOC;
+        sResult = BMP_128X128_IMPRESS_DOC;
     }
     else if ( aFactoryShortName == "smath" )
     {
-        nResult = BMP_128X128_MATH_DOC;
+        sResult = BMP_128X128_MATH_DOC;
     }
     else if ( aFactoryShortName == "swriter" || aFactoryShortName.startsWith("swriter/") )
     {
-        nResult = BMP_128X128_WRITER_DOC;
+        sResult = BMP_128X128_WRITER_DOC;
     }
 
-    return nResult;
+    return sResult;
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/doc/graphhelp.hxx b/sfx2/source/doc/graphhelp.hxx
index f70ebccf5a10..8a1d8ac89d97 100644
--- a/sfx2/source/doc/graphhelp.hxx
+++ b/sfx2/source/doc/graphhelp.hxx
@@ -52,11 +52,11 @@ public:
             GDIMetaFile* pMetaFile,
             const css::uno::Reference< css::io::XStream >& xStream );
 
-    static sal_uInt16 getThumbnailReplacementIDByFactoryName_Impl( const OUString& aFactoryShortName,
-                                                                    bool bIsTemplate );
+    static OUString getThumbnailReplacementIDByFactoryName_Impl(const OUString& aFactoryShortName,
+                                                                bool bIsTemplate);
 
     static bool getThumbnailReplacement_Impl(
-            sal_Int32 nResID,
+            const OUString& rResID,
             const css::uno::Reference< css::io::XStream >& xStream );
 
 };
diff --git a/sfx2/source/doc/graphhelp.src b/sfx2/source/doc/graphhelp.src
deleted file mode 100644
index db2357fc1ab0..000000000000
--- a/sfx2/source/doc/graphhelp.src
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "doc.hrc"
-
-Bitmap BMP_128X128_CALC_DOC
-{
-    File = "128x128_calc_doc-p.png";
-};
-
-Bitmap BMP_128X128_DRAW_DOC
-{
-    File = "128x128_draw_doc-p.png";
-};
-
-Bitmap BMP_128X128_IMPRESS_DOC
-{
-    File = "128x128_impress_doc-p.png";
-};
-
-Bitmap BMP_128X128_MATH_DOC
-{
-    File = "128x128_math_doc-p.png";
-};
-
-Bitmap BMP_128X128_WRITER_DOC
-{
-    File = "128x128_writer_doc-p.png";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 68fc849b58ec..dc2c032263f2 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -3471,11 +3471,11 @@ bool SfxObjectShell::WriteThumbnail(bool bEncrypted, bool bIsTemplate, const uno
             xSet->setPropertyValue("MediaType", uno::makeAny(OUString("image/png")));
         if (bEncrypted)
         {
-            const sal_uInt16 nResID = GraphicHelper::getThumbnailReplacementIDByFactoryName_Impl(
+            const OUString sResID = GraphicHelper::getThumbnailReplacementIDByFactoryName_Impl(
                 GetFactory().GetFactoryName(),
                 bIsTemplate);
-            if (nResID)
-                bResult = GraphicHelper::getThumbnailReplacement_Impl(nResID, xStream);
+            if (!sResID.isEmpty())
+                bResult = GraphicHelper::getThumbnailReplacement_Impl(sResID, xStream);
         }
         else
         {
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index a0f8da28cbb4..a5ae425edc26 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -58,6 +58,7 @@
 #include <com/sun/star/task/InteractionHandler.hpp>
 
 #include "doc.hrc"
+#include "bitmaps.hlst"
 
 const char TM_SETTING_MANAGER[] = "TemplateManager";
 const char TM_SETTING_LASTFOLDER[] = "LastFolder";
@@ -170,7 +171,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(vcl::Window *parent)
     mpActionMenu = VclPtr<PopupMenu>::Create();
     mpActionMenu->InsertItem(MNI_ACTION_NEW_FOLDER,
         SfxResId(STR_CATEGORY_NEW).toString(),
-        Image(BitmapEx(SfxResId(BMP_ACTION_REFRESH))));
+        Image(BitmapEx(BMP_ACTION_REFRESH)));
     mpActionMenu->InsertItem(MNI_ACTION_RENAME_FOLDER,
         SfxResId(STR_CATEGORY_RENAME).toString());
     mpActionMenu->InsertItem(MNI_ACTION_DELETE_FOLDER,
@@ -178,7 +179,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(vcl::Window *parent)
     mpActionMenu->InsertSeparator();
     mpActionMenu->InsertItem(MNI_ACTION_REFRESH,
         SfxResId(STR_ACTION_REFRESH).toString(),
-        Image(BitmapEx(SfxResId(BMP_ACTION_REFRESH))));
+        Image(BitmapEx(BMP_ACTION_REFRESH)));
     mpActionMenu->InsertItem(MNI_ACTION_DEFAULT,SfxResId(STR_ACTION_DEFAULT).toString());
     mpActionMenu->SetSelectHdl(LINK(this,SfxTemplateManagerDlg,MenuSelectHdl));
 
diff --git a/sfx2/source/inc/sfxlocal.hrc b/sfx2/source/inc/sfxlocal.hrc
index 100d008cbd48..bc7ff0fc20c7 100644
--- a/sfx2/source/inc/sfxlocal.hrc
+++ b/sfx2/source/inc/sfxlocal.hrc
@@ -39,10 +39,6 @@
 #define SFX_LB_PROPERTY_STRINGARRAY         (RID_SFX_SFXLOCAL_START + 12)
 #define SFX_CB_PROPERTY_STRINGARRAY         (RID_SFX_SFXLOCAL_START + 13)
 
-// Images ----------------------------------------------------------------
-#define SFX_BMP_PROPERTY_REMOVE             (RID_SFX_SFXLOCAL_START +  0)
-#define SFX_BMP_CLOSE_DOC                   (RID_SFX_SFXLOCAL_START +  2)
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list