summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/tree/pdfiprocessor.hxx
diff options
context:
space:
mode:
authorVort <vvort@yandex.ru>2014-01-21 09:27:46 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-02-04 15:13:15 +0000
commit9db3b5585c5fa7fff633672fd32510c4066d035a (patch)
tree83be4d5dee638d00d1f1c69cbe051ac7f10e2b6a /sdext/source/pdfimport/tree/pdfiprocessor.hxx
parent5cfda4f4de8da82485e27b1f0f0d94211d3b4d95 (diff)
fdo#35143 PDF import: Reimplementation of whitespace detection function
Change-Id: I5b230aaebf72b70bbb7e206414a5ac0e01f01f86 Reviewed-on: https://gerrit.libreoffice.org/7564 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext/source/pdfimport/tree/pdfiprocessor.hxx')
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.hxx29
1 files changed, 2 insertions, 27 deletions
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.hxx b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
index 97c58aa20b31..23861fae1577 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.hxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
@@ -103,11 +103,6 @@ namespace pdfi
private:
void processGlyphLine();
- void processGlyph( double fPreAvarageSpaceValue,
- CharGlyph& rGlyph,
- ParagraphElement* pPara,
- FrameElement* pFrame,
- bool bIsWhiteSpaceInLine );
void drawGlyphLine( const OUString& rGlyphs,
const ::com::sun::star::geometry::RealRectangle2D& rRect,
@@ -226,7 +221,6 @@ namespace pdfi
sal_Int32 m_nPages;
sal_Int32 m_nNextZOrder;
- bool m_bIsWhiteSpaceInLine;
com::sun::star::uno::Reference<
com::sun::star::task::XStatusIndicator >
m_xStatusIndicator;
@@ -236,11 +230,9 @@ namespace pdfi
class CharGlyph
{
public:
- CharGlyph(double fXPrevGlyphPosition, double fYPrevGlyphPosition, double fPrevGlyphHeight, double fPrevGlyphWidth,
- Element* pCurElement, const GraphicsContext& rCurrentContext, const com::sun::star::geometry::Matrix2D& rFontMatrix,
+ CharGlyph(Element* pCurElement, const GraphicsContext& rCurrentContext, const com::sun::star::geometry::Matrix2D& rFontMatrix,
const com::sun::star::geometry::RealRectangle2D& rRect, const OUString& rGlyphs )
- : m_fXPrevGlyphPosition(fXPrevGlyphPosition), m_fYPrevGlyphPosition(fYPrevGlyphPosition), m_fPrevGlyphHeight(fPrevGlyphHeight),
- m_fPrevGlyphWidth(fPrevGlyphWidth), m_pCurElement(pCurElement), m_rCurrentContext(rCurrentContext),
+ : m_pCurElement(pCurElement), m_rCurrentContext(rCurrentContext),
m_rFontMatrix(rFontMatrix), m_rRect(rRect), m_rGlyphs(rGlyphs) {};
virtual ~CharGlyph(){};
@@ -250,24 +242,7 @@ namespace pdfi
GraphicsContext& getGC(){ return m_rCurrentContext; }
Element* getCurElement(){ return m_pCurElement; }
- double getYPrevGlyphPosition() const { return m_fYPrevGlyphPosition; }
- double getXPrevGlyphPosition() const { return m_fXPrevGlyphPosition; }
- double getPrevGlyphHeight() const { return m_fPrevGlyphHeight; }
- double getPrevGlyphWidth () const { return m_fPrevGlyphWidth; }
- double getPrevGlyphsSpace() const
- {
- if( (m_rRect.X1-m_fXPrevGlyphPosition)<0 )
- return 0;
- else
- return m_rRect.X1-m_fXPrevGlyphPosition;
- }
-
private:
-
- double m_fXPrevGlyphPosition ;
- double m_fYPrevGlyphPosition ;
- double m_fPrevGlyphHeight ;
- double m_fPrevGlyphWidth ;
Element* m_pCurElement ;
GraphicsContext m_rCurrentContext ;
com::sun::star::geometry::Matrix2D m_rFontMatrix ;