#99931# HC-images
This commit is contained in:
parent
9b7eaf2e3e
commit
53afd95e37
2 changed files with 39 additions and 6 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: tbcontrl.cxx,v $
|
||||
*
|
||||
* $Revision: 1.26 $
|
||||
* $Revision: 1.27 $
|
||||
*
|
||||
* last change: $Author: os $ $Date: 2002-06-06 12:06:40 $
|
||||
* last change: $Author: gt $ $Date: 2002-06-11 08:19:59 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -347,8 +347,16 @@ public:
|
|||
virtual void StateChanged( USHORT nSID, SfxItemState eState,
|
||||
const SfxPoolItem* pState );
|
||||
virtual SfxPopupWindow* Clone() const;
|
||||
virtual void DataChanged( const DataChangedEvent& rDCEvt );
|
||||
|
||||
inline BOOL IsHighContrast( void ) const;
|
||||
};
|
||||
|
||||
inline BOOL SvxFrameWindow::IsHighContrast( void ) const
|
||||
{
|
||||
return GetDisplayBackground().GetColor().IsDark();
|
||||
}
|
||||
|
||||
//========================================================================
|
||||
// class SvxLineWindow_Impl ---------------------------------------------------
|
||||
//========================================================================
|
||||
|
@ -1140,10 +1148,10 @@ SvxFrameWindow_Impl::SvxFrameWindow_Impl( USHORT nId, SfxBindings& rBindings, BO
|
|||
|
||||
SfxPopupWindow( nId, WinBits( WB_BORDER | WB_STDFLOATWIN | WB_3DLOOK ), rBindings ),
|
||||
|
||||
aFrameSet ( this, WinBits( WB_ITEMBORDER | WB_DOUBLEBORDER | WB_3DLOOK ) ),
|
||||
aImgList ( SVX_RES( RID_SVXIL_FRAME ) )
|
||||
aFrameSet ( this, WinBits( WB_ITEMBORDER | WB_DOUBLEBORDER | WB_3DLOOK ) )
|
||||
|
||||
{
|
||||
aImgList = ImageList( SVX_RES( IsHighContrast()? RID_SVXIL_FRAME_HC : RID_SVXIL_FRAME ) );
|
||||
|
||||
/*
|
||||
* 1 2 3 4
|
||||
|
@ -1180,6 +1188,20 @@ SfxPopupWindow* SvxFrameWindow_Impl::Clone() const
|
|||
return new SvxFrameWindow_Impl( GetId(), (SfxBindings&)GetBindings(), FALSE );
|
||||
}
|
||||
|
||||
void SvxFrameWindow::DataChanged( const DataChangedEvent& rDCEvt )
|
||||
{
|
||||
SfxPopupWindow::DataChanged( rDCEvt );
|
||||
|
||||
if( ( rDCEvt.GetType() == DATACHANGED_SETTINGS ) && ( rDCEvt.GetFlags() & SETTINGS_STYLE ) )
|
||||
{
|
||||
aImgList = ImageList( SVX_RES( IsHighContrast()? RID_SVXIL_FRAME_HC : RID_SVXIL_FRAME ) );
|
||||
|
||||
USHORT nNumOfItems = aFrameSet.GetItemCount();
|
||||
|
||||
for( USHORT i = 1 ; i <= nNumOfItems ; ++i )
|
||||
aFrameSet.SetItemImage( i, aImgList.GetImage( i ) );
|
||||
}
|
||||
}
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
#define FRM_VALID_LEFT 0x01
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: tbcontrl.src,v $
|
||||
*
|
||||
* $Revision: 1.23 $
|
||||
* $Revision: 1.24 $
|
||||
*
|
||||
* last change: $Author: os $ $Date: 2002-03-27 08:36:25 $
|
||||
* last change: $Author: gt $ $Date: 2002-06-11 08:19:59 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -66,6 +66,9 @@
|
|||
/*
|
||||
* Bitmaps f"ur SvxFrameWindow
|
||||
*/
|
||||
|
||||
#define MASKCOLOR MaskColor = Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; }
|
||||
|
||||
Image RID_SVX_RELOAD_NORMAL
|
||||
{
|
||||
ImageBitmap = Bitmap { File = "reload.bmp" ; };
|
||||
|
@ -81,6 +84,14 @@ ImageList RID_SVXIL_FRAME
|
|||
ImageBitmap = Bitmap { File = "fr_ames.bmp" ; };
|
||||
IdList = { 1 ; 2 ; 3 ; 4 ; 5 ; 6 ; 7 ; 8 ; 9 ; 10 ; 11 ; 12 ; };
|
||||
IdCount = { 12 ; };
|
||||
// MASKCOLOR;
|
||||
};
|
||||
ImageList RID_SVXIL_FRAME_HC
|
||||
{
|
||||
ImageBitmap = Bitmap { File = "frh_frames.bmp" ; };
|
||||
IdList = { 1 ; 2 ; 3 ; 4 ; 5 ; 6 ; 7 ; 8 ; 9 ; 10 ; 11 ; 12 ; };
|
||||
IdCount = { 12 ; };
|
||||
// MASKCOLOR;
|
||||
};
|
||||
String RID_SVXSTR_TRANSPARENT
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue