LibreOffice Module sw (master)  1
Classes | Enumerations | Functions | Variables
htmlform.cxx File Reference
#include <hintids.hxx>
#include <comphelper/documentinfo.hxx>
#include <comphelper/string.hxx>
#include <vcl/svapp.hxx>
#include <vcl/unohelp.hxx>
#include <svtools/htmlkywd.hxx>
#include <svtools/htmltokn.h>
#include <svl/urihelper.hxx>
#include <sfx2/request.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/event.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/viewfrm.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <svx/svdouno.hxx>
#include <svx/fmglob.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/form/ListSourceType.hpp>
#include <com/sun/star/form/FormButtonType.hpp>
#include <com/sun/star/form/FormSubmitEncoding.hpp>
#include <com/sun/star/form/FormSubmitMethod.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/script/XEventAttacherManager.hpp>
#include <com/sun/star/text/WrapTextMode.hpp>
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/TextContentAnchorType.hpp>
#include <com/sun/star/container/XIndexContainer.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
#include <com/sun/star/awt/XTextLayoutConstrains.hpp>
#include <com/sun/star/awt/XLayoutConstrains.hpp>
#include <com/sun/star/awt/XImageConsumer.hpp>
#include <com/sun/star/awt/ImageStatus.hpp>
#include <com/sun/star/form/XImageProducerSupplier.hpp>
#include <com/sun/star/lang/ServiceNotRegisteredException.hpp>
#include <com/sun/star/form/XForm.hpp>
#include <doc.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentUndoRedo.hxx>
#include <pam.hxx>
#include <swtable.hxx>
#include <fmtanchr.hxx>
#include <htmltbl.hxx>
#include <docsh.hxx>
#include <viewsh.hxx>
#include <unodraw.hxx>
#include <unotextrange.hxx>
#include <dcontact.hxx>
#include "swcss1.hxx"
#include "swhtml.hxx"
#include "htmlform.hxx"
Include dependency graph for htmlform.cxx:

Go to the source code of this file.

Classes

class  SwHTMLForm_Impl
 

Enumerations

enum  HTMLWordWrapMode
 

Functions

static void lcl_html_setFixedFontProperty (const uno::Reference< beans::XPropertySet > &rPropSet)
 
static bool lcl_html_setEvents (const uno::Reference< script::XEventAttacherManager > &rEvtMn, sal_uInt32 nPos, const SvxMacroTableDtor &rMacroTable, const std::vector< OUString > &rUnoMacroTable, const std::vector< OUString > &rUnoMacroParamTable, const OUString &rType)
 
static void lcl_html_getEvents (const OUString &rOption, const OUString &rValue, std::vector< OUString > &rUnoMacroTable, std::vector< OUString > &rUnoMacroParamTable)
 

Variables

const sal_uInt16 TABINDEX_MIN = 0
 
const sal_uInt16 TABINDEX_MAX = 32767
 
static HTMLOptionEnum< FormSubmitMethod > const aHTMLFormMethodTable []
 
static HTMLOptionEnum< FormSubmitEncoding > const aHTMLFormEncTypeTable []
 
static HTMLOptionEnum< HTMLWordWrapMode > const aHTMLTextAreaWrapTable []
 
static SvMacroItemId aEventTypeTable []
 
const sal_CharaEventListenerTable []
 
const sal_CharaEventMethodTable []
 
const sal_CharaEventSDOptionTable []
 
const sal_CharaEventOptionTable []
 

Enumeration Type Documentation

Definition at line 108 of file htmlform.cxx.

Function Documentation

static void lcl_html_getEvents ( const OUString &  rOption,
const OUString &  rValue,
std::vector< OUString > &  rUnoMacroTable,
std::vector< OUString > &  rUnoMacroParamTable 
)
static
static bool lcl_html_setEvents ( const uno::Reference< script::XEventAttacherManager > &  rEvtMn,
sal_uInt32  nPos,
const SvxMacroTableDtor rMacroTable,
const std::vector< OUString > &  rUnoMacroTable,
const std::vector< OUString > &  rUnoMacroParamTable,
const OUString &  rType 
)
static
static void lcl_html_setFixedFontProperty ( const uno::Reference< beans::XPropertySet > &  rPropSet)
static

Variable Documentation

const sal_Char* aEventListenerTable[]
Initial value:
=
{
"XSubmitListener",
"XResetListener",
"XFocusListener",
"XFocusListener",
"XApproveActionListener",
"XItemListener",
"XChangeListener",
""
}

Definition at line 135 of file htmlform.cxx.

Referenced by lcl_html_outEvents(), and lcl_html_setEvents().

const sal_Char* aEventMethodTable[]
Initial value:
=
{
"approveSubmit",
"approveReset",
"focusGained",
"focusLost",
"approveAction",
"itemStateChanged",
"changed",
""
}

Definition at line 147 of file htmlform.cxx.

Referenced by lcl_html_outEvents(), and lcl_html_setEvents().

const sal_Char* aEventOptionTable[]
Initial value:
=
{
OOO_STRING_SVTOOLS_HTML_O_onclick,
nullptr
}
#define OOO_STRING_SVTOOLS_HTML_O_onsubmit
#define OOO_STRING_SVTOOLS_HTML_O_onblur
#define OOO_STRING_SVTOOLS_HTML_O_onchange
#define OOO_STRING_SVTOOLS_HTML_O_onclick
#define OOO_STRING_SVTOOLS_HTML_O_onreset
#define OOO_STRING_SVTOOLS_HTML_O_onfocus

Definition at line 171 of file htmlform.cxx.

Referenced by lcl_html_outEvents().

const sal_Char* aEventSDOptionTable[]
Initial value:
=
{
OOO_STRING_SVTOOLS_HTML_O_SDonclick,
nullptr
}
#define OOO_STRING_SVTOOLS_HTML_O_SDonsubmit
#define OOO_STRING_SVTOOLS_HTML_O_SDonreset
#define OOO_STRING_SVTOOLS_HTML_O_SDonchange
#define OOO_STRING_SVTOOLS_HTML_O_SDonblur
#define OOO_STRING_SVTOOLS_HTML_O_SDonfocus
#define OOO_STRING_SVTOOLS_HTML_O_SDonclick

Definition at line 159 of file htmlform.cxx.

Referenced by lcl_html_outEvents().

SvMacroItemId aEventTypeTable[]
static
Initial value:
=
{
SvMacroItemId::HtmlOnSubmitForm,
SvMacroItemId::HtmlOnResetForm,
SvMacroItemId::HtmlOnGetFocus,
SvMacroItemId::HtmlOnLoseFocus,
SvMacroItemId::HtmlOnClick,
SvMacroItemId::HtmlOnClickItem,
SvMacroItemId::HtmlOnChange,
SvMacroItemId::HtmlOnSelect,
SvMacroItemId::NONE
}

Definition at line 122 of file htmlform.cxx.

Referenced by lcl_html_setEvents().

HTMLOptionEnum<FormSubmitEncoding> const aHTMLFormEncTypeTable[]
static
Initial value:
=
{
{ OOO_STRING_SVTOOLS_HTML_ET_url, FormSubmitEncoding_URL },
{ OOO_STRING_SVTOOLS_HTML_ET_multipart, FormSubmitEncoding_MULTIPART },
{ OOO_STRING_SVTOOLS_HTML_ET_text, FormSubmitEncoding_TEXT },
{ nullptr, FormSubmitEncoding(0) }
}
#define OOO_STRING_SVTOOLS_HTML_ET_multipart
#define OOO_STRING_SVTOOLS_HTML_ET_url
#define OOO_STRING_SVTOOLS_HTML_ET_text

Definition at line 98 of file htmlform.cxx.

HTMLOptionEnum<FormSubmitMethod> const aHTMLFormMethodTable[]
static
Initial value:
=
{
{ OOO_STRING_SVTOOLS_HTML_METHOD_get, FormSubmitMethod_GET },
{ OOO_STRING_SVTOOLS_HTML_METHOD_post, FormSubmitMethod_POST },
{ nullptr, FormSubmitMethod(0) }
}
#define OOO_STRING_SVTOOLS_HTML_METHOD_post
#define OOO_STRING_SVTOOLS_HTML_METHOD_get

Definition at line 91 of file htmlform.cxx.

HTMLOptionEnum<HTMLWordWrapMode> const aHTMLTextAreaWrapTable[]
static
Initial value:
=
{
{ nullptr, HTMLWordWrapMode(0) }
}
#define OOO_STRING_SVTOOLS_HTML_WW_off
#define OOO_STRING_SVTOOLS_HTML_WW_soft
#define OOO_STRING_SVTOOLS_HTML_WW_virtual
#define OOO_STRING_SVTOOLS_HTML_WW_physical
#define OOO_STRING_SVTOOLS_HTML_WW_hard
HTMLWordWrapMode
Definition: htmlform.cxx:108

Definition at line 112 of file htmlform.cxx.

const sal_uInt16 TABINDEX_MAX = 32767
const sal_uInt16 TABINDEX_MIN = 0