From 1f2653c18b401d888a0a95cba4894cf6740a4733 Mon Sep 17 00:00:00 2001
From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com>
Date: Mon, 12 Jul 2010 13:44:56 +0000
Subject: [PATCH] Google, Wiki, RuWiki, Lurk BBCodes implemented
---
Builder/IISMainHandler/build.txt | 2 +-
Common/BBCodes/Google.cs | 20 ++++++++++++++++++++
Common/BBCodes/Lurk.cs | 20 ++++++++++++++++++++
Common/BBCodes/RuWiki.cs | 20 ++++++++++++++++++++
Common/BBCodes/Wiki.cs | 20 ++++++++++++++++++++
Common/Common.csproj | 4 ++++
Common/UBBParser.cs | 4 ++++
7 files changed, 89 insertions(+), 1 deletion(-)
create mode 100644 Common/BBCodes/Google.cs
create mode 100644 Common/BBCodes/Lurk.cs
create mode 100644 Common/BBCodes/RuWiki.cs
create mode 100644 Common/BBCodes/Wiki.cs
diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt
index d0af645..35d2965 100644
--- a/Builder/IISMainHandler/build.txt
+++ b/Builder/IISMainHandler/build.txt
@@ -1 +1 @@
-783
\ No newline at end of file
+791
\ No newline at end of file
diff --git a/Common/BBCodes/Google.cs b/Common/BBCodes/Google.cs
new file mode 100644
index 0000000..74fa991
--- /dev/null
+++ b/Common/BBCodes/Google.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using PJonDevelopment.BBCode;
+using System.Web;
+
+namespace FLocal.Common.BBCodes {
+ class Google : BBCode {
+
+ public Google()
+ : base("google") {
+ }
+
+ public override string Format(ITextFormatter formatter) {
+ return "" + this.GetInnerHTML(formatter) + "";
+ }
+
+ }
+}
diff --git a/Common/BBCodes/Lurk.cs b/Common/BBCodes/Lurk.cs
new file mode 100644
index 0000000..92683d8
--- /dev/null
+++ b/Common/BBCodes/Lurk.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using PJonDevelopment.BBCode;
+using System.Web;
+
+namespace FLocal.Common.BBCodes {
+ class Lurk : BBCode {
+
+ public Lurk()
+ : base("lurk") {
+ }
+
+ public override string Format(ITextFormatter formatter) {
+ return "" + this.GetInnerHTML(formatter) + "";
+ }
+
+ }
+}
diff --git a/Common/BBCodes/RuWiki.cs b/Common/BBCodes/RuWiki.cs
new file mode 100644
index 0000000..62d5deb
--- /dev/null
+++ b/Common/BBCodes/RuWiki.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using PJonDevelopment.BBCode;
+using System.Web;
+
+namespace FLocal.Common.BBCodes {
+ class RuWiki : BBCode {
+
+ public RuWiki()
+ : base("ruwiki") {
+ }
+
+ public override string Format(ITextFormatter formatter) {
+ return "" + this.GetInnerHTML(formatter) + "";
+ }
+
+ }
+}
diff --git a/Common/BBCodes/Wiki.cs b/Common/BBCodes/Wiki.cs
new file mode 100644
index 0000000..867060c
--- /dev/null
+++ b/Common/BBCodes/Wiki.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using PJonDevelopment.BBCode;
+using System.Web;
+
+namespace FLocal.Common.BBCodes {
+ class Wiki : BBCode {
+
+ public Wiki()
+ : base("wiki") {
+ }
+
+ public override string Format(ITextFormatter formatter) {
+ return "" + this.GetInnerHTML(formatter) + "";
+ }
+
+ }
+}
diff --git a/Common/Common.csproj b/Common/Common.csproj
index 79e6f85..8434f7f 100644
--- a/Common/Common.csproj
+++ b/Common/Common.csproj
@@ -61,14 +61,17 @@
+
+
+
@@ -77,6 +80,7 @@
+
diff --git a/Common/UBBParser.cs b/Common/UBBParser.cs
index 9e62b0c..c36357e 100644
--- a/Common/UBBParser.cs
+++ b/Common/UBBParser.cs
@@ -94,9 +94,11 @@ namespace FLocal.Common {
this.parser.ElementTypes.Add("color", typeof(BBCodes.FontColor), true);
this.parser.ElementTypes.Add("size", typeof(BBCodes.FontSize), true);
this.parser.ElementTypes.Add("furl", typeof(BBCodes.FUrl), true);
+ this.parser.ElementTypes.Add("google", typeof(BBCodes.Google), true);
this.parser.ElementTypes.Add("i", typeof(BBCodes.I), true);
this.parser.ElementTypes.Add("image", typeof(BBCodes.Image), true);
this.parser.ElementTypes.Add("list", typeof(BBCodes.List), true);
+ this.parser.ElementTypes.Add("lurk", typeof(BBCodes.Lurk), true);
this.parser.ElementTypes.Add("*", typeof(BBCodes.ListElem), false);
this.parser.ElementTypes.Add("poll", typeof(BBCodes.Poll), true);
this.parser.ElementTypes.Add("quote", typeof(BBCodes.Quote), true);this.parser.ElementTypes.Add("q", typeof(BBCodes.Quote), true);
@@ -107,6 +109,8 @@ namespace FLocal.Common {
this.parser.ElementTypes.Add("uploadlink", typeof(BBCodes.UploadLink), true);
this.parser.ElementTypes.Add("url", typeof(BBCodes.Url), true);
this.parser.ElementTypes.Add("user", typeof(BBCodes.User), false);
+ this.parser.ElementTypes.Add("wiki", typeof(BBCodes.Wiki), true);
+ this.parser.ElementTypes.Add("ruwiki", typeof(BBCodes.RuWiki), true);
this.formatter = TextFormatter.instance;
}