oaTextLink.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaTextLink.h
00004 //
00005 // This file contains the definitions for oaTextLink class:
00006 //
00007 //  oaTextLink
00008 //      This class is used to initialize a component that implements the 
00009 //      IText interface. The interface could be implemented as an in memory
00010 //      component or a component in a plug-in.
00011 //
00012 // *****************************************************************************
00013 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00014 // Integration Initiative, this material may not be copied, modified,
00015 // re-published, uploaded, executed, or distributed in any way, in any medium,
00016 // in whole or in part, without prior written permission from Cadence.
00017 //
00018 //                Copyright 2006 Cadence Design Systems, Inc.
00019 //                           All Rights Reserved.
00020 //
00021 //  $Author: icftcm $
00022 //  $Revision: #1 $
00023 //  $Date: 2010/08/09 $
00024 //  $State: Exp $
00025 // *****************************************************************************
00026 // *****************************************************************************
00027 
00028 
00029 
00030 #if !defined(oaTextBoxLink_P)
00031 #define oaTextBoxLink_P
00032 
00033 
00034 
00035 // *****************************************************************************
00036 // Nested includes
00037 // *****************************************************************************
00038 #include "oaCommonSPtr.h"
00039 #include "oaDesignInterfaces.h"
00040 
00041 
00042 
00043 // *****************************************************************************
00044 // Declare and define types in the OpenAccess namespace.
00045 // *****************************************************************************
00046 BEGIN_OA_NAMESPACE
00047 
00048 
00049 
00050 // *****************************************************************************
00051 // Explicit template instantiations
00052 // *****************************************************************************
00053 #if defined(OA_DESIGN_DLL_EXTERN)
00054 OA_DESIGN_DLL_EXTERN template
00055  class OA_DESIGN_DLL_API SPtr<IText>;
00056 
00057 OA_DESIGN_DLL_EXTERN template
00058  class OA_DESIGN_DLL_API SPtr<ITextInvalidate>;
00059 #endif
00060 
00061 
00062 
00063 // *****************************************************************************
00064 // oaTextLink
00065 // *****************************************************************************
00066 class OA_DESIGN_DLL_API oaTextLink {
00067 public:
00068     static void                     setIText(const oaString &name);
00069     static void                     setIText(IText *textComponentIn);
00070     static void                     reset(IText *textComponentIn);
00071 
00072     static SRef<IText>              getIText();
00073 
00074 private:
00075     static void                     init(IText *textComponentIn);
00076 
00077     static SPtr<IText>              textComponent;
00078     static SPtr<ITextInvalidate>    textInvalidate;
00079 };
00080 
00081 
00082 
00083 END_OA_NAMESPACE
00084 
00085 #endif

Return to top of page