summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/tree/pdfiprocessor.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/pdfimport/tree/pdfiprocessor.hxx')
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.hxx66
1 files changed, 33 insertions, 33 deletions
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.hxx b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
index e646d6999df7..97264df030fe 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.hxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ namespace pdfi
class PDFIProcessor : public ContentSink
{
public:
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > m_xContext;
double fYPrevTextPosition;
double fPrevTextHeight;
@@ -204,17 +204,17 @@ namespace pdfi
typedef std::hash_map<sal_Int32,FontAttributes> IdToFontMap;
typedef std::hash_map<FontAttributes,sal_Int32,FontAttrHash> FontToIdMap;
-
+
typedef std::hash_map<sal_Int32,GraphicsContext> IdToGCMap;
typedef std::hash_map<GraphicsContext,sal_Int32,GraphicsContextHash> GCToIdMap;
typedef std::vector<GraphicsContext> GraphicsContextStack;
- ::basegfx::B2DRange& calcTransformedRectBounds( ::basegfx::B2DRange& outRect,
- const ::basegfx::B2DRange& inRect,
- const ::basegfx::B2DHomMatrix& transformation );
+ ::basegfx::B2DRange& calcTransformedRectBounds( ::basegfx::B2DRange& outRect,
+ const ::basegfx::B2DRange& inRect,
+ const ::basegfx::B2DHomMatrix& transformation );
std::vector<CharGlyph> m_GlyphsList;
-
+
boost::shared_ptr<ElementFactory> m_pElFactory;
boost::shared_ptr<DocumentElement> m_pDocument;
PageElement* m_pCurPage;
@@ -222,22 +222,22 @@ namespace pdfi
sal_Int32 m_nNextFontId;
IdToFontMap m_aIdToFont;
FontToIdMap m_aFontToId;
-
+
GraphicsContextStack m_aGCStack;
GraphicsContext m_prev_aGC;
sal_Int32 m_nNextGCId;
IdToGCMap m_aIdToGC;
GCToIdMap m_aGCToId;
-
+
ImageContainer m_aImages;
-
+
DocumentTextDirecion m_eTextDirection;
- sal_Int32 m_nPages;
+ sal_Int32 m_nPages;
sal_Int32 m_nNextZOrder;
double m_fWordSpace;
bool m_bIsWhiteSpaceInLine;
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::task::XStatusIndicator >
m_xStatusIndicator;
@@ -248,33 +248,33 @@ namespace pdfi
public:
CharGlyph(){};
virtual ~CharGlyph(){};
- rtl::OUString& getGlyph(){ return m_rGlyphs; }
- com::sun::star::geometry::RealRectangle2D& getRect(){ return m_rRect; }
- com::sun::star::geometry::Matrix2D& getFontMatrix(){ return m_rFontMatrix; }
- GraphicsContext& getGC(){ return m_rCurrentContext; }
- Element* getCurElement(){ return m_pCurElement; }
-
- void setGlyph (const rtl::OUString& rGlyphs ){ m_rGlyphs=rGlyphs; }
- void setRect (const ::com::sun::star::geometry::RealRectangle2D& rRect ){ m_rRect=rRect; }
- void setFontMatrix (const ::com::sun::star::geometry::Matrix2D& rFontMatrix ){ m_rFontMatrix= rFontMatrix; }
- void setGraphicsContext (GraphicsContext& rCurrentContext ){ m_rCurrentContext= rCurrentContext; }
- void setCurElement( Element* pCurElement ){ m_pCurElement= pCurElement; }
-
- double getYPrevGlyphPosition(){ return m_fYPrevGlyphPosition; }
- double getXPrevGlyphPosition(){ return m_fXPrevGlyphPosition; }
- double getPrevGlyphHeight(){ return m_fPrevGlyphHeight; }
- double getPrevGlyphWidth (){ return m_fPrevGlyphWidth; }
+ rtl::OUString& getGlyph(){ return m_rGlyphs; }
+ com::sun::star::geometry::RealRectangle2D& getRect(){ return m_rRect; }
+ com::sun::star::geometry::Matrix2D& getFontMatrix(){ return m_rFontMatrix; }
+ GraphicsContext& getGC(){ return m_rCurrentContext; }
+ Element* getCurElement(){ return m_pCurElement; }
+
+ void setGlyph (const rtl::OUString& rGlyphs ){ m_rGlyphs=rGlyphs; }
+ void setRect (const ::com::sun::star::geometry::RealRectangle2D& rRect ){ m_rRect=rRect; }
+ void setFontMatrix (const ::com::sun::star::geometry::Matrix2D& rFontMatrix ){ m_rFontMatrix= rFontMatrix; }
+ void setGraphicsContext (GraphicsContext& rCurrentContext ){ m_rCurrentContext= rCurrentContext; }
+ void setCurElement( Element* pCurElement ){ m_pCurElement= pCurElement; }
+
+ double getYPrevGlyphPosition(){ return m_fYPrevGlyphPosition; }
+ double getXPrevGlyphPosition(){ return m_fXPrevGlyphPosition; }
+ double getPrevGlyphHeight(){ return m_fPrevGlyphHeight; }
+ double getPrevGlyphWidth (){ return m_fPrevGlyphWidth; }
double getPrevGlyphsSpace() { if( (m_rRect.X1-m_fXPrevGlyphPosition)<0 )
return 0;
else
return m_rRect.X1-m_fXPrevGlyphPosition;
}
- void setYPrevGlyphPosition( double fYPrevTextPosition ){ m_fYPrevGlyphPosition= fYPrevTextPosition; }
- void setXPrevGlyphPosition( double fXPrevTextPosition ){ m_fXPrevGlyphPosition= fXPrevTextPosition; }
- void setPrevGlyphHeight ( double fPrevTextHeight ){ m_fPrevGlyphHeight= fPrevTextHeight; }
- void setPrevGlyphWidth ( double fPrevTextWidth ){ m_fPrevGlyphWidth= fPrevTextWidth; }
-
+ void setYPrevGlyphPosition( double fYPrevTextPosition ){ m_fYPrevGlyphPosition= fYPrevTextPosition; }
+ void setXPrevGlyphPosition( double fXPrevTextPosition ){ m_fXPrevGlyphPosition= fXPrevTextPosition; }
+ void setPrevGlyphHeight ( double fPrevTextHeight ){ m_fPrevGlyphHeight= fPrevTextHeight; }
+ void setPrevGlyphWidth ( double fPrevTextWidth ){ m_fPrevGlyphWidth= fPrevTextWidth; }
+
private:
double m_fYPrevGlyphPosition ;