LibreOffice Module sd (master) 1
Classes | Macros | Functions | Variables
htmlex.cxx File Reference
#include "htmlex.hxx"
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/drawing/GraphicExportFilter.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <sal/log.hxx>
#include <rtl/tencinfo.h>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/xmlencode.hxx>
#include <o3tl/safeint.hxx>
#include <osl/file.hxx>
#include <unotools/pathoptions.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <com/sun/star/frame/XStorable.hpp>
#include <sfx2/frmhtmlw.hxx>
#include <sfx2/progress.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <svx/svditer.hxx>
#include <vcl/imaprect.hxx>
#include <vcl/imapcirc.hxx>
#include <vcl/imappoly.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/outlobj.hxx>
#include <editeng/editobj.hxx>
#include <svx/svdopath.hxx>
#include <svtools/htmlout.hxx>
#include <svtools/colorcfg.hxx>
#include <editeng/colritem.hxx>
#include <editeng/editeng.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/flditem.hxx>
#include <svl/style.hxx>
#include <editeng/frmdiritem.hxx>
#include <svx/svdoutl.hxx>
#include <svx/svdogrp.hxx>
#include <svx/svdotable.hxx>
#include <svx/ImageMapInfo.hxx>
#include <tools/urlobj.hxx>
#include <svtools/sfxecode.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <tools/debug.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <drawdoc.hxx>
#include <DrawDocShell.hxx>
#include "htmlpublishmode.hxx"
#include <Outliner.hxx>
#include <sdpage.hxx>
#include <strings.hrc>
#include <strings.hxx>
#include <anminfo.hxx>
#include <sdresid.hxx>
#include "buttonset.hxx"
Include dependency graph for htmlex.cxx:

Go to the source code of this file.

Classes

class  HtmlState
 

Macros

#define RESTOHTML(res)   StringToHTMLString(SdResId(res))
 
#define BTN_FIRST_0   0
 
#define BTN_FIRST_1   1
 
#define BTN_PREV_0   2
 
#define BTN_PREV_1   3
 
#define BTN_NEXT_0   4
 
#define BTN_NEXT_1   5
 
#define BTN_LAST_0   6
 
#define BTN_LAST_1   7
 
#define BTN_INDEX   8
 
#define BTN_TEXT   9
 
#define BTN_MORE   10
 
#define BTN_LESS   11
 

Functions

constexpr OUStringLiteral gaHTMLHeader (u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n" " \"http://www.w3.org/TR/html4/transitional.dtd\">\r\n" "<html>\r\n<head>\r\n")
 

Variables

const char *const pButtonNames []
 
constexpr OUStringLiteral gaHTMLExtension = u"" STR_HTMLEXP_DEFAULT_EXTENSION
 
constexpr OUStringLiteral JS_NavigateAbs
 
constexpr OUStringLiteral JS_NavigateRel
 
constexpr OUStringLiteral JS_ExpandOutline
 
constexpr OUStringLiteral JS_CollapseOutline
 
static const char * ASP_Scripts [] = { "common.inc", "webcast.asp", "show.asp", "savepic.asp", "poll.asp", "editpic.asp" }
 
static const char * PERL_Scripts [] = { "webcast.pl", "common.pl", "editpic.pl", "poll.pl", "savepic.pl", "show.pl" }
 

Macro Definition Documentation

◆ BTN_FIRST_0

#define BTN_FIRST_0   0

Definition at line 109 of file htmlex.cxx.

◆ BTN_FIRST_1

#define BTN_FIRST_1   1

Definition at line 110 of file htmlex.cxx.

◆ BTN_INDEX

#define BTN_INDEX   8

Definition at line 117 of file htmlex.cxx.

◆ BTN_LAST_0

#define BTN_LAST_0   6

Definition at line 115 of file htmlex.cxx.

◆ BTN_LAST_1

#define BTN_LAST_1   7

Definition at line 116 of file htmlex.cxx.

◆ BTN_LESS

#define BTN_LESS   11

Definition at line 120 of file htmlex.cxx.

◆ BTN_MORE

#define BTN_MORE   10

Definition at line 119 of file htmlex.cxx.

◆ BTN_NEXT_0

#define BTN_NEXT_0   4

Definition at line 113 of file htmlex.cxx.

◆ BTN_NEXT_1

#define BTN_NEXT_1   5

Definition at line 114 of file htmlex.cxx.

◆ BTN_PREV_0

#define BTN_PREV_0   2

Definition at line 111 of file htmlex.cxx.

◆ BTN_PREV_1

#define BTN_PREV_1   3

