From 1faa402d05948239da10800d68bdefc91c209135 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Fri, 2 Jul 1999 03:56:59 +0000 Subject: [PATCH] Add stuff for applying style sheets. git-svn-id: svn://10.0.0.236/trunk@37963 18797224-902f-48f8-a5cc-f745e15eee43 --- .../ui/composer/content/EditorAppShell.xul | 12 +++++ .../ui/composer/content/EditorCommands.js | 6 +++ .../ui/composer/content/EditorInitPage.html | 48 +++++++++++++++++-- .../suite/debugQA/content/EditorInitPage.html | 48 +++++++++++++++++-- 4 files changed, 108 insertions(+), 6 deletions(-) diff --git a/mozilla/editor/ui/composer/content/EditorAppShell.xul b/mozilla/editor/ui/composer/content/EditorAppShell.xul index e09162c83dc..17d75c4c843 100644 --- a/mozilla/editor/ui/composer/content/EditorAppShell.xul +++ b/mozilla/editor/ui/composer/content/EditorAppShell.xul @@ -274,6 +274,18 @@ + + + + + + + + + + + + diff --git a/mozilla/editor/ui/composer/content/EditorCommands.js b/mozilla/editor/ui/composer/content/EditorCommands.js index a39dc4dbf82..121f2d4b922 100644 --- a/mozilla/editor/ui/composer/content/EditorCommands.js +++ b/mozilla/editor/ui/composer/content/EditorCommands.js @@ -311,6 +311,12 @@ function EditorRemoveLinks() contentWindow.focus(); } +function EditorApplyStyleSheet(styleSheetURL) +{ + window.editorShell.ApplyStyleSheet(styleSheetURL); +} + + // --------------------------- Output --------------------------- function EditorGetText() diff --git a/mozilla/editor/ui/composer/content/EditorInitPage.html b/mozilla/editor/ui/composer/content/EditorInitPage.html index ccee890fbf9..32db37e4749 100644 --- a/mozilla/editor/ui/composer/content/EditorInitPage.html +++ b/mozilla/editor/ui/composer/content/EditorInitPage.html @@ -7,7 +7,7 @@ - +

Here's the deal...

@@ -32,7 +32,25 @@ was written when I was eleven years old, but is remarkably similar to the writings of my later "hard-livin" years. It's titled "Reruns":

-
+

+"This paragraph has "class=note", so that we can play with styles." +For example, we might insert generated content, like "Note: " before this +paragraph. +

+ +
+

+This paragraph is inside a <div>. Here is some very run-o-the-mill text in +a paragraph tag, for those +of you who are into that kind of thing. I think at this point I shall +regale you with some of my inestimable poetry, which will be presented +in blockquote mode for your reading pleasure. This particular sample +was written when I was eleven years old, but is remarkably similar to +the writings of my later "hard-livin" years. It's titled "Reruns": +

+
+ +

Reruns

Reruns are about as much fun,
as your dad taking all your mun,
@@ -65,6 +83,30 @@ This text has two spaces between every word
  • list item 3
  • +
      +
    1. list item with child paragraphs +

      + First child paragraph +

      +

      + Second child paragraph +

      +

      + Third child paragraph +

      +
    2. +
    3. +Another list item +
    4. +
    5. +Something else. +
    6. +
    7. +Another thing. +
    8. +
    + + @@ -72,7 +114,7 @@ This text has two spaces between every word
    cell 1 cell 2 cell 3
    cell 4 cell 5 cell 6
    - +
    big cell 1 diff --git a/mozilla/suite/debugQA/content/EditorInitPage.html b/mozilla/suite/debugQA/content/EditorInitPage.html index ccee890fbf9..32db37e4749 100644 --- a/mozilla/suite/debugQA/content/EditorInitPage.html +++ b/mozilla/suite/debugQA/content/EditorInitPage.html @@ -7,7 +7,7 @@ - +

    Here's the deal...

    @@ -32,7 +32,25 @@ was written when I was eleven years old, but is remarkably similar to the writings of my later "hard-livin" years. It's titled "Reruns":

    -
    +

    +"This paragraph has "class=note", so that we can play with styles." +For example, we might insert generated content, like "Note: " before this +paragraph. +

    + +
    +

    +This paragraph is inside a <div>. Here is some very run-o-the-mill text in +a paragraph tag, for those +of you who are into that kind of thing. I think at this point I shall +regale you with some of my inestimable poetry, which will be presented +in blockquote mode for your reading pleasure. This particular sample +was written when I was eleven years old, but is remarkably similar to +the writings of my later "hard-livin" years. It's titled "Reruns": +

    +
    + +

    Reruns

    Reruns are about as much fun,
    as your dad taking all your mun,
    @@ -65,6 +83,30 @@ This text has two spaces between every word
  • list item 3
  • +
      +
    1. list item with child paragraphs +

      + First child paragraph +

      +

      + Second child paragraph +

      +

      + Third child paragraph +

      +
    2. +
    3. +Another list item +
    4. +
    5. +Something else. +
    6. +
    7. +Another thing. +
    8. +
    + +
    @@ -72,7 +114,7 @@ This text has two spaces between every word
    cell 1 cell 2 cell 3
    cell 4 cell 5 cell 6
    - +
    big cell 1