added custom code
[old-projects.git] / ekit / com / hexidec / ekit / EkitCore.java
index ef23e15..07df9cb 100644 (file)
@@ -286,7 +286,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          * @param base64            [boolean] Specifies whether the raw document is Base64 encoded or not.
          * @param debugMode         [boolean] Specifies whether to show the Debug menu or not.
          */
-       public EkitCore(String sDocument, String sStyleSheet, String sRawDocument, URL urlStyleSheet, boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive, String sLanguage, String sCountry, boolean base64, boolean debugMode)
+       public EkitCore(String sDocument, String sStyleSheet, String sRawDocument, URL urlStyleSheet, boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive, String sLanguage, String sCountry, boolean base64, boolean debugMode, String baseurl)
        {
                super();
 
@@ -330,7 +330,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
 
                /* Create the editor kit, document, and stylesheet */
                jtpMain = new JTextPane();
-               htmlKit = new ExtendedHTMLEditorKit();
+               htmlKit = new ExtendedHTMLEditorKit(baseurl);
                htmlDoc = (ExtendedHTMLDocument)(htmlKit.createDefaultDocument());
                styleSheet = htmlDoc.getStyleSheet();
                htmlKit.setDefaultCursor(new Cursor(Cursor.TEXT_CURSOR));
@@ -741,7 +741,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          */
        public EkitCore(String sDocument, String sStyleSheet, boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive, String sLanguage, String sCountry, boolean base64)
        {
-               this(sDocument, sStyleSheet, null, null, showViewSource, showMenuIcons, editModeExclusive, sLanguage, sCountry, base64, false);
+               this(sDocument, sStyleSheet, null, null, showViewSource, showMenuIcons, editModeExclusive, sLanguage, sCountry, base64, false,"");
        }
 
        /** Default Language Constructor
@@ -753,7 +753,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          */
        public EkitCore(String sDocument, String sStyleSheet, boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive, boolean base64)
        {
-               this(sDocument, sStyleSheet, null, null, showViewSource, showMenuIcons, editModeExclusive, null, null, base64, false);
+               this(sDocument, sStyleSheet, null, null, showViewSource, showMenuIcons, editModeExclusive, null, null, base64, false, "");
        }
 
        /** Raw/Base64 Document & Style Sheet URL Constructor (Ideal for EkitApplet)
@@ -765,9 +765,9 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          * @param sLanguage         [String]  The language portion of the Internationalization Locale to run Ekit in.
          * @param sCountry          [String]  The country portion of the Internationalization Locale to run Ekit in.
          */
-       public EkitCore(String sRawDocument, URL urlStyleSheet, boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive, String sLanguage, String sCountry, boolean base64)
+       public EkitCore(String sRawDocument, URL urlStyleSheet, boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive, String sLanguage, String sCountry, boolean base64, String baseurl)
        {
-               this(null, null, sRawDocument, urlStyleSheet, showViewSource, showMenuIcons, editModeExclusive, sLanguage, sCountry, base64, false);
+               this(null, null, sRawDocument, urlStyleSheet, showViewSource, showMenuIcons, editModeExclusive, sLanguage, sCountry, base64, false, baseurl);
        }
 
        /** Document Constructor
@@ -780,7 +780,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          */
        public EkitCore(String sRawDocument, boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive, String sLanguage, String sCountry, boolean base64)
        {
-               this(null, null, sRawDocument, null, showViewSource, showMenuIcons, editModeExclusive, sLanguage, sCountry, base64, false);
+               this(null, null, sRawDocument, null, showViewSource, showMenuIcons, editModeExclusive, sLanguage, sCountry, base64, false,"");
        }
 
        /** Default Language & Document Constructor
@@ -791,7 +791,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          */
        public EkitCore(String sRawDocument, boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive, boolean base64)
        {
-               this(null, null, sRawDocument, null, showViewSource, showMenuIcons, editModeExclusive, null, null, base64, false);
+               this(null, null, sRawDocument, null, showViewSource, showMenuIcons, editModeExclusive, null, null, base64, false,"");
        }
 
        /** Flags & Language Constructor
@@ -803,7 +803,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          */
        public EkitCore(boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive, String sLanguage, String sCountry)
        {
-               this(null, null, null, null, showViewSource, showMenuIcons, editModeExclusive, sLanguage, sCountry, false, false);
+               this(null, null, null, null, showViewSource, showMenuIcons, editModeExclusive, sLanguage, sCountry, false, false,"");
        }
 
        /** Flags Constructor
@@ -813,7 +813,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          */
        public EkitCore(boolean showViewSource, boolean showMenuIcons, boolean editModeExclusive)
        {
-               this(null, null, null, null, showViewSource, showMenuIcons, editModeExclusive, null, null, false, false);
+               this(null, null, null, null, showViewSource, showMenuIcons, editModeExclusive, null, null, false, false,"");
        }
 
        /** Language & Debug Constructor
@@ -823,7 +823,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          */
        public EkitCore(String sLanguage, String sCountry, boolean debugMode)
        {
-               this(null, null, null, null, false, true, true, sLanguage, sCountry, false, debugMode);
+               this(null, null, null, null, false, true, true, sLanguage, sCountry, false, debugMode,"");
        }
 
        /** Language Constructor
@@ -832,7 +832,7 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          */
        public EkitCore(String sLanguage, String sCountry)
        {
-               this(null, null, null, null, false, true, true, sLanguage, sCountry, false, false);
+               this(null, null, null, null, false, true, true, sLanguage, sCountry, false, false,"");
        }
 
        /** Debug Constructor
@@ -840,14 +840,14 @@ public class EkitCore extends JPanel implements ActionListener, KeyListener, Doc
          */
        public EkitCore(boolean debugMode)
        {
-               this(null, null, null, null, false, true, true, null, null, false, debugMode);
+               this(null, null, null, null, false, true, true, null, null, false, debugMode,"");
        }
 
        /** Empty Constructor
          */
        public EkitCore()
        {
-               this(null, null, null, null, false, true, true, null, null, false, false);
+               this(null, null, null, null, false, true, true, null, null, false, false,"");
        }
 
        /* ActionListener method */