XamlText_VAlign.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00008 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00009 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00010 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00011 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00012 //
00013 //  Use, duplication, or disclosure by the U.S. Government is subject to
00014 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00015 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00016 //  Data and Computer Software), as applicable.
00017 //
00018 
00019 #if !defined XAML_TEXT_VALIGN_HEADER
00020 #define XAML_TEXT_VALIGN_HEADER
00021 
00025 
00026 #include "XAML/XamlCore.h"
00027 
00028 #include "whiptk/text_valign.h"
00029 #include "XAML/XamlXML.h"
00030 
00031 // Attribute class for specifying text vertical alignment
00032 class XAMLTK_API WT_XAML_Text_VAlign : public WT_Text_VAlign
00033 {
00034         friend class WT_XAML_Class_Factory;
00035         friend class WT_XAML_Rendition;
00036 
00037 protected:
00038     // constructs a WT_XAML_Text_VAlign object
00039     WT_XAML_Text_VAlign()
00040                 : WT_Text_VAlign()
00041         {}
00042 
00043     // constructs a WT_XAML_Text_VAlign object with the given alignment
00044     WT_XAML_Text_VAlign(WT_VAlign vAlign)
00045                 : WT_Text_VAlign(vAlign)
00046         {}
00047 
00049         WT_XAML_Text_VAlign(WT_Text_VAlign const& vAlign)
00050                 :WT_Text_VAlign(vAlign)
00051         {}
00052     // destructor
00053     virtual ~WT_XAML_Text_VAlign()
00054         {}
00055 
00056 public:
00057         // WT_Object virtual methods
00058     WT_Result      serialize(WT_File & /*file*/) const;
00060         WT_Result      parseAttributeList(XamlXML::tAttributeMap& rMap, WT_XAML_File& rFile);
00061 };
00062 
00063 #endif //XAML_TEXT_VALIGN_HEADER

Generated on Tue Jan 6 22:40:06 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5