imageeditor/plugins/TextPlugin/inc/ImageEditorTextPlugin.h
changeset 1 edfc90759b9f
equal deleted inserted replaced
0:57d4cdd99204 1:edfc90759b9f
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef IMAGEEDITORTEXTPLUGIN_H
       
    22 #define IMAGEEDITORTEXTPLUGIN_H
       
    23 
       
    24 //	INCLUDES
       
    25 #include "iepb.h"
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class CEditorImage;
       
    29 class CCoeControl;
       
    30 class CSystemParameters;
       
    31 
       
    32 
       
    33 /*	CLASS:	CImageEditorTextPlugin
       
    34 *
       
    35 *	CImageEditorTextPlugin represents text insertion plug-in for Image Editor 
       
    36 *   application.
       
    37 *
       
    38 */
       
    39 class CImageEditorTextPlugin :	public CImageEditorPluginBase
       
    40 {
       
    41 
       
    42 public:
       
    43 
       
    44 /** @name Methods:*/
       
    45 //@{
       
    46 
       
    47 	/** Default constructor
       
    48 	*
       
    49 	*	@param -
       
    50 	*	@return -
       
    51 	*/
       
    52 	CImageEditorTextPlugin ();
       
    53 
       
    54 	/** Second phase constructor, may leave
       
    55 	*
       
    56  	*	@param -
       
    57 	*	@return -
       
    58 	*/
       
    59 	virtual void ConstructL ();
       
    60 
       
    61 	/** Destructor
       
    62 	*
       
    63 	*	@param -
       
    64 	*	@return -
       
    65 	*/
       
    66 	virtual ~CImageEditorTextPlugin ();
       
    67 
       
    68 	/*	SetProperty
       
    69 	*
       
    70 	*   @see CPluginBase
       
    71 	*/
       
    72 	virtual TInt SetProperty (
       
    73 		TInt		aPropertyId, 
       
    74 		TDesC &		aPropertyValue
       
    75 		);
       
    76 
       
    77 	/*	GetProperty
       
    78 	*
       
    79 	*   @see CPluginBase
       
    80 	*/
       
    81 	virtual TInt GetProperty (
       
    82 		TInt		aPropertyId, 
       
    83 		TDes &		aPropertyValue
       
    84 		);
       
    85 
       
    86     /**	InitPluginL
       
    87 	*
       
    88 	*	@see CImageEditorPluginBase
       
    89     */
       
    90     virtual TInt InitPluginL (
       
    91 		const TRect &		aRect,
       
    92 		CCoeControl *		aParent,
       
    93 		CCoeControl *&		aPluginControl
       
    94 		);
       
    95 
       
    96     /**	ProcessImageL
       
    97 	*
       
    98 	*	@see CImageEditorPluginBase
       
    99     */
       
   100     virtual void ProcessImageL (CEditorImage * aImage);    
       
   101 
       
   102     /**	ReleasePlugin 
       
   103 	*
       
   104 	*	@see CImageEditorPluginBase
       
   105     */
       
   106 	virtual void ReleasePlugin ();    
       
   107 
       
   108 //@}
       
   109 
       
   110 protected:
       
   111 
       
   112 /** @name Methods:*/
       
   113 //@{
       
   114 
       
   115 //@}
       
   116 
       
   117 /** @name Members:*/
       
   118 //@{
       
   119 
       
   120 //@}
       
   121 
       
   122 private:
       
   123 
       
   124 /** @name Methods:*/
       
   125 //@{
       
   126 
       
   127 	/** Copy constructor, disabled
       
   128 	*/
       
   129 	CImageEditorTextPlugin (const CImageEditorTextPlugin & rhs);
       
   130 
       
   131 	/** Assignment operator, disabled 
       
   132 	*/
       
   133 	CImageEditorTextPlugin & operator= (const CImageEditorTextPlugin & rhs);
       
   134 
       
   135 //@}
       
   136 
       
   137 /** @name Members:*/
       
   138 //@{
       
   139     /// Plug-in UI control
       
   140     CCoeControl *             iControl;
       
   141     /// System parameters
       
   142     const CSystemParameters * iSysPars;
       
   143     /// Is landscape enabled, Must be EFalse until text is set
       
   144     TBool                     iLandscapeEnabled;
       
   145 //@}
       
   146 
       
   147 };
       
   148 
       
   149 
       
   150 #endif
       
   151 
       
   152 // End of File