diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-25 21:19:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-26 10:01:56 +0200 |
commit | e8a76aa83e156bd2c79aed655200c4d6d708d689 (patch) | |
tree | 175153ca48141dba5320c0c5fa546218b4cefd16 /fpicker/source | |
parent | 9b0fb3f6cae0f8e86840e476ea1a55355896bede (diff) |
remove fpicker bitmaps from .src files
Change-Id: Ice75bf15e509869bb7e8344381595838918acd81
Reviewed-on: https://gerrit.libreoffice.org/36965
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/office/PlacesListBox.cxx | 1 | ||||
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.cxx | 4 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 5 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.hrc | 4 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.hxx | 2 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.src | 20 | ||||
-rw-r--r-- | fpicker/source/office/iodlgimp.cxx | 7 | ||||
-rw-r--r-- | fpicker/source/office/iodlgimp.hxx | 2 |
8 files changed, 12 insertions, 33 deletions
diff --git a/fpicker/source/office/PlacesListBox.cxx b/fpicker/source/office/PlacesListBox.cxx index 5db9d9880317..f42a0440154a 100644 --- a/fpicker/source/office/PlacesListBox.cxx +++ b/fpicker/source/office/PlacesListBox.cxx @@ -14,6 +14,7 @@ #include <vcl/msgbox.hxx> #include <svtools/headbar.hxx> #include <svtools/svtresid.hxx> +#include "bitmaps.hlst" #define COLUMN_NAME 1 diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index 6aa6dbc18fdb..8b2b267a7e7a 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -6,8 +6,10 @@ * 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/. */ + #include "RemoteFilesDialog.hxx" #include <comphelper/stillreadwriteinteraction.hxx> +#include "bitmaps.hlst" class FileViewContainer : public vcl::Window { @@ -214,7 +216,7 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, PickerFlags nBits ) { get( m_pOk_btn, "save" ); - m_pNewFolder->SetModeImage(Image(BitmapEx(fpicker::SvtResId(BMP_FILEDLG_CREATEFOLDER)))); + m_pNewFolder->SetModeImage(Image(BitmapEx(BMP_FILEDLG_CREATEFOLDER))); m_pNewFolder->SetClickHdl( LINK( this, RemoteFilesDialog, NewFolderHdl ) ); } diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index b73d626e927d..ea78e08be205 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -46,6 +46,7 @@ #include <svtools/svtools.hrc> #include "OfficeFilePicker.hrc" #include "iodlg.hrc" +#include "bitmaps.hlst" #include "asyncfilepicker.hxx" #include "iodlgimp.hxx" #include "svtools/inettbc.hxx" @@ -2732,9 +2733,9 @@ IMPL_LINK_NOARG( SvtFileDialog, Split_Hdl, Splitter*, void ) _pSplitter->SetPosPixel( Point( placeSize.Width(), _pSplitter->GetPosPixel().Y() ) ); } -Image SvtFileDialog::GetButtonImage( sal_uInt16 _nButtonId ) +Image SvtFileDialog::GetButtonImage(const OUString& rButtonId) { - return Image(BitmapEx(SvtResId(_nButtonId))); + return Image(BitmapEx(rButtonId)); } QueryFolderNameDialog::QueryFolderNameDialog(vcl::Window* _pParent, diff --git a/fpicker/source/office/iodlg.hrc b/fpicker/source/office/iodlg.hrc index 9b0859212075..467114efb2f9 100644 --- a/fpicker/source/office/iodlg.hrc +++ b/fpicker/source/office/iodlg.hrc @@ -32,10 +32,6 @@ #define STR_PREVIEW (RID_FPICKER_START+38) #define STR_DEFAULT_DIRECTORY (RID_FPICKER_START+39) #define STR_PLACES_TITLE (RID_FPICKER_START+40) -#define BMP_FILEDLG_BTN_UP (RID_FPICKER_START+41) -#define BMP_FILEDLG_CREATEFOLDER (RID_FPICKER_START+42) -#define BMP_FILEDLG_PLACE_LOCAL (RID_FPICKER_START+43) -#define BMP_FILEDLG_PLACE_REMOTE (RID_FPICKER_START+44) #endif diff --git a/fpicker/source/office/iodlg.hxx b/fpicker/source/office/iodlg.hxx index 535ac2ecab37..4b45f44da7f8 100644 --- a/fpicker/source/office/iodlg.hxx +++ b/fpicker/source/office/iodlg.hxx @@ -238,7 +238,7 @@ public: inline void EraseDefaultExt( sal_Int32 _nIndex = 0 ); inline const OUString& GetDefaultExt() const; - static Image GetButtonImage( sal_uInt16 _nButtonId ); + static Image GetButtonImage(const OUString& rButtonId); bool ContentIsFolder( const OUString& rURL ) override { return m_aContent.isFolder( rURL ) && m_aContent.isValid(); } bool ContentHasParentFolder( const OUString& rURL ); diff --git a/fpicker/source/office/iodlg.src b/fpicker/source/office/iodlg.src index 4c3140e9e0df..74408ad7aaac 100644 --- a/fpicker/source/office/iodlg.src +++ b/fpicker/source/office/iodlg.src @@ -22,26 +22,6 @@ #include "iodlg.hrc" #include "OfficeFilePicker.hrc" -Bitmap BMP_FILEDLG_BTN_UP -{ - File = "fp010.png"; -}; - -Bitmap BMP_FILEDLG_CREATEFOLDER -{ - File = "fp014.png"; -}; - -Bitmap BMP_FILEDLG_PLACE_LOCAL -{ - File = "fp015.png"; -}; - -Bitmap BMP_FILEDLG_PLACE_REMOTE -{ - File = "fp016.png"; -}; - // strings ******************************************************************* String STR_EXPLORERFILE_OPEN diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx index 53f0b040ee97..6dd1d396e7ab 100644 --- a/fpicker/source/office/iodlgimp.cxx +++ b/fpicker/source/office/iodlgimp.cxx @@ -32,6 +32,7 @@ #include "svtools/inettbc.hxx" #include "iodlg.hxx" #include "iodlg.hrc" +#include "bitmaps.hlst" #include "svtools/imagemgr.hxx" #include <unotools/localfilehelper.hxx> #include "unotools/useroptions.hxx" @@ -86,15 +87,13 @@ SvtFileDialogFilter_Impl::~SvtFileDialogFilter_Impl() //= SvtFileDialogURLSelector - - -SvtFileDialogURLSelector::SvtFileDialogURLSelector( vcl::Window* _pParent, SvtFileDialog* _pDlg, WinBits nBits, sal_uInt16 _nButtonId ) +SvtFileDialogURLSelector::SvtFileDialogURLSelector(vcl::Window* _pParent, SvtFileDialog* _pDlg, WinBits nBits, const OUString& rButtonId) :MenuButton ( _pParent, nBits ) ,m_pDlg ( _pDlg ) ,m_pMenu ( VclPtr<PopupMenu>::Create() ) { SetStyle( GetStyle() | WB_NOPOINTERFOCUS | WB_RECTSTYLE | WB_SMALLSTYLE ); - SetModeImage( SvtFileDialog::GetButtonImage( _nButtonId ) ); + SetModeImage(SvtFileDialog::GetButtonImage(rButtonId)); SetDelayMenu(true); SetDropDown(PushButtonDropdownStyle::Toolbox); } diff --git a/fpicker/source/office/iodlgimp.hxx b/fpicker/source/office/iodlgimp.hxx index 789f3d7c2ff5..e948c8885c15 100644 --- a/fpicker/source/office/iodlgimp.hxx +++ b/fpicker/source/office/iodlgimp.hxx @@ -91,7 +91,7 @@ protected: virtual void FillURLMenu( PopupMenu* _pMenu ) = 0; - SvtFileDialogURLSelector( vcl::Window* _pParent, SvtFileDialog* _pDlg, WinBits nBits, sal_uInt16 _nButtonId ); + SvtFileDialogURLSelector(vcl::Window* _pParent, SvtFileDialog* _pDlg, WinBits nBits, const OUString& rButtonId); virtual void Activate() override; }; |