LibreOffice Module sw (master)  1
Functions | Variables
htmlforw.cxx File Reference
#include <com/sun/star/frame/XModel.hpp>
#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/script/XEventAttacher.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 <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
#include <svl/macitem.hxx>
#include <svtools/htmlout.hxx>
#include <svtools/htmltokn.h>
#include <svtools/htmlkywd.hxx>
#include <svl/urihelper.hxx>
#include <vcl/unohelp.hxx>
#include <svx/svdouno.hxx>
#include <svx/fmglob.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 <docsh.hxx>
#include <fmtanchr.hxx>
#include <docary.hxx>
#include <viewsh.hxx>
#include <pam.hxx>
#include <doc.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <ndtxt.hxx>
#include <flypos.hxx>
#include "wrthtml.hxx"
#include "htmlfly.hxx"
#include "htmlform.hxx"
#include <frmfmt.hxx>
#include <rtl/strbuf.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, rtl_TextEncoding eDestEnc, OUString *pNonConvertableChars)
 
static bool lcl_html_isHTMLControl (sal_Int16 nClassId)
 
static void GetControlSize (const SdrUnoObj &rFormObj, Size &rSz, SwDoc *pDoc)
 
WriterOutHTML_DrawFrameFormatAsControl (Writer &rWrt, const SwDrawFrameFormat &rFormat, const SdrUnoObj &rFormObj, bool bInCntnr)
 
static void AddControl (HTMLControls &rControls, const SdrUnoObj &rFormObj, sal_uInt32 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

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

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

Definition at line 1290 of file htmlforw.cxx.

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

Referenced by SwHTMLWriter::GetControls().

static void GetControlSize ( const SdrUnoObj rFormObj,
Size rSz,
SwDoc pDoc 
)
static
static bool lcl_html_isHTMLControl ( sal_Int16  nClassId)
static
static void lcl_html_outEvents ( SvStream rStrm,
const uno::Reference< form::XFormComponent > &  rFormComp,
bool  bCfgStarBasic,
rtl_TextEncoding  eDestEnc,
OUString *  pNonConvertableChars 
)
static
Writer& OutHTML_DrawFrameFormatAsControl ( Writer rWrt,
const SwDrawFrameFormat rFormat,
const SdrUnoObj rFormObj,
bool  bInCntnr 
)

Definition at line 685 of file htmlforw.cxx.

References vcl::unohelper::ConvertFontWeight(), convertLineEnd(), SwHTMLWriter::DecIndentLevel(), eType, FAMILY_DONTKNOW, cppu::UnoType< class >::get(), 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_aNonConvertableCharacters, SwHTMLWriter::m_bCfgOutStyles, SwHTMLWriter::m_bCfgStarBasic, SwHTMLWriter::m_bLFPossible, SwHTMLWriter::m_eDestEnc, SwHTMLWriter::m_nFormCntrlCnt, Writer::m_pDoc, SwHTMLWriter::mxFormComps, 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, RES_CHRATR_BACKGROUND, RES_CHRATR_BEGIN, RES_CHRATR_COLOR, RES_CHRATR_CROSSEDOUT, RES_CHRATR_END, RES_CHRATR_FONT, RES_CHRATR_FONTSIZE, RES_CHRATR_POSTURE, RES_CHRATR_UNDERLINE, RES_CHRATR_WEIGHT, SAL_NEWLINE_STRING, 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::WriteCharPtr(), SvStream::WriteOString(), and x.

Referenced by SwHTMLWriter::OutFrameFormat().

Variable Documentation

const HtmlFrmOpts HTML_FRMOPTS_CONTROL
Initial value:

Definition at line 71 of file htmlforw.cxx.

Referenced by OutHTML_DrawFrameFormatAsControl().

const HtmlFrmOpts HTML_FRMOPTS_CONTROL_CSS1
const HtmlFrmOpts HTML_FRMOPTS_IMG_CONTROL
const HtmlFrmOpts HTML_FRMOPTS_IMG_CONTROL_CSS1