use more Color in sd
Change-Id: Iefd544a70730dfb760b7a89ff697a86ab4fae685 Reviewed-on: https://gerrit.libreoffice.org/50818 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
26a016be81
commit
1a41c0711d
@ -993,11 +993,11 @@ void SdImportTest::testBnc584721_4()
|
||||
// Get first run of the paragraph
|
||||
uno::Reference<text::XTextRange> xRun( getRunFromParagraph (0, xParagraph ) );
|
||||
uno::Reference< beans::XPropertySet > xPropSet( xRun, uno::UNO_QUERY_THROW );
|
||||
sal_Int32 nCharColor;
|
||||
Color nCharColor;
|
||||
xPropSet->getPropertyValue( "CharColor" ) >>= nCharColor;
|
||||
|
||||
// Color should be black
|
||||
CPPUNIT_ASSERT_EQUAL( sal_Int32(COL_BLACK), nCharColor );
|
||||
CPPUNIT_ASSERT_EQUAL( COL_BLACK, nCharColor );
|
||||
|
||||
xDocShRef->DoClose();
|
||||
}
|
||||
|
@ -1019,7 +1019,7 @@ void EffectMigration::SetDimPrevious( SvxShape* pShape, bool bDimPrevious )
|
||||
Any aColor;
|
||||
|
||||
if( bDimPrevious )
|
||||
aColor <<= static_cast<sal_Int32>(COL_LIGHTGRAY);
|
||||
aColor <<= COL_LIGHTGRAY;
|
||||
|
||||
sd::MainSequencePtr pMainSequence = static_cast<SdPage*>(pObj->GetPage())->getMainSequence();
|
||||
|
||||
|
@ -550,7 +550,7 @@ void SdDrawDocument::CreateDefaultCellStyles()
|
||||
XHatch aNullHatch(aNullCol);
|
||||
|
||||
rISet.Put(XFillStyleItem(drawing::FillStyle_SOLID));
|
||||
rISet.Put(XFillColorItem(OUString(), 0x00ccccff));
|
||||
rISet.Put(XFillColorItem(OUString(), Color(0x00ccccff)));
|
||||
|
||||
vcl::Font aLatinFont, aCJKFont, aCTLFont;
|
||||
|
||||
|
@ -229,7 +229,7 @@ struct PPTExCharLevel
|
||||
sal_uInt16 mnAsianOrComplexFont;
|
||||
sal_uInt16 mnFontHeight;
|
||||
sal_uInt16 mnEscapement;
|
||||
sal_uInt32 mnFontColor;
|
||||
Color mnFontColor;
|
||||
};
|
||||
|
||||
struct PPTExCharSheet
|
||||
|
@ -102,8 +102,8 @@ void PPTExCharSheet::Write( SvStream& rSt, sal_uInt16 nLev, bool bSimpleText,
|
||||
.WriteUInt16( rLev.mnFlags )
|
||||
.WriteUInt16( rLev.mnFont );
|
||||
|
||||
sal_uInt32 nFontColor = rLev.mnFontColor;
|
||||
if ( nFontColor == sal_uInt32(COL_AUTO) )
|
||||
Color nFontColor = rLev.mnFontColor;
|
||||
if ( nFontColor == COL_AUTO )
|
||||
{
|
||||
bool bIsDark = false;
|
||||
css::uno::Any aAny;
|
||||
@ -111,12 +111,11 @@ void PPTExCharSheet::Write( SvStream& rSt, sal_uInt16 nLev, bool bSimpleText,
|
||||
aAny >>= bIsDark;
|
||||
nFontColor = bIsDark ? 0xffffff : 0x000000;
|
||||
}
|
||||
nFontColor &= 0xffffff;
|
||||
nFontColor |= 0xfe000000;
|
||||
nFontColor.SetTransparency(0xfe);
|
||||
if ( bSimpleText )
|
||||
{
|
||||
rSt.WriteUInt16( rLev.mnFontHeight )
|
||||
.WriteUInt32( nFontColor );
|
||||
.WriteUInt32( sal_uInt32(nFontColor) );
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -124,7 +123,7 @@ void PPTExCharSheet::Write( SvStream& rSt, sal_uInt16 nLev, bool bSimpleText,
|
||||
.WriteUInt16( 0xffff ) // unknown
|
||||
.WriteUInt16( 0xffff ) // unknown
|
||||
.WriteUInt16( rLev.mnFontHeight )
|
||||
.WriteUInt32( nFontColor )
|
||||
.WriteUInt32( sal_uInt32(nFontColor) )
|
||||
.WriteUInt16( rLev.mnEscapement );
|
||||
}
|
||||
}
|
||||
@ -485,7 +484,7 @@ void PPTExStyleSheet::WriteTxCFStyleAtom( SvStream& rSt )
|
||||
.WriteUInt16( nCharFlags )
|
||||
.WriteInt32( -1 ) // ?
|
||||
.WriteUInt16( rCharStyle.mnFontHeight )
|
||||
.WriteUInt32( rCharStyle.mnFontColor );
|
||||
.WriteUInt32( sal_uInt32(rCharStyle.mnFontColor) );
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@ -510,35 +510,35 @@ void HtmlExport::InitExportParameters( const Sequence< PropertyValue >& rParams
|
||||
{
|
||||
sal_Int32 temp = 0;
|
||||
pParams->Value >>= temp;
|
||||
maBackColor = temp;
|
||||
maBackColor = Color(temp);
|
||||
mbUserAttr = true;
|
||||
}
|
||||
else if ( pParams->Name == "TextColor" )
|
||||
{
|
||||
sal_Int32 temp = 0;
|
||||
pParams->Value >>= temp;
|
||||
maTextColor = temp;
|
||||
maTextColor = Color(temp);
|
||||
mbUserAttr = true;
|
||||
}
|
||||
else if ( pParams->Name == "LinkColor" )
|
||||
{
|
||||
sal_Int32 temp = 0;
|
||||
pParams->Value >>= temp;
|
||||
maLinkColor = temp;
|
||||
maLinkColor = Color(temp);
|
||||
mbUserAttr = true;
|
||||
}
|
||||
else if ( pParams->Name == "VLinkColor" )
|
||||
{
|
||||
sal_Int32 temp = 0;
|
||||
pParams->Value >>= temp;
|
||||
maVLinkColor = temp;
|
||||
maVLinkColor = Color(temp);
|
||||
mbUserAttr = true;
|
||||
}
|
||||
else if ( pParams->Name == "ALinkColor" )
|
||||
{
|
||||
sal_Int32 temp = 0;
|
||||
pParams->Value >>= temp;
|
||||
maALinkColor = temp;
|
||||
maALinkColor = Color(temp);
|
||||
mbUserAttr = true;
|
||||
}
|
||||
else if ( pParams->Name == "IsUseDocumentColors" )
|
||||
|
@ -896,23 +896,23 @@ void SdPublishingDlg::GetParameterSequence( Sequence< PropertyValue >& rParams )
|
||||
if( pPage6_User->IsChecked() )
|
||||
{
|
||||
aValue.Name = "BackColor";
|
||||
aValue.Value <<= static_cast<sal_Int32>(m_aBackColor.GetColor());
|
||||
aValue.Value <<= m_aBackColor;
|
||||
aProps.push_back( aValue );
|
||||
|
||||
aValue.Name = "TextColor";
|
||||
aValue.Value <<= static_cast<sal_Int32>(m_aTextColor.GetColor());
|
||||
aValue.Value <<= m_aTextColor;
|
||||
aProps.push_back( aValue );
|
||||
|
||||
aValue.Name = "LinkColor";
|
||||
aValue.Value <<= static_cast<sal_Int32>(m_aLinkColor.GetColor());
|
||||
aValue.Value <<= m_aLinkColor;
|
||||
aProps.push_back( aValue );
|
||||
|
||||
aValue.Name = "VLinkColor";
|
||||
aValue.Value <<= static_cast<sal_Int32>(m_aVLinkColor.GetColor());
|
||||
aValue.Value <<= m_aVLinkColor;
|
||||
aProps.push_back( aValue );
|
||||
|
||||
aValue.Name = "ALinkColor";
|
||||
aValue.Value <<= static_cast<sal_Int32>(m_aALinkColor.GetColor());
|
||||
aValue.Value <<= m_aALinkColor;
|
||||
aProps.push_back( aValue );
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,9 @@ using namespace ::com::sun::star;
|
||||
|
||||
void Ppt97AnimationInfoAtom::ReadStream( SvStream& rIn )
|
||||
{
|
||||
rIn.ReadUInt32( nDimColor );
|
||||
sal_uInt32 nTmp;
|
||||
rIn.ReadUInt32( nTmp );
|
||||
nDimColor = Color(nTmp);
|
||||
rIn.ReadUInt32( nFlags );
|
||||
rIn.ReadUInt32( nSoundRef );
|
||||
rIn.ReadInt32( nDelayTime );
|
||||
@ -154,7 +156,7 @@ bool Ppt97Animation::GetSpecialTextIterationDelay( double& rfTextIterationDelay
|
||||
return bRet;
|
||||
}
|
||||
|
||||
void Ppt97Animation::SetDimColor( sal_Int32 nDimColor )
|
||||
void Ppt97Animation::SetDimColor( Color nDimColor )
|
||||
{
|
||||
m_aAtom.nDimColor = nDimColor;
|
||||
}
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <sal/types.h>
|
||||
#include <tools/color.hxx>
|
||||
|
||||
class SdrObject;
|
||||
class Ppt97Animation;
|
||||
@ -33,7 +34,7 @@ class Ppt97AnimationInfoAtom
|
||||
friend class Ppt97Animation;
|
||||
|
||||
//-- member
|
||||
sal_uInt32 nDimColor;
|
||||
Color nDimColor;
|
||||
sal_uInt32 nFlags; ///< 0x0004: time instead of click
|
||||
sal_uInt32 nSoundRef;
|
||||
sal_Int32 nDelayTime; ///< 1/1000 sec
|
||||
@ -101,7 +102,7 @@ public: //public methods
|
||||
bool HasAnimateAssociatedShape() const;
|
||||
|
||||
//set methods
|
||||
void SetDimColor( sal_Int32 nDimColor );
|
||||
void SetDimColor( Color nDimColor );
|
||||
void SetSoundFileUrl( const OUString& rSoundFileUrl );
|
||||
void SetAnimateAssociatedShape( bool bAnimate ); //true if the shape should be animated in addition to the text
|
||||
|
||||
|
@ -2622,7 +2622,7 @@ SdrObject* ImplSdPPTImport::ProcessObj( SvStream& rSt, DffObjData& rObjData, voi
|
||||
if( pAnimation->HasEffect() )
|
||||
{
|
||||
// translate color to RGB
|
||||
pAnimation->SetDimColor( MSO_CLR_ToColor(pAnimation->GetDimColor()).GetColor() );
|
||||
pAnimation->SetDimColor( MSO_CLR_ToColor(pAnimation->GetDimColor()) );
|
||||
// translate sound bits to file url
|
||||
if( pAnimation->HasSoundEffect() )
|
||||
pAnimation->SetSoundFileUrl( ReadSound( pAnimation->GetSoundRef() ) );
|
||||
|
@ -750,7 +750,7 @@ bool AnimationImporter::convertAnimationValue( oox::ppt::MS_AttributeNames eAttr
|
||||
aColor.SetRed( static_cast<sal_uInt8>(lcl_gethex( aString[1] ) * 16 + lcl_gethex( aString[2] )) );
|
||||
aColor.SetGreen( static_cast<sal_uInt8>(lcl_gethex( aString[3] ) * 16 + lcl_gethex( aString[4] )) );
|
||||
aColor.SetBlue( static_cast<sal_uInt8>(lcl_gethex( aString[5] ) * 16 + lcl_gethex( aString[6] )) );
|
||||
rValue <<= static_cast<sal_Int32>(aColor.GetColor());
|
||||
rValue <<= aColor;
|
||||
bRet = true;
|
||||
}
|
||||
else if( aString.startsWith( "rgb(" ) )
|
||||
@ -761,7 +761,7 @@ bool AnimationImporter::convertAnimationValue( oox::ppt::MS_AttributeNames eAttr
|
||||
aColor.SetRed( static_cast<sal_uInt8>(aString.getToken( 0, ',', index ).toInt32()) );
|
||||
aColor.SetGreen( static_cast<sal_uInt8>(aString.getToken( 0, ',', index ).toInt32()) );
|
||||
aColor.SetRed( static_cast<sal_uInt8>(aString.getToken( 0, ',', index ).toInt32()) );
|
||||
rValue <<= static_cast<sal_Int32>(aColor.GetColor());
|
||||
rValue <<= aColor;
|
||||
bRet = true;
|
||||
}
|
||||
else if( aString.startsWith( "hsl(" ) )
|
||||
|
@ -377,8 +377,8 @@ sal_Int32 SAL_CALL AccessibleSlideSorterObject::getForeground()
|
||||
sal_Int32 SAL_CALL AccessibleSlideSorterObject::getBackground()
|
||||
{
|
||||
ThrowIfDisposed ();
|
||||
sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetWindowColor().GetColor();
|
||||
return static_cast<sal_Int32>(nColor);
|
||||
Color nColor = Application::GetSettings().GetStyleSettings().GetWindowColor();
|
||||
return sal_Int32(nColor);
|
||||
}
|
||||
|
||||
// XServiceInfo
|
||||
|
@ -487,8 +487,8 @@ sal_Int32 SAL_CALL AccessibleSlideSorterView::getForeground()
|
||||
sal_Int32 SAL_CALL AccessibleSlideSorterView::getBackground()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetWindowColor().GetColor();
|
||||
return static_cast<sal_Int32>(nColor);
|
||||
Color nColor = Application::GetSettings().GetStyleSettings().GetWindowColor();
|
||||
return sal_Int32(nColor);
|
||||
}
|
||||
|
||||
//===== XAccessibleSelection ==================================================
|
||||
|
@ -205,7 +205,7 @@ ColorPropertyBox::ColorPropertyBox( sal_Int32 nControlType, vcl::Window* pParent
|
||||
|
||||
sal_Int32 nColor = 0;
|
||||
rValue >>= nColor;
|
||||
mpControl->SelectEntry(static_cast<Color>(nColor));
|
||||
mpControl->SelectEntry(Color(nColor));
|
||||
}
|
||||
|
||||
IMPL_LINK_NOARG(ColorPropertyBox, OnSelect, SvxColorListBox&, void)
|
||||
@ -226,13 +226,13 @@ void ColorPropertyBox::setValue( const Any& rValue, const OUString& )
|
||||
rValue >>= nColor;
|
||||
|
||||
mpControl->SetNoSelection();
|
||||
mpControl->SelectEntry(static_cast<Color>(nColor));
|
||||
mpControl->SelectEntry(Color(nColor));
|
||||
}
|
||||
}
|
||||
|
||||
Any ColorPropertyBox::getValue()
|
||||
{
|
||||
return makeAny( static_cast<sal_Int32>(mpControl->GetSelectEntryColor().GetRGBColor()) );
|
||||
return makeAny( sal_Int32(mpControl->GetSelectEntryColor().GetRGBColor()) );
|
||||
}
|
||||
|
||||
Control* ColorPropertyBox::getControl()
|
||||
@ -1148,7 +1148,7 @@ CustomAnimationEffectTabPage::CustomAnimationEffectTabPage( vcl::Window* pParent
|
||||
{
|
||||
sal_Int32 nColor = 0;
|
||||
aDimColor >>= nColor;
|
||||
Color aColor(nColor);
|
||||
Color aColor = Color(nColor);
|
||||
mpCLBDimColor->SelectEntry(aColor);
|
||||
}
|
||||
else
|
||||
@ -1381,7 +1381,7 @@ void CustomAnimationEffectTabPage::update( STLPropertySet* pSet )
|
||||
if( nPos == 1 )
|
||||
{
|
||||
Color aSelectedColor = mpCLBDimColor->GetSelectEntryColor();
|
||||
aDimColor <<= static_cast<sal_Int32>(aSelectedColor.GetRGBColor());
|
||||
aDimColor <<= aSelectedColor.GetRGBColor();
|
||||
}
|
||||
|
||||
if( (mpSet->getPropertyState( nHandleDimColor ) == STLPropertyState::Ambiguous) ||
|
||||
|
@ -332,7 +332,7 @@ MotionPathTag::MotionPathTag( CustomAnimationPane& rPane, ::sd::View& rView, con
|
||||
OUString aEmpty( "?" );
|
||||
mpPathObj->SetMergedItem( XLineDashItem( aEmpty, aDash ) );
|
||||
mpPathObj->SetMergedItem( XLineStyleItem( drawing::LineStyle_DASH ) );
|
||||
mpPathObj->SetMergedItem( XLineColorItem(aEmpty, ::COL_GRAY) );
|
||||
mpPathObj->SetMergedItem( XLineColorItem(aEmpty, COL_GRAY) );
|
||||
mpPathObj->SetMergedItem( XFillStyleItem( drawing::FillStyle_NONE ) );
|
||||
|
||||
::basegfx::B2DPolygon aStartArrow;
|
||||
|
@ -100,10 +100,10 @@ void CopyDlg::dispose()
|
||||
rStr += OUString::number(m_pMtrFldHeight->GetValue());
|
||||
rStr += OUString( TOKEN );
|
||||
|
||||
rStr += OUString::number( m_pLbStartColor->GetSelectEntryColor().GetColor() );
|
||||
rStr += OUString::number( sal_uInt32(m_pLbStartColor->GetSelectEntryColor()) );
|
||||
rStr += OUString( TOKEN );
|
||||
|
||||
rStr += OUString::number( m_pLbEndColor->GetSelectEntryColor().GetColor() );
|
||||
rStr += OUString::number( sal_uInt32(m_pLbEndColor->GetSelectEntryColor()) );
|
||||
|
||||
m_pNumFldCopies.clear();
|
||||
m_pBtnSetViewData.clear();
|
||||
@ -194,7 +194,7 @@ void CopyDlg::Reset()
|
||||
}
|
||||
else
|
||||
{
|
||||
long nTmp;
|
||||
sal_Int32 nTmp;
|
||||
nTmp = static_cast<long>(aStr.getToken( 0, TOKEN ).toInt32());
|
||||
m_pNumFldCopies->SetValue( nTmp );
|
||||
|
||||
|
@ -1413,7 +1413,7 @@ void SAL_CALL SlideshowImpl::blankScreen( sal_Int32 nColor )
|
||||
|
||||
if( mpShowWindow && mpSlideController )
|
||||
{
|
||||
if( mpShowWindow->SetBlankMode( mpSlideController->getCurrentSlideIndex(), nColor ) )
|
||||
if( mpShowWindow->SetBlankMode( mpSlideController->getCurrentSlideIndex(), Color(nColor) ) )
|
||||
{
|
||||
pause();
|
||||
}
|
||||
@ -2105,7 +2105,7 @@ IMPL_LINK( SlideshowImpl, ContextMenuSelectHdl, Menu *, pMenu, bool )
|
||||
if (aColorDlg.Execute() )
|
||||
{
|
||||
aColor = aColorDlg.GetColor();
|
||||
setPenColor(aColor.GetColor());
|
||||
setPenColor(sal_Int32(aColor));
|
||||
}
|
||||
mbWasPaused = false;
|
||||
}
|
||||
|
@ -305,7 +305,7 @@ util::Color SAL_CALL SlideSorterService::getBackgroundColor()
|
||||
return util::Color();
|
||||
else
|
||||
return util::Color(
|
||||
mpSlideSorter->GetProperties()->GetBackgroundColor().GetColor());
|
||||
mpSlideSorter->GetProperties()->GetBackgroundColor());
|
||||
}
|
||||
|
||||
void SAL_CALL SlideSorterService::setBackgroundColor (util::Color aBackgroundColor)
|
||||
@ -322,7 +322,7 @@ util::Color SAL_CALL SlideSorterService::getTextColor()
|
||||
return util::Color();
|
||||
else
|
||||
return util::Color(
|
||||
mpSlideSorter->GetProperties()->GetTextColor().GetColor());
|
||||
mpSlideSorter->GetProperties()->GetTextColor());
|
||||
}
|
||||
|
||||
void SAL_CALL SlideSorterService::setTextColor (util::Color aTextColor)
|
||||
@ -339,7 +339,7 @@ util::Color SAL_CALL SlideSorterService::getSelectionColor()
|
||||
return util::Color();
|
||||
else
|
||||
return util::Color(
|
||||
mpSlideSorter->GetProperties()->GetSelectionColor().GetColor());
|
||||
mpSlideSorter->GetProperties()->GetSelectionColor());
|
||||
}
|
||||
|
||||
void SAL_CALL SlideSorterService::setSelectionColor (util::Color aSelectionColor)
|
||||
@ -356,7 +356,7 @@ util::Color SAL_CALL SlideSorterService::getHighlightColor()
|
||||
return util::Color();
|
||||
else
|
||||
return util::Color(
|
||||
mpSlideSorter->GetProperties()->GetHighlightColor().GetColor());
|
||||
mpSlideSorter->GetProperties()->GetHighlightColor());
|
||||
}
|
||||
|
||||
void SAL_CALL SlideSorterService::setHighlightColor (util::Color aHighlightColor)
|
||||
|
@ -633,9 +633,9 @@ void SlideSorterView::CompleteRedraw (
|
||||
gFrameTimeSum += gFrameTimes[gFrameTimeIndex];
|
||||
gFrameTimeIndex = (gFrameTimeIndex+1) % gFrameTimeCount;
|
||||
|
||||
mrSlideSorter.GetContentWindow()->SetFillColor(COL_BLUE);
|
||||
mrSlideSorter.GetContentWindow()->SetFillCOL_BLUE);
|
||||
mrSlideSorter.GetContentWindow()->DrawRect(gFrameTimeBox);
|
||||
mrSlideSorter.GetContentWindow()->SetTextColor(COL_WHITE);
|
||||
mrSlideSorter.GetContentWindow()->SetTextCOL_WHITE);
|
||||
mrSlideSorter.GetContentWindow()->DrawText(
|
||||
gFrameTimeBox,
|
||||
OUString::number(1 / (gFrameTimeSum / gFrameTimeCount)),
|
||||
|
@ -32,8 +32,8 @@
|
||||
|
||||
namespace sd { namespace slidesorter { namespace view {
|
||||
|
||||
const static Color Black = 0x000000;
|
||||
const static Color White = 0xffffff;
|
||||
const static Color Black = Color(0x000000);
|
||||
const static Color White = Color(0xffffff);
|
||||
|
||||
Color ChangeLuminance (Color aColor, const int nValue)
|
||||
{
|
||||
@ -60,19 +60,19 @@ Color HGBAdapt (
|
||||
}
|
||||
|
||||
Theme::Theme (const std::shared_ptr<controller::Properties>& rpProperties)
|
||||
: maBackgroundColor(rpProperties->GetBackgroundColor().GetColor()),
|
||||
: maBackgroundColor(rpProperties->GetBackgroundColor()),
|
||||
maGradients(),
|
||||
maIcons(),
|
||||
maColor()
|
||||
{
|
||||
maColor.resize(ColorType_Size_);
|
||||
maColor[Color_Background] = maBackgroundColor;
|
||||
maColor[Color_PageNumberDefault] = 0x0808080;
|
||||
maColor[Color_PageNumberHover] = 0x4c4c4c;
|
||||
maColor[Color_PageNumberDefault] = Color(0x0808080);
|
||||
maColor[Color_PageNumberHover] = Color(0x4c4c4c);
|
||||
maColor[Color_PageNumberHighContrast] = White;
|
||||
maColor[Color_PageNumberBrightBackground] = 0x333333;
|
||||
maColor[Color_PageNumberDarkBackground] = 0xcccccc;
|
||||
maColor[Color_PreviewBorder] = 0x949599;
|
||||
maColor[Color_PageNumberBrightBackground] = Color(0x333333);
|
||||
maColor[Color_PageNumberDarkBackground] = Color(0xcccccc);
|
||||
maColor[Color_PreviewBorder] = Color(0x949599);
|
||||
|
||||
Update(rpProperties);
|
||||
}
|
||||
@ -80,7 +80,7 @@ Theme::Theme (const std::shared_ptr<controller::Properties>& rpProperties)
|
||||
void Theme::Update (const std::shared_ptr<controller::Properties>& rpProperties)
|
||||
{
|
||||
// Set up colors.
|
||||
maBackgroundColor = rpProperties->GetBackgroundColor().GetColor();
|
||||
maBackgroundColor = rpProperties->GetBackgroundColor();
|
||||
|
||||
maColor[Color_Background] = maBackgroundColor;
|
||||
|
||||
@ -164,7 +164,7 @@ Color Theme::GetColor (const ColorType eType)
|
||||
if (sal_uInt32(eType)<maColor.size())
|
||||
return maColor[eType];
|
||||
else
|
||||
return 0;
|
||||
return Color(0);
|
||||
}
|
||||
|
||||
Color Theme::GetGradientColor (
|
||||
@ -180,7 +180,7 @@ Color Theme::GetGradientColor (
|
||||
case GradientColorClass::Fill1: return rDescriptor.maFillColor1;
|
||||
case GradientColorClass::Fill2: return rDescriptor.maFillColor2;
|
||||
}
|
||||
return 0;
|
||||
return Color(0);
|
||||
}
|
||||
|
||||
void Theme::SetGradient (
|
||||
|
@ -765,7 +765,7 @@ css::uno::Any SAL_CALL SdXShape::getPropertyValue( const OUString& PropertyName
|
||||
aRet <<= EffectMigration::GetSoundOn( mpShape );
|
||||
break;
|
||||
case WID_BLUESCREEN:
|
||||
aRet <<= static_cast<sal_Int32>( pInfo?pInfo->maBlueScreen.GetColor():0x00ffffff );
|
||||
aRet <<= pInfo ? pInfo->maBlueScreen : Color(0x00ffffff);
|
||||
break;
|
||||
case WID_VERB:
|
||||
aRet <<= static_cast<sal_Int32>( pInfo?pInfo->mnVerb:0 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user