Kaydet (Commit) 7c7e1fb0 authored tarafından Caolán McNamara's avatar Caolán McNamara

unwind RID_IL_FORMEXPLORER imagelist

Change-Id: I4c86aa99aecf22e842183966721976a921bafe7b
üst 5a610d1f
...@@ -274,10 +274,6 @@ ...@@ -274,10 +274,6 @@
#define RID_STR_CONFIRM_DELETE_DATA_TYPE ( RID_FORMBROWSER_START + 500 ) #define RID_STR_CONFIRM_DELETE_DATA_TYPE ( RID_FORMBROWSER_START + 500 )
// - ImageLists
#define RID_IL_FORMEXPLORER ( RID_PROPCONTROLLER_START + 0 )
// - untyped resources // - untyped resources
#define RID_RSC_ENUM_SCROLLBARS ( RID_PROPCONTROLLER_START + 0 ) #define RID_RSC_ENUM_SCROLLBARS ( RID_PROPCONTROLLER_START + 0 )
...@@ -313,41 +309,34 @@ ...@@ -313,41 +309,34 @@
#define RID_RSC_ENUM_WHEEL_BEHAVIOR ( RID_PROPCONTROLLER_START + 30 ) #define RID_RSC_ENUM_WHEEL_BEHAVIOR ( RID_PROPCONTROLLER_START + 30 )
#define RID_RSC_ENUM_TEXT_ANCHOR_TYPE ( RID_PROPCONTROLLER_START + 31 ) #define RID_RSC_ENUM_TEXT_ANCHOR_TYPE ( RID_PROPCONTROLLER_START + 31 )
#define RID_RSC_ENUM_SHEET_ANCHOR_TYPE ( RID_PROPCONTROLLER_START + 32 ) #define RID_RSC_ENUM_SHEET_ANCHOR_TYPE ( RID_PROPCONTROLLER_START + 32 )
#define RID_SVXBMP_CONTROL ( RID_PROPCONTROLLER_START + 33 )
// - ImageList - local ids #define RID_SVXBMP_BUTTON ( RID_PROPCONTROLLER_START + 34 )
#define RID_SVXBMP_RADIOBUTTON ( RID_PROPCONTROLLER_START + 35 )
// HACK HACK HACK #define RID_SVXBMP_CHECKBOX ( RID_PROPCONTROLLER_START + 36 )
// as long as we have no real property browser, but this outsourcing only, #define RID_SVXBMP_FIXEDTEXT ( RID_PROPCONTROLLER_START + 37 )
// we do not duplicate images. Instead we do some hard coding for the image ids #define RID_SVXBMP_GROUPBOX ( RID_PROPCONTROLLER_START + 38 )
#define RID_SVXBMP_EDIT ( RID_PROPCONTROLLER_START + 39 )
#define RID_SVXIMG_CONTROL 10144 #define RID_SVXBMP_LISTBOX ( RID_PROPCONTROLLER_START + 40 )
#define RID_SVXIMG_BUTTON 10594 #define RID_SVXBMP_COMBOBOX ( RID_PROPCONTROLLER_START + 41 )
#define RID_SVXIMG_RADIOBUTTON 10595 #define RID_SVXBMP_GRID ( RID_PROPCONTROLLER_START + 42 )
#define RID_SVXIMG_CHECKBOX 10596 #define RID_SVXBMP_IMAGEBUTTON ( RID_PROPCONTROLLER_START + 43 )
#define RID_SVXIMG_FIXEDTEXT 10597 #define RID_SVXBMP_FILECONTROL ( RID_PROPCONTROLLER_START + 44 )
#define RID_SVXIMG_GROUPBOX 10598 #define RID_SVXBMP_DATEFIELD ( RID_PROPCONTROLLER_START + 45 )
#define RID_SVXIMG_EDIT 10599 #define RID_SVXBMP_TIMEFIELD ( RID_PROPCONTROLLER_START + 46 )
#define RID_SVXIMG_LISTBOX 10600 #define RID_SVXBMP_NUMERICFIELD ( RID_PROPCONTROLLER_START + 47 )
#define RID_SVXIMG_COMBOBOX 10601 #define RID_SVXBMP_CURRENCYFIELD ( RID_PROPCONTROLLER_START + 48 )
#define RID_SVXIMG_GRID 10603 #define RID_SVXBMP_PATTERNFIELD ( RID_PROPCONTROLLER_START + 49 )
#define RID_SVXIMG_IMAGEBUTTON 10604 #define RID_SVXBMP_IMAGECONTROL ( RID_PROPCONTROLLER_START + 50 )
#define RID_SVXIMG_FILECONTROL 10605 #define RID_SVXBMP_HIDDEN ( RID_PROPCONTROLLER_START + 51 )
#define RID_SVXIMG_DATEFIELD 10704 #define RID_SVXBMP_FORMATTEDFIELD ( RID_PROPCONTROLLER_START + 52 )
#define RID_SVXIMG_TIMEFIELD 10705 #define RID_SVXBMP_FILTER ( RID_PROPCONTROLLER_START + 53 )
#define RID_SVXIMG_NUMERICFIELD 10706 #define RID_SVXBMP_FORMS ( RID_PROPCONTROLLER_START + 54 )
#define RID_SVXIMG_CURRENCYFIELD 10707 #define RID_SVXBMP_FORM ( RID_PROPCONTROLLER_START + 55 )
#define RID_SVXIMG_PATTERNFIELD 10708 #define RID_SVXBMP_COLLAPSEDNODE ( RID_PROPCONTROLLER_START + 56 )
#define RID_SVXIMG_IMAGECONTROL 10710 #define RID_SVXBMP_EXPANDEDNODE ( RID_PROPCONTROLLER_START + 57 )
#define RID_SVXIMG_HIDDEN 18022 #define RID_SVXBMP_SCROLLBAR ( RID_PROPCONTROLLER_START + 58 )
#define RID_SVXIMG_FORMATTEDFIELD 10728 #define RID_SVXBMP_SPINBUTTON ( RID_PROPCONTROLLER_START + 59 )
#define RID_SVXIMG_FILTER 10715 #define RID_SVXBMP_NAVIGATIONBAR ( RID_PROPCONTROLLER_START + 60 )
#define RID_SVXIMG_FORMS 18013
#define RID_SVXIMG_FORM 10593
#define RID_SVXIMG_COLLAPSEDNODE 18002
#define RID_SVXIMG_EXPANDEDNODE 18003
#define RID_SVXIMG_SCROLLBAR 10768
#define RID_SVXIMG_SPINBUTTON 10769
#define RID_SVXIMG_NAVIGATIONBAR 10607
#endif #endif
......
...@@ -25,44 +25,144 @@ String RID_STR_CONFIRM_DELETE_DATA_TYPE ...@@ -25,44 +25,144 @@ String RID_STR_CONFIRM_DELETE_DATA_TYPE
"Please note that this will affect all controls which are bound to this data type."; "Please note that this will affect all controls which are bound to this data type.";
}; };
#define IMAGE_IDS \ Bitmap RID_SVXBMP_CONTROL
IdList = \ {
{ \ File = "sx10144.png";
RID_SVXIMG_CONTROL; \ };
RID_SVXIMG_BUTTON; \
RID_SVXIMG_RADIOBUTTON; \ Bitmap RID_SVXBMP_BUTTON
RID_SVXIMG_CHECKBOX; \ {
RID_SVXIMG_FIXEDTEXT; \ File = "sx10594.png";
RID_SVXIMG_GROUPBOX; \ };
RID_SVXIMG_EDIT; \
RID_SVXIMG_LISTBOX; \ Bitmap RID_SVXBMP_RADIOBUTTON
RID_SVXIMG_COMBOBOX; \ {
RID_SVXIMG_GRID; \ File = "sx10595.png";
RID_SVXIMG_IMAGEBUTTON; \ };
RID_SVXIMG_FILECONTROL; \
RID_SVXIMG_DATEFIELD; \ Bitmap RID_SVXBMP_CHECKBOX
RID_SVXIMG_TIMEFIELD; \ {
RID_SVXIMG_NUMERICFIELD; \ File = "sx10596.png";
RID_SVXIMG_CURRENCYFIELD; \ };
RID_SVXIMG_PATTERNFIELD; \
RID_SVXIMG_IMAGECONTROL; \ Bitmap RID_SVXBMP_FIXEDTEXT
RID_SVXIMG_HIDDEN; \ {
RID_SVXIMG_FORMATTEDFIELD; \ File = "sx10597.png";
RID_SVXIMG_FILTER; \ };
RID_SVXIMG_FORMS; \
RID_SVXIMG_FORM; \ Bitmap RID_SVXBMP_GROUPBOX
RID_SVXIMG_COLLAPSEDNODE; \ {
RID_SVXIMG_EXPANDEDNODE; \ File = "sx10598.png";
RID_SVXIMG_SCROLLBAR; \ };
RID_SVXIMG_SPINBUTTON; \
RID_SVXIMG_NAVIGATIONBAR; \ Bitmap RID_SVXBMP_EDIT
}; \ {
IdCount = 29 File = "sx10599.png";
};
ImageList RID_IL_FORMEXPLORER
{ Bitmap RID_SVXBMP_LISTBOX
Prefix = "sx"; {
IMAGE_IDS; File = "sx10600.png";
};
Bitmap RID_SVXBMP_COMBOBOX
{
File = "sx10601.png";
};
Bitmap RID_SVXBMP_GRID
{
File = "sx10603.png";
};
Bitmap RID_SVXBMP_IMAGEBUTTON
{
File = "sx10604.png";
};
Bitmap RID_SVXBMP_FILECONTROL
{
File = "sx10605.png";
};
Bitmap RID_SVXBMP_DATEFIELD
{
File = "sx10704.png";
};
Bitmap RID_SVXBMP_TIMEFIELD
{
File = "sx10705.png";
};
Bitmap RID_SVXBMP_NUMERICFIELD
{
File = "sx10706.png";
};
Bitmap RID_SVXBMP_CURRENCYFIELD
{
File = "sx10707.png";
};
Bitmap RID_SVXBMP_PATTERNFIELD
{
File = "sx10708.png";
};
Bitmap RID_SVXBMP_IMAGECONTROL
{
File = "sx10710.png";
};
Bitmap RID_SVXBMP_HIDDEN
{
File = "sx18022.png";
};
Bitmap RID_SVXBMP_FORMATTEDFIELD
{
File = "sx10728.png";
};
Bitmap RID_SVXBMP_FILTER
{
File = "sx10715.png";
};
Bitmap RID_SVXBMP_FORMS
{
File = "sx18013.png";
};
Bitmap RID_SVXBMP_FORM
{
File = "sx10593.png";
};
Bitmap RID_SVXBMP_COLLAPSEDNODE
{
File = "sx18002.png";
};
Bitmap RID_SVXBMP_EXPANDEDNODE
{
File = "sx18003.png";
};
Bitmap RID_SVXBMP_SCROLLBAR
{
File = "sx10768.png";
};
Bitmap RID_SVXBMP_SPINBUTTON
{
File = "sx10769.png";
};
Bitmap RID_SVXBMP_NAVIGATIONBAR
{
File = "sx10607.png";
}; };
String RID_STR_PROPTITLE_PUSHBUTTON String RID_STR_PROPTITLE_PUSHBUTTON
......
...@@ -49,7 +49,6 @@ namespace pcr ...@@ -49,7 +49,6 @@ namespace pcr
OSelectLabelDialog::OSelectLabelDialog( vcl::Window* pParent, Reference< XPropertySet > const & _xControlModel ) OSelectLabelDialog::OSelectLabelDialog( vcl::Window* pParent, Reference< XPropertySet > const & _xControlModel )
:ModalDialog(pParent, "LabelSelectionDialog", "modules/spropctrlr/ui/labelselectiondialog.ui") :ModalDialog(pParent, "LabelSelectionDialog", "modules/spropctrlr/ui/labelselectiondialog.ui")
,m_aModelImages(PcrRes(RID_IL_FORMEXPLORER))
,m_xControlModel(_xControlModel) ,m_xControlModel(_xControlModel)
,m_pInitialSelection(nullptr) ,m_pInitialSelection(nullptr)
,m_pLastSelected(nullptr) ,m_pLastSelected(nullptr)
...@@ -65,7 +64,8 @@ namespace pcr ...@@ -65,7 +64,8 @@ namespace pcr
m_pControlTree->EnableInplaceEditing( false ); m_pControlTree->EnableInplaceEditing( false );
m_pControlTree->SetStyle(m_pControlTree->GetStyle() | WB_BORDER | WB_HASLINES | WB_HASLINESATROOT | WB_HASBUTTONS | WB_HASBUTTONSATROOT | WB_HSCROLL); m_pControlTree->SetStyle(m_pControlTree->GetStyle() | WB_BORDER | WB_HASLINES | WB_HASLINESATROOT | WB_HASBUTTONS | WB_HASBUTTONSATROOT | WB_HSCROLL);
m_pControlTree->SetNodeBitmaps( m_aModelImages.GetImage( RID_SVXIMG_COLLAPSEDNODE ), m_aModelImages.GetImage( RID_SVXIMG_EXPANDEDNODE ) ); m_pControlTree->SetNodeBitmaps(Image(BitmapEx(PcrRes(RID_SVXBMP_COLLAPSEDNODE))),
Image(BitmapEx(PcrRes(RID_SVXBMP_EXPANDEDNODE))));
m_pControlTree->SetSelectHdl(LINK(this, OSelectLabelDialog, OnEntrySelected)); m_pControlTree->SetSelectHdl(LINK(this, OSelectLabelDialog, OnEntrySelected));
m_pControlTree->SetDeselectHdl(LINK(this, OSelectLabelDialog, OnEntrySelected)); m_pControlTree->SetDeselectHdl(LINK(this, OSelectLabelDialog, OnEntrySelected));
...@@ -99,7 +99,7 @@ namespace pcr ...@@ -99,7 +99,7 @@ namespace pcr
sal_Int16 nClassId = 0; sal_Int16 nClassId = 0;
try { nClassId = ::comphelper::getINT16(m_xControlModel->getPropertyValue(PROPERTY_CLASSID)); } catch(...) { } try { nClassId = ::comphelper::getINT16(m_xControlModel->getPropertyValue(PROPERTY_CLASSID)); } catch(...) { }
m_sRequiredService = (FormComponentType::RADIOBUTTON == nClassId) ? OUString(SERVICE_COMPONENT_GROUPBOX) : OUString(SERVICE_COMPONENT_FIXEDTEXT); m_sRequiredService = (FormComponentType::RADIOBUTTON == nClassId) ? OUString(SERVICE_COMPONENT_GROUPBOX) : OUString(SERVICE_COMPONENT_FIXEDTEXT);
m_aRequiredControlImage = m_aModelImages.GetImage((FormComponentType::RADIOBUTTON == nClassId) ? RID_SVXIMG_GROUPBOX : RID_SVXIMG_FIXEDTEXT); m_aRequiredControlImage = Image(BitmapEx(PcrRes(FormComponentType::RADIOBUTTON == nClassId ? RID_SVXBMP_GROUPBOX : RID_SVXBMP_FIXEDTEXT)));
// calc the currently set label control (so InsertEntries can calc m_pInitialSelection) // calc the currently set label control (so InsertEntries can calc m_pInitialSelection)
Any aCurrentLabelControl( m_xControlModel->getPropertyValue(PROPERTY_CONTROLLABEL) ); Any aCurrentLabelControl( m_xControlModel->getPropertyValue(PROPERTY_CONTROLLABEL) );
...@@ -110,7 +110,7 @@ namespace pcr ...@@ -110,7 +110,7 @@ namespace pcr
aCurrentLabelControl >>= m_xInitialLabelControl; aCurrentLabelControl >>= m_xInitialLabelControl;
// insert the root // insert the root
Image aRootImage = m_aModelImages.GetImage(RID_SVXIMG_FORMS); Image aRootImage(BitmapEx(PcrRes(RID_SVXBMP_FORMS)));
SvTreeListEntry* pRoot = m_pControlTree->InsertEntry(PcrRes(RID_STR_FORMS).toString(), aRootImage, aRootImage); SvTreeListEntry* pRoot = m_pControlTree->InsertEntry(PcrRes(RID_STR_FORMS).toString(), aRootImage, aRootImage);
// build the tree // build the tree
...@@ -198,7 +198,7 @@ namespace pcr ...@@ -198,7 +198,7 @@ namespace pcr
Reference< XIndexAccess > xCont(xAsSet, UNO_QUERY); Reference< XIndexAccess > xCont(xAsSet, UNO_QUERY);
if (xCont.is() && xCont->getCount()) if (xCont.is() && xCont->getCount())
{ // yes -> step down { // yes -> step down
Image aFormImage = m_aModelImages.GetImage( RID_SVXIMG_FORM ); Image aFormImage(BitmapEx(PcrRes(RID_SVXBMP_FORM)));
SvTreeListEntry* pCont = m_pControlTree->InsertEntry(sName, aFormImage, aFormImage, pContainerEntry); SvTreeListEntry* pCont = m_pControlTree->InsertEntry(sName, aFormImage, aFormImage, pContainerEntry);
sal_Int32 nContChildren = InsertEntries(xCont, pCont); sal_Int32 nContChildren = InsertEntries(xCont, pCont);
if (nContChildren) if (nContChildren)
......
...@@ -43,7 +43,6 @@ namespace pcr ...@@ -43,7 +43,6 @@ namespace pcr
VclPtr<SvTreeListBox> m_pControlTree; VclPtr<SvTreeListBox> m_pControlTree;
VclPtr<CheckBox> m_pNoAssignment; VclPtr<CheckBox> m_pNoAssignment;
ImageList m_aModelImages;
css::uno::Reference< css::beans::XPropertySet > m_xControlModel; css::uno::Reference< css::beans::XPropertySet > m_xControlModel;
OUString m_sRequiredService; OUString m_sRequiredService;
Image m_aRequiredControlImage; Image m_aRequiredControlImage;
......
...@@ -74,7 +74,6 @@ namespace pcr ...@@ -74,7 +74,6 @@ namespace pcr
,m_xModel( _rxTabModel ) ,m_xModel( _rxTabModel )
,m_xControlContainer( _rxControlCont ) ,m_xControlContainer( _rxControlCont )
,m_xORB( _rxORB ) ,m_xORB( _rxORB )
,pImageList( nullptr )
{ {
get(m_pLB_Controls, "CTRLtree"); get(m_pLB_Controls, "CTRLtree");
get(m_pPB_OK, "ok"); get(m_pPB_OK, "ok");
...@@ -89,8 +88,6 @@ namespace pcr ...@@ -89,8 +88,6 @@ namespace pcr
m_pPB_OK->SetClickHdl( LINK( this, TabOrderDialog, OKClickHdl ) ); m_pPB_OK->SetClickHdl( LINK( this, TabOrderDialog, OKClickHdl ) );
m_pPB_OK->Disable(); m_pPB_OK->Disable();
pImageList = new ImageList( PcrRes( RID_IL_FORMEXPLORER ) );
if ( m_xModel.is() ) if ( m_xModel.is() )
m_xTempModel = new OSimpleTabModel( m_xModel->getControlModels() ); m_xTempModel = new OSimpleTabModel( m_xModel->getControlModels() );
...@@ -121,8 +118,6 @@ namespace pcr ...@@ -121,8 +118,6 @@ namespace pcr
void TabOrderDialog::dispose() void TabOrderDialog::dispose()
{ {
m_pLB_Controls->Hide(); m_pLB_Controls->Hide();
// delete pLB_Controls;
delete pImageList;
m_pLB_Controls.clear(); m_pLB_Controls.clear();
m_pPB_OK.clear(); m_pPB_OK.clear();
m_pPB_MoveUp.clear(); m_pPB_MoveUp.clear();
...@@ -131,45 +126,43 @@ namespace pcr ...@@ -131,45 +126,43 @@ namespace pcr
ModalDialog::dispose(); ModalDialog::dispose();
} }
Image TabOrderDialog::GetImage( const Reference< XPropertySet >& _rxSet ) const Image TabOrderDialog::GetImage( const Reference< XPropertySet >& _rxSet ) const
{ {
sal_uInt16 nImageId = RID_SVXIMG_CONTROL; sal_uInt16 nImageId = RID_SVXBMP_CONTROL;
// TODO: classify controls also in Basic propbrw // TODO: classify controls also in Basic propbrw
if ( _rxSet.is() && ::comphelper::hasProperty( PROPERTY_CLASSID, _rxSet ) ) if ( _rxSet.is() && ::comphelper::hasProperty( PROPERTY_CLASSID, _rxSet ) )
{ {
switch( ::comphelper::getINT16( _rxSet->getPropertyValue( PROPERTY_CLASSID ) ) ) switch( ::comphelper::getINT16( _rxSet->getPropertyValue( PROPERTY_CLASSID ) ) )
{ {
case FormComponentType::COMMANDBUTTON: nImageId = RID_SVXIMG_BUTTON; break; case FormComponentType::COMMANDBUTTON: nImageId = RID_SVXBMP_BUTTON; break;
case FormComponentType::FIXEDTEXT: nImageId = RID_SVXIMG_FIXEDTEXT; break; case FormComponentType::FIXEDTEXT: nImageId = RID_SVXBMP_FIXEDTEXT; break;
case FormComponentType::TEXTFIELD: nImageId = RID_SVXIMG_EDIT; break; case FormComponentType::TEXTFIELD: nImageId = RID_SVXBMP_EDIT; break;
case FormComponentType::RADIOBUTTON: nImageId = RID_SVXIMG_RADIOBUTTON; break; case FormComponentType::RADIOBUTTON: nImageId = RID_SVXBMP_RADIOBUTTON; break;
case FormComponentType::CHECKBOX: nImageId = RID_SVXIMG_CHECKBOX; break; case FormComponentType::CHECKBOX: nImageId = RID_SVXBMP_CHECKBOX; break;
case FormComponentType::LISTBOX: nImageId = RID_SVXIMG_LISTBOX; break; case FormComponentType::LISTBOX: nImageId = RID_SVXBMP_LISTBOX; break;
case FormComponentType::COMBOBOX: nImageId = RID_SVXIMG_COMBOBOX; break; case FormComponentType::COMBOBOX: nImageId = RID_SVXBMP_COMBOBOX; break;
case FormComponentType::GROUPBOX: nImageId = RID_SVXIMG_GROUPBOX; break; case FormComponentType::GROUPBOX: nImageId = RID_SVXBMP_GROUPBOX; break;
case FormComponentType::IMAGEBUTTON: nImageId = RID_SVXIMG_IMAGEBUTTON; break; case FormComponentType::IMAGEBUTTON: nImageId = RID_SVXBMP_IMAGEBUTTON; break;
case FormComponentType::FILECONTROL: nImageId = RID_SVXIMG_FILECONTROL; break; case FormComponentType::FILECONTROL: nImageId = RID_SVXBMP_FILECONTROL; break;
case FormComponentType::HIDDENCONTROL: nImageId = RID_SVXIMG_HIDDEN; break; case FormComponentType::HIDDENCONTROL: nImageId = RID_SVXBMP_HIDDEN; break;
case FormComponentType::DATEFIELD: nImageId = RID_SVXIMG_DATEFIELD; break; case FormComponentType::DATEFIELD: nImageId = RID_SVXBMP_DATEFIELD; break;
case FormComponentType::TIMEFIELD: nImageId = RID_SVXIMG_TIMEFIELD; break; case FormComponentType::TIMEFIELD: nImageId = RID_SVXBMP_TIMEFIELD; break;
case FormComponentType::NUMERICFIELD: nImageId = RID_SVXIMG_NUMERICFIELD; break; case FormComponentType::NUMERICFIELD: nImageId = RID_SVXBMP_NUMERICFIELD; break;
case FormComponentType::CURRENCYFIELD: nImageId = RID_SVXIMG_CURRENCYFIELD; break; case FormComponentType::CURRENCYFIELD: nImageId = RID_SVXBMP_CURRENCYFIELD; break;
case FormComponentType::PATTERNFIELD: nImageId = RID_SVXIMG_PATTERNFIELD; break; case FormComponentType::PATTERNFIELD: nImageId = RID_SVXBMP_PATTERNFIELD; break;
case FormComponentType::IMAGECONTROL: nImageId = RID_SVXIMG_IMAGECONTROL; break; case FormComponentType::IMAGECONTROL: nImageId = RID_SVXBMP_IMAGECONTROL; break;
case FormComponentType::GRIDCONTROL: nImageId = RID_SVXIMG_GRID; break; case FormComponentType::GRIDCONTROL: nImageId = RID_SVXBMP_GRID; break;
case FormComponentType::SCROLLBAR: nImageId = RID_SVXIMG_SCROLLBAR; break; case FormComponentType::SCROLLBAR: nImageId = RID_SVXBMP_SCROLLBAR; break;
case FormComponentType::SPINBUTTON: nImageId = RID_SVXIMG_SPINBUTTON; break; case FormComponentType::SPINBUTTON: nImageId = RID_SVXBMP_SPINBUTTON; break;
case FormComponentType::NAVIGATIONBAR: nImageId = RID_SVXIMG_NAVIGATIONBAR; break; case FormComponentType::NAVIGATIONBAR: nImageId = RID_SVXBMP_NAVIGATIONBAR; break;
default: default:
OSL_FAIL( "TabOrderDialog::GetImage: unknown control type" ); OSL_FAIL( "TabOrderDialog::GetImage: unknown control type" );
} }
} }
return pImageList->GetImage( nImageId ); return Image(BitmapEx(PcrRes(nImageId)));;
} }
void TabOrderDialog::FillList() void TabOrderDialog::FillList()
{ {
DBG_ASSERT( m_xTempModel.is() && m_xControlContainer.is(), "TabOrderDialog::FillList: invalid call!" ); DBG_ASSERT( m_xTempModel.is() && m_xControlContainer.is(), "TabOrderDialog::FillList: invalid call!" );
......
...@@ -76,8 +76,6 @@ namespace pcr ...@@ -76,8 +76,6 @@ namespace pcr
VclPtr<PushButton> m_pPB_MoveDown; VclPtr<PushButton> m_pPB_MoveDown;
VclPtr<PushButton> m_pPB_AutoOrder; VclPtr<PushButton> m_pPB_AutoOrder;
ImageList* pImageList;
DECL_LINK( MoveUpClickHdl, Button*, void ); DECL_LINK( MoveUpClickHdl, Button*, void );
DECL_LINK( MoveDownClickHdl, Button*, void ); DECL_LINK( MoveDownClickHdl, Button*, void );
DECL_LINK( AutoOrderClickHdl, Button*, void ); DECL_LINK( AutoOrderClickHdl, Button*, void );
......
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