20#include <com/sun/star/text/HoriOrientation.hpp>
21#include <com/sun/star/text/VertOrientation.hpp>
22#include <com/sun/star/text/RelOrientation.hpp>
23#include <com/sun/star/beans/XPropertySet.hpp>
43#include <osl/diagnose.h>
141 bool bInCntnr,
bool bPNGFallback );
151 {
nullptr,
nullptr, SvMacroItemId::NONE }
158 {
nullptr,
nullptr, SvMacroItemId::NONE }
216 if( pFormatCol && pFormatCol->
GetNumCols() > 1 )
226 if( nTableEnd+1 == nEnd )
231 else if( nTableEnd+2 == nEnd )
242 if( nStt==nEnd-1 && !pTextNd->
Len() )
249 SwNodeOffset nIdx = pHTMLPosFlyFrame->GetNdIndex().GetIndex();
250 bEmpty = (nIdx != nStt) && (nIdx != nStt-1);
251 if( !bEmpty || nIdx > nStt )
260 if(
GPOS_NONE != aBrush->GetGraphicPos() ||
285 return static_cast< sal_uInt16
>(
eType);
291 "number of browser configurations has changed" );
300 const SwNode *pAnchorNode;
309 case RndStdIds::FLY_AT_PAGE:
310 case RndStdIds::FLY_AT_FLY:
314 case RndStdIds::FLY_AT_PARA:
318 if( text::RelOrientation::FRAME == eHoriRel &&
335 case RndStdIds::FLY_AT_CHAR:
336 if( text::RelOrientation::FRAME == eHoriRel || text::RelOrientation::PRINT_AREA == eHoriRel )
353 bool bFlysLeft =
false;
357 bool bRestart =
true;
360 bFlysLeft = bRestart =
false;
416 OString aContainerStr;
455 OSL_ENSURE( aContainerStr.isEmpty(),
"Table: Container is not supposed to be here" );
469 OSL_ENSURE( aContainerStr.isEmpty(),
"Div: Container is not supposed to be here" );
476 OSL_ENSURE( aContainerStr.isEmpty(),
"Spacer: Container is not supposed to be here" );
482 !aContainerStr.isEmpty() );
488 OSL_ENSURE( aContainerStr.isEmpty(),
"Marquee: Container is not supposed to be here" );
510 const OUString& rAlternateText,
519 !rFrameFormat.
GetName().isEmpty() )
523 sOut.append(OString::Concat(
" ") + pStr +
"=\"");
550 const char *pStr =
nullptr;
553 ((RndStdIds::FLY_AT_PARA == eAnchorId) || (RndStdIds::FLY_AT_CHAR == eAnchorId)) )
563 pStr = text::HoriOrientation::RIGHT == rHoriOri.
GetHoriOrient()
571 (RndStdIds::FLY_AS_CHAR == eAnchorId) ) &&
577 case text::VertOrientation::CHAR_TOP:
579 case text::VertOrientation::LINE_CENTER:
582 case text::VertOrientation::LINE_BOTTOM:
595 Size aTwipSpc( 0, 0 );
626 if( aPixelSpc.
Width() )
629 "=\"" + OString::number(aPixelSpc.
Width()) +
"\"");
635 "=\"" + OString::number(aPixelSpc.
Height()) +
"\"");
674 Size aTwipSz( (nPercentWidth ? 0
679 OSL_ENSURE( aTwipSz.
Width() >= 0 && aTwipSz.
Height() >= 0,
"Frame size minus spacing < 0!!!???" );
680 if( aTwipSz.
Width() < 0 )
682 if( aTwipSz.
Height() < 0 )
685 Size aPixelSz( 0, 0 );
699 ((nPercentWidth && nPercentWidth!=255) || aPixelSz.
Width()) )
703 sOut.append(OString::number(
static_cast<sal_Int32
>(nPercentWidth)) +
"%");
705 sOut.append(
static_cast<sal_Int32
>(aPixelSz.
Width()));
710 ((nPercentHeight && nPercentHeight!=255) || aPixelSz.
Height()) )
714 sOut.append(OString::number(
static_cast<sal_Int32
>(nPercentHeight)) +
"%");
716 sOut.append(
static_cast<sal_Int32
>(aPixelSz.
Height()));
737 css::text::WrapTextMode eSurround = pSurround->
GetSurround();
741 case text::HoriOrientation::RIGHT:
745 case css::text::WrapTextMode_NONE:
746 case css::text::WrapTextMode_RIGHT:
749 case css::text::WrapTextMode_LEFT:
750 case css::text::WrapTextMode_PARALLEL:
766 case css::text::WrapTextMode_NONE:
767 case css::text::WrapTextMode_LEFT:
770 case css::text::WrapTextMode_RIGHT:
771 case css::text::WrapTextMode_PARALLEL:
787 "=\"" + OString::Concat(pStr) +
"\">");
788 sRetEndTags = sOut.makeStringAndClear();
801 !rFrameFormat.
GetName().isEmpty() && !bReplacement)
816 if( (nFrameOptions &
HtmlFrmOpts::Alt) && !rAlternateText.empty() && !bReplacement )
822 const char* pAlignString =
nullptr;
825 ((RndStdIds::FLY_AT_PARA == eAnchorId) || (RndStdIds::FLY_AT_CHAR == eAnchorId)) && !bReplacement)
832 pAlignString = text::HoriOrientation::RIGHT == rHoriOri.
GetHoriOrient()
840 (RndStdIds::FLY_AS_CHAR == eAnchorId) ) &&
846 case text::VertOrientation::CHAR_TOP:
848 case text::VertOrientation::LINE_CENTER:
851 case text::VertOrientation::LINE_BOTTOM:
857 if (pAlignString && !bReplacement)
863 Size aTwipSpc( 0, 0 );
894 if (aPixelSpc.
Width())
930 std::optional<SwFormatFrameSize> aFrameSize;
937 aFrameSize.emplace();
942 pFSItem = &*aFrameSize;
953 Size aTwipSz( (nPercentWidth && nPercentWidth != 255 ? 0
955 (nPercentHeight && nPercentHeight != 255 ? 0
958 OSL_ENSURE( aTwipSz.
Width() >= 0 && aTwipSz.
Height() >= 0,
"Frame size minus spacing < 0!!!???" );
959 if( aTwipSz.
Width() < 0 )
961 if( aTwipSz.
Height() < 0 )
964 Size aPixelSz( 0, 0 );
978 ((nPercentWidth && nPercentWidth!=255) || aPixelSz.
Width()) )
983 if (nPercentWidth == 255)
991 sWidth = OString::number(
static_cast<sal_Int32
>(aPixelSz.
Width()));
996 sWidth = OString::number(
static_cast<sal_Int32
>(nPercentWidth)) +
"%";
1000 sWidth = OString::number(
static_cast<sal_Int32
>(aPixelSz.
Width()));
1001 if (!
mbXHTML || sWidth !=
"auto")
1008 ((nPercentHeight && nPercentHeight!=255) || aPixelSz.
Height()) )
1013 if (nPercentHeight == 255)
1021 sHeight = OString::number(
static_cast<sal_Int32
>(aPixelSz.
Height()));
1026 sHeight = OString::number(
static_cast<sal_Int32
>(nPercentHeight)) +
"%";
1030 sHeight = OString::number(
static_cast<sal_Int32
>(aPixelSz.
Height()));
1031 if (!
mbXHTML || sHeight !=
"auto")
1044 if (RndStdIds::FLY_AT_PARA != nAnchorId && RndStdIds::FLY_AT_CHAR != nAnchorId)
1050 const char* pSurroundString =
nullptr;
1053 css::text::WrapTextMode eSurround = pSurround->
GetSurround();
1057 case text::HoriOrientation::RIGHT:
1061 case css::text::WrapTextMode_NONE:
1062 case css::text::WrapTextMode_RIGHT:
1065 case css::text::WrapTextMode_LEFT:
1066 case css::text::WrapTextMode_PARALLEL:
1082 case css::text::WrapTextMode_NONE:
1083 case css::text::WrapTextMode_LEFT:
1086 case css::text::WrapTextMode_RIGHT:
1087 case css::text::WrapTextMode_PARALLEL:
1098 if (pSurroundString)
1119 const ImageMap* pIMap = pAltImgMap;
1120 if( !pIMap && pURLItem )
1122 pIMap = pURLItem->
GetMap();
1130 if (!aIMapName.isEmpty())
1131 aNameBase = aIMapName;
1135 if (aIMapName.isEmpty())
1136 aIMapName = aNameBase + OUString::number(rWrt.
m_nImgMapCnt);
1146 if (aIMapName.equalsIgnoreAsciiCase(rImgMapName))
1155 aIMapName = aNameBase + OUString::number( rWrt.
m_nImgMapCnt );
1159 bool bScale =
false;
1171 OSL_ENSURE( nWidth > 0,
"Are there any graphics that are 0 twip wide!?" );
1175 if (rRealSize.
Width() != nWidth)
1188 OSL_ENSURE( nHeight > 0,
"Are there any graphics that are 0 twip high!?" );
1192 if (rRealSize.
Height() != nHeight)
1201 OString aIndMap, aIndArea;
1202 const char *pIndArea =
nullptr, *pIndMap =
nullptr;
1209 pIndArea = aIndArea.getStr();
1210 pIndMap = aIndMap.getStr();
1216 aScaledIMap.Scale(aScaleX, aScaleY);
1220 SAL_NEWLINE_STRING, pIndArea, pIndMap );
1227 SAL_NEWLINE_STRING, pIndArea, pIndMap );
1236 const OUString& rGraphicURL,
1237 Graphic const & rGraphic,
const OUString& rAlternateText,
1239 const char *pMarkType,
1241 const OUString& rMimeType )
1256 OUString aGraphicURL( rGraphicURL );
1263 OUString aIMapName = lclWriteOutImap(rWrt, rItemSet, rFrameFormat, rRealSize, pAltImgMap, pURLItem);
1270 if( pMarkType && !rFrameFormat.
GetName().isEmpty() )
1278 if (pURLItem || pMacItem)
1286 aMapURL = pURLItem->
GetURL();
1293 if( !aMapURL.isEmpty() || !
aName.isEmpty() || !aTarget.isEmpty() || bEvents )
1298 if( !aMapURL.isEmpty() || bEvents )
1303 if( !
aName.isEmpty() )
1308 if( !aTarget.isEmpty() )
1316 if (!rMacTable.
empty())
1330 Size aTwipBorder( 0, 0 );
1331 const ::editeng::SvxBorderLine *pColBorderLine =
nullptr;
1332 const ::editeng::SvxBorderLine *pBorderLine = pBoxItem->
GetLeft();
1335 pColBorderLine = pBorderLine;
1336 aTwipBorder.
AdjustWidth(pBorderLine->GetOutWidth() );
1339 pBorderLine = pBoxItem->
GetRight();
1342 pColBorderLine = pBorderLine;
1343 aTwipBorder.
AdjustWidth(pBorderLine->GetOutWidth() );
1346 pBorderLine = pBoxItem->
GetTop();
1349 pColBorderLine = pBorderLine;
1356 pColBorderLine = pBorderLine;
1363 if( (aTwipBorder.
Width() || aTwipBorder.
Height()) &&
1369 if( !aPixelBorder.
Width() && aTwipBorder.
Width() )
1374 if( aPixelBorder.
Width() )
1378 o3tl::narrowing<sal_uInt16>(aPixelBorder.
Width() + aPixelBorder.
Height());
1381 if( pColBorderLine )
1394 OStringBuffer sBuffer;
1397 OUString aGraphicInBase64;
1401 sBuffer.append(
":");
1414 rHtml.
attribute(aAttribute, sBuffer.makeStringAndClear().getStr());
1420 if (!rMimeType.isEmpty())
1428 if (!rMacTable.
empty())
1449 if( !aIMapName.isEmpty() )
1458 if (rAlternateText.isEmpty())
1485 const OUString &rGraphicURL)
1487 OUString aGraphicInBase64;
1503 else if(!aLink.isEmpty())
1514 aLink = rGraphicURL;
1516 if(!aLink.isEmpty())
1524 sOut.append(OString::Concat(
"<") + pTag);
1528 if(!aLink.isEmpty())
1537 sOut.append(
"list-style-image: url("
1560 bool bTopCaption =
false;
1566 if( !pTableNd && pTextNd )
1572 OSL_ENSURE( pTableNd,
"Frame does not contain a table" );
1576 OSL_ENSURE( nTableEnd == nEnd - 1 ||
1577 (nTableEnd == nEnd - 2 && !bTopCaption),
1578 "Invalid frame content for a table" );
1580 if( nTableEnd == nEnd - 2 )
1584 aCaption = pTextNd->
GetText();
1590 true, &rFrameFormat );
1621 "=\"" + OString::number(nCols) +
"\"");
1626 if( nGutter!=USHRT_MAX )
1631 ->LogicToPixel(
Size(nGutter,0),
1635 "=\"" + OString::number(nGutter) +
"\"");
1657 OSL_ENSURE( pSttNd,
"Where is the start node" );
1664 true, &rFrameFormat );
1694 if( !aEndTags.isEmpty() )
1740 OSL_ENSURE( pSttNd,
"Where is the start node" );
1747 true, &rFrameFormat );
1757 if( !aEndTags.isEmpty() )
1775 OUString
aName =
aURL.getBase() +
"_" +
aURL.getExtension() +
"_"
1778 aURL.setExtension(
u"ole");
1783 SAL_WARN(
"sw.html",
"SwReqIfReader::WrapGraphicInRtf() failed");
1789 rWrt.
Strm().
WriteOString(Concat2View(
" data=\"" + aFileName.toUtf8() +
"\""));
1813 std::optional<Size> aDPI;
1818 Graphic aGraphic(
const_cast<SwFrameFormat &
>(rFrameFormat).MakeGraphic( &aIMap, 2100000, aDPI ) );
1825 aGraphic = pGrafObj->GetGraphic();
1830 bWritePNGFallback =
false;
1835 OUString GraphicURL;
1842 OUString aFilterName(
"JPG");
1843 XOutFlags nFlags = XOutFlags::UseGifIfPossible | XOutFlags::UseNativeIfPossible;
1845 if (rWrt.
mbReqIF && !bWritePNGFallback)
1848 aFilterName =
"PNG";
1849 nFlags = XOutFlags::NONE;
1855 aFilterName.clear();
1859 if( aGraphic.
GetType() == GraphicType::NONE ||
1874 uno::Reference<beans::XPropertySet> xGraphic(aGraphic.
GetXGraphic(), uno::UNO_QUERY);
1875 if (xGraphic.is() &&
aMimeType.isEmpty())
1876 xGraphic->getPropertyValue(
"MimeType") >>=
aMimeType;
1886 if (bWritePNGFallback && aLink.
GetType() != GfxLinkType::NativePng)
1899 bool bInCntnr,
bool bPNGFallback )
1909 OSL_ENSURE( pGrfNd,
"Grf node expected" );
1919 if (aGraphic.
GetType() == GraphicType::GdiMetafile)
1922 bWritePNGFallback =
false;
1925 OUString aGraphicURL;
1940 XOutFlags nFlags = XOutFlags::UseGifIfSensible |
1941 XOutFlags::UseNativeIfPossible;
1947 nFlags = XOutFlags::MirrorVert | XOutFlags::MirrorHorz;
1956 OUString aFilterName(
"");
1958 if (rWrt.
mbReqIF && !bWritePNGFallback)
1964 aFilterName =
"PNG";
1974 const_cast<Graphic&
>(rGraphic).makeAvailable();
1976 if (rWrt.
mbReqIF && bWritePNGFallback)
1979 const std::shared_ptr<VectorGraphicData>& pVectorGraphicData = rGraphic.
getVectorGraphicData();
1980 if (pVectorGraphicData && pVectorGraphicData->getType() == VectorGraphicDataType::Svg)
1982 aFilterName =
"svg";
1986 aFilterName =
"emf";
1989 else if (pVectorGraphicData && pVectorGraphicData->getType() == VectorGraphicDataType::Wmf)
1991 aFilterName =
"wmf";
1995 aFilterName =
"tif";
2001 aFilterName, nFlags, &aMM100Size );
2019 uno::Reference<beans::XPropertySet> xGraphic(aGraphic.
GetXGraphic(), uno::UNO_QUERY);
2020 if (xGraphic.is() &&
aMimeType.isEmpty())
2021 xGraphic->getPropertyValue(
"MimeType") >>=
aMimeType;
2030 if (bWritePNGFallback && aLink.
GetType() != GfxLinkType::NativePng)
2079 .append( bHeader ?
"header" :
"footer" ).append(
"\"");
2103 "=\"" + OString::number(nSize) +
"\"";
2109 OSL_ENSURE( pSttNd,
"Where is the start node" );
2111 if( !bHeader && !aSpacer.isEmpty() )
2132 if( bHeader && !aSpacer.isEmpty() )
2149 if(
aURL.empty() ||
aURL[0] !=
'#' )
2156 bool bFound =
false, bEncoded =
false;
2157 while( !bFound &&
nPos > 0 )
2170 bFound = (c ==
'C' || c ==
'c');
2176 if( !bFound ||
nPos < 2 )
2182 OUString sCmp = OUString(
aURL.substr(bEncoded ?
nPos+2 :
nPos)).replaceAll(
" ",
"");
2183 if( sCmp.isEmpty() )
2186 sCmp = sCmp.toAsciiLowerCase();
2188 if( sCmp ==
"region" ||
2190 sCmp ==
"graphic" ||
2195 OUString aURL2(
aURL);
2202 else if( sCmp ==
"outline" )
2206 OUString aOutline(
aURL.substr( 0,
nPos-1 ) );
2218 OUString aURL2(
aURL);
2238 nullptr != ( pTextAttr = pINetFormat->GetTextINetFormat()) &&
2248 auto pURL =
dynamic_cast<const SwFormatURL*
>(pItem);
2252 const ImageMap *pIMap = pURL->GetMap();
static OutputDevice * GetDefaultDevice()
GfxLinkType GetType() const
css::uno::Reference< css::graphic::XGraphic > GetXGraphic() const
GraphicType GetType() const
GfxLink GetGfxLink() const
BitmapChecksum GetChecksum() const
const std::shared_ptr< VectorGraphicData > & getVectorGraphicData() const
void attribute(std::string_view aAttribute, const char *aValue)
bool end(const OString &aElement)
void start(const OString &aElement)
void characters(std::string_view rChars)
const OUString & GetURL() const
const OUString & GetName() const
IMapObject * GetIMapObject(size_t nPos) const
size_t GetIMapObjectCount() const
SAL_WARN_UNUSED_RESULT Point LogicToPixel(const Point &rLogicPt) const
Item2Range GetItemSurrogates(sal_uInt16 nWhich) const
SfxItemPool * GetPool() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
SvStream & WriteOString(std::string_view rStr)
SvStream & WriteChar(char nChar)
const editeng::SvxBorderLine * GetTop() const
sal_Int16 CalcLineSpace(SvxBoxItemLine nLine, bool bEvenIfNoLine=false, bool bAllowNegative=false) const
const editeng::SvxBorderLine * GetRight() const
const editeng::SvxBorderLine * GetLeft() const
const editeng::SvxBorderLine * GetBottom() const
const Graphic * GetGraphic(OUString const &referer=OUString()) const
const OUString & GetGraphicLink() const
tools::Long GetRight() const
tools::Long GetLeft() const
const SvxMacroTableDtor & GetMacroTable() const
tools::Long GetRight() const
tools::Long GetHeight() const
tools::Long GetWidth() const
const Size & GetSize() const
tools::Long GetTextLeft() const
sal_uInt16 GetUpper() const
sal_uInt16 GetLower() const
const SwMirrorGrf & GetMirrorGrf(bool=true) const
const SfxPoolItem & GetAttr(sal_uInt16 nWhich, bool bInParent=true) const
SS for PoolItems: hard attributation.
const SwAttrSet & GetSwAttrSet() const
Does node has already its own auto-attributes? Access to SwAttrSet.
bool GotoOutline(SwPosition &rPos, const OUString &rName, SwRootFrame const *=nullptr) const
SwPosFlyFrames GetAllFlyFormats(const SwPaM *, bool bDrawAlso, bool bAsCharAlso=false) const
Returns positions of all FlyFrames in the document.
const SwAttrPool & GetAttrPool() const
Content, content of frame (header, footer, fly).
const SwNodeIndex * GetContentIdx() const
virtual Size GetTwipSize() const override
bool IsLinkedFile() const
const Graphic & GetGrf(bool bWait=false) const
bool GetFileFilterNms(OUString *pFileNm, OUString *pFilterNm) const
const SdrObject * GetSdrObject() const
const SwFrameFormat & GetFormat() const
sal_Int32 GetContentIndex() const
AllHtmlFlags const & GetOutMode() const
HtmlPosition GetOutPos() const
bool mbXHTML
If XHTML markup should be written instead of HTML.
std::vector< OUString > m_aOutlineMarks
void CollectLinkTargets()
void OutAndSetDefList(sal_uInt16 nNewLvl)
SwHTMLPosFlyFrames m_aHTMLPosFlyFrames
sal_uInt16 GuessFrameType(const SwFrameFormat &rFrameFormat, const SdrObject *&rpStrObj)
void ChangeParaToken(HtmlTokenId nNew)
static const SdrObject * GetMarqueeTextObj(const SwDrawFrameFormat &rFormat)
std::set< OUString > m_aImplicitMarks
static OString convertDirection(SvxFrameDirection nDirection)
std::vector< OUString > m_aImgMapNames
void OutDirection(SvxFrameDirection nDir)
static sal_uInt16 GuessOLENodeFrameType(const SwNode &rNd)
void OutFrameFormat(AllHtmlFlags nType, const SwFrameFormat &rFormat, const SdrObject *pSdrObj)
OUString convertHyperlinkHRefValue(const OUString &rURL)
std::optional< sal_Int32 > m_nShapeDPI
DPI used when exporting a vector shape as a bitmap.
std::vector< SwNodeOffset > m_aOutlineMarkPoss
std::unique_ptr< utl::TempFileNamed > mpTempBaseURL
Temporary base URL for paste of images.
void AddLinkTarget(std::u16string_view aURL)
bool m_bExportImagesAsOLE
ReqIF mode: export images as OLE objects.
sal_Int32 m_nDfltRightMargin
std::vector< SwFormatINetFormat * > m_aINetFormats
OString GetNamespace() const
Determines the prefix string needed to respect the requested namespace alias.
sal_Int32 m_nDfltLeftMargin
bool mbReqIF
If the ReqIF subset of XHTML should be written.
OString OutFrameFormatOptions(const SwFrameFormat &rFrameFormat, const OUString &rAltText, HtmlFrmOpts nFrameOpts)
OString GetIndentString(sal_uInt16 nIncLvl=0)
void OutCSS1_FrameFormatOptions(const SwFrameFormat &rFrameFormat, HtmlFrmOpts nFrameOpts, const SdrObject *pSdrObj=nullptr, const SfxItemSet *pItemSet=nullptr)
sal_uInt16 m_nDfltTopMargin
sal_uInt16 m_nHeaderFooterSpace
sal_uInt16 m_nDfltBottomMargin
void OutNewLine(bool bCheck=false)
OString maNamespace
XML namespace, in case of XHTML.
void writeFrameFormatOptions(HtmlWriter &aHtml, const SwFrameFormat &rFrameFormat, std::u16string_view rAltText, HtmlFrmOpts nFrameOpts)
static const SdrObject * GetHTMLControl(const SwDrawFrameFormat &rFormat)
bool IsHTMLMode(sal_uInt32 nMode) const
SvxFrameDirection GetHTMLDirection(SvxFrameDirection nDir) const
static void GetEEAttrsFromDrwObj(SfxItemSet &rItemSet, const SdrObject *pObj)
void OutImplicitMark(std::u16string_view rMark, const char *pMarkType)
bool OutFlyFrame(SwNodeOffset nNdIdx, sal_Int32 nContentIdx, HtmlPosition nPos)
OUString GetTitle() const
Graphic GetGraphic() const
SwNodeOffset GetIndex() const
Base class of the Writer document model elements.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwNodeOffset GetIndex() const
SwNodes & GetNodes()
Node is in which nodes-array/doc?
SwNodeOffset EndOfSectionIndex() const
SwContentNode * GetContentNode()
SwTableNode * GetTableNode()
bool IsDocNodes() const
Is the NodesArray the regular one of Doc? (and not the UndoNds, ...) Implementation in doc....
For querying current flys in document.
Starts a section of nodes in the document model.
const SwTextNode * GetpTextNode() const
SwTextNode is a paragraph in the document model.
virtual sal_Int32 Len() const override
const OUString & GetText() const
const OUString * GetOrigFileName() const
std::shared_ptr< SwUnoCursor > m_pCurrentPam
const OUString & GetBaseURL() const
bool CopyLocalFileToINet(OUString &rFileNm)
static ErrCode WriteGraphic(const Graphic &rGraphic, OUString &rFileName, const OUString &rFilterName, const XOutFlags nFlags, const Size *pMtfSize_100TH_MM=nullptr, const css::uno::Sequence< css::beans::PropertyValue > *pFilterData=nullptr)
static bool GraphicToBase64(const Graphic &rGraphic, OUString &rOUString, bool bAddPrefix=true, ConvertDataFormat aTargetFormat=ConvertDataFormat::Unknown)
Value erase_extract(size_t index)
std::pair< const_iterator, bool > insert(Value &&x)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
EmbeddedObjectRef * pObject
std::set< SwPosFlyFrame, SwPosFlyFrameCmp > SwPosFlyFrames
@ Fixed
Frame cannot be moved in Var-direction.
constexpr TypedWhichId< SwFormatURL > RES_URL(117)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SwFormatCol > RES_COL(115)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(108)
constexpr TypedWhichId< SwFormatINetFormat > RES_TXTATR_INETFMT(51)
constexpr TypedWhichId< SvxMacroItem > RES_FRMMACRO(114)
constexpr TypedWhichId< SwDrawFrameFormat > RES_DRAWFRMFMT(165)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(112)
constexpr TypedWhichId< SvxRightMarginItem > RES_MARGIN_RIGHT(93)
constexpr TypedWhichId< SvxTextLeftMarginItem > RES_MARGIN_TEXTLEFT(92)
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(107)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
HTMLOutEvent const aAnchorEventTable[]
SwAttrFnTab aHTMLAttrFnTab
SwHTMLWriter & OutHTML_INetFormat(SwHTMLWriter &rWrt, const SwFormatINetFormat &rINetFormat, bool bOn)
SwHTMLWriter & OutHTML_DrawFrameFormatAsMarquee(SwHTMLWriter &rWrt, const SwDrawFrameFormat &rFormat, const SdrObject &rSdrObject)
const sal_uInt16 MAX_BROWSERS
AllHtmlFlags const aHTMLOutFramePageFlyTable[MAX_FRMTYPES][MAX_BROWSERS]
AllHtmlFlags const aHTMLOutFrameParaFrameTable[MAX_FRMTYPES][MAX_BROWSERS]
AllHtmlFlags const aHTMLOutFrameParaOtherTable[MAX_FRMTYPES][MAX_BROWSERS]
AllHtmlFlags const aHTMLOutFrameParaPrtAreaTable[MAX_FRMTYPES][MAX_BROWSERS]
SwHTMLWriter & OutHTML_HeaderFooter(SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, bool bHeader)
static SwHTMLWriter & OutHTML_FrameFormatAsDivOrSpan(SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, bool bSpan)
SwHTMLWriter & OutHTML_BulletImage(SwHTMLWriter &rWrt, const char *pTag, const SvxBrushItem *pBrush, const OUString &rGraphicURL)
static SwHTMLWriter & OutHTML_FrameFormatTableNode(SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat)
HTMLOutEvent const aIMapEventTable[]
HTMLOutEvent const aImageEventTable[]
const HtmlFrmOpts HTML_FRMOPTS_SPACER
static SwHTMLWriter & OutHTML_FrameFormatAsMulticol(SwHTMLWriter &rWrt, const SwFrameFormat &rFormat, bool bInCntnr)
SwHTMLWriter & OutHTML_ImageStart(HtmlWriter &rHtml, SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, const OUString &rGraphicURL, Graphic const &rGraphic, const OUString &rAlternateText, const Size &rRealSize, HtmlFrmOpts nFrameOpts, const char *pMarkType, const ImageMap *pAltImgMap, const OUString &rMimeType)
const HtmlFrmOpts HTML_FRMOPTS_IMG_CNTNR
SwHTMLWriter & OutHTML_ImageEnd(HtmlWriter &rHtml, SwHTMLWriter &rWrt)
static SwHTMLWriter & OutHTML_FrameFormatGrfNode(SwHTMLWriter &rWrt, const SwFrameFormat &rFormat, bool bInCntnr, bool bPNGFallback)
const HtmlFrmOpts HTML_FRMOPTS_IMG
static void OutHTML_ImageOLEEnd(SwHTMLWriter &rWrt)
Ends the OLE version of an image in the ReqIF + OLE case.
const HtmlFrmOpts HTML_FRMOPTS_DIV
const HtmlFrmOpts HTML_FRMOPTS_MULTICOL
static SwHTMLWriter & OutHTML_FrameFormatAsImage(SwHTMLWriter &rWrt, const SwFrameFormat &rFormat, bool bPNGFallback)
const HtmlFrmOpts HTML_FRMOPTS_CNTNR
const HtmlFrmOpts HTML_FRMOPTS_MULTICOL_CSS1
static SwHTMLWriter & OutHTML_FrameFormatAsMarquee(SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, const SdrObject &rSdrObj)
const HtmlFrmOpts HTML_FRMOPTS_IMG_CSS1
const HtmlFrmOpts HTML_FRMOPTS_IMG_ALL
static void OutHTML_ImageOLEStart(SwHTMLWriter &rWrt, const Graphic &rGraphic, const SwFrameFormat &rFrameFormat)
Starts the OLE version of an image in the ReqIF + OLE case.
static SwHTMLWriter & OutHTML_FrameFormatAsSpacer(SwHTMLWriter &rWrt, const SwFrameFormat &rFormat)
SwHTMLWriter & OutHTML_DrawFrameFormatAsControl(SwHTMLWriter &rWrt, const SwDrawFrameFormat &rFormat, const SdrUnoObj &rFormObj, bool bInCntnr)
#define OOO_STRING_SVTOOLS_HTML_O_height
#define OOO_STRING_SVTOOLS_HTML_SPTYPE_vertical
#define OOO_STRING_SVTOOLS_HTML_O_data
#define OOO_STRING_SVTOOLS_HTML_O_target
#define OOO_STRING_SVTOOLS_HTML_O_clear
#define OOO_STRING_SVTOOLS_HTML_O_color
#define OOO_STRING_SVTOOLS_HTML_AL_left
#define OOO_STRING_SVTOOLS_HTML_O_SDonmouseover
#define OOO_STRING_SVTOOLS_HTML_O_align
#define OOO_STRING_SVTOOLS_HTML_division
#define OOO_STRING_SVTOOLS_HTML_O_title
#define OOO_STRING_SVTOOLS_HTML_O_SDonerror
#define OOO_STRING_SVTOOLS_HTML_VA_middle
#define OOO_STRING_SVTOOLS_HTML_O_SDonmouseout
#define OOO_STRING_SVTOOLS_HTML_O_onmouseout
#define OOO_STRING_SVTOOLS_HTML_O_dir
#define OOO_STRING_SVTOOLS_HTML_spacer
#define OOO_STRING_SVTOOLS_HTML_O_onmouseover
#define OOO_STRING_SVTOOLS_HTML_VA_absmiddle
#define OOO_STRING_SVTOOLS_HTML_O_size
#define OOO_STRING_SVTOOLS_HTML_SPTYPE_block
#define OOO_STRING_SVTOOLS_HTML_anchor
#define OOO_STRING_SVTOOLS_HTML_VA_bottom
#define OOO_STRING_SVTOOLS_HTML_O_onerror
#define OOO_STRING_SVTOOLS_HTML_multicol
#define OOO_STRING_SVTOOLS_HTML_span
#define OOO_STRING_SVTOOLS_HTML_VA_absbottom
#define OOO_STRING_SVTOOLS_HTML_O_src
#define OOO_STRING_SVTOOLS_HTML_VA_top
#define OOO_STRING_SVTOOLS_HTML_O_cols
#define OOO_STRING_SVTOOLS_HTML_O_SDonabort
#define OOO_STRING_SVTOOLS_HTML_image
#define OOO_STRING_SVTOOLS_HTML_O_SDonload
#define OOO_STRING_SVTOOLS_HTML_map
#define OOO_STRING_SVTOOLS_HTML_O_class
#define OOO_STRING_SVTOOLS_HTML_O_href
#define OOO_STRING_SVTOOLS_HTML_O_onabort
#define OOO_STRING_SVTOOLS_HTML_O_hspace
#define OOO_STRING_SVTOOLS_HTML_VA_texttop
#define OOO_STRING_SVTOOLS_HTML_AL_right
#define OOO_STRING_SVTOOLS_HTML_O_ismap
#define OOO_STRING_SVTOOLS_HTML_O_border
#define OOO_STRING_SVTOOLS_HTML_O_vspace
#define OOO_STRING_SVTOOLS_HTML_O_type
#define OOO_STRING_SVTOOLS_HTML_O_onload
#define OOO_STRING_SVTOOLS_HTML_O_name
#define OOO_STRING_SVTOOLS_HTML_font
#define OOO_STRING_SVTOOLS_HTML_O_id
#define OOO_STRING_SVTOOLS_HTML_O_gutter
#define OOO_STRING_SVTOOLS_HTML_O_width
#define OOO_STRING_SVTOOLS_HTML_object
#define OOO_STRING_SVTOOLS_HTML_linebreak
#define OOO_STRING_SVTOOLS_HTML_O_usemap
#define OOO_STRING_SVTOOLS_HTML_O_alt
#define OOO_STRING_SVTOOLS_HTML_O_style
SwHTMLWriter & OutHTML_FrameFormatOLENode(SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, bool bInCntnr)
SwHTMLWriter & OutHTML_FrameFormatOLENodeGrf(SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, bool bInCntnr)
SwHTMLWriter & OutHTML_SwTableNode(SwHTMLWriter &rWrt, SwTableNode &rNode, const SwFrameFormat *pFlyFrameFormat, const OUString *pCaption, bool bTopCaption)
#define SAL_WARN(area, stream)
if(aStr !=aBuf) UpdateName_Impl(m_xFollowLb.get()
bool WrapGraphicInRtf(const Graphic &rGraphic, const SwFrameFormat &rFormat, SvStream &rRtf)
Wraps an image in an RTF fragment.
SVL_DLLPUBLIC Link< OUString *, bool > const & GetMaybeFileHdl()
SVL_DLLPUBLIC OUString SmartRel2Abs(INetURLObject const &rTheBaseURIRef, OUString const &rTheRelURIRef, Link< OUString *, bool > const &rMaybeFileHdl=Link< OUString *, bool >(), bool bCheckFileExists=true, bool bIgnoreFragment=false, INetURLObject::EncodeMechanism eEncodeMechanism=INetURLObject::EncodeMechanism::WasEncoded, INetURLObject::DecodeMechanism eDecodeMechanism=INetURLObject::DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, FSysStyle eStyle=FSysStyle::Detect)
SVL_DLLPUBLIC OUString simpleNormalizedMakeRelative(OUString const &baseUriReference, OUString const &uriReference)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
const sal_Unicode *const aMimeType[]
HtmlContainerFlags nContainer
static SVT_DLLPUBLIC SvStream & Out_AsciiTag(SvStream &, std::string_view rStr, bool bOn=true)
static SVT_DLLPUBLIC SvStream & Out_String(SvStream &, const OUString &, OUString *pNonConvertableChars=nullptr)
static SVT_DLLPUBLIC bool PrivateURLToInternalImg(OUString &rURL)
static SVT_DLLPUBLIC SvStream & Out_ImageMap(SvStream &, const OUString &, const ImageMap &, const OUString &, const HTMLOutEvent *pEventTable, bool bOutStarBasic, const char *pDelim, const char *pIndentArea, const char *pIndentMap)
static SVT_DLLPUBLIC SvStream & FlushToAscii(SvStream &)
static SVT_DLLPUBLIC void applyEvents(HtmlWriter &rHtmlWriter, const SvxMacroTableDtor &rMacroTable, const HTMLOutEvent *pEventTable, bool bOutStarBasic)
static SVT_DLLPUBLIC void applyColor(HtmlWriter &rHtmlWriter, std::string_view aAttributeName, const Color &rColor)
Marks a position in the document model.
SwNodeOffset GetNodeIndex() const
#define WARN_SWG_POOR_LOAD
const sal_Unicode cMarkSeparator
SwHTMLWriter & Out_SfxItemSet(const SwAttrFnTab, SwHTMLWriter &, const SfxItemSet &, bool bDeep)
@ Replacement
The graphic frame is a replacement image of an OLE object.
#define HTMLMODE_BORDER_NONE
#define HTMLMODE_ABS_POS_FLY
#define HTMLMODE_VERT_SPACER