From 2b7bd0b8bfce0d16a2ca4e5d0db5335bef4ef4a0 Mon Sep 17 00:00:00 2001 From: Bruno Araujo Date: Tue, 26 Dec 2017 19:28:12 -0200 Subject: [PATCH] Changing to a DLL project. --- .gitignore | 321 ++++++++++++++++++ Properties/AssemblyInfo.cs | 26 ++ README.md | 11 +- RTFExporter.csproj | 38 +++ RTFExporter.sln | 25 ++ ...NTAX-REFERENCE.md => RTFSyntaxReference.md | 0 {RTF-Exporter => src}/Color.cs | 0 {RTF-Exporter => src}/RTFDocument.cs | 0 {RTF-Exporter => src}/RTFParagraph.cs | 0 {RTF-Exporter => src}/RTFParagraphStyle.cs | 0 {RTF-Exporter => src}/RTFParser.cs | 0 {RTF-Exporter => src}/RTFText.cs | 0 {RTF-Exporter => src}/RTFTextStyle.cs | 0 13 files changed, 411 insertions(+), 10 deletions(-) create mode 100644 Properties/AssemblyInfo.cs create mode 100644 RTFExporter.csproj create mode 100644 RTFExporter.sln rename RTF-SYNTAX-REFERENCE.md => RTFSyntaxReference.md (100%) rename {RTF-Exporter => src}/Color.cs (100%) rename {RTF-Exporter => src}/RTFDocument.cs (100%) rename {RTF-Exporter => src}/RTFParagraph.cs (100%) rename {RTF-Exporter => src}/RTFParagraphStyle.cs (100%) rename {RTF-Exporter => src}/RTFParser.cs (100%) rename {RTF-Exporter => src}/RTFText.cs (100%) rename {RTF-Exporter => src}/RTFTextStyle.cs (100%) diff --git a/.gitignore b/.gitignore index c6bb293..183d9e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,322 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ +**/Properties/launchSettings.json + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_i.h +*.ilk *.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# TypeScript v1 declaration files +typings/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..372a48c --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("RTFExporter")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RTFExporter")] +[assembly: AssemblyCopyright("Bruno Araujo")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/README.md b/README.md index 51d66aa..9d9cb1f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# RTF-Exporter +# RTFExporter A C# library to generate .RTF text files from any string object data, stylized and ready for any text processor. No fancy dependencies or restrictive licenses. @@ -110,15 +110,6 @@ public class Example { --- -## Why? - - -This repository originally was made to export text files from Unity game engine, but can be used for any purpose. - - ---- - - ## License (WTFPL-2.0) diff --git a/RTFExporter.csproj b/RTFExporter.csproj new file mode 100644 index 0000000..a637a2a --- /dev/null +++ b/RTFExporter.csproj @@ -0,0 +1,38 @@ + + + + Debug + AnyCPU + {3A8F9811-8741-4276-8818-4DD2641B76DD} + Library + RTFExporter + RTFExporter + v3.5 + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + + + true + bin + prompt + 4 + + + + + + + + + + + + + \ No newline at end of file diff --git a/RTFExporter.sln b/RTFExporter.sln new file mode 100644 index 0000000..38e3989 --- /dev/null +++ b/RTFExporter.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26730.16 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RTFExporter", "RTFExporter.csproj", "{3A8F9811-8741-4276-8818-4DD2641B76DD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3A8F9811-8741-4276-8818-4DD2641B76DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3A8F9811-8741-4276-8818-4DD2641B76DD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3A8F9811-8741-4276-8818-4DD2641B76DD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3A8F9811-8741-4276-8818-4DD2641B76DD}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3F7769F3-EED8-4A07-A2F5-251E0E318DF6} + EndGlobalSection +EndGlobal diff --git a/RTF-SYNTAX-REFERENCE.md b/RTFSyntaxReference.md similarity index 100% rename from RTF-SYNTAX-REFERENCE.md rename to RTFSyntaxReference.md diff --git a/RTF-Exporter/Color.cs b/src/Color.cs similarity index 100% rename from RTF-Exporter/Color.cs rename to src/Color.cs diff --git a/RTF-Exporter/RTFDocument.cs b/src/RTFDocument.cs similarity index 100% rename from RTF-Exporter/RTFDocument.cs rename to src/RTFDocument.cs diff --git a/RTF-Exporter/RTFParagraph.cs b/src/RTFParagraph.cs similarity index 100% rename from RTF-Exporter/RTFParagraph.cs rename to src/RTFParagraph.cs diff --git a/RTF-Exporter/RTFParagraphStyle.cs b/src/RTFParagraphStyle.cs similarity index 100% rename from RTF-Exporter/RTFParagraphStyle.cs rename to src/RTFParagraphStyle.cs diff --git a/RTF-Exporter/RTFParser.cs b/src/RTFParser.cs similarity index 100% rename from RTF-Exporter/RTFParser.cs rename to src/RTFParser.cs diff --git a/RTF-Exporter/RTFText.cs b/src/RTFText.cs similarity index 100% rename from RTF-Exporter/RTFText.cs rename to src/RTFText.cs diff --git a/RTF-Exporter/RTFTextStyle.cs b/src/RTFTextStyle.cs similarity index 100% rename from RTF-Exporter/RTFTextStyle.cs rename to src/RTFTextStyle.cs