summaryrefslogtreecommitdiff
path: root/forms/source/component/imgprod.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/imgprod.cxx')
-rw-r--r--forms/source/component/imgprod.cxx28
1 files changed, 7 insertions, 21 deletions
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx
index 0c66a21d1c96..e279cde4cef8 100644
--- a/forms/source/component/imgprod.cxx
+++ b/forms/source/component/imgprod.cxx
@@ -32,8 +32,6 @@
#include "svtools/imageresourceaccess.hxx"
#include <comphelper/processfactory.hxx>
-// - ImgProdLockBytes -
-
class ImgProdLockBytes : public SvLockBytes
{
@@ -54,14 +52,12 @@ public:
};
-
ImgProdLockBytes::ImgProdLockBytes( SvStream* pStm, bool bOwner ) :
SvLockBytes( pStm, bOwner )
{
}
-
ImgProdLockBytes::ImgProdLockBytes( css::uno::Reference< css::io::XInputStream > & rStmRef ) :
xStmRef( rStmRef )
{
@@ -88,11 +84,11 @@ ImgProdLockBytes::ImgProdLockBytes( css::uno::Reference< css::io::XInputStream >
}
-
ImgProdLockBytes::~ImgProdLockBytes()
{
}
+
ErrCode ImgProdLockBytes::ReadAt(sal_uInt64 const nPos,
void* pBuffer, sal_Size nCount, sal_Size * pRead) const
{
@@ -123,6 +119,7 @@ ErrCode ImgProdLockBytes::ReadAt(sal_uInt64 const nPos,
}
}
+
ErrCode ImgProdLockBytes::WriteAt(sal_uInt64 const nPos,
const void* pBuffer, sal_Size nCount, sal_Size * pWritten)
{
@@ -136,14 +133,12 @@ ErrCode ImgProdLockBytes::WriteAt(sal_uInt64 const nPos,
}
-
ErrCode ImgProdLockBytes::Flush() const
{
return ERRCODE_NONE;
}
-
ErrCode ImgProdLockBytes::SetSize(sal_uInt64 const nSize)
{
if( GetStream() )
@@ -156,7 +151,6 @@ ErrCode ImgProdLockBytes::SetSize(sal_uInt64 const nSize)
}
-
ErrCode ImgProdLockBytes::Stat( SvLockBytesStat* pStat, SvLockBytesStatFlag eFlag ) const
{
if( GetStream() )
@@ -169,7 +163,7 @@ ErrCode ImgProdLockBytes::Stat( SvLockBytesStat* pStat, SvLockBytesStatFlag eFla
}
}
-// - ImageProducer -
+
ImageProducer::ImageProducer()
: mpStm(nullptr)
, mnTransIndex(0)
@@ -187,7 +181,8 @@ ImageProducer::~ImageProducer()
mpStm = nullptr;
}
-// css::uno::XInterface
+
+// XInterface
css::uno::Any ImageProducer::queryInterface( const css::uno::Type & rType ) throw(css::uno::RuntimeException, std::exception)
{
css::uno::Any aRet = ::cppu::queryInterface( rType,
@@ -197,7 +192,6 @@ css::uno::Any ImageProducer::queryInterface( const css::uno::Type & rType ) thro
}
-
void ImageProducer::addConsumer( const css::uno::Reference< css::awt::XImageConsumer >& rxConsumer )
throw(css::uno::RuntimeException,
std::exception)
@@ -208,7 +202,6 @@ void ImageProducer::addConsumer( const css::uno::Reference< css::awt::XImageCons
}
-
void ImageProducer::removeConsumer( const css::uno::Reference< css::awt::XImageConsumer >& rxConsumer ) throw(css::uno::RuntimeException, std::exception)
{
ConsumerList_t::reverse_iterator riter = std::find(maConsList.rbegin(),maConsList.rend(),rxConsumer);
@@ -218,7 +211,6 @@ void ImageProducer::removeConsumer( const css::uno::Reference< css::awt::XImageC
}
-
void ImageProducer::SetImage( const OUString& rPath )
{
maURL = rPath;
@@ -240,7 +232,6 @@ void ImageProducer::SetImage( const OUString& rPath )
}
-
void ImageProducer::SetImage( SvStream& rStm )
{
maURL.clear();
@@ -252,7 +243,6 @@ void ImageProducer::SetImage( SvStream& rStm )
}
-
void ImageProducer::setImage( css::uno::Reference< css::io::XInputStream > & rInputStmRef )
{
maURL.clear();
@@ -267,7 +257,6 @@ void ImageProducer::setImage( css::uno::Reference< css::io::XInputStream > & rIn
}
-
void ImageProducer::NewDataAvailable()
{
if( ( GRAPHIC_NONE == mpGraphic->GetType() ) || mpGraphic->GetContext() )
@@ -275,7 +264,6 @@ void ImageProducer::NewDataAvailable()
}
-
void ImageProducer::startProduction() throw(css::uno::RuntimeException, std::exception)
{
if( !maConsList.empty() || maDoneHdl.IsSet() )
@@ -320,7 +308,6 @@ void ImageProducer::startProduction() throw(css::uno::RuntimeException, std::exc
}
-
bool ImageProducer::ImplImportGraphic( Graphic& rGraphic )
{
if (!mpStm)
@@ -340,7 +327,6 @@ bool ImageProducer::ImplImportGraphic( Graphic& rGraphic )
}
-
void ImageProducer::ImplUpdateData( const Graphic& rGraphic )
{
ImplInitConsumer( rGraphic );
@@ -360,7 +346,6 @@ void ImageProducer::ImplUpdateData( const Graphic& rGraphic )
}
-
void ImageProducer::ImplInitConsumer( const Graphic& rGraphic )
{
Bitmap aBmp( rGraphic.GetBitmapEx().GetBitmap() );
@@ -431,7 +416,6 @@ void ImageProducer::ImplInitConsumer( const Graphic& rGraphic )
}
-
void ImageProducer::ImplUpdateConsumer( const Graphic& rGraphic )
{
BitmapEx aBmpEx( rGraphic.GetBitmapEx() );
@@ -538,6 +522,7 @@ void ImageProducer::ImplUpdateConsumer( const Graphic& rGraphic )
}
}
+
void ImageProducer::initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception)
{
if ( aArguments.getLength() == 1 )
@@ -551,6 +536,7 @@ void ImageProducer::initialize( const css::uno::Sequence< css::uno::Any >& aArgu
}
}
+
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL
com_sun_star_form_ImageProducer_get_implementation(css::uno::XComponentContext*,
css::uno::Sequence<css::uno::Any> const &)