Kaydet (Commit) 58fae0f7 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

remove osolete ifdef

now that the ScaleDPI is forced to 1 on mac there is no need
for these ifdef

Change-Id: I0ca3bc301b63f5f4c7d1eb36f27bc9b6ab41af29
üst 4dbb04e5
...@@ -101,7 +101,6 @@ void ValueSetWithTextControl::AddItem( ...@@ -101,7 +101,6 @@ void ValueSetWithTextControl::AddItem(
? *pSelectedItemImage ? *pSelectedItemImage
: rItemImage; : rItemImage;
#ifndef MACOSX
if ( GetDPIScaleFactor() > 1 ) if ( GetDPIScaleFactor() > 1 )
{ {
BitmapEx b = aItem.maItemImage.GetBitmapEx(); BitmapEx b = aItem.maItemImage.GetBitmapEx();
...@@ -115,7 +114,7 @@ void ValueSetWithTextControl::AddItem( ...@@ -115,7 +114,7 @@ void ValueSetWithTextControl::AddItem(
aItem.maSelectedItemImage = Image(b); aItem.maSelectedItemImage = Image(b);
} }
} }
#endif
aItem.maItemText = rItemText; aItem.maItemText = rItemText;
maItems.push_back( aItem ); maItems.push_back( aItem );
...@@ -169,7 +168,7 @@ void ValueSetWithTextControl::ReplaceItemImages( ...@@ -169,7 +168,7 @@ void ValueSetWithTextControl::ReplaceItemImages(
? *pSelectedItemImage ? *pSelectedItemImage
: rItemImage; : rItemImage;
#ifndef MACOSX //#ifndef MACOSX
if ( GetDPIScaleFactor() > 1 ) if ( GetDPIScaleFactor() > 1 )
{ {
BitmapEx b = maItems[nItemId-1].maItemImage.GetBitmapEx(); BitmapEx b = maItems[nItemId-1].maItemImage.GetBitmapEx();
...@@ -183,7 +182,7 @@ void ValueSetWithTextControl::ReplaceItemImages( ...@@ -183,7 +182,7 @@ void ValueSetWithTextControl::ReplaceItemImages(
maItems[nItemId-1].maSelectedItemImage = Image(b); maItems[nItemId-1].maSelectedItemImage = Image(b);
} }
} }
#endif //#endif
} }
......
...@@ -73,7 +73,7 @@ SvxModifyControl::SvxModifyControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, Status ...@@ -73,7 +73,7 @@ SvxModifyControl::SvxModifyControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, Status
SfxStatusBarControl( _nSlotId, _nId, rStb ), SfxStatusBarControl( _nSlotId, _nId, rStb ),
mpImpl(new ImplData) mpImpl(new ImplData)
{ {
#ifndef MACOSX //#ifndef MACOSX
if ( rStb.GetDPIScaleFactor() > 1 ) if ( rStb.GetDPIScaleFactor() > 1 )
{ {
for (int i = 0; i < mpImpl->MODIFICATION_STATE_SIZE; i++) for (int i = 0; i < mpImpl->MODIFICATION_STATE_SIZE; i++)
...@@ -83,7 +83,7 @@ SvxModifyControl::SvxModifyControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, Status ...@@ -83,7 +83,7 @@ SvxModifyControl::SvxModifyControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, Status
mpImpl->maImages[i] = Image(b); mpImpl->maImages[i] = Image(b);
} }
} }
#endif //#endif
mpImpl->maTimer.SetTimeoutHdl( LINK(this, SvxModifyControl, OnTimer) ); mpImpl->maTimer.SetTimeoutHdl( LINK(this, SvxModifyControl, OnTimer) );
} }
......
...@@ -178,7 +178,6 @@ SvxPosSizeStatusBarControl::SvxPosSizeStatusBarControl( sal_uInt16 _nSlotId, ...@@ -178,7 +178,6 @@ SvxPosSizeStatusBarControl::SvxPosSizeStatusBarControl( sal_uInt16 _nSlotId,
pImp->aPosImage = Image( ResId( RID_SVXBMP_POSITION, DIALOG_MGR() ) ); pImp->aPosImage = Image( ResId( RID_SVXBMP_POSITION, DIALOG_MGR() ) );
pImp->aSizeImage = Image( ResId( RID_SVXBMP_SIZE, DIALOG_MGR() ) ); pImp->aSizeImage = Image( ResId( RID_SVXBMP_SIZE, DIALOG_MGR() ) );
#ifndef MACOSX
if ( rStb.GetDPIScaleFactor() > 1) if ( rStb.GetDPIScaleFactor() > 1)
{ {
BitmapEx b = pImp->aPosImage.GetBitmapEx(); BitmapEx b = pImp->aPosImage.GetBitmapEx();
...@@ -189,7 +188,7 @@ SvxPosSizeStatusBarControl::SvxPosSizeStatusBarControl( sal_uInt16 _nSlotId, ...@@ -189,7 +188,7 @@ SvxPosSizeStatusBarControl::SvxPosSizeStatusBarControl( sal_uInt16 _nSlotId,
b.Scale(rStb.GetDPIScaleFactor(), rStb.GetDPIScaleFactor(), BMP_SCALE_FAST); b.Scale(rStb.GetDPIScaleFactor(), rStb.GetDPIScaleFactor(), BMP_SCALE_FAST);
pImp->aSizeImage = Image(b); pImp->aSizeImage = Image(b);
} }
#endif
addStatusListener( OUString( STR_POSITION )); // SID_ATTR_POSITION addStatusListener( OUString( STR_POSITION )); // SID_ATTR_POSITION
addStatusListener( OUString( STR_TABLECELL )); // SID_TABLE_CELL addStatusListener( OUString( STR_TABLECELL )); // SID_TABLE_CELL
addStatusListener( OUString( STR_FUNC )); // SID_PSZ_FUNCTION addStatusListener( OUString( STR_FUNC )); // SID_PSZ_FUNCTION
......
...@@ -80,14 +80,14 @@ SvxSelectionModeControl::SvxSelectionModeControl( sal_uInt16 _nSlotId, ...@@ -80,14 +80,14 @@ SvxSelectionModeControl::SvxSelectionModeControl( sal_uInt16 _nSlotId,
mnState( 0 ), mnState( 0 ),
maImage( SVX_RES( RID_SVXBMP_SELECTION ) ) maImage( SVX_RES( RID_SVXBMP_SELECTION ) )
{ {
#ifndef MACOSX //#ifndef MACOSX
if ( GetStatusBar().GetDPIScaleFactor() > 1 ) if ( GetStatusBar().GetDPIScaleFactor() > 1 )
{ {
BitmapEx b = maImage.GetBitmapEx(); BitmapEx b = maImage.GetBitmapEx();
b.Scale(GetStatusBar().GetDPIScaleFactor(), GetStatusBar().GetDPIScaleFactor(), BMP_SCALE_FAST); b.Scale(GetStatusBar().GetDPIScaleFactor(), GetStatusBar().GetDPIScaleFactor(), BMP_SCALE_FAST);
maImage = Image(b); maImage = Image(b);
} }
#endif //#endif
GetStatusBar().SetItemText( GetId(), "" ); GetStatusBar().SetItemText( GetId(), "" );
} }
......
...@@ -61,7 +61,6 @@ XmlSecStatusBarControl::XmlSecStatusBarControl( sal_uInt16 _nSlotId, sal_uInt16 ...@@ -61,7 +61,6 @@ XmlSecStatusBarControl::XmlSecStatusBarControl( sal_uInt16 _nSlotId, sal_uInt16
mpImpl->maImageBroken = Image( SVX_RES( RID_SVXBMP_SIGNET_BROKEN ) ); mpImpl->maImageBroken = Image( SVX_RES( RID_SVXBMP_SIGNET_BROKEN ) );
mpImpl->maImageNotValidated = Image( SVX_RES( RID_SVXBMP_SIGNET_NOTVALIDATED ) ); mpImpl->maImageNotValidated = Image( SVX_RES( RID_SVXBMP_SIGNET_NOTVALIDATED ) );
#ifndef MACOSX
if (_rStb.GetDPIScaleFactor() > 1) if (_rStb.GetDPIScaleFactor() > 1)
{ {
Image arr[3] = {mpImpl->maImage, mpImpl->maImageBroken, mpImpl->maImageNotValidated}; Image arr[3] = {mpImpl->maImage, mpImpl->maImageBroken, mpImpl->maImageNotValidated};
...@@ -77,7 +76,6 @@ XmlSecStatusBarControl::XmlSecStatusBarControl( sal_uInt16 _nSlotId, sal_uInt16 ...@@ -77,7 +76,6 @@ XmlSecStatusBarControl::XmlSecStatusBarControl( sal_uInt16 _nSlotId, sal_uInt16
mpImpl->maImageBroken = arr[1]; mpImpl->maImageBroken = arr[1];
mpImpl->maImageNotValidated = arr[2]; mpImpl->maImageNotValidated = arr[2];
} }
#endif
} }
......
...@@ -171,7 +171,7 @@ SvxZoomSliderControl::SvxZoomSliderControl( sal_uInt16 _nSlotId, sal_uInt16 _nI ...@@ -171,7 +171,7 @@ SvxZoomSliderControl::SvxZoomSliderControl( sal_uInt16 _nSlotId, sal_uInt16 _nI
mpImpl->maIncreaseButton = Image( SVX_RES( RID_SVXBMP_SLIDERINCREASE ) ); mpImpl->maIncreaseButton = Image( SVX_RES( RID_SVXBMP_SLIDERINCREASE ) );
mpImpl->maDecreaseButton = Image( SVX_RES( RID_SVXBMP_SLIDERDECREASE ) ); mpImpl->maDecreaseButton = Image( SVX_RES( RID_SVXBMP_SLIDERDECREASE ) );
#ifndef MACOSX //#ifndef MACOSX
if ( _rStb.GetDPIScaleFactor() > 1) if ( _rStb.GetDPIScaleFactor() > 1)
{ {
Image arr[3] = {mpImpl->maSliderButton, mpImpl->maIncreaseButton, mpImpl->maDecreaseButton}; Image arr[3] = {mpImpl->maSliderButton, mpImpl->maIncreaseButton, mpImpl->maDecreaseButton};
...@@ -187,7 +187,7 @@ SvxZoomSliderControl::SvxZoomSliderControl( sal_uInt16 _nSlotId, sal_uInt16 _nI ...@@ -187,7 +187,7 @@ SvxZoomSliderControl::SvxZoomSliderControl( sal_uInt16 _nSlotId, sal_uInt16 _nI
mpImpl->maIncreaseButton = arr[1]; mpImpl->maIncreaseButton = arr[1];
mpImpl->maDecreaseButton = arr[2]; mpImpl->maDecreaseButton = arr[2];
} }
#endif //#endif
} }
......
...@@ -1275,7 +1275,7 @@ SvxFrameWindow_Impl::SvxFrameWindow_Impl( sal_uInt16 nId, const Reference< XFram ...@@ -1275,7 +1275,7 @@ SvxFrameWindow_Impl::SvxFrameWindow_Impl( sal_uInt16 nId, const Reference< XFram
BindListener(); BindListener();
AddStatusListener(OUString(".uno:BorderReducedMode")); AddStatusListener(OUString(".uno:BorderReducedMode"));
aImgList = ImageList( SVX_RES( RID_SVXIL_FRAME ) ); aImgList = ImageList( SVX_RES( RID_SVXIL_FRAME ) );
#ifndef MACOSX
if( pParentWindow->GetDPIScaleFactor() > 1 ) if( pParentWindow->GetDPIScaleFactor() > 1 )
{ {
for (short i = 0; i < aImgList.GetImageCount(); i++) for (short i = 0; i < aImgList.GetImageCount(); i++)
...@@ -1286,7 +1286,7 @@ SvxFrameWindow_Impl::SvxFrameWindow_Impl( sal_uInt16 nId, const Reference< XFram ...@@ -1286,7 +1286,7 @@ SvxFrameWindow_Impl::SvxFrameWindow_Impl( sal_uInt16 nId, const Reference< XFram
aImgList.ReplaceImage(rImageName, Image(b)); aImgList.ReplaceImage(rImageName, Image(b));
} }
} }
#endif
/* /*
* 1 2 3 4 * 1 2 3 4
* ------------------------------------- * -------------------------------------
......
...@@ -1563,7 +1563,6 @@ void SwContentTree::Display( bool bActive ) ...@@ -1563,7 +1563,6 @@ void SwContentTree::Display( bool bActive )
{ {
aEntryImages = ImageList(SW_RES(IMG_NAVI_ENTRYBMP)); aEntryImages = ImageList(SW_RES(IMG_NAVI_ENTRYBMP));
#ifndef MACSOX
if ( GetDPIScaleFactor() > 1 ) if ( GetDPIScaleFactor() > 1 )
{ {
for (short i = 0; i < aEntryImages.GetImageCount(); i++) for (short i = 0; i < aEntryImages.GetImageCount(); i++)
...@@ -1575,7 +1574,6 @@ void SwContentTree::Display( bool bActive ) ...@@ -1575,7 +1574,6 @@ void SwContentTree::Display( bool bActive )
aEntryImages.ReplaceImage(rImageName, Image(b)); aEntryImages.ReplaceImage(rImageName, Image(b));
} }
} }
#endif
bIsImageListInitialized = true; bIsImageListInitialized = true;
} }
// First read the selected entry to select it later again if necessary // First read the selected entry to select it later again if necessary
......
...@@ -52,7 +52,6 @@ SwViewLayoutControl::SwViewLayoutControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, ...@@ -52,7 +52,6 @@ SwViewLayoutControl::SwViewLayoutControl( sal_uInt16 _nSlotId, sal_uInt16 _nId,
mpImpl->maImageBookMode = Image( SW_RES(IMG_VIEWLAYOUT_BOOKMODE) ); mpImpl->maImageBookMode = Image( SW_RES(IMG_VIEWLAYOUT_BOOKMODE) );
mpImpl->maImageBookMode_Active = Image( SW_RES(IMG_VIEWLAYOUT_BOOKMODE_ACTIVE) ); mpImpl->maImageBookMode_Active = Image( SW_RES(IMG_VIEWLAYOUT_BOOKMODE_ACTIVE) );
#ifndef MACOSX
if ( rStb.GetDPIScaleFactor() > 1) if ( rStb.GetDPIScaleFactor() > 1)
{ {
Image arr[6] = {mpImpl->maImageSingleColumn, mpImpl->maImageSingleColumn_Active, Image arr[6] = {mpImpl->maImageSingleColumn, mpImpl->maImageSingleColumn_Active,
...@@ -76,7 +75,7 @@ SwViewLayoutControl::SwViewLayoutControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, ...@@ -76,7 +75,7 @@ SwViewLayoutControl::SwViewLayoutControl( sal_uInt16 _nSlotId, sal_uInt16 _nId,
mpImpl->maImageBookMode = arr[4]; mpImpl->maImageBookMode = arr[4];
mpImpl->maImageBookMode_Active = arr[5]; mpImpl->maImageBookMode_Active = arr[5];
} }
#endif
} }
SwViewLayoutControl::~SwViewLayoutControl() SwViewLayoutControl::~SwViewLayoutControl()
......
...@@ -1236,7 +1236,6 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage ) ...@@ -1236,7 +1236,6 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage )
{ {
Image aImage(rImage); Image aImage(rImage);
#ifndef MACOSX
if ( GetDPIScaleFactor() > 1) if ( GetDPIScaleFactor() > 1)
{ {
BitmapEx aBitmap(aImage.GetBitmapEx()); BitmapEx aBitmap(aImage.GetBitmapEx());
...@@ -1249,7 +1248,7 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage ) ...@@ -1249,7 +1248,7 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage )
aImage = Image(aBitmap); aImage = Image(aBitmap);
} }
} }
#endif
ImplToolItem* pItem = &mpData->m_aItems[nPos]; ImplToolItem* pItem = &mpData->m_aItems[nPos];
// only once all is calculated, do extra work // only once all is calculated, do extra work
if ( !mbCalc ) if ( !mbCalc )
......
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