Bitmap Tree Cleanup - libs-core
Removed all references to HIGHCONTRAST mode from svtools classes: SvImpLBox SvTreeListBox The reset is just fall out.
This commit is contained in:
committed by
Sebastian Spaeth
parent
3f9a1181bd
commit
dd68b67a4d
@@ -68,8 +68,6 @@
|
|||||||
#define BMP_STR_OPEN 2
|
#define BMP_STR_OPEN 2
|
||||||
#define BMP_STR_END 3
|
#define BMP_STR_END 3
|
||||||
#define BMP_STR_ERROR 4
|
#define BMP_STR_ERROR 4
|
||||||
#define BMP_STR_CLOSE_H 11
|
|
||||||
#define BMP_STR_OPEN_H 12
|
|
||||||
#define BMP_STR_END_H 13
|
#define BMP_STR_END_H 13
|
||||||
#define BMP_STR_ERROR_H 14
|
#define BMP_STR_ERROR_H 14
|
||||||
|
|
||||||
|
@@ -111,21 +111,11 @@ TabPage RID_FORMULATAB_STRUCT
|
|||||||
ImageBitmap = Bitmap { File = "fapclose.bmp"; };
|
ImageBitmap = Bitmap { File = "fapclose.bmp"; };
|
||||||
MaskColor = STD_MASKCOLOR;
|
MaskColor = STD_MASKCOLOR;
|
||||||
};
|
};
|
||||||
Image BMP_STR_CLOSE_H
|
|
||||||
{
|
|
||||||
ImageBitmap = Bitmap { File = "fapclose_h.bmp"; };
|
|
||||||
MaskColor = STD_MASKCOLOR;
|
|
||||||
};
|
|
||||||
Image BMP_STR_OPEN
|
Image BMP_STR_OPEN
|
||||||
{
|
{
|
||||||
ImageBitmap = Bitmap { File = "fapopen.bmp"; };
|
ImageBitmap = Bitmap { File = "fapopen.bmp"; };
|
||||||
MaskColor = STD_MASKCOLOR;
|
MaskColor = STD_MASKCOLOR;
|
||||||
};
|
};
|
||||||
Image BMP_STR_OPEN_H
|
|
||||||
{
|
|
||||||
ImageBitmap = Bitmap { File = "fapopen_h.bmp"; };
|
|
||||||
MaskColor = STD_MASKCOLOR;
|
|
||||||
};
|
|
||||||
Image BMP_STR_END
|
Image BMP_STR_END
|
||||||
{
|
{
|
||||||
ImageBitmap = Bitmap { File = "fapok.bmp"; };
|
ImageBitmap = Bitmap { File = "fapok.bmp"; };
|
||||||
|
@@ -119,8 +119,6 @@ StructPage::StructPage(Window* pParent):
|
|||||||
aTlbStruct.SetNodeDefaultImages();
|
aTlbStruct.SetNodeDefaultImages();
|
||||||
aTlbStruct.SetDefaultExpandedEntryBmp( Image( ModuleRes( BMP_STR_OPEN ) ) );
|
aTlbStruct.SetDefaultExpandedEntryBmp( Image( ModuleRes( BMP_STR_OPEN ) ) );
|
||||||
aTlbStruct.SetDefaultCollapsedEntryBmp( Image( ModuleRes( BMP_STR_CLOSE ) ) );
|
aTlbStruct.SetDefaultCollapsedEntryBmp( Image( ModuleRes( BMP_STR_CLOSE ) ) );
|
||||||
aTlbStruct.SetDefaultExpandedEntryBmp( Image( ModuleRes( BMP_STR_OPEN_H ) ), BMP_COLOR_HIGHCONTRAST );
|
|
||||||
aTlbStruct.SetDefaultCollapsedEntryBmp( Image( ModuleRes( BMP_STR_CLOSE_H ) ), BMP_COLOR_HIGHCONTRAST );
|
|
||||||
|
|
||||||
FreeResource();
|
FreeResource();
|
||||||
|
|
||||||
|
@@ -1323,39 +1323,37 @@ USHORT SfxOrganizeListBox_Impl::GetLevelCount_Impl(SvLBoxEntry* pParent) const
|
|||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
SvLBoxEntry* SfxOrganizeListBox_Impl::InsertEntryByBmpType( const XubString& rText, BMPTYPE eBmpType,
|
SvLBoxEntry* SfxOrganizeListBox_Impl::InsertEntryByBmpType(
|
||||||
SvLBoxEntry* pParent, BOOL bChildsOnDemand, ULONG nPos, void* pUserData )
|
const XubString& rText,
|
||||||
|
BMPTYPE eBmpType,
|
||||||
|
SvLBoxEntry* pParent,
|
||||||
|
BOOL bChildsOnDemand,
|
||||||
|
ULONG nPos,
|
||||||
|
void* pUserData
|
||||||
|
)
|
||||||
{
|
{
|
||||||
SvLBoxEntry* pEntry = NULL;
|
SvLBoxEntry* pEntry = NULL;
|
||||||
const Image* pExp = NULL;
|
const Image* pExp = NULL;
|
||||||
const Image* pCol = NULL;
|
const Image* pCol = NULL;
|
||||||
const Image* pExpHC = NULL;
|
|
||||||
const Image* pColHC = NULL;
|
|
||||||
|
|
||||||
switch( eBmpType )
|
switch( eBmpType )
|
||||||
{
|
{
|
||||||
case BMPTYPE_FOLDER:
|
case BMPTYPE_FOLDER:
|
||||||
pExp = &aOpenedFolderBmp;
|
pExp = &aOpenedFolderBmp;
|
||||||
pCol = &aClosedFolderBmp;
|
pCol = &aClosedFolderBmp;
|
||||||
pExpHC = &aOpenedFolderBmpHC;
|
|
||||||
pColHC = &aClosedFolderBmpHC;
|
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
DBG_ERROR( "SfxOrganizeListBox_Impl::InsertEntryByBmpType(): something forgotten?!" );
|
|
||||||
|
|
||||||
case BMPTYPE_DOC:
|
case BMPTYPE_DOC:
|
||||||
pExp = &aOpenedDocBmp;
|
pExp = &aOpenedDocBmp;
|
||||||
pCol = &aClosedDocBmp;
|
pCol = &aClosedDocBmp;
|
||||||
pExpHC = &aOpenedDocBmpHC;
|
|
||||||
pColHC = &aClosedDocBmpHC;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
DBG_ERROR( "SfxOrganizeListBox_Impl::InsertEntryByBmpType(): something forgotten?!" );
|
||||||
}
|
}
|
||||||
|
|
||||||
pEntry = SvTreeListBox::InsertEntry( rText, *pExp, *pCol, pParent, bChildsOnDemand, nPos, pUserData );
|
pEntry = SvTreeListBox::InsertEntry( rText, *pExp, *pCol, pParent, bChildsOnDemand, nPos, pUserData );
|
||||||
|
|
||||||
SetExpandedEntryBmp( pEntry, *pExpHC, BMP_COLOR_HIGHCONTRAST );
|
|
||||||
SetCollapsedEntryBmp( pEntry, *pColHC, BMP_COLOR_HIGHCONTRAST );
|
|
||||||
|
|
||||||
return pEntry;
|
return pEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1092,8 +1092,6 @@ RecoveryDialog::RecoveryDialog(Window* pParent,
|
|||||||
sName += impl_getStatusString( rInfo );
|
sName += impl_getStatusString( rInfo );
|
||||||
SvLBoxEntry* pEntry = m_aFileListLB.InsertEntry(sName, rInfo.StandardImage, rInfo.StandardImage);
|
SvLBoxEntry* pEntry = m_aFileListLB.InsertEntry(sName, rInfo.StandardImage, rInfo.StandardImage);
|
||||||
pEntry->SetUserData((void*)&rInfo);
|
pEntry->SetUserData((void*)&rInfo);
|
||||||
m_aFileListLB.SetExpandedEntryBmp (pEntry, rInfo.HCImage, BMP_COLOR_HIGHCONTRAST);
|
|
||||||
m_aFileListLB.SetCollapsedEntryBmp(pEntry, rInfo.HCImage, BMP_COLOR_HIGHCONTRAST);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// mark first item
|
// mark first item
|
||||||
|
@@ -1163,8 +1163,7 @@ FmFilterNavigator::FmFilterNavigator( Window* pParent )
|
|||||||
ImageList aNavigatorImages( SVX_RES( RID_SVXIMGLIST_FMEXPL ) );
|
ImageList aNavigatorImages( SVX_RES( RID_SVXIMGLIST_FMEXPL ) );
|
||||||
SetNodeBitmaps(
|
SetNodeBitmaps(
|
||||||
aNavigatorImages.GetImage( RID_SVXIMG_COLLAPSEDNODE ),
|
aNavigatorImages.GetImage( RID_SVXIMG_COLLAPSEDNODE ),
|
||||||
aNavigatorImages.GetImage( RID_SVXIMG_EXPANDEDNODE ),
|
aNavigatorImages.GetImage( RID_SVXIMG_EXPANDEDNODE )
|
||||||
BMP_COLOR_NORMAL
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1565,12 +1564,7 @@ void FmFilterNavigator::Insert(FmFilterData* pItem, sal_Int32 nPos)
|
|||||||
|
|
||||||
// insert the item
|
// insert the item
|
||||||
SvLBoxEntry* pParentEntry = FindEntry( pParent );
|
SvLBoxEntry* pParentEntry = FindEntry( pParent );
|
||||||
SvLBoxEntry* pNewEntry = InsertEntry(pItem->GetText(), pItem->GetImage(), pItem->GetImage(), pParentEntry, sal_False, nPos, pItem );
|
InsertEntry( pItem->GetText(), pItem->GetImage(), pItem->GetImage(), pParentEntry, sal_False, nPos, pItem );
|
||||||
if ( pNewEntry )
|
|
||||||
{
|
|
||||||
SetExpandedEntryBmp( pNewEntry, pItem->GetImage( BMP_COLOR_HIGHCONTRAST ), BMP_COLOR_HIGHCONTRAST );
|
|
||||||
SetCollapsedEntryBmp( pNewEntry, pItem->GetImage( BMP_COLOR_HIGHCONTRAST ), BMP_COLOR_HIGHCONTRAST );
|
|
||||||
}
|
|
||||||
if ( pParentEntry )
|
if ( pParentEntry )
|
||||||
Expand( pParentEntry );
|
Expand( pParentEntry );
|
||||||
}
|
}
|
||||||
|
@@ -207,8 +207,7 @@ namespace svxform
|
|||||||
|
|
||||||
SetNodeBitmaps(
|
SetNodeBitmaps(
|
||||||
m_aNavigatorImages.GetImage( RID_SVXIMG_COLLAPSEDNODE ),
|
m_aNavigatorImages.GetImage( RID_SVXIMG_COLLAPSEDNODE ),
|
||||||
m_aNavigatorImages.GetImage( RID_SVXIMG_EXPANDEDNODE ),
|
m_aNavigatorImages.GetImage( RID_SVXIMG_EXPANDEDNODE )
|
||||||
BMP_COLOR_NORMAL
|
|
||||||
);
|
);
|
||||||
|
|
||||||
SetDragDropMode(0xFFFF);
|
SetDragDropMode(0xFFFF);
|
||||||
@@ -662,11 +661,8 @@ namespace svxform
|
|||||||
SvLBoxEntry* pEntry = FindEntry( pData );
|
SvLBoxEntry* pEntry = FindEntry( pData );
|
||||||
if (pEntry)
|
if (pEntry)
|
||||||
{ // das Image neu setzen
|
{ // das Image neu setzen
|
||||||
SetCollapsedEntryBmp( pEntry, pData->GetNormalImage(), BMP_COLOR_NORMAL );
|
SetCollapsedEntryBmp( pEntry, pData->GetNormalImage() );
|
||||||
SetExpandedEntryBmp( pEntry, pData->GetNormalImage(), BMP_COLOR_NORMAL );
|
SetExpandedEntryBmp( pEntry, pData->GetNormalImage() );
|
||||||
|
|
||||||
SetCollapsedEntryBmp( pEntry, pData->GetHCImage(), BMP_COLOR_HIGHCONTRAST );
|
|
||||||
SetExpandedEntryBmp( pEntry, pData->GetHCImage(), BMP_COLOR_HIGHCONTRAST );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -720,12 +716,6 @@ namespace svxform
|
|||||||
pEntryData->GetNormalImage(), pEntryData->GetNormalImage(),
|
pEntryData->GetNormalImage(), pEntryData->GetNormalImage(),
|
||||||
pParentEntry, sal_False, nRelPos, pEntryData );
|
pParentEntry, sal_False, nRelPos, pEntryData );
|
||||||
|
|
||||||
if ( pNewEntry )
|
|
||||||
{
|
|
||||||
SetExpandedEntryBmp( pNewEntry, pEntryData->GetHCImage(), BMP_COLOR_HIGHCONTRAST );
|
|
||||||
SetCollapsedEntryBmp( pNewEntry, pEntryData->GetHCImage(), BMP_COLOR_HIGHCONTRAST );
|
|
||||||
}
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// Wenn Root-Eintrag Root expandieren
|
// Wenn Root-Eintrag Root expandieren
|
||||||
if( !pParentEntry )
|
if( !pParentEntry )
|
||||||
|
Reference in New Issue
Block a user