23#include <rtl/ustrbuf.hxx>
35namespace basegfx {
class B2DPolyPolygon; }
38namespace sd {
class DrawDocShell; }
41#define PUB_LOWRES_WIDTH 640
42#define PUB_MEDRES_WIDTH 800
43#define PUB_HIGHRES_WIDTH 1024
44#define PUB_FHDRES_WIDTH 1920
46#define PUB_THUMBNAIL_WIDTH 256
47#define PUB_THUMBNAIL_HEIGHT 192
167 bool checkFileExists( css::uno::Reference< css::ucb::XSimpleFileAccess3 >
const & xFileAccess, std::u16string_view aFileName );
172 static OUString
CreateLink( std::u16string_view aLink, std::u16string_view aText,
173 std::u16string_view aTarget = std::u16string_view());
174 static OUString
CreateImage( std::u16string_view aImage, std::u16string_view aAltText );
175 OUString
CreateNavBar( sal_uInt16 nSdPage,
bool bIsText )
const;
186 sal_uLong nCenterY, std::u16string_view rHRef );
187 static OUString
CreateHTMLPolygonArea( const ::basegfx::B2DPolyPolygon& rPolyPoly,
Size aShift,
double fFactor, std::u16string_view rHRef );
189 std::u16string_view rHRef );
193 OUString
InsertSound(
const OUString& rSoundFile );
194 bool CopyFile(
const OUString& rSourceFile,
const OUString& rDestFile );
195 bool CopyScript( std::u16string_view rPath,
const OUString& rSource,
const OUString& rDest,
bool bUnix =
false );
212 bool WriteHtml(
const OUString& rFileName,
bool bAddExtension, std::u16string_view rHtmlData );
217 const Color& rBackgroundColor,
bool bHeadLine);
227 const css::uno::Sequence<css::beans::PropertyValue>& rParams,
virtual bool GetString(ErrCode nErrId, OUString &rCtxStr) override
void SetContext(TranslateId pResId, const OUString &rURL)
this class exports an Impress Document as a HTML Presentation.
OUString DocumentMetadata() const
Output document metadata.
std::vector< OUString > maThumbnailFiles
static OUString CreateHTMLPolygonArea(const ::basegfx::B2DPolyPolygon &rPolyPoly, Size aShift, double fFactor, std::u16string_view rHRef)
void WriteObjectGroup(OUStringBuffer &aStr, SdrObjGroup const *pObjectGroup, SdrOutliner *pOutliner, const Color &rBackgroundColor, bool bHeadLine)
static OUString CreateImage(std::u16string_view aImage, std::u16string_view aAltText)
void ExportSingleDocument()
void WriteTable(OUStringBuffer &aStr, sdr::table::SdrTableObj const *pTableObject, SdrOutliner *pOutliner, const Color &rBackgroundColor)
PublishingFormat meFormat
PublishingScript meScript
OUString TextAttribToHTMLString(SfxItemSet const *pSet, HtmlState *pState, const Color &rBackgroundColor)
OUString const & getDocumentTitle()
static OUString GetButtonName(int nButton)
std::vector< OUString > maHTMLFiles
bool CreateOutlinePages()
static OUString CreateHTMLCircleArea(sal_uLong nRadius, sal_uLong nCenterX, sal_uLong nCenterY, std::u16string_view rHRef)
std::vector< SdPage * > maPages
::sd::DrawDocShell * mpDocSh
bool CreateASPScripts()
creates and saves the ASP scripts for WebShow
bool CreateHtmlForPresPages()
OUString CreateTextForTitle(SdrOutliner *pOutliner, SdPage *pPage, const Color &rBackgroundColor)
creates an outliner text for the title objects of a page
void WriteOutlinerParagraph(OUStringBuffer &aStr, SdrOutliner *pOutliner, OutlinerParaObject const *pOutlinerParagraphObject, const Color &rBackgroundColor, bool bHeadLine)
std::unique_ptr< SfxProgress > mpProgress
OUString CreatePageURL(sal_uInt16 nPgNum)
OUString ParagraphToHTMLString(SdrOutliner const *pOutliner, sal_Int32 nPara, const Color &rBackgroundColor)
std::vector< OUString > maPageNames
void InitProgress(sal_uInt16 nProgrCount)
bool CreateImageNumberFile()
static OUString CreateLink(std::u16string_view aLink, std::u16string_view aText, std::u16string_view aTarget=std::u16string_view())
std::vector< SdPage * > maNotesPages
std::vector< OUString > maImageFiles
OUString CreateTextForPage(SdrOutliner *pOutliner, SdPage const *pPage, bool bHeadLine, const Color &rBackgroundColor)
OUString maExportPath
output directory or URL.
Color maTextColor
The following colors are used for the <body> tag if mbUserAttr is true.
HtmlExport(OUString aPath, const css::uno::Sequence< css::beans::PropertyValue > &rParams, SdDrawDocument *pExpDoc, sd::DrawDocShell *pDocShell)
void SetDocColors(SdPage *pPage=nullptr)
bool CreateHtmlTextForPresPages()
static OUString CreateMetaCharset()
Output only the charset metadata, title etc. will be handled separately.
OUString CreateNavBar(sal_uInt16 nSdPage, bool bIsText) const
static OUString CreateHTMLRectArea(const ::tools::Rectangle &rRect, std::u16string_view rHRef)
bool CreateImagesForPresPages(bool bThumbnails=false)
OUString CreateBodyTag() const
sal_uInt16 mnPagesWritten
bool CreateImageFileList()
static OUString StringToHTMLString(const OUString &rString)
static SdrTextObj * GetLayoutTextObject(SdrPage const *pPage)
bool CreateNavBarFrames()
bool checkForExistingFiles()
bool checkFileExists(css::uno::Reference< css::ucb::XSimpleFileAccess3 > const &xFileAccess, std::u16string_view aFileName)
bool CopyScript(std::u16string_view rPath, const OUString &rSource, const OUString &rDest, bool bUnix=false)
std::vector< OUString > maTextFiles
OUString CreateTextForNotesPage(SdrOutliner *pOutliner, SdPage *pPage, const Color &rBackgroundColor)
void InitExportParameters(const css::uno::Sequence< css::beans::PropertyValue > &rParams)
bool CopyFile(const OUString &rSourceFile, const OUString &rDestFile)
bool WriteHtml(const OUString &rFileName, bool bAddExtension, std::u16string_view rHtmlData)
exports the given html data into a non unicode file in the current export path with the given filenam...
OUString InsertSound(const OUString &rSoundFile)
std::unique_ptr< ButtonSet > mpButtonSet
static OUString ColorToHTMLString(Color aColor)