Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-addins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/TextEditor.Xml')
-rw-r--r--Samples/TextEditor.Xml/AssemblyInfo.cs32
-rw-r--r--Samples/TextEditor.Xml/ChangeLog14
-rw-r--r--Samples/TextEditor.Xml/EmptyFile.xml2
-rw-r--r--Samples/TextEditor.Xml/FormatXmlCommand.cs39
-rw-r--r--Samples/TextEditor.Xml/Makefile.am43
-rw-r--r--Samples/TextEditor.Xml/TextEditor.Xml.addin.xml14
-rw-r--r--Samples/TextEditor.Xml/TextEditor.Xml.csproj86
7 files changed, 0 insertions, 230 deletions
diff --git a/Samples/TextEditor.Xml/AssemblyInfo.cs b/Samples/TextEditor.Xml/AssemblyInfo.cs
deleted file mode 100644
index 198a48c..0000000
--- a/Samples/TextEditor.Xml/AssemblyInfo.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.0.0")]
-
-// The following attributes specify the key for the sign of your assembly. See the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
diff --git a/Samples/TextEditor.Xml/ChangeLog b/Samples/TextEditor.Xml/ChangeLog
deleted file mode 100644
index 56e55d4..0000000
--- a/Samples/TextEditor.Xml/ChangeLog
+++ /dev/null
@@ -1,14 +0,0 @@
-2009-08-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * TextEditor.Xml.csproj: Update target framework to 2.0.
-
-2009-02-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am:
- * TextEditor.Xml.csproj: Fix project file.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am:
- * TextEditor.Xml.csproj: Updated.
-
diff --git a/Samples/TextEditor.Xml/EmptyFile.xml b/Samples/TextEditor.Xml/EmptyFile.xml
deleted file mode 100644
index fcfff84..0000000
--- a/Samples/TextEditor.Xml/EmptyFile.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-<xml>
-</xml> \ No newline at end of file
diff --git a/Samples/TextEditor.Xml/FormatXmlCommand.cs b/Samples/TextEditor.Xml/FormatXmlCommand.cs
deleted file mode 100644
index ec63370..0000000
--- a/Samples/TextEditor.Xml/FormatXmlCommand.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-
-using System;
-using System.IO;
-using System.Xml;
-using TextEditor;
-using Mono.Addins;
-
-[assembly: Addin (Namespace="TextEditor")]
-[assembly: AddinDependency ("Core", "1.0")]
-
-
-namespace TextEditor.Xml
-{
- public class FormatXmlCommand: ICommand
- {
- public void Run ()
- {
- string text = TextEditorApp.MainWindow.View.Buffer.Text;
- XmlDocument doc = new XmlDocument ();
- try {
- doc.LoadXml (text);
- StringWriter sw = new StringWriter ();
- XmlTextWriter tw = new XmlTextWriter (sw);
- tw.Formatting = Formatting.Indented;
- doc.Save (tw);
- TextEditorApp.MainWindow.View.Buffer.Text = sw.ToString ();
- }
- catch {
- Gtk.MessageDialog dlg = new Gtk.MessageDialog (TextEditorApp.MainWindow, Gtk.DialogFlags.Modal, Gtk.MessageType.Error, Gtk.ButtonsType.Close, "Error parsing XML.");
- dlg.Run ();
- dlg.Destroy ();
- }
- }
- }
-
- class Subno: TextEditor.CopyCommand
- {
- }
-}
diff --git a/Samples/TextEditor.Xml/Makefile.am b/Samples/TextEditor.Xml/Makefile.am
deleted file mode 100644
index 4478a2a..0000000
--- a/Samples/TextEditor.Xml/Makefile.am
+++ /dev/null
@@ -1,43 +0,0 @@
-ASSEMBLY_COMPILER_COMMAND = mcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
-ASSEMBLY = ../bin/XmlAddin.dll
-COMPILE_TARGET = library
-PROJECT_REFERENCES = \
- ../../bin/Mono.Addins.dll \
- ../bin/TextEditorLib.dll
-BUILD_DIR = ../bin
-
-if ENABLE_GUI
-all: $(ASSEMBLY)
-endif
-
-FILES = \
- AssemblyInfo.cs \
- FormatXmlCommand.cs
-
-DATA_FILES =
-
-RESOURCES = \
- EmptyFile.xml \
- TextEditor.Xml.addin.xml
-
-EXTRAS =
-
-REFERENCES = \
- -pkg:gtk-sharp-2.0 \
- -r:Mono.Posix \
- -r:System \
- -r:System.Xml
-
-DLL_REFERENCES =
-
-$(ASSEMBLY).mdb: $(ASSEMBLY)
-
-$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles)
- mkdir -p $(dir $(ASSEMBLY))
-
- $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)
-
-if ENABLE_GUI
-include $(top_srcdir)/makefile-sample.include
-endif
diff --git a/Samples/TextEditor.Xml/TextEditor.Xml.addin.xml b/Samples/TextEditor.Xml/TextEditor.Xml.addin.xml
deleted file mode 100644
index 0605d03..0000000
--- a/Samples/TextEditor.Xml/TextEditor.Xml.addin.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<Addin>
-
- <Extension path = "/TextEditor/MainMenu/Edit">
- <Condition id="OpenFile" extension="xml,config">
- <MenuSeparator insertafter="Paste" />
- <MenuItem label="Format XML" commandType="TextEditor.Xml.FormatXmlCommand" />
- </Condition>
- </Extension>
-
- <Extension path = "/TextEditor/Templates">
- <FileTemplate name="Xml File" resource="EmptyFile.xml" />
- </Extension>
-
-</Addin>
diff --git a/Samples/TextEditor.Xml/TextEditor.Xml.csproj b/Samples/TextEditor.Xml/TextEditor.Xml.csproj
deleted file mode 100644
index 7f64a06..0000000
--- a/Samples/TextEditor.Xml/TextEditor.Xml.csproj
+++ /dev/null
@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.50727</ProductVersion>
- <ProjectGuid>{4EFD5979-4000-4A32-A687-33D140081F1C}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AssemblyName>XmlAddin</AssemblyName>
- <SchemaVersion>2.0</SchemaVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\bin</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <ConsolePause>false</ConsolePause>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <ConsolePause>false</ConsolePause>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="Mono.Posix" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\TextEditorLib\TextEditorLib.csproj">
- <Project>{ED5EC705-1905-4FB6-821B-9464D60727EF}</Project>
- <Name>TextEditorLib</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj">
- <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project>
- <Name>Mono.Addins</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="FormatXmlCommand.cs" />
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="TextEditor.Xml.addin.xml" />
- <EmbeddedResource Include="EmptyFile.xml" />
- </ItemGroup>
- <ItemGroup>
- <None Include="Makefile.am" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <Deployment.LinuxDeployData scriptName="texteditor.xml" generatePcFile="false" />
- <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true">
- <BuildFilesVar Sync="true" Name="FILES" />
- <DeployFilesVar Sync="true" Name="DATA_FILES" />
- <ResourcesVar Sync="true" Name="RESOURCES" />
- <OthersVar />
- <GacRefVar Sync="true" Name="REFERENCES" Prefix="-r:" />
- <AsmRefVar Sync="true" Name="DLL_REFERENCES" />
- <ProjectRefVar Sync="true" Name="PROJECT_REFERENCES" />
- </MonoDevelop.Autotools.MakefileInfo>
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
-</Project> \ No newline at end of file