Kaydet (Commit) 9db8c85f authored tarafından Caolán McNamara's avatar Caolán McNamara

sfx2: load BitmapEx resources instead of Image ones

Change-Id: I9c5a0f1b23eadf15fee3ff78e5061474214fcc35
üst aa347e36
...@@ -104,8 +104,8 @@ ...@@ -104,8 +104,8 @@
#define STR_QMSG_SEL_FOLDER_DELETE (RID_SFX_DOC_START+146) #define STR_QMSG_SEL_FOLDER_DELETE (RID_SFX_DOC_START+146)
#define STR_QMSG_TEMPLATE_OVERWRITE (RID_SFX_DOC_START+147) #define STR_QMSG_TEMPLATE_OVERWRITE (RID_SFX_DOC_START+147)
#define STR_QMSG_SEL_TEMPLATE_DELETE (RID_SFX_DOC_START+148) #define STR_QMSG_SEL_TEMPLATE_DELETE (RID_SFX_DOC_START+148)
#define IMG_ACTION_SORT (RID_SFX_DOC_START+149) #define BMP_ACTION_SORT (RID_SFX_DOC_START+149)
#define IMG_ACTION_REFRESH (RID_SFX_DOC_START+150) #define BMP_ACTION_REFRESH (RID_SFX_DOC_START+150)
#define STR_OPEN (RID_SFX_DOC_START+151) #define STR_OPEN (RID_SFX_DOC_START+151)
#define STR_EDIT_TEMPLATE (RID_SFX_DOC_START+152) #define STR_EDIT_TEMPLATE (RID_SFX_DOC_START+152)
......
...@@ -62,7 +62,7 @@ RecentDocsView::RecentDocsView( vcl::Window* pParent ) ...@@ -62,7 +62,7 @@ RecentDocsView::RecentDocsView( vcl::Window* pParent )
, mnItemPadding(5) , mnItemPadding(5)
, mnItemMaxTextLength(30) , mnItemMaxTextLength(30)
, mnLastMouseDownItem(THUMBNAILVIEW_ITEM_NOTFOUND) , mnLastMouseDownItem(THUMBNAILVIEW_ITEM_NOTFOUND)
, maWelcomeImage(SfxResId(IMG_WELCOME)) , maWelcomeImage(BitmapEx(SfxResId(BMP_WELCOME)))
, maWelcomeLine1(SfxResId(STR_WELCOME_LINE1)) , maWelcomeLine1(SfxResId(STR_WELCOME_LINE1))
, maWelcomeLine2(SfxResId(STR_WELCOME_LINE2)) , maWelcomeLine2(SfxResId(STR_WELCOME_LINE2))
{ {
......
...@@ -36,8 +36,8 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR ...@@ -36,8 +36,8 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR
: ThumbnailViewItem(rView, nId), : ThumbnailViewItem(rView, nId),
maURL(rURL), maURL(rURL),
m_bRemoveIconHighlighted(false), m_bRemoveIconHighlighted(false),
m_aRemoveRecentBitmap(SfxResId(IMG_RECENTDOC_REMOVE)), m_aRemoveRecentBitmap(SfxResId(BMP_RECENTDOC_REMOVE)),
m_aRemoveRecentBitmapHighlighted(SfxResId(IMG_RECENTDOC_REMOVE_HIGHLIGHTED)) m_aRemoveRecentBitmapHighlighted(SfxResId(BMP_RECENTDOC_REMOVE_HIGHLIGHTED))
{ {
OUString aTitle(rTitle); OUString aTitle(rTitle);
INetURLObject aURLObj(rURL); INetURLObject aURLObj(rURL);
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
#define STR_WELCOME_LINE1 259 #define STR_WELCOME_LINE1 259
#define STR_WELCOME_LINE2 260 #define STR_WELCOME_LINE2 260
#define IMG_WELCOME 261 #define BMP_WELCOME 261
#define IMG_RECENTDOC_REMOVE 262 #define BMP_RECENTDOC_REMOVE 262
#define IMG_RECENTDOC_REMOVE_HIGHLIGHTED 263 #define BMP_RECENTDOC_REMOVE_HIGHLIGHTED 263
#define IMG_DEFAULT 264 #define BMP_DEFAULT 264
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -19,22 +19,22 @@ String STR_WELCOME_LINE2 ...@@ -19,22 +19,22 @@ String STR_WELCOME_LINE2
Text [ en-US ] = "Drop a document here or pick an app from the left side to create one."; Text [ en-US ] = "Drop a document here or pick an app from the left side to create one.";
}; };
Image IMG_WELCOME Bitmap BMP_WELCOME
{ {
ImageBitmap = Bitmap { File = "logo.png" ; }; File = "logo.png";
}; };
Bitmap IMG_RECENTDOC_REMOVE Bitmap BMP_RECENTDOC_REMOVE
{ {
File = "recentdoc_remove.png"; File = "recentdoc_remove.png";
}; };
Bitmap IMG_RECENTDOC_REMOVE_HIGHLIGHTED Bitmap BMP_RECENTDOC_REMOVE_HIGHLIGHTED
{ {
File = "recentdoc_remove_highlighted.png"; File = "recentdoc_remove_highlighted.png";
}; };
Bitmap IMG_DEFAULT Bitmap BMP_DEFAULT
{ {
File = "templatestar.png"; File = "templatestar.png";
}; };
......
...@@ -34,7 +34,7 @@ TemplateViewItem::TemplateViewItem (ThumbnailView &rView, sal_uInt16 nId) ...@@ -34,7 +34,7 @@ TemplateViewItem::TemplateViewItem (ThumbnailView &rView, sal_uInt16 nId)
: ThumbnailViewItem(rView, nId), : ThumbnailViewItem(rView, nId),
mnRegionId(USHRT_MAX), mnRegionId(USHRT_MAX),
mnDocId(USHRT_MAX), mnDocId(USHRT_MAX),
maDefaultBitmap(SfxResId(IMG_DEFAULT)), maDefaultBitmap(SfxResId(BMP_DEFAULT)),
mbIsDefaultTemplate(false) mbIsDefaultTemplate(false)
{ {
} }
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
#define STR_CANCEL_RECORDING ( RC_DIALOG_BEGIN + 108 ) #define STR_CANCEL_RECORDING ( RC_DIALOG_BEGIN + 108 )
#define STR_PDF_EXPORT_SEND ( RC_DIALOG_BEGIN + 120 ) #define STR_PDF_EXPORT_SEND ( RC_DIALOG_BEGIN + 120 )
#define IMG_INFO ( RC_DIALOG_BEGIN + 122 ) #define BMP_INFO ( RC_DIALOG_BEGIN + 122 )
//free //free
#define SFX_ST_EDIT ( RC_DIALOG_BEGIN + 124 ) #define SFX_ST_EDIT ( RC_DIALOG_BEGIN + 124 )
#define STR_STYLE_ELEMTLIST ( RC_DIALOG_BEGIN + 125 ) #define STR_STYLE_ELEMTLIST ( RC_DIALOG_BEGIN + 125 )
......
...@@ -108,12 +108,9 @@ String STR_PDF_EXPORT_SEND ...@@ -108,12 +108,9 @@ String STR_PDF_EXPORT_SEND
Text [ en-US ] = "Send" ; Text [ en-US ] = "Send" ;
}; };
Image IMG_INFO Bitmap BMP_INFO
{ {
ImageBitmap = Bitmap
{
File = "info.png" ; File = "info.png" ;
};
}; };
String STR_FONT_TABPAGE String STR_FONT_TABPAGE
......
...@@ -1450,7 +1450,7 @@ CustomPropertyLine::CustomPropertyLine( vcl::Window* pParent ) : ...@@ -1450,7 +1450,7 @@ CustomPropertyLine::CustomPropertyLine( vcl::Window* pParent ) :
m_aTimeField->SetExtFormat( ExtTimeFieldFormat::Long24H ); m_aTimeField->SetExtFormat( ExtTimeFieldFormat::Long24H );
m_aDateField->SetExtDateFormat( ExtDateFieldFormat::SystemShortYYYY ); m_aDateField->SetExtDateFormat( ExtDateFieldFormat::SystemShortYYYY );
m_aRemoveButton->SetModeImage(Image(SfxResId(SFX_IMG_PROPERTY_REMOVE))); m_aRemoveButton->SetModeImage(Image(BitmapEx(SfxResId(SFX_BMP_PROPERTY_REMOVE))));
m_aRemoveButton->SetQuickHelpText(SfxResId(STR_SFX_REMOVE_PROPERTY).toString()); m_aRemoveButton->SetQuickHelpText(SfxResId(STR_SFX_REMOVE_PROPERTY).toString());
m_aEditButton->SetText(SfxResId(SFX_ST_EDIT).toString()); m_aEditButton->SetText(SfxResId(SFX_ST_EDIT).toString());
......
...@@ -93,9 +93,9 @@ String STR_SFX_REMOVE_PROPERTY ...@@ -93,9 +93,9 @@ String STR_SFX_REMOVE_PROPERTY
Text [ en-US ] = "Remove Property" ; Text [ en-US ] = "Remove Property" ;
}; };
Image SFX_IMG_PROPERTY_REMOVE Bitmap SFX_BMP_PROPERTY_REMOVE
{ {
ImageBitmap = Bitmap { File = "deleterow.bmp" ; }; File = "deleterow.bmp";
}; };
String STR_SFX_QUERY_WRONG_TYPE String STR_SFX_QUERY_WRONG_TYPE
......
...@@ -214,8 +214,8 @@ namespace sfx2 ...@@ -214,8 +214,8 @@ namespace sfx2
m_aToolbox->Clear(); m_aToolbox->Clear();
// Get the closer bitmap and set it as right most button. // Get the closer bitmap and set it as right most button.
Image aImage( SfxResId( SFX_IMG_CLOSE_DOC ) ); BitmapEx aBitmapEx(SfxResId(SFX_BMP_CLOSE_DOC));
m_aToolbox->InsertItem( 1, aImage ); m_aToolbox->InsertItem(1, Image(aBitmapEx));
m_aToolbox->ShowItem( 1 ); m_aToolbox->ShowItem( 1 );
} }
......
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
#include <sfx2/sfx.hrc> #include <sfx2/sfx.hrc>
#include "sfxlocal.hrc" #include "sfxlocal.hrc"
Image SFX_IMG_CLOSE_DOC Bitmap SFX_BMP_CLOSE_DOC
{ {
ImageBitmap = Bitmap { File = "closedoc.png" ; }; File = "closedoc.png";
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -368,20 +368,14 @@ String STR_QMSG_ERROR_OPENING_FILE_CONTINUE ...@@ -368,20 +368,14 @@ 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?"; 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?";
}; };
Image IMG_ACTION_SORT Bitmap BMP_ACTION_SORT
{ {
ImageBitmap = Bitmap
{
File = "sortascending.png"; File = "sortascending.png";
};
}; };
Image IMG_ACTION_REFRESH Bitmap BMP_ACTION_REFRESH
{ {
ImageBitmap = Bitmap
{
File = "reload.png"; File = "reload.png";
};
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -172,7 +172,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(vcl::Window *parent) ...@@ -172,7 +172,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(vcl::Window *parent)
mpActionMenu = VclPtr<PopupMenu>::Create(); mpActionMenu = VclPtr<PopupMenu>::Create();
mpActionMenu->InsertItem(MNI_ACTION_NEW_FOLDER, mpActionMenu->InsertItem(MNI_ACTION_NEW_FOLDER,
SfxResId(STR_CATEGORY_NEW).toString(), SfxResId(STR_CATEGORY_NEW).toString(),
Image(SfxResId(IMG_ACTION_REFRESH))); Image(BitmapEx(SfxResId(BMP_ACTION_REFRESH))));
mpActionMenu->InsertItem(MNI_ACTION_RENAME_FOLDER, mpActionMenu->InsertItem(MNI_ACTION_RENAME_FOLDER,
SfxResId(STR_CATEGORY_RENAME).toString()); SfxResId(STR_CATEGORY_RENAME).toString());
mpActionMenu->InsertItem(MNI_ACTION_DELETE_FOLDER, mpActionMenu->InsertItem(MNI_ACTION_DELETE_FOLDER,
...@@ -180,7 +180,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(vcl::Window *parent) ...@@ -180,7 +180,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(vcl::Window *parent)
mpActionMenu->InsertSeparator(); mpActionMenu->InsertSeparator();
mpActionMenu->InsertItem(MNI_ACTION_REFRESH, mpActionMenu->InsertItem(MNI_ACTION_REFRESH,
SfxResId(STR_ACTION_REFRESH).toString(), SfxResId(STR_ACTION_REFRESH).toString(),
Image(SfxResId(IMG_ACTION_REFRESH))); Image(BitmapEx(SfxResId(BMP_ACTION_REFRESH))));
mpActionMenu->InsertItem(MNI_ACTION_DEFAULT,SfxResId(STR_ACTION_DEFAULT).toString()); mpActionMenu->InsertItem(MNI_ACTION_DEFAULT,SfxResId(STR_ACTION_DEFAULT).toString());
mpActionMenu->SetSelectHdl(LINK(this,SfxTemplateManagerDlg,MenuSelectHdl)); mpActionMenu->SetSelectHdl(LINK(this,SfxTemplateManagerDlg,MenuSelectHdl));
......
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
#define SFX_CB_PROPERTY_STRINGARRAY (RID_SFX_SFXLOCAL_START + 13) #define SFX_CB_PROPERTY_STRINGARRAY (RID_SFX_SFXLOCAL_START + 13)
// Images ---------------------------------------------------------------- // Images ----------------------------------------------------------------
#define SFX_IMG_PROPERTY_REMOVE (RID_SFX_SFXLOCAL_START + 0) #define SFX_BMP_PROPERTY_REMOVE (RID_SFX_SFXLOCAL_START + 0)
#define SFX_IMG_CLOSE_DOC (RID_SFX_SFXLOCAL_START + 2) #define SFX_BMP_CLOSE_DOC (RID_SFX_SFXLOCAL_START + 2)
#endif #endif
......
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