LibreOffice Module svx (master)  1
Functions
EnhancedCustomShapeFontWork.cxx File Reference
#include "EnhancedCustomShapeFontWork.hxx"
#include <svl/itemset.hxx>
#include <svx/svddef.hxx>
#include <svx/svdopath.hxx>
#include <vcl/metric.hxx>
#include <svx/sdasitm.hxx>
#include <svx/sdtfsitm.hxx>
#include <vcl/virdev.hxx>
#include <svx/svditer.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/charscaleitem.hxx>
#include <svx/svdoashp.hxx>
#include <svx/sdshitm.hxx>
#include <editeng/outlobj.hxx>
#include <editeng/editobj.hxx>
#include <o3tl/numeric.hxx>
#include <vector>
#include <numeric>
#include <algorithm>
#include <memory>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/i18n/BreakIterator.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <sal/log.hxx>
Include dependency graph for EnhancedCustomShapeFontWork.cxx:

Go to the source code of this file.

Functions

static bool InitializeFontWorkData (const SdrObjCustomShape &rSdrObjCustomShape, const sal_uInt16 nOutlinesCount2d, FWData &rFWData)
 
static double GetLength (const tools::Polygon &rPolygon)
 
static void CalculateHorizontalScalingFactor (const SdrObjCustomShape &rSdrObjCustomShape, FWData &rFWData, const tools::PolyPolygon &rOutline2d)
 
static void GetTextAreaOutline (const FWData &rFWData, const SdrObjCustomShape &rSdrObjCustomShape, FWTextArea &rTextArea, bool bSameLetterHeights)
 
static bool GetFontWorkOutline (FWData &rFWData, const SdrObjCustomShape &rSdrObjCustomShape)
 
static basegfx::B2DPolyPolygon GetOutlinesFromShape2d (const SdrObject *pShape2d)
 
static void CalcDistances (const tools::Polygon &rPoly, std::vector< double > &rDistances)
 
static void InsertMissingOutlinePoints (const std::vector< double > &rDistances, const tools::Rectangle &rTextAreaBoundRect, tools::Polygon &rPoly)
 
static void GetPoint (const tools::Polygon &rPoly, const std::vector< double > &rDistances, const double &fX, double &fx1, double &fy1)
 
static void FitTextOutlinesToShapeOutlines (const tools::PolyPolygon &aOutlines2d, FWData &rFWData)
 
static SdrObjectCreateSdrObjectFromParagraphOutlines (const FWData &rFWData, const SdrObjCustomShape &rSdrObjCustomShape)
 

Function Documentation

static void CalcDistances ( const tools::Polygon rPoly,
std::vector< double > &  rDistances 
)
static
static void CalculateHorizontalScalingFactor ( const SdrObjCustomShape rSdrObjCustomShape,
FWData &  rFWData,
const tools::PolyPolygon rOutline2d 
)
static
static SdrObject* CreateSdrObjectFromParagraphOutlines ( const FWData &  rFWData,
const SdrObjCustomShape rSdrObjCustomShape 
)
static
static void FitTextOutlinesToShapeOutlines ( const tools::PolyPolygon aOutlines2d,
FWData &  rFWData 
)
static
static bool GetFontWorkOutline ( FWData &  rFWData,
const SdrObjCustomShape rSdrObjCustomShape 
)
static
static double GetLength ( const tools::Polygon rPolygon)
static
static basegfx::B2DPolyPolygon GetOutlinesFromShape2d ( const SdrObject pShape2d)
static
static void GetPoint ( const tools::Polygon rPoly,
const std::vector< double > &  rDistances,
const double &  fX,
double &  fx1,
double &  fy1 
)
static
static void GetTextAreaOutline ( const FWData &  rFWData,
const SdrObjCustomShape rSdrObjCustomShape,
FWTextArea &  rTextArea,
bool  bSameLetterHeights 
)
static
static bool InitializeFontWorkData ( const SdrObjCustomShape rSdrObjCustomShape,
const sal_uInt16  nOutlinesCount2d,
FWData &  rFWData 
)
static
static void InsertMissingOutlinePoints ( const std::vector< double > &  rDistances,
const tools::Rectangle rTextAreaBoundRect,
tools::Polygon rPoly 
)
static