34#include <document.hxx>
36#include <rtl/strbuf.hxx>
46 SdrPage* pDrawPage = pDrawLayer->
GetPage(
static_cast<sal_uInt16
>(nTab) );
51 FillGraphList( pDrawPage, nTab, nStartCol, nStartRow, nEndCol, nEndRow );
53 for (
size_t i = 0;
i < ListSize; ++
i )
72 aRect =
pDoc->
GetMMRect( nStartCol, nStartRow, nEndCol, nEndRow, nTab );
96 nCol1, nRow1, nCol2, nRow2, nTab );
106 aR, aSize, bInCell, aSpace );
117 + OString::number(
static_cast<sal_Int32
>(
pE->aSize.Width()))
119 + OString::number(
static_cast<sal_Int32
>(
pE->aSize.Height()));
123 + OString::number(
static_cast<sal_Int32
>(
pE->aSpace.Width()))
125 + OString::number(
static_cast<sal_Int32
>(
pE->aSpace.Height())));
127 OString aOpt =
aBuf.makeStringAndClear();
128 switch (
pObject->GetObjIdentifier() )
130 case SdrObjKind::Graphic:
134 sal_uInt16 nMirrorCase = (pGeo->maGeo.m_nRotationAngle == 18000_deg100 ?
135 ( pGeo->bMirrored ? 3 : 4 ) : ( pGeo->bMirrored ? 2 : 1 ));
136 bool bHMirr = ( ( nMirrorCase == 2 ) || ( nMirrorCase == 4 ) );
137 bool bVMirr = ( ( nMirrorCase == 3 ) || ( nMirrorCase == 4 ) );
140 nXOutFlags |= XOutFlags::MirrorHorz;
142 nXOutFlags |= XOutFlags::MirrorVert;
150 case SdrObjKind::OLE2:
172 std::string_view rImgOptions,
XOutFlags nXOutFlags )
175 if( rLinkName.isEmpty() )
181 nXOutFlags |= XOutFlags::UseNativeIfPossible;
211 if( !rLinkName.isEmpty() )
217 if ( !rImgOptions.empty() )
SC_DLLPUBLIC ScRange GetRange(SCTAB nTab, const tools::Rectangle &rMMRect, bool bHiddenAsZero=true) const
SC_DLLPUBLIC void ExtendOverlapped(SCCOL &rStartCol, SCROW &rStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) const
SC_DLLPUBLIC bool IsEmptyData(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab) const
SC_DLLPUBLIC tools::Rectangle GetMMRect(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, bool bHiddenAsZero=true) const
static bool IsNoteCaption(SdrObject *pObj)
Returns true, if the passed object is the caption of a cell note.
bool HasObjectsInRows(SCTAB nTab, SCROW nStartRow, SCROW nEndRow)
bool bCopyLocalFileToINet
void WriteGraphEntry(ScHTMLGraphEntry *)
const char * GetIndentStr() const
void FillGraphList(const SdrPage *, SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow)
Size MMToPixel(const Size &r100thMMSize)
GraphEntryList aGraphList
void PrepareGraphics(ScDrawLayer *, SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow)
void WriteImage(OUString &rLinkName, const Graphic &, std::string_view rImgOptions, XOutFlags nXOutFlags=XOutFlags::NONE)
static const sal_uInt16 nCellSpacing
void CopyLocalFileToINet(OUString &rFileNm, std::u16string_view rTargetNm)
static Graphic GetObjGraphic(const SdrObject &rSdrObject, bool bSVG=false)
bool IsLinkedGraphic() const
const OUString & GetFileName() const
const Graphic & GetGraphic() const
const SdrPage * GetPage(sal_uInt16 nPgNum) const
size_t GetObjCount() const
virtual std::unique_ptr< SdrObjGeoData > GetGeoData() 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)
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, OUString *pMediaType=nullptr)
#define SAL_NEWLINE_STRING
EmbeddedObjectRef * pObject
#define OOO_STRING_SVTOOLS_HTML_O_height
#define OOO_STRING_SVTOOLS_HTML_O_src
#define OOO_STRING_SVTOOLS_HTML_image
#define OOO_STRING_SVTOOLS_HTML_O_hspace
#define OOO_STRING_SVTOOLS_HTML_O_vspace
#define OOO_STRING_SVTOOLS_HTML_O_width
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)
static SVT_DLLPUBLIC SvStream & Out_String(SvStream &, const OUString &, OUString *pNonConvertableChars=nullptr)