mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.11.3.1
This commit is contained in:
@@ -16,6 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.ctgs; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.langs.*; import gplx.xowa.langs.msgs.*;
|
||||
class Xoctg_fmtr_all {
|
||||
public Xoctg_fmtr_all(byte tid) {this.Ctor(tid);}
|
||||
@@ -152,7 +153,7 @@ class Xoctg_fmtr_all {
|
||||
, Div_id_file = Bry_.new_a7("mw-category-media")
|
||||
;
|
||||
}
|
||||
interface Xoctg_fmtr_itm extends Bry_fmtr_arg {
|
||||
interface Xoctg_fmtr_itm extends gplx.core.brys.Bfr_arg {
|
||||
int Grp_end_idx();
|
||||
boolean Grp_end_at_col();
|
||||
int Col_idx(); void Col_idx_(int col_idx, int col_bgn);
|
||||
|
||||
@@ -16,13 +16,14 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.ctgs; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.langs.*; import gplx.xowa.langs.msgs.*;
|
||||
class Xoctg_fmtr_grp implements Bry_fmtr_arg {
|
||||
class Xoctg_fmtr_grp extends gplx.core.brys.Bfr_arg_base {
|
||||
public void Init_from_all(Xowe_wiki wiki, Xol_lang_itm lang, Xoctg_view_ctg ctg, Xoctg_fmtr_all mgr, Xoctg_view_grp itms_list) {
|
||||
this.wiki = wiki; this.mgr = mgr; this.itms_fmtr = mgr.Fmtr_itm(); this.itms_list = itms_list; len = itms_list.Len();
|
||||
itms_fmtr.Init_from_all(wiki, lang, ctg, mgr, itms_list, len);
|
||||
} private Xowe_wiki wiki; Xoctg_fmtr_itm itms_fmtr; Xoctg_view_grp itms_list; int len; Xoctg_fmtr_all mgr;
|
||||
public void Fmt__do(Bry_bfr bfr) {
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
if (mgr.Grps_enabled()) {
|
||||
if (len == 0) return;
|
||||
int cur_idx = itms_list.Bgn(); int col_bgn = cur_idx;
|
||||
|
||||
@@ -16,10 +16,11 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.ctgs; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.htmls.*; import gplx.xowa.htmls.hrefs.*; import gplx.xowa.htmls.core.wkrs.lnkis.htmls.*;
|
||||
import gplx.xowa.langs.*; import gplx.xowa.langs.msgs.*;
|
||||
import gplx.xowa.users.history.*;
|
||||
abstract class Xoctg_fmtr_itm_base implements Xoctg_fmtr_itm {
|
||||
abstract class Xoctg_fmtr_itm_base extends gplx.core.brys.Bfr_arg_base implements Xoctg_fmtr_itm {
|
||||
public void Init_from_all(Xowe_wiki wiki, Xol_lang_itm lang, Xoctg_view_ctg ctg, Xoctg_fmtr_all mgr, Xoctg_view_grp itms_list, int itms_list_len) {
|
||||
this.wiki = wiki; this.lang = lang; this.ctg = ctg; this.list = itms_list; this.len = itms_list_len; this.msg_mgr = wiki.Msg_mgr();
|
||||
href_parser = wiki.Appe().Html__href_parser();
|
||||
@@ -37,7 +38,7 @@ abstract class Xoctg_fmtr_itm_base implements Xoctg_fmtr_itm {
|
||||
} int col_idx;
|
||||
public int Grp_end_idx() {return grp_end_idx;} private int grp_end_idx;
|
||||
public boolean Grp_end_at_col() {return grp_end_at_col;} private boolean grp_end_at_col;
|
||||
@gplx.Virtual public void Fmt__do(Bry_bfr bfr) {
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
for (int i = col_bgn; i < len; i++) {
|
||||
if (i == col_end) {
|
||||
grp_end_idx = i;
|
||||
@@ -70,7 +71,7 @@ class Xoctg_fmtr_itm_page extends Xoctg_fmtr_itm_base {
|
||||
public static final Xoctg_fmtr_itm_page Instance = new Xoctg_fmtr_itm_page(); Xoctg_fmtr_itm_page() {}
|
||||
}
|
||||
class Xoctg_fmtr_itm_file extends Xoctg_fmtr_itm_base {
|
||||
// public override void Fmt__do(Bry_bfr bfr) {
|
||||
// public override void Bfr_arg__add(Bry_bfr bfr) {
|
||||
// html_itm = wiki.Html_mgr().Gallery_xtn_mgr().Html_gallery_itm_img();
|
||||
// for (int i = list.Bgn(); i < len; i++) {
|
||||
// Xoctg_view_itm itm = list.Itms()[i];
|
||||
|
||||
@@ -251,7 +251,7 @@ class Xoh_ctg_page_fxt {
|
||||
fmtr_itm.Init_from_grp(new byte[] {grp_char_0}, 0);
|
||||
fmtr_itm.Col_idx_(0, 0);
|
||||
Bry_bfr bfr = wiki.Utl__bfr_mkr().Get_b512();
|
||||
fmtr_itm.Fmt__do(bfr);
|
||||
fmtr_itm.Bfr_arg__add(bfr);
|
||||
Tfds.Eq_str_lines(expd, bfr.To_str_and_rls());
|
||||
}
|
||||
public void Test_html_grp(byte tid, String expd) {
|
||||
@@ -259,7 +259,7 @@ class Xoh_ctg_page_fxt {
|
||||
Xoctg_fmtr_grp fmtr_grp = ctg_html.Fmtr_grp();
|
||||
fmtr_grp.Init_from_all(wiki, wiki.Lang(), ctg, list_mgr, ctg.Grp_by_tid(tid));
|
||||
Bry_bfr bfr = wiki.Utl__bfr_mkr().Get_b512();
|
||||
fmtr_grp.Fmt__do(bfr);
|
||||
fmtr_grp.Bfr_arg__add(bfr);
|
||||
Tfds.Eq_str_lines(expd, bfr.To_str_and_rls());
|
||||
}
|
||||
public void Test_html_all(byte tid, String expd) {
|
||||
|
||||
@@ -16,8 +16,9 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.ctgs; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.langs.*; import gplx.xowa.langs.msgs.*;
|
||||
public class Xoctg_pagelist_grp implements Bry_fmtr_arg {
|
||||
public class Xoctg_pagelist_grp extends gplx.core.brys.Bfr_arg_base {
|
||||
public void Init_app(Xoae_app app, boolean type_is_normal, Bry_fmtr fmtr_grp, Bry_fmtr fmtr_itm) {
|
||||
this.type_is_normal = type_is_normal;
|
||||
this.fmtr_grp = fmtr_grp;
|
||||
@@ -31,7 +32,7 @@ public class Xoctg_pagelist_grp implements Bry_fmtr_arg {
|
||||
} private byte[] lbl_ctg_help, lbl_ctg_text, lbl_hidden; private static final byte[] Key_pagecategorieslink = Bry_.new_a7("pagecategorieslink");
|
||||
public boolean Type_is_normal() {return type_is_normal;} private boolean type_is_normal;
|
||||
public Xoctg_pagelist_itms Itms() {return itms;} private Xoctg_pagelist_itms itms = new Xoctg_pagelist_itms();
|
||||
public void Fmt__do(Bry_bfr bfr) {
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
if (type_is_normal)
|
||||
fmtr_grp.Bld_bfr_many(bfr, lbl_ctg_help, lbl_ctg_text, itms);
|
||||
else
|
||||
|
||||
@@ -16,10 +16,11 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.ctgs; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.htmls.*; import gplx.xowa.htmls.hrefs.*; import gplx.xowa.htmls.core.wkrs.lnkis.htmls.*; import gplx.xowa.wikis.data.tbls.*;
|
||||
import gplx.xowa.wikis.nss.*;
|
||||
import gplx.xowa.users.history.*;
|
||||
public class Xoctg_pagelist_itms implements Bry_fmtr_arg {
|
||||
public class Xoctg_pagelist_itms extends gplx.core.brys.Bfr_arg_base {
|
||||
private Xoh_href_wtr href_wtr; private Xou_history_mgr history_mgr; private Bry_fmtr fmtr_itm;
|
||||
public void Init_app(Xoae_app app, Bry_fmtr fmtr_itm) {
|
||||
this.href_wtr = app.Html__href_wtr();
|
||||
@@ -29,7 +30,7 @@ public class Xoctg_pagelist_itms implements Bry_fmtr_arg {
|
||||
public void Init_wiki(Xowe_wiki wiki) {this.wiki = wiki;} private Xowe_wiki wiki;
|
||||
public void Itms_clear() {itms.Clear();} private List_adp itms = List_adp_.new_();
|
||||
public void Itms_add(Xowd_page_itm page) {itms.Add(page);}
|
||||
public void Fmt__do(Bry_bfr bfr) {
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
int len = itms.Count();
|
||||
for (int i = 0; i < len; i++) {
|
||||
Xowd_page_itm page = (Xowd_page_itm)itms.Get_at(i);
|
||||
|
||||
@@ -16,7 +16,8 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.ctgs; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
public class Xoctg_pagelist_mgr implements Bry_fmtr_arg {
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
public class Xoctg_pagelist_mgr extends gplx.core.brys.Bfr_arg_base {
|
||||
public Xoctg_pagelist_mgr Init_by_app(Xoae_app app, Xoctg_pagelist_wtr hidden_wtr) {
|
||||
this.fmtr_all = hidden_wtr.Fmtr_all();
|
||||
grp_normal.Init_app(app, Bool_.Y, hidden_wtr.Fmtr_grp_normal(), hidden_wtr.Fmtr_itm());
|
||||
@@ -29,7 +30,7 @@ public class Xoctg_pagelist_mgr implements Bry_fmtr_arg {
|
||||
}
|
||||
public Xoctg_pagelist_grp Grp_normal() {return grp_normal;} private Xoctg_pagelist_grp grp_normal = new Xoctg_pagelist_grp();
|
||||
public Xoctg_pagelist_grp Grp_hidden() {return grp_hidden;} private Xoctg_pagelist_grp grp_hidden = new Xoctg_pagelist_grp();
|
||||
public void Fmt__do(Bry_bfr bfr) {
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
fmtr_all.Bld_bfr_many(bfr, grp_normal, grp_hidden);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.ctgs; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.users.history.*; import gplx.xowa.wikis.data.tbls.*;
|
||||
public class Xoctg_pagelist_wtr {
|
||||
private Xoctg_pagelist_mgr pagelist_mgr = new Xoctg_pagelist_mgr();
|
||||
@@ -33,7 +34,7 @@ public class Xoctg_pagelist_wtr {
|
||||
list.Itms().Itms_add(page);
|
||||
}
|
||||
pagelist_mgr.Init_by_wiki(wiki);
|
||||
pagelist_mgr.Fmt__do(bfr);
|
||||
pagelist_mgr.Bfr_arg__add(bfr);
|
||||
pagelist_mgr.Grp_hidden().Itms().Itms_clear();
|
||||
pagelist_mgr.Grp_normal().Itms().Itms_clear();
|
||||
}
|
||||
|
||||
@@ -30,8 +30,7 @@ public class Xowd_db_file {
|
||||
this.tbl__site_stats = new Xowd_site_stats_tbl(conn, schema_is_1);
|
||||
this.tbl__page = new Xowd_page_tbl(conn, schema_is_1);
|
||||
this.tbl__text = new Xowd_text_tbl(conn, schema_is_1, props.Zip_tid_text());
|
||||
this.tbl__html_page = new Xoh_page_tbl(conn);
|
||||
this.tbl__html_redlink = new Xoh_redlink_tbl(conn);
|
||||
this.tbl__html = new Xoh_page_tbl(conn);
|
||||
this.tbl__css_core = new Xowd_css_core_tbl(conn);
|
||||
this.tbl__css_file = new Xowd_css_file_tbl(conn);
|
||||
this.tbl__cat_core = new Xowd_cat_core_tbl(conn, schema_is_1);
|
||||
@@ -61,8 +60,7 @@ public class Xowd_db_file {
|
||||
public Xowd_site_ns_tbl Tbl__ns() {return tbl__ns;} private final Xowd_site_ns_tbl tbl__ns;
|
||||
public Xowd_page_tbl Tbl__page() {return tbl__page;} private final Xowd_page_tbl tbl__page;
|
||||
public Xowd_text_tbl Tbl__text() {return tbl__text;} private final Xowd_text_tbl tbl__text;
|
||||
public Xoh_page_tbl Tbl__html_page() {return tbl__html_page;} private final Xoh_page_tbl tbl__html_page;
|
||||
public Xoh_redlink_tbl Tbl__html_redlink() {return tbl__html_redlink;} private final Xoh_redlink_tbl tbl__html_redlink;
|
||||
public Xoh_page_tbl Tbl__html() {return tbl__html;} private final Xoh_page_tbl tbl__html;
|
||||
public Xowd_css_core_tbl Tbl__css_core() {return tbl__css_core;} private final Xowd_css_core_tbl tbl__css_core;
|
||||
public Xowd_css_file_tbl Tbl__css_file() {return tbl__css_file;} private final Xowd_css_file_tbl tbl__css_file;
|
||||
public Xowd_cat_core_tbl Tbl__cat_core() {return tbl__cat_core;} private final Xowd_cat_core_tbl tbl__cat_core;
|
||||
|
||||
@@ -16,6 +16,8 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.metas; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.langs.gfs.*;
|
||||
public class Bfmtr_eval_wiki implements Bry_fmtr_eval_mgr {
|
||||
public Bfmtr_eval_wiki(Xowe_wiki wiki) {this.wiki = wiki;} private Xowe_wiki wiki;
|
||||
public boolean Enabled() {return enabled;} public void Enabled_(boolean v) {enabled = v;} private boolean enabled = true;
|
||||
|
||||
@@ -16,6 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.metas; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.wikis.domains.*;
|
||||
public class Xow_script_mgr implements GfoInvkAble {
|
||||
public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
|
||||
|
||||
@@ -48,12 +48,26 @@ public class Xow_ns_ {
|
||||
, Key__null = "null"
|
||||
, Key__wikipedia = "Wikipedia"
|
||||
;
|
||||
public static final byte[]
|
||||
Bry__media = Bry_.new_a7(Key__media)
|
||||
, Bry__special = Bry_.new_a7(Key__special)
|
||||
, Bry__main = Bry_.new_a7(Key__main) , Bry__talk = Bry_.new_a7(Key__talk)
|
||||
, Bry__user = Bry_.new_a7(Key__user) , Bry__user_talk = Bry_.new_a7(Key__user_talk)
|
||||
, Bry__project = Bry_.new_a7(Key__project) , Bry__project_talk = Bry_.new_a7(Key__project_talk)
|
||||
, Bry__file = Bry_.new_a7(Key__file) , Bry__file_talk = Bry_.new_a7(Key__file_talk)
|
||||
, Bry__mediawiki = Bry_.new_a7(Key__mediawiki) , Bry__mediawiki_talk = Bry_.new_a7(Key__mediawiki_talk)
|
||||
, Bry__template = Bry_.new_a7(Key__template) , Bry__template_talk = Bry_.new_a7(Key__template_talk)
|
||||
, Bry__help = Bry_.new_a7(Key__help) , Bry__help_talk = Bry_.new_a7(Key__help_talk)
|
||||
, Bry__category = Bry_.new_a7(Key__category) , Bry__category_talk = Bry_.new_a7(Key__category_talk)
|
||||
, Bry__portal = Bry_.new_a7(Key__portal) , Bry__portal_talk = Bry_.new_a7(Key__portal_talk)
|
||||
, Bry__module = Bry_.new_a7(Key__module) , Bry__module_talk = Bry_.new_a7(Key__module_talk)
|
||||
, Bry__null = Bry_.new_a7(Key__null)
|
||||
;
|
||||
public static final String
|
||||
Alias__wikipedia = "Wikipedia"
|
||||
;
|
||||
public static final byte[]
|
||||
Bry__main = Bry_.new_a7(Key__main)
|
||||
, Bry__file = Bry_.new_a7(Key__file)
|
||||
, Bry__template = Bry_.new_a7(Key__template)
|
||||
Bry__template_w_colon = Bry_.new_a7(Key__template + ":")
|
||||
, Bry__module_w_colon = Bry_.new_a7(Key__module + ":")
|
||||
;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class Xow_ns_canonical_ {
|
||||
Object rv_obj = id_hash.Get_by(key);
|
||||
return rv_obj == null ? Xow_ns_.Tid__null : ((Int_obj_val)rv_obj).Val();
|
||||
}
|
||||
public static String To_canonical_or_local(Xow_ns ns) { // NOTE: prefer canonical names if they exist; otherwise use local; PAGE:sh.w:Koprno; DATE:2015-11-08
|
||||
public static String To_canonical_or_local_as_str(Xow_ns ns) { // NOTE: prefer canonical names if they exist; otherwise use local; PAGE:sh.w:Koprno; DATE:2015-11-08
|
||||
switch (ns.Id()) {
|
||||
case Xow_ns_.Tid__media: return Xow_ns_.Key__media;
|
||||
case Xow_ns_.Tid__special: return Xow_ns_.Key__special;
|
||||
@@ -77,4 +77,28 @@ public class Xow_ns_canonical_ {
|
||||
default: return String_.new_u8(ns.Name_ui());
|
||||
}
|
||||
}
|
||||
public static byte[] To_canonical_or_local_as_bry(Xow_ns ns) {
|
||||
switch (ns.Id()) {
|
||||
case Xow_ns_.Tid__media: return Xow_ns_.Bry__media;
|
||||
case Xow_ns_.Tid__special: return Xow_ns_.Bry__special;
|
||||
case Xow_ns_.Tid__talk: return Xow_ns_.Bry__talk;
|
||||
case Xow_ns_.Tid__user: return Xow_ns_.Bry__user;
|
||||
case Xow_ns_.Tid__user_talk: return Xow_ns_.Bry__user_talk;
|
||||
case Xow_ns_.Tid__project: return Xow_ns_.Bry__project;
|
||||
case Xow_ns_.Tid__project_talk: return Xow_ns_.Bry__project_talk;
|
||||
case Xow_ns_.Tid__file: return Xow_ns_.Bry__file;
|
||||
case Xow_ns_.Tid__file_talk: return Xow_ns_.Bry__file_talk;
|
||||
case Xow_ns_.Tid__mediawiki: return Xow_ns_.Bry__mediawiki;
|
||||
case Xow_ns_.Tid__mediawiki_talk: return Xow_ns_.Bry__mediawiki_talk;
|
||||
case Xow_ns_.Tid__template: return Xow_ns_.Bry__template;
|
||||
case Xow_ns_.Tid__template_talk: return Xow_ns_.Bry__template_talk;
|
||||
case Xow_ns_.Tid__help: return Xow_ns_.Bry__help;
|
||||
case Xow_ns_.Tid__help_talk: return Xow_ns_.Bry__help_talk;
|
||||
case Xow_ns_.Tid__category: return Xow_ns_.Bry__category;
|
||||
case Xow_ns_.Tid__category_talk: return Xow_ns_.Bry__category_talk;
|
||||
case Xow_ns_.Tid__module: return Xow_ns_.Bry__module;
|
||||
case Xow_ns_.Tid__module_talk: return Xow_ns_.Bry__module_talk;
|
||||
default: return ns.Name_ui();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,12 +16,12 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.pages.skins; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*; import gplx.xowa.wikis.pages.*;
|
||||
public class Xopg_xtn_skin_fmtr_arg implements Bry_fmtr_arg {
|
||||
public class Xopg_xtn_skin_fmtr_arg extends gplx.core.brys.Bfr_arg_base {
|
||||
private Xoae_page page; private byte xtn_skin_tid;
|
||||
public Xopg_xtn_skin_fmtr_arg(Xoae_page page, byte xtn_skin_tid) {
|
||||
this.page = page; this.xtn_skin_tid = xtn_skin_tid;
|
||||
}
|
||||
public void Fmt__do(Bry_bfr bfr) {
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
Xopg_xtn_skin_mgr mgr = page.Html_data().Xtn_skin_mgr();
|
||||
int len = mgr.Count();
|
||||
for (int i = 0; i < len; ++i) {
|
||||
|
||||
@@ -16,7 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.xwikis; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
import gplx.core.net.*;
|
||||
import gplx.core.net.*; import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.langs.*; import gplx.xowa.wikis.domains.*;
|
||||
public class Xow_xwiki_itm implements gplx.CompareAble {
|
||||
private final boolean show_in_sitelangs_base;
|
||||
|
||||
@@ -16,6 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.xwikis.sitelinks.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*; import gplx.xowa.wikis.xwikis.*; import gplx.xowa.wikis.xwikis.sitelinks.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.apps.apis.xowa.html.*;
|
||||
import gplx.xowa.langs.*; import gplx.xowa.langs.msgs.*;
|
||||
import gplx.xowa.xtns.wdatas.core.*;
|
||||
|
||||
@@ -16,12 +16,13 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.xwikis.sitelinks.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*; import gplx.xowa.wikis.xwikis.*; import gplx.xowa.wikis.xwikis.sitelinks.*;
|
||||
class Xoa_sitelink_grp_wtr implements Bry_fmtr_arg {
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
class Xoa_sitelink_grp_wtr extends gplx.core.brys.Bfr_arg_base {
|
||||
private final Xoa_sitelink_itm_wtr itm_wtr = new Xoa_sitelink_itm_wtr();
|
||||
private Xoa_sitelink_grp_mgr mgr;
|
||||
public void Init_by_app(Xoa_app app) {itm_wtr.Init_by_app(app);}
|
||||
public Xoa_sitelink_grp_wtr Fmt__init(Xoa_sitelink_grp_mgr mgr) {this.mgr = mgr; return this;}
|
||||
public void Fmt__do(Bry_bfr bfr) {
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
int len = mgr.Len();
|
||||
for (int i = 0; i < len; ++i) {
|
||||
Xoa_sitelink_grp grp = mgr.Get_at(i);
|
||||
|
||||
@@ -16,14 +16,15 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.wikis.xwikis.sitelinks.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*; import gplx.xowa.wikis.xwikis.*; import gplx.xowa.wikis.xwikis.sitelinks.*;
|
||||
import gplx.core.brys.fmtrs.*;
|
||||
import gplx.xowa.htmls.hrefs.*;
|
||||
import gplx.xowa.wikis.domains.*;
|
||||
class Xoa_sitelink_itm_wtr implements Bry_fmtr_arg {
|
||||
class Xoa_sitelink_itm_wtr extends gplx.core.brys.Bfr_arg_base {
|
||||
private final Bry_bfr tmp_bfr = Bry_bfr.new_(255);
|
||||
private Xoa_app app; private Xoa_sitelink_grp grp;
|
||||
public void Init_by_app(Xoa_app app) {this.app = app;}
|
||||
public Xoa_sitelink_itm_wtr Fmt__init(Xoa_sitelink_grp grp) {this.grp = grp; return this;}
|
||||
public void Fmt__do(Bry_bfr bfr) {
|
||||
@Override public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
int len = grp.Len();
|
||||
boolean tr_opened = false; int td_idx = 0;
|
||||
for (int i = 0; i < len; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user