Kaydet (Commit) 389bf9e1 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

cleanup pngwrite, use const std::unique_ptr for pImpl

Change-Id: I7c9941731789be3553d473d64716484bfceaf8b4
üst 4dfa19d6
...@@ -26,33 +26,28 @@ ...@@ -26,33 +26,28 @@
#include <vcl/bitmapex.hxx> #include <vcl/bitmapex.hxx>
#include <vector> #include <vector>
// - PNGWriter -
namespace vcl namespace vcl
{ {
class PNGWriterImpl; class PNGWriterImpl;
class VCL_DLLPUBLIC PNGWriter class VCL_DLLPUBLIC PNGWriter
{ {
PNGWriterImpl* mpImpl; const std::unique_ptr<PNGWriterImpl> mpImpl;
public: public:
explicit PNGWriter( const BitmapEx&, explicit PNGWriter(const BitmapEx&, const css::uno::Sequence<css::beans::PropertyValue>* pFilterData = NULL);
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >* pFilterData = NULL );
~PNGWriter(); ~PNGWriter();
bool Write( SvStream& rStm ); bool Write(SvStream& rStream);
// additional method to be able to modify all chunk before they are stored // additional method to be able to modify all chunk before they are stored
struct ChunkData struct ChunkData
{ {
sal_uInt32 nType; sal_uInt32 nType;
std::vector< sal_uInt8 > aData; std::vector<sal_uInt8> aData;
}; };
std::vector< vcl::PNGWriter::ChunkData >& GetChunks(); std::vector<vcl::PNGWriter::ChunkData>& GetChunks();
}; };
} }
......
This diff is collapsed.
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