diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-25 21:10:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-26 10:00:49 +0200 |
commit | 9b0fb3f6cae0f8e86840e476ea1a55355896bede (patch) | |
tree | d0dadde739e63c2b1c9d2c88b088df00a43c78ee /formula/source | |
parent | ff77597f53bd72420dce0f0c43ad6687c0ae3342 (diff) |
remove formula bitmaps from .src files
Change-Id: If1f43c9ff969c12b87999424b6e4be8390307c8f
Reviewed-on: https://gerrit.libreoffice.org/36964
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/ui/dlg/formdlgs.src | 31 | ||||
-rw-r--r-- | formula/source/ui/dlg/funcutl.cxx | 8 | ||||
-rw-r--r-- | formula/source/ui/dlg/parawin.cxx | 9 | ||||
-rw-r--r-- | formula/source/ui/dlg/parawin.src | 5 | ||||
-rw-r--r-- | formula/source/ui/dlg/structpg.cxx | 10 | ||||
-rw-r--r-- | formula/source/ui/inc/ForResId.hrc | 9 |
6 files changed, 14 insertions, 58 deletions
diff --git a/formula/source/ui/dlg/formdlgs.src b/formula/source/ui/dlg/formdlgs.src index 0df94d1bde6f..d342c1d772c9 100644 --- a/formula/source/ui/dlg/formdlgs.src +++ b/formula/source/ui/dlg/formdlgs.src @@ -20,26 +20,6 @@ #include "formdlgs.hrc" #include "ForResId.hrc" -Bitmap BMP_STR_CLOSE -{ - File = "fapclose.png"; -}; - -Bitmap BMP_STR_OPEN -{ - File = "fapopen.png"; -}; - -Bitmap BMP_STR_END -{ - File = "fapok.png"; -}; - -Bitmap BMP_STR_ERROR -{ - File = "faperror.png"; -}; - String STR_TITLE1 { Text [ en-US ] = "Function Wizard" ; @@ -54,22 +34,11 @@ String STR_END { Text [ en-US ] = "~End" ; }; - -Bitmap RID_BMP_REFBTN1 -{ - File = "refinp1.png"; -}; - String RID_STR_SHRINK { Text [ en-US ] = "Shrink" ; }; -Bitmap RID_BMP_REFBTN2 -{ - File = "refinp2.png"; -}; - String RID_STR_EXPAND { Text [ en-US ] = "Expand" ; diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx index 685381fadb1c..e4e21ab98871 100644 --- a/formula/source/ui/dlg/funcutl.cxx +++ b/formula/source/ui/dlg/funcutl.cxx @@ -28,9 +28,9 @@ #include "ControlHelper.hxx" #include "ModuleHelper.hxx" #include "ForResId.hrc" +#include "bitmaps.hlst" #include "com/sun/star/accessibility/AccessibleRole.hpp" - namespace formula { @@ -524,9 +524,9 @@ IMPL_LINK_NOARG(RefEdit, UpdateHdl, Timer *, void) //class RefButton RefButton::RefButton( vcl::Window* _pParent, WinBits nStyle ) : - ImageButton( _pParent, nStyle ), - aImgRefStart(BitmapEx(ModuleRes(RID_BMP_REFBTN1))), - aImgRefDone(BitmapEx(ModuleRes(RID_BMP_REFBTN2))), + ImageButton(_pParent, nStyle), + aImgRefStart(BitmapEx(RID_BMP_REFBTN1)), + aImgRefDone(BitmapEx(RID_BMP_REFBTN2)), aShrinkQuickHelp( ModuleRes( RID_STR_SHRINK ).toString() ), aExpandQuickHelp( ModuleRes( RID_STR_EXPAND ).toString() ), pAnyRefDlg( nullptr ), diff --git a/formula/source/ui/dlg/parawin.cxx b/formula/source/ui/dlg/parawin.cxx index a2ab34ec2df8..c8e9b0ee9141 100644 --- a/formula/source/ui/dlg/parawin.cxx +++ b/formula/source/ui/dlg/parawin.cxx @@ -27,6 +27,7 @@ #include "formula/IFunctionDescription.hxx" #include "ModuleHelper.hxx" #include "ForResId.hrc" +#include "bitmaps.hlst" #define VAR_ARGS 30 #define PAIRED_VAR_ARGS (VAR_ARGS + VAR_ARGS) @@ -58,13 +59,13 @@ ParaWin::ParaWin(vcl::Window* pParent,IControlReferenceHandler* _pDlg): m_pFtArgDesc->SetText(""); get(m_pBtnFx1, "FX1"); - m_pBtnFx1->SetModeImage(Image(BitmapEx(ModuleRes(BMP_FX)))); + m_pBtnFx1->SetModeImage(Image(BitmapEx(BMP_FX))); get(m_pBtnFx2, "FX2"); - m_pBtnFx2->SetModeImage(Image(BitmapEx(ModuleRes(BMP_FX)))); + m_pBtnFx2->SetModeImage(Image(BitmapEx(BMP_FX))); get(m_pBtnFx3, "FX3"); - m_pBtnFx3->SetModeImage(Image(BitmapEx(ModuleRes(BMP_FX)))); + m_pBtnFx3->SetModeImage(Image(BitmapEx(BMP_FX))); get(m_pBtnFx4, "FX4"); - m_pBtnFx4->SetModeImage(Image(BitmapEx(ModuleRes(BMP_FX)))); + m_pBtnFx4->SetModeImage(Image(BitmapEx(BMP_FX))); get(m_pFtArg1, "FT_ARG1"); get(m_pFtArg2, "FT_ARG2"); diff --git a/formula/source/ui/dlg/parawin.src b/formula/source/ui/dlg/parawin.src index 93191b4937da..65e3085d4ce1 100644 --- a/formula/source/ui/dlg/parawin.src +++ b/formula/source/ui/dlg/parawin.src @@ -19,11 +19,6 @@ #include "ForResId.hrc" -Bitmap BMP_FX -{ - File = "fx.png"; -}; - String STR_OPTIONAL { Text [ en-US ] = "(optional)" ; diff --git a/formula/source/ui/dlg/structpg.cxx b/formula/source/ui/dlg/structpg.cxx index b1eb5a030109..3fa22117145f 100644 --- a/formula/source/ui/dlg/structpg.cxx +++ b/formula/source/ui/dlg/structpg.cxx @@ -29,7 +29,7 @@ #include "ModuleHelper.hxx" #include "formula/IFunctionDescription.hxx" #include "ForResId.hrc" - +#include "bitmaps.hlst" namespace formula { @@ -82,8 +82,8 @@ VCL_BUILDER_FACTORY_ARGS(StructListBox, WB_BORDER) StructPage::StructPage(vcl::Window* pParent): TabPage(pParent, "StructPage", "formula/ui/structpage.ui"), - maImgEnd(BitmapEx(ModuleRes(BMP_STR_END))), - maImgError(BitmapEx(ModuleRes(BMP_STR_ERROR))), + maImgEnd(BitmapEx(BMP_STR_END)), + maImgError(BitmapEx(BMP_STR_ERROR)), pSelectedToken ( nullptr ) { get(m_pTlbStruct, "struct"); @@ -94,8 +94,8 @@ StructPage::StructPage(vcl::Window* pParent): WB_HASBUTTONS|WB_HSCROLL|WB_NOINITIALSELECTION); m_pTlbStruct->SetNodeDefaultImages(); - m_pTlbStruct->SetDefaultExpandedEntryBmp(Image(BitmapEx(ModuleRes(BMP_STR_OPEN)))); - m_pTlbStruct->SetDefaultCollapsedEntryBmp(Image(BitmapEx(ModuleRes(BMP_STR_CLOSE)))); + m_pTlbStruct->SetDefaultExpandedEntryBmp(Image(BitmapEx(BMP_STR_OPEN))); + m_pTlbStruct->SetDefaultCollapsedEntryBmp(Image(BitmapEx(BMP_STR_CLOSE))); m_pTlbStruct->SetSelectHdl(LINK( this, StructPage, SelectHdl ) ); diff --git a/formula/source/ui/inc/ForResId.hrc b/formula/source/ui/inc/ForResId.hrc index a1b64a8c2960..e41d3aecbba4 100644 --- a/formula/source/ui/inc/ForResId.hrc +++ b/formula/source/ui/inc/ForResId.hrc @@ -47,15 +47,6 @@ #define STR_TITLE1 (RID_STRING_START + 7) #define STR_TITLE2 (RID_STRING_START + 8) -// bitmap -#define RID_BMP_REFBTN1 (RID_BITMAP_START + 0) -#define RID_BMP_REFBTN2 (RID_BITMAP_START + 2) -#define BMP_STR_CLOSE (RID_BITMAP_START + 3) -#define BMP_STR_OPEN (RID_BITMAP_START + 4) -#define BMP_STR_END (RID_BITMAP_START + 5) -#define BMP_STR_ERROR (RID_BITMAP_START + 6) -#define BMP_FX (RID_BITMAP_START + 7) - #endif // FORMULA_FORRESID_HRC /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |