HC Cleanup - libs-gui
This commit is contained in:
parent
89490d99c3
commit
1702d31ddf
21 changed files with 72 additions and 161 deletions
|
@ -110,8 +110,8 @@ PADialog::PADialog( Window* pParent, BOOL /*bAdmin*/ ) :
|
|||
void PADialog::updateSettings()
|
||||
{
|
||||
m_aPrinterImg = Image( BitmapEx( PaResId( RID_BMP_SMALL_PRINTER ) ) );
|
||||
m_aFaxImg = Image( BitmapEx( PaResId( RID_BMP_SMALL_FAX ) ) );
|
||||
m_aPdfImg = Image( BitmapEx( PaResId( RID_BMP_SMALL_PDF ) ) );
|
||||
m_aFaxImg = Image( BitmapEx( PaResId( RID_BMP_SMALL_FAX ) ) );
|
||||
m_aPdfImg = Image( BitmapEx( PaResId( RID_BMP_SMALL_PDF ) ) );
|
||||
}
|
||||
|
||||
void PADialog::Init()
|
||||
|
|
|
@ -190,13 +190,9 @@
|
|||
#define RID_TXT_FONT_REGULAR 1095
|
||||
|
||||
#define RID_BMP_SMALL_PRINTER 1096
|
||||
// free
|
||||
#define RID_BMP_SMALL_FAX 1098
|
||||
// free
|
||||
#define RID_BMP_SMALL_PDF 1100
|
||||
// free
|
||||
#define RID_BMP_PRINTER 1102
|
||||
// free
|
||||
|
||||
#define RID_AFMERROR_OK 1300
|
||||
#define RID_AFMERROR_NO_FONT_NAME 1301
|
||||
|
|
|
@ -437,10 +437,12 @@ ModalDialog RID_FONTNAMEDIALOG
|
|||
};
|
||||
Text [ en-US ] = "Fonts";
|
||||
};
|
||||
|
||||
String RID_BXT_TESTPAGE
|
||||
{
|
||||
Text [ en-US ] = "Test page";
|
||||
};
|
||||
|
||||
String RID_BXT_ENVIRONMENT
|
||||
{
|
||||
Text [ en-US ] = "Wrong environment";
|
||||
|
@ -480,34 +482,42 @@ String RID_AFMERROR_OK
|
|||
{
|
||||
Text [ en-US ] = "No error";
|
||||
};
|
||||
|
||||
String RID_AFMERROR_NO_FONT_NAME
|
||||
{
|
||||
Text [ en-US ] = "The metric does not contain a 'FontName' entry.";
|
||||
};
|
||||
|
||||
String RID_AFMERROR_NO_FULL_NAME
|
||||
{
|
||||
Text [ en-US ] = "The metric does not contain a 'FullName' entry.";
|
||||
};
|
||||
|
||||
String RID_AFMERROR_NO_FAMILY_NAME
|
||||
{
|
||||
Text [ en-US ] = "The metric does not contain a 'FamilyName' entry.";
|
||||
};
|
||||
|
||||
String RID_AFMERROR_MOVETO_FAILED
|
||||
{
|
||||
Text [ en-US ] = "The converted metric could not be written.";
|
||||
};
|
||||
|
||||
String RID_AFMERROR_STREAM_READ_FAILED
|
||||
{
|
||||
Text [ en-US ] = "The metric could not be read.";
|
||||
};
|
||||
|
||||
String RID_AFMERROR_STREAM_WRITE_FAILED
|
||||
{
|
||||
Text [ en-US ] = "A temporary file could not be created.";
|
||||
};
|
||||
|
||||
STRING RID_AFMERROR_NOT_A_METRIC
|
||||
{
|
||||
Text [ en-US ] = "The file does not contain a metric.";
|
||||
};
|
||||
|
||||
String RID_AFMERROR_BOX_TXT
|
||||
{
|
||||
Text [ en-US ] = "The metric\n\n%s\n\ncould not be converted for the following reason:\n\n";
|
||||
|
|
|
@ -210,7 +210,7 @@ namespace
|
|||
/*136 SOT_FORMATSTR_ID_STARCALC_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_TEMPLATE_ASCII, "Calc 8 Template", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
|
||||
/*137 SOT_FORMATSTR_ID_STARCHART_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE_ASCII, "Chart 8 Template", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
|
||||
/*138 SOT_FORMATSTR_ID_STARMATH_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE_ASCII, "Math 8 Template", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
|
||||
/*139 SOT_FORMATSTR_ID_STARBASE_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII, "StarBase 8", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
|
||||
/*139 SOT_FORMATSTR_ID_STARBASE_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII, "StarBase 8", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
|
||||
/*140 SOT_FORMAT_GDIMETAFILE*/ { "application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\"", "High Contrast GDIMetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
|
||||
};
|
||||
return &aInstance[0];
|
||||
|
|
|
@ -77,7 +77,6 @@
|
|||
#define WID_TO (WID_CHAOS_START + 24)
|
||||
#define WID_FROM (WID_CHAOS_START + 25)
|
||||
#define WID_TITLE (WID_CHAOS_START + 26)
|
||||
#define WID_SUBJECT WID_TITLE // only here to prevent panic, should be removed
|
||||
#define WID_MESSAGEBODY (WID_CHAOS_START + 27)
|
||||
|
||||
#define WID_REFERENCES (WID_CHAOS_START + 28)
|
||||
|
@ -137,8 +136,6 @@
|
|||
//PROP FOLDER VIEW
|
||||
#define WID_DUMMY_PROPFOLDERVIEW1 (WID_CHAOS_START + 65)
|
||||
#define WID_THREADING (WID_CHAOS_START + 66)
|
||||
#define WID_MSG_COLUMN_INFO /* obsolete */ (WID_CHAOS_START + 67)
|
||||
#define WID_FLD_COLUMN_INFO /* obsolete */ (WID_CHAOS_START + 68)
|
||||
#define WID_FOLDERVIEW_MODE (WID_CHAOS_START + 69)
|
||||
#define WID_MESSAGEVIEW_MODE (WID_CHAOS_START + 70)
|
||||
#define WID_SENTMESSAGEVIEW_MODE (WID_CHAOS_START + 71)
|
||||
|
@ -153,8 +150,6 @@
|
|||
//PROP FOLDER DIR
|
||||
#define WID_DUMMY_FOLDERDIR1 (WID_CHAOS_START + 79)
|
||||
#define WID_TOTALCONTENTCOUNT (WID_CHAOS_START + 80)
|
||||
#define WID_NEWSGROUPCOUNT /* ??? */ (WID_CHAOS_START + 81)
|
||||
#define WID_ARTICLECOUNT /* ??? */ (WID_CHAOS_START + 82)
|
||||
#define WID_KNOWN_RANGES (WID_CHAOS_START + 83)
|
||||
#define WID_IMAPFOLDERINFO (WID_CHAOS_START + 84)
|
||||
|
||||
|
@ -176,23 +171,9 @@
|
|||
#define WID_PASSWORD (WID_CHAOS_START + 92)
|
||||
#define WID_SERVERNAME (WID_CHAOS_START + 93)
|
||||
#define WID_SERVERPORT (WID_CHAOS_START + 94)
|
||||
// obsolete
|
||||
#define WID_MAILSEND_USERNAME (WID_CHAOS_START + 95)
|
||||
#define WID_MAILSEND_PASSWORD (WID_CHAOS_START + 96)
|
||||
#define WID_MAILSEND_SERVERNAME (WID_CHAOS_START + 97)
|
||||
#define WID_NEWSSEND_USERNAME (WID_CHAOS_START + 98)
|
||||
#define WID_NEWSSEND_PASSWORD (WID_CHAOS_START + 99)
|
||||
#define WID_NEWSSEND_SERVERNAME (WID_CHAOS_START + 100)
|
||||
// end obsolete
|
||||
#define WID_SERVERBASE (WID_CHAOS_START + 101)
|
||||
// not used
|
||||
#define WID_SMTP_GATEWAY (WID_CHAOS_START + 102)
|
||||
|
||||
// -> ..._DEFAULT
|
||||
// obsolete
|
||||
#define WID_FROM_DEFAULT (WID_CHAOS_START + 103)
|
||||
// obsolete
|
||||
#define WID_REPLY_TO_DEFAULT (WID_CHAOS_START + 104)
|
||||
|
||||
#define WID_AUTOUPDATE_INTERVAL (WID_CHAOS_START + 105)
|
||||
#define WID_UPDATE_ENABLED (WID_CHAOS_START + 106)
|
||||
|
@ -243,13 +224,6 @@
|
|||
#define WID_STORE_MSGS_TIMELIMIT (WID_CHAOS_START + 124)
|
||||
|
||||
// PROP BOX
|
||||
#define WID_MSG_COLUMN_WIDTHS /* obsolete */(WID_CHAOS_START + 125)
|
||||
|
||||
#ifdef OLD_CHAOS
|
||||
|
||||
#define WID_CHAOS_END (WID_CHAOS_START + 125)
|
||||
|
||||
#else
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// WID's added after SO 4.0 release ( SUPD > 364 )
|
||||
|
@ -501,6 +475,4 @@
|
|||
// END
|
||||
#define WID_CHAOS_END (WID_CHAOS_START + 253)
|
||||
|
||||
#endif /* OLD_CHAOS */
|
||||
|
||||
#endif /* !_CNTWIDS_HRC */
|
||||
|
|
|
@ -97,7 +97,7 @@ class SVT_DLLPUBLIC ContextMenuHelper
|
|||
|
||||
// methods to retrieve a single command URL dependent value from a
|
||||
// ui configuratin manager
|
||||
Image getImageFromCommandURL( const ::rtl::OUString& aCmdURL, bool bHiContrast ) const;
|
||||
Image getImageFromCommandURL( const ::rtl::OUString& aCmdURL ) const;
|
||||
rtl::OUString getLabelFromCommandURL( const ::rtl::OUString& aCmdURL ) const;
|
||||
|
||||
// creates an association between current module/controller bound to the
|
||||
|
|
|
@ -75,10 +75,10 @@ private:
|
|||
SVT_DLLPRIVATE static String GetDescription_Impl( const INetURLObject& rObject, sal_Bool bDetectFolder );
|
||||
|
||||
public:
|
||||
SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig );
|
||||
SVT_DLLPUBLIC static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig );
|
||||
SVT_DLLPUBLIC static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig );
|
||||
SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig );
|
||||
SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
|
||||
SVT_DLLPUBLIC static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
|
||||
SVT_DLLPUBLIC static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig = sal_False );
|
||||
SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig = sal_False );
|
||||
|
||||
SVT_DLLPUBLIC static String GetDescription( const INetURLObject& rObject );
|
||||
SVT_DLLPUBLIC static String GetFileDescription( const INetURLObject& rObject );
|
||||
|
|
|
@ -73,7 +73,6 @@ enum SvxIconChoiceCtrlPositionMode
|
|||
class SvxIconChoiceCtrlEntry
|
||||
{
|
||||
Image aImage;
|
||||
Image aImageHC;
|
||||
|
||||
String aText;
|
||||
String aQuickHelpText;
|
||||
|
@ -123,16 +122,13 @@ class SvxIconChoiceCtrlEntry
|
|||
public:
|
||||
SvxIconChoiceCtrlEntry( USHORT nFlags = 0 );
|
||||
SvxIconChoiceCtrlEntry( const String& rText, const Image& rImage, USHORT nFlags = 0 );
|
||||
SvxIconChoiceCtrlEntry( const String& rText, const Image& rImage, const Image& rImageHC, USHORT nFlags = 0 );
|
||||
~SvxIconChoiceCtrlEntry () {}
|
||||
|
||||
void SetImage ( const Image& rImage ) { aImage = rImage; }
|
||||
void SetImageHC ( const Image& rImage ) { aImageHC = rImage; }
|
||||
Image GetImage () const { return aImage; }
|
||||
Image GetImageHC () const { return aImageHC; }
|
||||
void SetText ( const String& rText ) { aText = rText; }
|
||||
String GetText () const { return aText; }
|
||||
String SVT_DLLPUBLIC GetDisplayText() const;
|
||||
String SVT_DLLPUBLIC GetDisplayText() const;
|
||||
void SetQuickHelpText( const String& rText ) { aQuickHelpText = rText; }
|
||||
String GetQuickHelpText() const { return aQuickHelpText; }
|
||||
void SetUserData ( void* _pUserData ) { pUserData = _pUserData; }
|
||||
|
@ -303,14 +299,12 @@ public:
|
|||
SvxIconChoiceCtrlEntry* InsertEntry( ULONG nPos = LIST_APPEND,
|
||||
const Point* pPos = 0,
|
||||
USHORT nFlags = 0 );
|
||||
SvxIconChoiceCtrlEntry* InsertEntry( const String& rText, const Image& rImage,
|
||||
ULONG nPos = LIST_APPEND,
|
||||
const Point* pPos = 0,
|
||||
USHORT nFlags = 0 );
|
||||
SvxIconChoiceCtrlEntry* InsertEntry( const String& rText, const Image& rImage, const Image& rImageHC,
|
||||
ULONG nPos = LIST_APPEND,
|
||||
const Point* pPos = 0,
|
||||
USHORT nFlags = 0 );
|
||||
SvxIconChoiceCtrlEntry* InsertEntry( const String& rText,
|
||||
const Image& rImage,
|
||||
ULONG nPos = LIST_APPEND,
|
||||
const Point* pPos = 0,
|
||||
USHORT nFlags = 0
|
||||
);
|
||||
|
||||
/** creates automatic mnemonics for all icon texts in the control
|
||||
*/
|
||||
|
|
|
@ -317,9 +317,6 @@
|
|||
#define RID_SVTOOLS_IMAGELIST_BIG (RID_SVTOOLS_IMAGELIST_START + 1)
|
||||
#define RID_SVTOOLS_IMAGELIST_SMALL (RID_SVTOOLS_IMAGELIST_START + 2)
|
||||
#define RID_SVTOOLS_IMAGELIST_EDITBROWSEBOX (RID_SVTOOLS_IMAGELIST_START + 3)
|
||||
/// free
|
||||
/// free
|
||||
/// free
|
||||
#define RID_FILEPICKER_IMAGES (RID_SVTOOLS_IMAGELIST_START + 7)
|
||||
|
||||
//.............................................................................
|
||||
|
|
|
@ -157,7 +157,6 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
|
|||
void unbindListener();
|
||||
sal_Bool isBound() const;
|
||||
sal_Bool hasBigImages() const;
|
||||
sal_Bool isHighContrast() const;
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::util::XURLTransformer > getURLTransformer() const;
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > getParent() const;
|
||||
|
||||
|
|
|
@ -296,7 +296,7 @@ namespace svt
|
|||
{
|
||||
if ( !m_aStatusImages.GetImageCount() )
|
||||
{
|
||||
const_cast<EditBrowseBox*>(this)->m_aStatusImages = ImageList(SvtResId(RID_SVTOOLS_IMAGELIST_EDITBROWSEBOX));
|
||||
const_cast<EditBrowseBox*>(this)->m_aStatusImages = ImageList( SvtResId( RID_SVTOOLS_IMAGELIST_EDITBROWSEBOX ) );
|
||||
}
|
||||
|
||||
Image aImage;
|
||||
|
|
|
@ -42,9 +42,15 @@ ImageList RID_SVTOOLS_IMAGELIST_EDITBROWSEBOX
|
|||
Blue = 0xFFFF;
|
||||
};
|
||||
IdList = {
|
||||
IMG_EBB_CURRENT; IMG_EBB_MODIFIED;
|
||||
IMG_EBB_NEW;IMG_EBB_DELETED;IMG_EBB_CURRENTNEW;
|
||||
IMG_EBB_PRIMARYKEY; IMG_EBB_CURRENT_PRIMARYKEY; IMG_EBB_FILTER;IMG_EBB_HEADERFOOTER;
|
||||
IMG_EBB_CURRENT;
|
||||
IMG_EBB_MODIFIED;
|
||||
IMG_EBB_NEW;
|
||||
IMG_EBB_DELETED;
|
||||
IMG_EBB_CURRENTNEW;
|
||||
IMG_EBB_PRIMARYKEY;
|
||||
IMG_EBB_CURRENT_PRIMARYKEY;
|
||||
IMG_EBB_FILTER;
|
||||
IMG_EBB_HEADERFOOTER;
|
||||
};
|
||||
IdCount = { 9; };
|
||||
};
|
||||
|
|
|
@ -478,17 +478,12 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry eEntry)
|
|||
case SPELL :
|
||||
case DRAWDRAWING :
|
||||
case SMARTTAGS :
|
||||
{
|
||||
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
|
||||
aRet = rStyleSettings.GetHighContrastMode() ?
|
||||
rStyleSettings.GetDialogTextColor().GetColor() : aAutoColors[eEntry];
|
||||
}
|
||||
break;
|
||||
aRet = aAutoColors[eEntry];
|
||||
break;
|
||||
|
||||
case DRAWFILL :
|
||||
aRet = /*rStyleSettings.GetHighContrastMode() ?
|
||||
rStyleSettings.OutlineMode??? : */ aAutoColors[eEntry];
|
||||
break;
|
||||
aRet = aAutoColors[eEntry];
|
||||
break;
|
||||
|
||||
case FONTCOLOR :
|
||||
aRet = Application::GetSettings().GetStyleSettings().GetWindowTextColor();
|
||||
|
|
|
@ -46,20 +46,6 @@ SvxIconChoiceCtrlEntry::SvxIconChoiceCtrlEntry( const String& rText, const Image
|
|||
{
|
||||
aText = rText;
|
||||
aImage = rImage;
|
||||
aImageHC = rImage;
|
||||
pUserData = NULL;
|
||||
|
||||
nFlags = _nFlags;
|
||||
eTextMode = IcnShowTextShort;
|
||||
pblink = 0;
|
||||
pflink = 0;
|
||||
}
|
||||
|
||||
SvxIconChoiceCtrlEntry::SvxIconChoiceCtrlEntry( const String& rText, const Image& rImage, const Image& rImageHC, USHORT _nFlags )
|
||||
{
|
||||
aText = rText;
|
||||
aImage = rImage;
|
||||
aImageHC = rImageHC;
|
||||
pUserData = NULL;
|
||||
|
||||
nFlags = _nFlags;
|
||||
|
@ -94,15 +80,6 @@ void SvxIconChoiceCtrlEntry::LockPos( BOOL bLock )
|
|||
nFlags &= ~ICNVIEW_FLAG_POS_LOCKED;
|
||||
}
|
||||
|
||||
/*sal_Unicode SvxIconChoiceCtrlEntry::GetMnemonicChar() const
|
||||
{
|
||||
sal_Unicode cChar = 0;
|
||||
xub_StrLen nPos = aText.Search( '~' );
|
||||
if ( nPos != STRING_NOTFOUND && nPos < ( aText.Len() ) - 1 )
|
||||
cChar = aText.GetChar( nPos + 1 );
|
||||
return cChar;
|
||||
}*/
|
||||
|
||||
String SvxIconChoiceCtrlEntry::GetDisplayText() const
|
||||
{
|
||||
return MnemonicGenerator::EraseAllMnemonicChars( aText );
|
||||
|
@ -177,43 +154,41 @@ SvxIconChoiceCtrlEntry* SvtIconChoiceCtrl::InsertEntry( const String& rText, con
|
|||
return pEntry;
|
||||
}
|
||||
|
||||
SvxIconChoiceCtrlEntry* SvtIconChoiceCtrl::InsertEntry( const String& rText, const Image& rImage, const Image& rImageHC, ULONG nPos, const Point* pPos, USHORT nFlags )
|
||||
{
|
||||
SvxIconChoiceCtrlEntry* pEntry = new SvxIconChoiceCtrlEntry( rText, rImage, rImageHC, nFlags);
|
||||
|
||||
_pImp->InsertEntry( pEntry, nPos, pPos );
|
||||
|
||||
return pEntry;
|
||||
}
|
||||
|
||||
BOOL SvtIconChoiceCtrl::EditedEntry( SvxIconChoiceCtrlEntry*, const XubString&, BOOL )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL SvtIconChoiceCtrl::EditingEntry( SvxIconChoiceCtrlEntry* )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void SvtIconChoiceCtrl::DrawEntryImage( SvxIconChoiceCtrlEntry* pEntry, const Point& rPos, OutputDevice& rDev )
|
||||
{
|
||||
rDev.DrawImage( rPos, GetSettings().GetStyleSettings().GetHighContrastMode() ? pEntry->GetImageHC() : pEntry->GetImage() );
|
||||
rDev.DrawImage( rPos, pEntry->GetImage() );
|
||||
}
|
||||
|
||||
String SvtIconChoiceCtrl::GetEntryText( SvxIconChoiceCtrlEntry* pEntry, BOOL )
|
||||
{
|
||||
return pEntry->GetText();
|
||||
}
|
||||
|
||||
BOOL SvtIconChoiceCtrl::HasBackground() const
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL SvtIconChoiceCtrl::HasFont() const
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL SvtIconChoiceCtrl::HasFontTextColor() const
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL SvtIconChoiceCtrl::HasFontFillColor() const
|
||||
{
|
||||
return TRUE;
|
||||
|
|
|
@ -504,15 +504,11 @@ ContextMenuHelper::associateUIConfigurationManagers()
|
|||
}
|
||||
|
||||
Image
|
||||
ContextMenuHelper::getImageFromCommandURL(
|
||||
const ::rtl::OUString& aCmdURL,
|
||||
bool bHiContrast ) const
|
||||
ContextMenuHelper::getImageFromCommandURL( const ::rtl::OUString& aCmdURL ) const
|
||||
{
|
||||
Image aImage;
|
||||
sal_Int16 nImageType( ui::ImageType::COLOR_NORMAL|
|
||||
ui::ImageType::SIZE_DEFAULT );
|
||||
if ( bHiContrast )
|
||||
nImageType |= ui::ImageType::COLOR_HIGHCONTRAST;
|
||||
|
||||
uno::Sequence< uno::Reference< graphic::XGraphic > > aGraphicSeq;
|
||||
uno::Sequence< ::rtl::OUString > aImageCmdSeq( 1 );
|
||||
|
@ -544,7 +540,7 @@ ContextMenuHelper::getImageFromCommandURL(
|
|||
{
|
||||
aGraphicSeq = m_xModuleImageMgr->getImages( nImageType, aImageCmdSeq );
|
||||
uno::Reference< ::com::sun::star::graphic::XGraphic > xGraphic = aGraphicSeq[0];
|
||||
aImage = Image( xGraphic );
|
||||
aImage = Image( xGraphic );
|
||||
|
||||
if ( !!aImage )
|
||||
return aImage;
|
||||
|
@ -609,7 +605,6 @@ ContextMenuHelper::completeMenuProperties(
|
|||
// menu correctly.
|
||||
const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();
|
||||
bool bShowMenuImages( rSettings.GetUseImagesInMenus() );
|
||||
bool bIsHiContrast( rSettings.GetHighContrastMode() );
|
||||
|
||||
if ( pMenu )
|
||||
{
|
||||
|
@ -639,7 +634,7 @@ ContextMenuHelper::completeMenuProperties(
|
|||
{
|
||||
Image aImage;
|
||||
if ( aCmdURL.getLength() > 0 )
|
||||
aImage = getImageFromCommandURL( aCmdURL, bIsHiContrast );
|
||||
aImage = getImageFromCommandURL( aCmdURL );
|
||||
pMenu->SetItemImage( nId, aImage );
|
||||
}
|
||||
else
|
||||
|
|
|
@ -673,22 +673,6 @@ sal_Bool ToolboxController::hasBigImages() const
|
|||
return SvtMiscOptions().AreCurrentSymbolsLarge();
|
||||
}
|
||||
|
||||
sal_Bool ToolboxController::isHighContrast() const
|
||||
{
|
||||
sal_Bool bHighContrast( sal_False );
|
||||
|
||||
Reference< XWindow > xWindow = m_pImpl->m_xParentWindow;
|
||||
if ( xWindow.is() )
|
||||
{
|
||||
SolarMutexGuard aSolarMutexGuard;
|
||||
Window* pWindow = VCLUnoHelper::GetWindow( xWindow );
|
||||
if ( pWindow )
|
||||
bHighContrast = ( ((ToolBox *)pWindow)->GetSettings().GetStyleSettings().GetHighContrastMode() );
|
||||
}
|
||||
|
||||
return bHighContrast;
|
||||
}
|
||||
|
||||
void ToolboxController::updateStatus()
|
||||
{
|
||||
bindListener();
|
||||
|
|
|
@ -228,11 +228,11 @@ public:
|
|||
std::vector< SvtLinguConfigDictionaryEntry > GetActiveDictionariesByFormat( const rtl::OUString &rFormatName );
|
||||
|
||||
// functions returning file URLs to the respective images (if found) and empty string otherwise
|
||||
::rtl::OUString GetSpellAndGrammarDialogImage( const ::rtl::OUString &rServiceImplName, bool bHighContrast = false ) const;
|
||||
::rtl::OUString GetSpellAndGrammarContextSuggestionImage( const ::rtl::OUString &rServiceImplName, bool bHighContrast = false ) const;
|
||||
::rtl::OUString GetSpellAndGrammarContextDictionaryImage( const ::rtl::OUString &rServiceImplName, bool bHighContrast = false ) const;
|
||||
::rtl::OUString GetThesaurusDialogImage( const ::rtl::OUString &rServiceImplName, bool bHighContrast = false ) const;
|
||||
::rtl::OUString GetSynonymsContextImage( const ::rtl::OUString &rServiceImplName, bool bHighContrast = false ) const;
|
||||
::rtl::OUString GetSpellAndGrammarDialogImage( const ::rtl::OUString &rServiceImplName ) const;
|
||||
::rtl::OUString GetSpellAndGrammarContextSuggestionImage( const ::rtl::OUString &rServiceImplName ) const;
|
||||
::rtl::OUString GetSpellAndGrammarContextDictionaryImage( const ::rtl::OUString &rServiceImplName ) const;
|
||||
::rtl::OUString GetThesaurusDialogImage( const ::rtl::OUString &rServiceImplName ) const;
|
||||
::rtl::OUString GetSynonymsContextImage( const ::rtl::OUString &rServiceImplName ) const;
|
||||
|
||||
bool HasVendorImages( const char *pImageName ) const;
|
||||
bool HasGrammarChecker() const;
|
||||
|
|
|
@ -1364,13 +1364,13 @@ rtl::OUString SvtLinguConfig::GetVendorImageUrl_Impl(
|
|||
|
||||
|
||||
rtl::OUString SvtLinguConfig::GetSpellAndGrammarDialogImage(
|
||||
const rtl::OUString &rServiceImplName,
|
||||
bool bHighContrast ) const
|
||||
const rtl::OUString &rServiceImplName
|
||||
) const
|
||||
{
|
||||
rtl::OUString aRes;
|
||||
if (rServiceImplName.getLength() > 0)
|
||||
{
|
||||
rtl::OUString aImageName( A2OU( bHighContrast ? "SpellAndGrammarDialogImage_HC" : "SpellAndGrammarDialogImage" ));
|
||||
rtl::OUString aImageName( A2OU( "SpellAndGrammarDialogImage" ));
|
||||
rtl::OUString aPath( GetVendorImageUrl_Impl( rServiceImplName, aImageName ) );
|
||||
aRes = aPath;
|
||||
}
|
||||
|
@ -1379,13 +1379,13 @@ rtl::OUString SvtLinguConfig::GetSpellAndGrammarDialogImage(
|
|||
|
||||
|
||||
rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextSuggestionImage(
|
||||
const rtl::OUString &rServiceImplName,
|
||||
bool bHighContrast ) const
|
||||
const rtl::OUString &rServiceImplName
|
||||
) const
|
||||
{
|
||||
rtl::OUString aRes;
|
||||
if (rServiceImplName.getLength() > 0)
|
||||
{
|
||||
rtl::OUString aImageName( A2OU( bHighContrast ? "SpellAndGrammarContextMenuSuggestionImage_HC" : "SpellAndGrammarContextMenuSuggestionImage" ));
|
||||
rtl::OUString aImageName( A2OU( "SpellAndGrammarContextMenuSuggestionImage" ));
|
||||
rtl::OUString aPath( GetVendorImageUrl_Impl( rServiceImplName, aImageName ) );
|
||||
aRes = aPath;
|
||||
}
|
||||
|
@ -1394,13 +1394,13 @@ rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextSuggestionImage(
|
|||
|
||||
|
||||
rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextDictionaryImage(
|
||||
const rtl::OUString &rServiceImplName,
|
||||
bool bHighContrast ) const
|
||||
const rtl::OUString &rServiceImplName
|
||||
) const
|
||||
{
|
||||
rtl::OUString aRes;
|
||||
if (rServiceImplName.getLength() > 0)
|
||||
{
|
||||
rtl::OUString aImageName( A2OU( bHighContrast ? "SpellAndGrammarContextMenuDictionaryImage_HC" : "SpellAndGrammarContextMenuDictionaryImage" ));
|
||||
rtl::OUString aImageName( A2OU( "SpellAndGrammarContextMenuDictionaryImage" ));
|
||||
rtl::OUString aPath( GetVendorImageUrl_Impl( rServiceImplName, aImageName ) );
|
||||
aRes = aPath;
|
||||
}
|
||||
|
@ -1409,13 +1409,13 @@ rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextDictionaryImage(
|
|||
|
||||
|
||||
::rtl::OUString SvtLinguConfig::GetThesaurusDialogImage(
|
||||
const ::rtl::OUString &rServiceImplName,
|
||||
bool bHighContrast ) const
|
||||
const ::rtl::OUString &rServiceImplName
|
||||
) const
|
||||
{
|
||||
rtl::OUString aRes;
|
||||
if (rServiceImplName.getLength() > 0)
|
||||
{
|
||||
rtl::OUString aImageName( A2OU( bHighContrast ? "ThesaurusDialogImage_HC" : "ThesaurusDialogImage" ));
|
||||
rtl::OUString aImageName( A2OU( "ThesaurusDialogImage" ));
|
||||
rtl::OUString aPath( GetVendorImageUrl_Impl( rServiceImplName, aImageName ) );
|
||||
aRes = aPath;
|
||||
}
|
||||
|
@ -1424,13 +1424,13 @@ rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextDictionaryImage(
|
|||
|
||||
|
||||
::rtl::OUString SvtLinguConfig::GetSynonymsContextImage(
|
||||
const ::rtl::OUString &rServiceImplName,
|
||||
bool bHighContrast ) const
|
||||
const ::rtl::OUString &rServiceImplName
|
||||
) const
|
||||
{
|
||||
rtl::OUString aRes;
|
||||
if (rServiceImplName.getLength() > 0)
|
||||
{
|
||||
rtl::OUString aImageName( A2OU( bHighContrast ? "SynonymsContextMenuImage_HC" : "SynonymsContextMenuImage" ));
|
||||
rtl::OUString aImageName( A2OU( "SynonymsContextMenuImage" ));
|
||||
rtl::OUString aPath( GetVendorImageUrl_Impl( rServiceImplName, aImageName ) );
|
||||
aRes = aPath;
|
||||
}
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
#define SV_RESID_BITMAP_SCROLLMSK 1050
|
||||
#define SV_RESID_BITMAP_SCROLLBMP 1051
|
||||
#define SV_RESID_BITMAP_CLOSEDOC 1052
|
||||
#define SV_RESID_BITMAP_CLOSEDOCHC 1053
|
||||
|
||||
#define SV_DISCLOSURE_PLUS 1060
|
||||
#define SV_DISCLOSURE_MINUS 1061
|
||||
|
|
|
@ -120,11 +120,6 @@ Bitmap SV_RESID_BITMAP_CLOSEDOC
|
|||
File = "closedoc.bmp";
|
||||
};
|
||||
|
||||
Bitmap SV_RESID_BITMAP_CLOSEDOCHC
|
||||
{
|
||||
File = "closedochc.bmp";
|
||||
};
|
||||
|
||||
Bitmap SV_RESID_BITMAP_SPLITHPIN
|
||||
{
|
||||
File = "splhpin.bmp";
|
||||
|
|
|
@ -562,7 +562,6 @@ public:
|
|||
Size getMinSize();
|
||||
|
||||
Image maImage;
|
||||
Image maImageHC;
|
||||
};
|
||||
|
||||
DecoToolBox::DecoToolBox( Window* pParent, WinBits nStyle ) :
|
||||
|
@ -640,8 +639,7 @@ void DecoToolBox::SetImages( long nMaxHeight, bool bForce )
|
|||
|
||||
Color aEraseColor( 255, 255, 255, 255 );
|
||||
BitmapEx aBmpExDst( maImage.GetBitmapEx() );
|
||||
BitmapEx aBmpExSrc( GetSettings().GetStyleSettings().GetHighContrastMode() ?
|
||||
maImageHC.GetBitmapEx() : aBmpExDst );
|
||||
BitmapEx aBmpExSrc( aBmpExDst );
|
||||
|
||||
aEraseColor.SetTransparency( 255 );
|
||||
aBmpExDst.Erase( aEraseColor );
|
||||
|
@ -5165,18 +5163,14 @@ MenuBarWindow::MenuBarWindow( Window* pParent ) :
|
|||
if( pResMgr )
|
||||
{
|
||||
BitmapEx aBitmap( ResId( SV_RESID_BITMAP_CLOSEDOC, *pResMgr ) );
|
||||
BitmapEx aBitmapHC( ResId( SV_RESID_BITMAP_CLOSEDOCHC, *pResMgr ) );
|
||||
|
||||
aCloser.maImage = Image( aBitmap );
|
||||
aCloser.maImageHC = Image( aBitmapHC );
|
||||
|
||||
aCloser.SetOutStyle( TOOLBOX_STYLE_FLAT );
|
||||
aCloser.SetBackground();
|
||||
aCloser.SetPaintTransparent( TRUE );
|
||||
aCloser.SetParentClipMode( PARENTCLIPMODE_NOCLIP );
|
||||
|
||||
aCloser.InsertItem( IID_DOCUMENTCLOSE,
|
||||
GetSettings().GetStyleSettings().GetHighContrastMode() ? aCloser.maImageHC : aCloser.maImage, 0 );
|
||||
aCloser.InsertItem( IID_DOCUMENTCLOSE, aCloser.maImage, 0 );
|
||||
aCloser.SetSelectHdl( LINK( this, MenuBarWindow, CloserHdl ) );
|
||||
aCloser.AddEventListener( LINK( this, MenuBarWindow, ToolboxEventHdl ) );
|
||||
aCloser.SetQuickHelpText( IID_DOCUMENTCLOSE, XubString( ResId( SV_HELPTEXT_CLOSEDOCUMENT, *pResMgr ) ) );
|
||||
|
|
Loading…
Reference in a new issue