Definition at line 112 of file htmlex.cxx.

◆ BTN_TEXT

#define BTN_TEXT   9

Definition at line 118 of file htmlex.cxx.

◆ RESTOHTML

#define RESTOHTML (   res)    StringToHTMLString(SdResId(res))

Definition at line 91 of file htmlex.cxx.

Function Documentation

◆ gaHTMLHeader()

constexpr OUStringLiteral gaHTMLHeader ( u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n" " \"http://www.w3.org/TR/html4/transitional.dtd\">\r\n" "<html>\r\n<head>\r\n )
constexpr

Variable Documentation

◆ ASP_Scripts

const char* ASP_Scripts[] = { "common.inc", "webcast.asp", "show.asp", "savepic.asp", "poll.asp", "editpic.asp" }
static

Definition at line 2888 of file htmlex.cxx.

Referenced by HtmlExport::CreateASPScripts().

◆ gaHTMLExtension

constexpr OUStringLiteral gaHTMLExtension = u"" STR_HTMLEXP_DEFAULT_EXTENSION
constexpr

◆ JS_CollapseOutline

constexpr OUStringLiteral JS_CollapseOutline
constexpr
Initial value:
=
u"function CollapseOutline()\r\n"
"{\r\n"
" frames[\"navbar2\"].location.href = \"navbar3.$EXT\";\r\n"
" frames[\"outline\"].location.href = \"outline0.$EXT\";\r\n"
"}\r\n\r\n"
float u

Definition at line 2251 of file htmlex.cxx.

Referenced by HtmlExport::CreateFrames().

◆ JS_ExpandOutline

constexpr OUStringLiteral JS_ExpandOutline
constexpr
Initial value:
=
u"function ExpandOutline()\r\n"
"{\r\n"
" frames[\"navbar2\"].location.href = \"navbar4.$EXT\";\r\n"
" frames[\"outline\"].location.href = \"outline1.$EXT\";\r\n"
"}\r\n\r\n"

Definition at line 2244 of file htmlex.cxx.

Referenced by HtmlExport::CreateFrames().

◆ JS_NavigateAbs

constexpr OUStringLiteral JS_NavigateAbs
constexpr
Initial value:
=
u"function NavigateAbs( nPage )\r\n"
"{\r\n"
" frames[\"show\"].location.href = \"img\" + nPage + \".$EXT\";\r\n"
" //frames[\"notes\"].location.href = \"note\" + nPage + \".$EXT\";\r\n"
" nCurrentPage = nPage;\r\n"
" if(nCurrentPage==0)\r\n"
" {\r\n"
" frames[\"navbar1\"].location.href = \"navbar0.$EXT\";\r\n"
" }\r\n"
" else if(nCurrentPage==nPageCount-1)\r\n"
" {\r\n"
" frames[\"navbar1\"].location.href = \"navbar2.$EXT\";\r\n"
" }\r\n"
" else\r\n"
" {\r\n"
" frames[\"navbar1\"].location.href = \"navbar1.$EXT\";\r\n"
" }\r\n"
"}\r\n\r\n"

Definition at line 2214 of file htmlex.cxx.

Referenced by HtmlExport::CreateFrames().

◆ JS_NavigateRel

constexpr OUStringLiteral JS_NavigateRel
constexpr
Initial value:
=
u"function NavigateRel( nDelta )\r\n"
"{\r\n"
" var nPage = parseInt(nCurrentPage) + parseInt(nDelta);\r\n"
" if( (nPage >= 0) && (nPage < nPageCount) )\r\n"
" {\r\n"
" NavigateAbs( nPage );\r\n"
" }\r\n"
"}\r\n\r\n"

Definition at line 2234 of file htmlex.cxx.

Referenced by HtmlExport::CreateFrames().

◆ pButtonNames

const char* const pButtonNames[]
Initial value:
=
{
"first-inactive.png",
"first.png",
"left-inactive.png",
"left.png",
"right-inactive.png",
"right.png",
"last-inactive.png",
"last.png",
"home.png",
"text.png",
"expand.png",
"collapse.png",
}

Definition at line 93 of file htmlex.cxx.

Referenced by HtmlExport::CreateBitmaps(), HtmlExport::GetButtonName(), and SdPublishingDlg::LoadPreviewButtons().

◆ PERL_Scripts

const char* PERL_Scripts[] = { "webcast.pl", "common.pl", "editpic.pl", "poll.pl", "savepic.pl", "show.pl" }
static

Definition at line 2904 of file htmlex.cxx.

Referenced by HtmlExport::CreatePERLScripts().