From 67c53d7a9316124c244cd10425101e3a746879c3 Mon Sep 17 00:00:00 2001 From: pavelyakov Date: Wed, 1 Dec 2021 16:23:00 +0000 Subject: [PATCH] APPS: new meta width height left top and exit git-svn-id: svn://kolibrios.org@9350 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/browser/TWB/set_style.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/programs/cmm/browser/TWB/set_style.h b/programs/cmm/browser/TWB/set_style.h index 608b432e70..d4d606413d 100644 --- a/programs/cmm/browser/TWB/set_style.h +++ b/programs/cmm/browser/TWB/set_style.h @@ -56,6 +56,10 @@ void TWebBrowser::SetStyle() if (tag.is("tr")) { tag_table(); return; } if (tag.is("th")) { tag_table(); return; } if (tag.is("td")) { tag_table(); return; } + + if (application_mode) { + if (tag.is("exit")) { ExitProcess(); return; } + } } void TWebBrowser::tag_p() @@ -144,6 +148,22 @@ void TWebBrowser::tag_meta_xml() if (streq(tag.get_value_of("http-equiv"), "refresh")) && (tag.get_value_of("content")) { if (tag.value = strstri(tag.value, "url")) strcpy(#redirect, tag.value); } + if (streq(tag.get_value_of("name"), "application")) { + if (application_mode) { + if (tag.get_value_of("left")) { + MoveSize(atoi(tag.value),-1,-1,-1); + } + if (tag.get_value_of("top")) { + MoveSize(-1,atoi(tag.value),-1,-1); + } + if (tag.get_value_of("width")) { + MoveSize(-1,-1,atoi(tag.value),-1); + } + if (tag.get_value_of("height")) { + MoveSize(-1,-1,-1,atoi(tag.value)); + } + } + } } signed int get_encoding_type_by_name(dword name)