LibreOffice Module sw (master) 1
Functions | Variables
htmlforw.cxx File Reference
#include <com/sun/star/form/FormSubmitEncoding.hpp>
#include <com/sun/star/form/FormSubmitMethod.hpp>
#include <com/sun/star/form/FormButtonType.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/script/XEventAttacherManager.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/form/XFormsSupplier.hpp>
#include <com/sun/star/form/XForm.hpp>
#include <com/sun/star/form/FormComponentType.hpp>
#include <com/sun/star/awt/XTextLayoutConstrains.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <hintids.hxx>
#include <o3tl/any.hxx>
#include <rtl/math.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <svl/macitem.hxx>
#include <svtools/htmlout.hxx>
#include <svtools/htmlkywd.hxx>
#include <svl/urihelper.hxx>
#include <vcl/unohelp.hxx>
#include <svx/svdouno.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <osl/diagnose.h>
#include <docsh.hxx>
#include <fmtanchr.hxx>
#include <viewsh.hxx>
#include <pam.hxx>
#include <doc.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include "wrthtml.hxx"
#include "htmlfly.hxx"
#include "htmlform.hxx"
#include <frmfmt.hxx>
#include <frameformats.hxx>
#include <memory>
Include dependency graph for htmlforw.cxx:

Go to the source code of this file.

Functions

static void lcl_html_outEvents (SvStream &rStrm, const uno::Reference< form::XFormComponent > &rFormComp, bool bCfgStarBasic)
 
static bool lcl_html_isHTMLControl (sal_Int16 nClassId)
 
static void GetControlSize (const SdrUnoObj &rFormObj, Size &rSz, SwDoc *pDoc)
 
SwHTMLWriterOutHTML_DrawFrameFormatAsControl (SwHTMLWriter &rWrt, const SwDrawFrameFormat &rFormat, const SdrUnoObj &rFormObj, bool bInCntnr)
 
static void AddControl (HTMLControls &rControls, const SdrUnoObj &rFormObj, SwNodeOffset nNodeIdx)
 Find out if a format belongs to a control and if yes return its form. More...
 

Variables

const HtmlFrmOpts HTML_FRMOPTS_CONTROL
 
const HtmlFrmOpts HTML_FRMOPTS_CONTROL_CSS1
 
const HtmlFrmOpts HTML_FRMOPTS_IMG_CONTROL
 
const HtmlFrmOpts HTML_FRMOPTS_IMG_CONTROL_CSS1
 

Function Documentation

◆ AddControl()

static void AddControl ( HTMLControls rControls,
const SdrUnoObj rFormObj,
SwNodeOffset  nNodeIdx 
)
static

Find out if a format belongs to a control and if yes return its form.

Definition at line 1269 of file htmlforw.cxx.

References SdrUnoObj::GetUnoControlModel(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), and nCount.

Referenced by SwHTMLWriter::GetControls().

◆ GetControlSize()

static void GetControlSize ( const SdrUnoObj rFormObj,
Size rSz,
SwDoc pDoc 
)
static

◆ lcl_html_isHTMLControl()

static bool lcl_html_isHTMLControl ( sal_Int16  nClassId)
static

◆ lcl_html_outEvents()

static void lcl_html_outEvents ( SvStream rStrm,
const uno::Reference< form::XFormComponent > &  rFormComp,
bool  bCfgStarBasic 
)
static

◆ OutHTML_DrawFrameFormatAsControl()

SwHTMLWriter & OutHTML_DrawFrameFormatAsControl ( SwHTMLWriter rWrt,
const SwDrawFrameFormat rFormat,
const SdrUnoObj rFormObj,
bool  bInCntnr 
)

Definition at line 673 of file htmlforw.cxx.

