summaryrefslogtreecommitdiff
path: root/xfa/src/fgas/include/fx_rbk.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-02-24 11:23:20 -0800
committerTom Sepez <tsepez@chromium.org>2016-02-24 11:23:20 -0800
commit86b5c31dc7c98af877a5e8952c5b55b9ea611f3c (patch)
treeab1c624008578cd4fcb70b30ffab091375769d95 /xfa/src/fgas/include/fx_rbk.h
parent4ca48d1b10998f6c77683f184b8c8c53c7121b9b (diff)
downloadpdfium-86b5c31dc7c98af877a5e8952c5b55b9ea611f3c.tar.xz
Moar _CAPS naming, part 4
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1731483004 .
Diffstat (limited to 'xfa/src/fgas/include/fx_rbk.h')
-rw-r--r--xfa/src/fgas/include/fx_rbk.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/xfa/src/fgas/include/fx_rbk.h b/xfa/src/fgas/include/fx_rbk.h
index a56040de67..5ce93960c9 100644
--- a/xfa/src/fgas/include/fx_rbk.h
+++ b/xfa/src/fgas/include/fx_rbk.h
@@ -63,8 +63,9 @@ class IFX_RTFBreak;
(FX_RTFLINEALIGNMENT_Right | FX_RTFLINEALIGNMENT_Distributed)
#define FX_RTFLINEALIGNMENT_LowerMask 0x03
#define FX_RTFLINEALIGNMENT_HigherMask 0x0C
-typedef struct _FX_RTFTEXTOBJ {
- _FX_RTFTEXTOBJ() {
+
+struct FX_RTFTEXTOBJ {
+ FX_RTFTEXTOBJ() {
pStr = NULL;
pWidths = NULL;
iLength = 0;
@@ -78,6 +79,7 @@ typedef struct _FX_RTFTEXTOBJ {
iHorizontalScale = 100;
iVerticalScale = 100;
}
+
const FX_WCHAR* pStr;
int32_t* pWidths;
int32_t iLength;
@@ -90,8 +92,8 @@ typedef struct _FX_RTFTEXTOBJ {
FX_WCHAR wLineBreakChar;
int32_t iHorizontalScale;
int32_t iVerticalScale;
-} FX_RTFTEXTOBJ, *FX_LPRTFTEXTOBJ;
-typedef FX_RTFTEXTOBJ const* FX_LPCRTFTEXTOBJ;
+};
+
class CFX_RTFPiece : public CFX_Target {
public:
CFX_RTFPiece()
@@ -221,12 +223,12 @@ class IFX_RTFBreak {
virtual void ClearBreakPieces() = 0;
virtual void Reset() = 0;
virtual int32_t GetDisplayPos(
- FX_LPCRTFTEXTOBJ pText,
+ const FX_RTFTEXTOBJ* pText,
FXTEXT_CHARPOS* pCharPos,
FX_BOOL bCharCode = FALSE,
CFX_WideString* pWSForms = NULL,
FX_AdjustCharDisplayPos pAdjustPos = NULL) const = 0;
- virtual int32_t GetCharRects(FX_LPCRTFTEXTOBJ pText,
+ virtual int32_t GetCharRects(const FX_RTFTEXTOBJ* pText,
CFX_RectFArray& rtArray,
FX_BOOL bCharBBox = FALSE) const = 0;
};