20#ifndef INCLUDED_SDEXT_SOURCE_PDFIMPORT_INC_PDFIHELPER_HXX
21#define INCLUDED_SDEXT_SOURCE_PDFIMPORT_INC_PDFIHELPER_HXX
25#include <rtl/ustring.hxx>
30#include <com/sun/star/rendering/PathCapType.hpp>
31#include <com/sun/star/rendering/PathJoinType.hpp>
33#include <unordered_map>
38#define PDFI_OUTDEV_RESOLUTION 7200
71 double mm = fPix * ( px2mm * 100);
72 return std::floor(
mm) / 100;
157 case css::rendering::PathJoinType::MITER:
159 case css::rendering::PathJoinType::ROUND:
161 case css::rendering::PathJoinType::BEVEL:
171 case css::rendering::PathCapType::BUTT:
173 case css::rendering::PathCapType::ROUND:
175 case css::rendering::PathCapType::SQUARE:
189 std::size_t seed = 0;
221 css::task::XInteractionHandler >& xHandler,
224 const OUString& rDocName
229 css::task::XInteractionHandler >
const & handler);
double get(sal_uInt16 nRow, sal_uInt16 nColumn) const
B2DPolygon const & getB2DPolygon(sal_uInt32 nIndex) const
std::enable_if_t<(sizeof(N)==4)> hash_combine(N &nSeed, T const *pValue, size_t nCount)
OUString convertPixelToUnitString(double fPix)
OUString getColorString(const css::rendering::ARGBColor &)
Convert color to "#FEFEFE" color notation.
double convmm2Px(double fMM)
double convPx2mm(double fPix)
OUString getPercentString(double value)
double GetAverageTransformationScale(const basegfx::B2DHomMatrix &matrix)
OUString unitMMString(double fMM)
std::unordered_map< OUString, OUString > PropertyMap
double convPx2mmPrec2(double fPix)
round to 2 decimal places
bool getPassword(const css::uno::Reference< css::task::XInteractionHandler > &xHandler, OUString &rOutPwd, bool bFirstTry, const OUString &rDocName)
retrieve password from user
void reportUnsupportedEncryptionFormat(css::uno::Reference< css::task::XInteractionHandler > const &handler)
PolygonAction
What to do with a polygon. values can be ORed together.
void FillDashStyleProps(PropertyMap &props, const std::vector< double > &dashArray, double scale)
#define PDFI_OUTDEV_RESOLUTION
size_t operator()(const FontAttributes &rFont) const
size_t operator()(const GraphicsContext &rGC) const
css::rendering::ARGBColor FillColor
css::rendering::ARGBColor LineColor
bool operator==(const GraphicsContext &rRight) const
bool isRotatedOrSkewed() const
basegfx::B2DHomMatrix Transformation
OUString GetLineCapString() const
OUString GetLineJoinString() const
std::vector< double > DashArray
basegfx::B2DPolyPolygon Clip