/*
*******************************************************************************
*
- * Copyright (C) 1999-2003, International Business Machines
+ * Copyright (C) 1999-2007, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#define __PARAGRAPH_H
#include "unicode/utypes.h"
+#include "unicode/ubidi.h"
#include "layout/LEFontInstance.h"
#include "layout/ParagraphLayout.h"
#include "GUISupport.h"
#include "RenderingSurface.h"
-//#include "FontMap.h"
U_NAMESPACE_USE
static Paragraph *paragraphFactory(const char *fileName, const LEFontInstance *font, GUISupport *guiSupport);
private:
- ParagraphLayout *fParagraphLayout;
+ void addLine(const ParagraphLayout::Line *line);
- le_int32 fLineCount;
- le_int32 fLinesMax;
- le_int32 fLinesGrow;
+ ParagraphLayout **fParagraphLayout;
+
+ le_int32 fParagraphCount;
+ le_int32 fParagraphMax;
+ le_int32 fParagraphGrow;
+
+ le_int32 fLineCount;
+ le_int32 fLinesMax;
+ le_int32 fLinesGrow;
const ParagraphLayout::Line **fLines;
LEUnicode *fChars;
le_int32 fAscent;
le_int32 fWidth;
le_int32 fHeight;
+ UBiDiLevel fParagraphLevel;
};
inline le_int32 Paragraph::getLineHeight()