References ColorTransparency, vcl::unohelper::ConvertFontWeight(), convertLineEnd(), SwHTMLWriter::DecIndentLevel(), eType, FAMILY_DONTKNOW, SwDoc::GetAttrPool(), Writer::GetBaseURL(), GetControlSize(), Application::GetDefaultDevice(), OutputDevice::GetDefaultFont(), vcl::Font::GetFamilyName(), SdrTextObj::GetLogicRect(), SwHTMLWriter::GetNamespace(), tools::Rectangle::GetSize(), SdrUnoObj::GetUnoControlModel(), Size::Height(), HTML_FRMOPTS_CONTROL, HTML_FRMOPTS_CONTROL_CSS1, HTML_FRMOPTS_IMG_CONTROL, HTML_FRMOPTS_IMG_CONTROL_CSS1, HTMLMODE_ABS_POS_DRAW, i, SwHTMLWriter::IncIndentLevel(), SwHTMLWriter::IsHTMLMode(), ITALIC_DONTKNOW, ITALIC_NONE, LANGUAGE_ENGLISH_US, lcl_html_outEvents(), LINEEND_LF, LINESTYLE_DONTKNOW, LINESTYLE_NONE, OutputDevice::LogicToPixel(), SwHTMLWriter::m_bCfgOutStyles, SwHTMLWriter::m_bCfgStarBasic, SwHTMLWriter::m_bLFPossible, SwHTMLWriter::m_nFormCntrlCnt, Writer::m_pDoc, SwHTMLWriter::mxFormComps, n, NONE, nPos, OOO_STRING_SVTOOLS_HTML_input, OOO_STRING_SVTOOLS_HTML_IT_button, OOO_STRING_SVTOOLS_HTML_IT_checkbox, OOO_STRING_SVTOOLS_HTML_IT_file, OOO_STRING_SVTOOLS_HTML_IT_image, OOO_STRING_SVTOOLS_HTML_IT_password, OOO_STRING_SVTOOLS_HTML_IT_radio, OOO_STRING_SVTOOLS_HTML_IT_reset, OOO_STRING_SVTOOLS_HTML_IT_submit, OOO_STRING_SVTOOLS_HTML_IT_text, OOO_STRING_SVTOOLS_HTML_O_checked, OOO_STRING_SVTOOLS_HTML_O_cols, OOO_STRING_SVTOOLS_HTML_O_disabled, OOO_STRING_SVTOOLS_HTML_O_height, OOO_STRING_SVTOOLS_HTML_O_maxlength, OOO_STRING_SVTOOLS_HTML_O_multiple, OOO_STRING_SVTOOLS_HTML_O_name, OOO_STRING_SVTOOLS_HTML_O_rows, OOO_STRING_SVTOOLS_HTML_O_selected, OOO_STRING_SVTOOLS_HTML_O_size, OOO_STRING_SVTOOLS_HTML_O_src, OOO_STRING_SVTOOLS_HTML_O_tabindex, OOO_STRING_SVTOOLS_HTML_O_type, OOO_STRING_SVTOOLS_HTML_O_value, OOO_STRING_SVTOOLS_HTML_O_width, OOO_STRING_SVTOOLS_HTML_O_wrap, OOO_STRING_SVTOOLS_HTML_on, OOO_STRING_SVTOOLS_HTML_option, OOO_STRING_SVTOOLS_HTML_select, OOO_STRING_SVTOOLS_HTML_textarea, OOO_STRING_SVTOOLS_HTML_WW_hard, OOO_STRING_SVTOOLS_HTML_WW_soft, HTMLOutFuncs::Out_AsciiTag(), HTMLOutFuncs::Out_String(), SwHTMLWriter::OutCSS1_FrameFormatOptions(), SwHTMLWriter::OutFrameFormatOptions(), SwHTMLWriter::OutHiddenControls(), SwHTMLWriter::OutNewLine(), PITCH_DONTKNOW, SfxItemSet::Put(), pValues, RES_CHRATR_BACKGROUND(), RES_CHRATR_COLOR(), RES_CHRATR_CROSSEDOUT(), RES_CHRATR_FONT(), RES_CHRATR_FONTSIZE(), RES_CHRATR_POSTURE(), RES_CHRATR_UNDERLINE(), RES_CHRATR_WEIGHT(), SAL_NEWLINE_STRING, Size::setHeight(), Size::setWidth(), URIHelper::simpleNormalizedMakeRelative(), STRIKEOUT_DONTKNOW, STRIKEOUT_NONE, Writer::Strm(), t, TRISTATE_FALSE, o3tl::tryAccess(), o3tl::tryAccess< bool >(), o3tl::tryAccess< float >(), o3tl::tryAccess< sal_Int16 >(), o3tl::tryAccess< sal_Int32 >(), TYPE_CHECKBOX, TYPE_IMAGE, TYPE_NONE, TYPE_TEXT, WEIGHT_DONTKNOW, WEIGHT_NORMAL, Size::Width(), SvStream::WriteChar(), SvStream::WriteOString(), and x.

Referenced by SwHTMLWriter::OutFrameFormat().

Variable Documentation

◆ HTML_FRMOPTS_CONTROL

const HtmlFrmOpts HTML_FRMOPTS_CONTROL
Initial value:

Definition at line 67 of file htmlforw.cxx.

Referenced by OutHTML_DrawFrameFormatAsControl().

◆ HTML_FRMOPTS_CONTROL_CSS1

const HtmlFrmOpts HTML_FRMOPTS_CONTROL_CSS1

◆ HTML_FRMOPTS_IMG_CONTROL

const HtmlFrmOpts HTML_FRMOPTS_IMG_CONTROL
Initial value:

Definition at line 74 of file htmlforw.cxx.

Referenced by OutHTML_DrawFrameFormatAsControl().

◆ HTML_FRMOPTS_IMG_CONTROL_CSS1

const HtmlFrmOpts HTML_FRMOPTS_IMG_CONTROL_CSS1
Initial value:

Definition at line 77 of file htmlforw.cxx.

Referenced by OutHTML_DrawFrameFormatAsControl().