Commit 966471b3 authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

linux build

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58914 954022d7-b5bf-4e40-9824-e11837661b57
parent a1f6b3dc
...@@ -88,28 +88,28 @@ namespace PPTX ...@@ -88,28 +88,28 @@ namespace PPTX
template<class T> AVSINLINE T& as() { return m_Color.as<T>(); } template<class T> AVSINLINE T& as() { return m_Color.as<T>(); }
template<class T> AVSINLINE const T& as() const { return m_Color.as<T>(); } template<class T> AVSINLINE const T& as() const { return m_Color.as<T>(); }
virtual DWORD BulletColor::GetRGBA()const virtual DWORD GetRGBA()const
{ {
if(has_spec_color()) if(has_spec_color())
return as<BuClr>().GetRGBA(); return as<BuClr>().GetRGBA();
return 0; return 0;
} }
virtual DWORD BulletColor::GetARGB()const virtual DWORD GetARGB()const
{ {
if(has_spec_color()) if(has_spec_color())
return as<BuClr>().GetARGB(); return as<BuClr>().GetARGB();
return 0; return 0;
} }
virtual DWORD BulletColor::GetBGRA()const virtual DWORD GetBGRA()const
{ {
if(has_spec_color()) if(has_spec_color())
return as<BuClr>().GetBGRA(); return as<BuClr>().GetBGRA();
return 0; return 0;
} }
virtual DWORD BulletColor::GetABGR()const virtual DWORD GetABGR()const
{ {
if(has_spec_color()) if(has_spec_color())
return as<BuClr>().GetABGR(); return as<BuClr>().GetABGR();
...@@ -138,4 +138,4 @@ namespace PPTX ...@@ -138,4 +138,4 @@ namespace PPTX
} // namespace Logic } // namespace Logic
} // namespace PPTX } // namespace PPTX
#endif // PPTX_LOGIC_BULLETCOLOR_INCLUDE_H #endif // PPTX_LOGIC_BULLETCOLOR_INCLUDE_H
\ No newline at end of file
...@@ -228,4 +228,4 @@ namespace PPTX ...@@ -228,4 +228,4 @@ namespace PPTX
} }
} // namespace Logic } // namespace Logic
} // namespace PPTX } // namespace PPTX
\ No newline at end of file
...@@ -11,11 +11,17 @@ ...@@ -11,11 +11,17 @@
Class() {} \ Class() {} \
virtual ~Class() {} \ virtual ~Class() {} \
explicit Class(XmlUtils::CXmlNode& node) { fromXML(node); } \ explicit Class(XmlUtils::CXmlNode& node) { fromXML(node); } \
const Class& operator =(XmlUtils::CXmlNode& node) \ explicit Class(const XmlUtils::CXmlNode& node) { fromXML(const_cast<XmlUtils::CXmlNode&> (node)); } \
const Class& operator =(XmlUtils::CXmlNode& node) \
{ \ { \
fromXML(node); \ fromXML(node); \
return *this; \ return *this; \
} \ } \
const Class& operator =(const XmlUtils::CXmlNode& node) \
{ \
fromXML(const_cast<XmlUtils::CXmlNode&> (node)); \
return *this; \
} \
Class(const Class& oSrc) { *this = oSrc; } \ Class(const Class& oSrc) { *this = oSrc; } \
namespace PPTX namespace PPTX
...@@ -104,4 +110,4 @@ namespace PPTX ...@@ -104,4 +110,4 @@ namespace PPTX
}; };
} // namespace PPTX } // namespace PPTX
#endif // PPTX_WRAPPER_WRITING_ELEMENT_INCLUDE_H_ #endif // PPTX_WRAPPER_WRITING_ELEMENT_INCLUDE_H_
\ No newline at end of file
...@@ -225,6 +225,12 @@ namespace NSPresentationEditor ...@@ -225,6 +225,12 @@ namespace NSPresentationEditor
str.Format(_T("%d"), val); str.Format(_T("%d"), val);
return str; return str;
} }
static inline CString ToString(long val)
{
CString str = _T("");
str.Format(_T("%d"), val);
return str;
}
static inline CString ToString(double val) static inline CString ToString(double val)
{ {
CString str = _T(""); CString str = _T("");
...@@ -923,14 +929,10 @@ namespace NSPresentationEditor ...@@ -923,14 +929,10 @@ namespace NSPresentationEditor
Strikeout = (BYTE)(0x0180 & lStyle) >> 7; Strikeout = (BYTE)(0x0180 & lStyle) >> 7;
} }
void SetToRenderer(IRenderer *pRenderer) void SetToRenderer(IRenderer *pRenderer)
{ {
BSTR bstrName = Name.AllocSysString(); pRenderer->put_FontName(Name);
pRenderer->put_FontName(bstrName); pRenderer->put_FontPath(Path);
SysFreeString(bstrName);
BSTR bstrPath = Path.AllocSysString();
pRenderer->put_FontPath(bstrPath);
SysFreeString(bstrPath);
pRenderer->put_FontSize(Size); pRenderer->put_FontSize(Size);
pRenderer->put_FontStyle(GetStyle()); pRenderer->put_FontStyle(GetStyle());
...@@ -1121,10 +1123,18 @@ namespace NSPresentationEditor ...@@ -1121,10 +1123,18 @@ namespace NSPresentationEditor
virtual CString ToString() virtual CString ToString()
{ {
CString strEdge = _T(""); CString strEdge = _T("");
strEdge += (_T("edge-visible='") + NSPresentationEditor::ToString(Visible) + _T("' ")); strEdge += _T("edge-visible='");
strEdge += (_T("edge-dist='") + NSPresentationEditor::ToString(Dist) + _T("' ")); strEdge += NSPresentationEditor::ToString(Visible);
strEdge += (_T("edge-color='") + Color.ToString() + _T("' ")); strEdge += _T("' ");
strEdge += (_T("edge-alpha='") + NSPresentationEditor::ToString((int)Alpha) + _T("' ")); strEdge += _T("edge-dist='");
strEdge += NSPresentationEditor::ToString(Dist);
strEdge += _T("' ");
strEdge += _T("edge-color='");
strEdge += Color.ToString();
strEdge += _T("' ");
strEdge += _T("edge-alpha='");
strEdge += NSPresentationEditor::ToString((int)Alpha);
strEdge += _T("' ");
return strEdge; return strEdge;
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment