Update generated files

This commit is contained in:
Zihan Chen
2018-07-21 02:49:18 -07:00
parent c0d0a8c49c
commit 1c46ce8d72
73 changed files with 144 additions and 241 deletions
@@ -29,7 +29,9 @@ https://github.com/vczh-libraries
#define GLOBAL_SYMBOL ::vl_workflow_global::EditorBase::
#define GLOBAL_NAME ::vl_workflow_global::EditorBase::Instance().
#define GLOBAL_OBJ &::vl_workflow_global::EditorBase::Instance()
#define USERIMPL(...)
/* USER_CONTENT_BEGIN(custom global declarations) */
/* USER_CONTENT_END() */
/***********************************************************************
Class (::demo::DocumentEditorBase)
@@ -121,28 +123,25 @@ namespace demo
return static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(this->toolstripContainer);
}
USERIMPL(/* ::demo::DocumentEditorBase */)
void DocumentEditorBase::LoadAsPrivateFormat(const ::vl::WString& fileName)
{
{/* USER_CONTENT_BEGIN(::demo::DocumentEditorBase) */
vl::stream::FileStream fileStream(fileName, vl::stream::FileStream::ReadOnly);
auto model = vl::presentation::LoadDocumentFromClipboardStream(fileStream);
document->SetDocument(model);
}
}/* USER_CONTENT_END() */
USERIMPL(/* ::demo::DocumentEditorBase */)
void DocumentEditorBase::SaveAsPrivateFormat(const ::vl::WString& fileName)
{
{/* USER_CONTENT_BEGIN(::demo::DocumentEditorBase) */
document->SelectAll();
auto model = document->GetSelectionModel();
vl::presentation::ModifyDocumentForClipboard(model);
vl::stream::FileStream fileStream(fileName, vl::stream::FileStream::WriteOnly);
vl::presentation::SaveDocumentToClipboardStream(model, fileStream);
}
}/* USER_CONTENT_END() */
USERIMPL(/* ::demo::DocumentEditorBase */)
void DocumentEditorBase::SaveAsRTF(const ::vl::WString& fileName)
{
{/* USER_CONTENT_BEGIN(::demo::DocumentEditorBase) */
document->SelectAll();
auto model = document->GetSelectionModel();
@@ -150,11 +149,10 @@ namespace demo
vl::presentation::SaveDocumentToRtf(model, rtf);
vl::stream::FileStream fileStream(fileName, vl::stream::FileStream::WriteOnly);
fileStream.Write((void*)rtf.Buffer(), rtf.Length());
}
}/* USER_CONTENT_END() */
USERIMPL(/* ::demo::DocumentEditorBase */)
void DocumentEditorBase::SaveAsHTML(const ::vl::WString& fileName)
{
{/* USER_CONTENT_BEGIN(::demo::DocumentEditorBase) */
document->SelectAll();
auto model = document->GetSelectionModel();
@@ -164,7 +162,7 @@ namespace demo
fileStream.Write((void*)header.Buffer(), header.Length());
fileStream.Write((void*)content.Buffer(), content.Length());
fileStream.Write((void*)footer.Buffer(), footer.Length());
}
}/* USER_CONTENT_END() */
void DocumentEditorBase::SaveDocument()
{
@@ -215,7 +213,6 @@ namespace demo
#undef GLOBAL_SYMBOL
#undef GLOBAL_NAME
#undef GLOBAL_OBJ
#undef USERIMPL
#if defined( _MSC_VER)
#pragma warning(pop)
@@ -155,6 +155,9 @@ namespace demo
DocumentEditorBase();
void __vwsn_instance_ctor_();
~DocumentEditorBase();
/* USER_CONTENT_BEGIN(custom members of ::demo::DocumentEditorBase) */
/* USER_CONTENT_END() */
};
}
@@ -29,7 +29,6 @@ https://github.com/vczh-libraries
#define GLOBAL_SYMBOL ::vl_workflow_global::EditorBase::
#define GLOBAL_NAME ::vl_workflow_global::EditorBase::Instance().
#define GLOBAL_OBJ &::vl_workflow_global::EditorBase::Instance()
#define USERIMPL(...)
/***********************************************************************
Global Variables
@@ -3913,7 +3912,6 @@ Class (::demo::HyperlinkWindow)
#undef GLOBAL_SYMBOL
#undef GLOBAL_NAME
#undef GLOBAL_OBJ
#undef USERIMPL
#if defined( _MSC_VER)
#pragma warning(pop)