summaryrefslogtreecommitdiff
path: root/avmedia/source/framework/mediaitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'avmedia/source/framework/mediaitem.cxx')
-rw-r--r--avmedia/source/framework/mediaitem.cxx21
1 files changed, 12 insertions, 9 deletions
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx
index 9d53c0d3e3..8501fd054d 100644
--- a/avmedia/source/framework/mediaitem.cxx
+++ b/avmedia/source/framework/mediaitem.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122,7 +123,7 @@ SfxItemPresentation MediaItem::GetPresentation( SfxItemPresentation,
//------------------------------------------------------------------------
-BOOL MediaItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const
+bool MediaItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const
{
uno::Sequence< uno::Any > aSeq( 9 );
@@ -135,23 +136,23 @@ BOOL MediaItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const
aSeq[ 6 ] <<= mbLoop;
aSeq[ 7 ] <<= mbMute;
aSeq[ 8 ] <<= meZoom;
-
+
rVal <<= aSeq;
-
+
return true;
}
//------------------------------------------------------------------------
-BOOL MediaItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE )
+bool MediaItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE )
{
uno::Sequence< uno::Any > aSeq;
- BOOL bRet = false;
-
+ bool bRet = false;
+
if( ( rVal >>= aSeq ) && ( aSeq.getLength() == 9 ) )
{
sal_Int32 nInt32 = 0;
-
+
aSeq[ 0 ] >>= maURL;
aSeq[ 1 ] >>= mnMaskSet;
aSeq[ 2 ] >>= nInt32; meState = static_cast< MediaState >( nInt32 );
@@ -161,10 +162,10 @@ BOOL MediaItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE )
aSeq[ 6 ] >>= mbLoop;
aSeq[ 7 ] >>= mbMute;
aSeq[ 8 ] >>= meZoom;
-
+
bRet = true;
}
-
+
return bRet;
}
@@ -327,3 +328,5 @@ void MediaItem::setZoom( ::com::sun::star::media::ZoomLevel eZoom )
}
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */