LibreOffice Module sw (master) 1
Classes | Functions | Variables
htmlform.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include <hintids.hxx>
#include <comphelper/documentinfo.hxx>
#include <comphelper/string.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <tools/UnitConversion.hxx>
#include <o3tl/string_view.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <vcl/unohelp.hxx>
#include <svtools/htmlkywd.hxx>
#include <svtools/htmltokn.h>
#include <svl/urihelper.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 <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/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 "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
 

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, std::u16string_view rValue, std::vector< OUString > &rUnoMacroTable, std::vector< OUString > &rUnoMacroParamTable)
 

Variables

const sal_uInt16 TABINDEX_MIN = 0
 
const sal_uInt16 TABINDEX_MAX = 32767
 
HTMLOptionEnum< FormSubmitMethod > const aHTMLFormMethodTable []
 
HTMLOptionEnum< FormSubmitEncoding > const aHTMLFormEncTypeTable []
 
HTMLOptionEnum< HTMLWordWrapMode > const aHTMLTextAreaWrapTable []
 
static SvMacroItemId aEventTypeTable []
 
const char * aEventListenerTable []
 
const char * aEventMethodTable []
 
const char * aEventSDOptionTable []
 
const char * aEventOptionTable []
 

Function Documentation

◆ lcl_html_getEvents()

static void lcl_html_getEvents ( const OUString &  rOption,
std::u16string_view  rValue,
std::vector< OUString > &  rUnoMacroTable,
std::vector< OUString > &  rUnoMacroParamTable 
)
static

◆ lcl_html_setEvents()

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

◆ lcl_html_setFixedFontProperty()

static void lcl_html_setFixedFontProperty ( const uno::Reference< beans::XPropertySet > &  rPropSet)
static

Variable Documentation

◆ aEventListenerTable

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

Definition at line 139 of file htmlform.cxx.

Referenced by lcl_html_outEvents(), and lcl_html_setEvents().

◆ aEventMethodTable

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

Definition at line 151 of file htmlform.cxx.

Referenced by lcl_html_outEvents(), and lcl_html_setEvents().

◆ aEventOptionTable

const char* aEventOptionTable[]
Initial value:

Definition at line 175 of file htmlform.cxx.

Referenced by lcl_html_outEvents().

◆ aEventSDOptionTable

const char* aEventSDOptionTable[]
Initial value:

Definition at line 163 of file htmlform.cxx.

Referenced by lcl_html_outEvents().

◆ aEventTypeTable

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 126 of file htmlform.cxx.

Referenced by lcl_html_setEvents().

◆ aHTMLFormEncTypeTable

HTMLOptionEnum<FormSubmitEncoding> const aHTMLFormEncTypeTable[]
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_url
#define OOO_STRING_SVTOOLS_HTML_ET_text
#define OOO_STRING_SVTOOLS_HTML_ET_multipart

Definition at line 102 of file htmlform.cxx.

Referenced by SwHTMLParser::NewForm().

◆ aHTMLFormMethodTable

HTMLOptionEnum<FormSubmitMethod> const aHTMLFormMethodTable[]
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_get
#define OOO_STRING_SVTOOLS_HTML_METHOD_post

Definition at line 95 of file htmlform.cxx.

Referenced by SwHTMLParser::NewForm().

◆ aHTMLTextAreaWrapTable

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

Definition at line 116 of file htmlform.cxx.

Referenced by SwHTMLParser::NewTextArea().

◆ TABINDEX_MAX

const sal_uInt16 TABINDEX_MAX = 32767

◆ TABINDEX_MIN

const sal_uInt16 TABINDEX_MIN = 0