CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
font_converter.h
1
2#ifndef _aspose_drawing_font_converter_h_
3#define _aspose_drawing_font_converter_h_
4
5#include "system/object.h"
6#include "system/shared_ptr.h"
7#include "system/string.h"
8#include "system/component_model/type_converter.h"
9
10namespace System { namespace Drawing {
11
12enum class GraphicsUnit;
13enum class FontStyle;
18class ASPOSECPP_SHARED_CLASS FontConverter : public System::ComponentModel::TypeConverter
19{
20 RTTI_INFO(FontConverter, ::System::BaseTypesInfo<System::ComponentModel::TypeConverter>)
21public:
24
38
39private:
41 static const System::String s_style_hdr;
43 const static System::String s_world;
45 const static System::String s_display;
47 const static System::String s_pixel;
49 const static System::String s_point;
51 const static System::String s_inch;
53 const static System::String s_document;
55 const static System::String s_millimeter;
56
60 static const System::String& UnitToString(GraphicsUnit unit);
61
67 static void ParseSize(const System::String& text, const System::SharedPtr<System::Globalization::CultureInfo>& culture, float& size, GraphicsUnit& unit);
71 static void ParseStyle(const System::String& text, FontStyle& style);
75 static void ParseUnit(const System::String& text, GraphicsUnit& unit);
76
77};
78
79}} // System::Drawing
80#endif
Class that handles type conversion in component model. Objects of this class should only be allocated...
Definition: type_converter.h:18
System::SharedPtr< System::Object > ConvertFrom(const System::SharedPtr< System::Object > &value)
Converts objects.
System::SharedPtr< System::Object > ConvertTo(const System::SharedPtr< System::Object > &value, const System::TypeInfo &destinationType)
Converts object to specific type.
Converts Font objects from one data type to another. Objects of this class should only be allocated u...
Definition: font_converter.h:19
System::SharedPtr< System::Object > ConvertFrom(const System::SharedPtr< ComponentModel::ITypeDescriptorContext > &context, const System::SharedPtr< System::Globalization::CultureInfo > &culture, const System::SharedPtr< System::Object > &value) override
Converts objects.
System::SharedPtr< System::Object > ConvertTo(const System::SharedPtr< ComponentModel::ITypeDescriptorContext > &context, const System::SharedPtr< System::Globalization::CultureInfo > &culture, const System::SharedPtr< System::Object > &value, const System::TypeInfo &destinationType) override
Converts object to specific type.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Represents a particular type and provides information about it.
Definition: type_info.h:109
FontStyle
Represents a font style.
Definition: font_style.h:10
GraphicsUnit
Represents a unit of measure.
Definition: graphics_unit.h:10
Definition: db_command.h:9