diff -r 000000000000 -r 88edb906c587 svgtopt/SVG/SVGImpl/inc/SVGFitToViewBoxImpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/svgtopt/SVG/SVGImpl/inc/SVGFitToViewBoxImpl.h Wed Nov 03 18:56:10 2010 +0200 @@ -0,0 +1,187 @@ +/* +* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: SVG Implementation header file + * +*/ + + +#ifndef __INC_CSVGFITTOVIEWBOXIMPL__ +#define __INC_CSVGFITTOVIEWBOXIMPL__ + + +#include "GfxRectangle2D.h" + +#include "SVGPreserveAspectRatioImpl.h" +#include "SVGFitToViewBox.h" + + +/** + * Class description goes here. + * + * @lib SVGEngine.lib + * @since 1.0 + */ +class CSvgFitToViewBoxImpl : public CBase, public MSvgFitToViewBox + { + public: + + // Constructor/deconstructor + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + static CSvgFitToViewBoxImpl* NewL(); + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + static CSvgFitToViewBoxImpl* NewLC(); + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + virtual ~CSvgFitToViewBoxImpl(); + + // From SVG DOM + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + void GetPreserveAspectRatio( MSvgPreserveAspectRatio*& aAspectRatio ); + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + TBool GetViewBox( TGfxRectangle2D& aViewBox ); + + // Class-specified + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + void SetPreserveAspectRatioL( TSvgPreserveAspectAlignType aAlign, + TSvgMeetOrSliceType aMeetslice ); + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + void SetViewBoxL( TGfxRectangle2D aViewBox ); + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + TBool ViewBoxDefined(); + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + TBool SetViewBoxL( const TDesC& aAttributeName, + const TDesC& aValue ); + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + void SetWindowViewportTrans( TGfxRectangle2D aXYWH, + TGfxAffineTransform& aTr, + TSize aSize ); + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + CSvgFitToViewBoxImpl* CloneL(); + + private: + + TGfxRectangle2D iViewBox; + + CSvgPreserveAspectRatioImpl* iAspectRatio; + + TBool iViewBoxDefined; + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + void ConstructL(); + + + /** + * Need method description + * + * @since 1.0 + * @param + * @return + */ + CSvgFitToViewBoxImpl(); + }; + +#endif /* #ifndef __INC_CSVGFITTOVIEWBOXIMPL__ */