NVDA Helper
In-process and lite high-speed utilities for NVDA
adobeAcrobat.cpp File Reference
#include <set>
#include <sstream>
#include <iomanip>
#include <windows.h>
#include <oleacc.h>
#include <common/ia2utils.h>
#include <remote/nvdaHelperRemote.h>
#include <vbufBase/backend.h>
#include <common/log.h>
#include "adobeAcrobat.h"

Go to the source code of this file.

Classes

class  AdobeAcrobatVBufStorage_controlFieldNode_t
 

Macros

#define addAttrsToTextNode(node)
 

Functions

IAccessible * IAccessibleFromIdentifier (int docHandle, int ID)
 
long getAccID (IServiceProvider *servprov)
 
IPDDomNode * getPDDomNode (VARIANT &varChild, IServiceProvider *servprov)
 
void nullifyEmpty (BSTR *text)
 
void processText (BSTR inText, wstring &outText)
 
VBufStorage_fieldNode_trenderText (VBufStorage_buffer_t *buffer, VBufStorage_controlFieldNode_t *parentNode, VBufStorage_fieldNode_t *previousNode, IPDDomNode *domNode, IPDDomElement *domElement, bool nameIsContent, wstring &lang, int flags, wstring *pageNum)
 
void handleColsSpannedByPrevRows (TableInfo &tableInfo)
 
void fillExplicitTableHeadersForCell (AdobeAcrobatVBufStorage_controlFieldNode_t &cell, int docHandle, wstring &headersAttr, TableInfo &tableInfo)
 
bool checkIsXFA (IAccessible *rootPacc, VARIANT &varChild)
 
IPDDomDocPagination * getDocPagination (IAccessible *pacc, VARIANT &varChild)
 
VBufBackend_tAdobeAcrobatVBufBackend_t_createInstance (int docHandle, int ID)
 

Variables

const int TEXTFLAG_UNDERLINE = 0x1
 
const int TEXTFLAG_STRIKETHROUGH = 0x2
 
const int TABLEHEADER_COLUMN = 0x1
 
const int TABLEHEADER_ROW = 0x2
 

Macro Definition Documentation

◆ addAttrsToTextNode

#define addAttrsToTextNode ( node)
Value:
{ \
node->addAttribute(L"language", parentNode->language); \
if (pageNum) \
node->addAttribute(L"page-number", *pageNum); \
}

Function Documentation

◆ IAccessibleFromIdentifier()

IAccessible * IAccessibleFromIdentifier ( int docHandle,
int ID )

References LOG_DEBUG.

Referenced by AdobeAcrobatVBufBackend_t::render().

◆ getAccID()

long getAccID ( IServiceProvider * servprov)

References LOG_DEBUG.

◆ getPDDomNode()

IPDDomNode * getPDDomNode ( VARIANT & varChild,
IServiceProvider * servprov )

References LOG_DEBUG.

Referenced by getDocPagination().

◆ nullifyEmpty()

void nullifyEmpty ( BSTR * text)
inline

Referenced by renderText().

◆ processText()

void processText ( BSTR inText,
wstring & outText )
inline

Referenced by renderText().

◆ renderText()

VBufStorage_fieldNode_t * renderText ( VBufStorage_buffer_t * buffer,
VBufStorage_controlFieldNode_t * parentNode,
VBufStorage_fieldNode_t * previousNode,
IPDDomNode * domNode,
IPDDomElement * domElement,
bool nameIsContent,
wstring & lang,
int flags,
wstring * pageNum )

◆ handleColsSpannedByPrevRows()

void handleColsSpannedByPrevRows ( TableInfo & tableInfo)
inline

◆ fillExplicitTableHeadersForCell()

void fillExplicitTableHeadersForCell ( AdobeAcrobatVBufStorage_controlFieldNode_t & cell,
int docHandle,
wstring & headersAttr,
TableInfo & tableInfo )
inline

◆ checkIsXFA()

bool checkIsXFA ( IAccessible * rootPacc,
VARIANT & varChild )

◆ getDocPagination()

IPDDomDocPagination * getDocPagination ( IAccessible * pacc,
VARIANT & varChild )

◆ AdobeAcrobatVBufBackend_t_createInstance()

VBufBackend_t * AdobeAcrobatVBufBackend_t_createInstance ( int docHandle,
int ID )

Variable Documentation

◆ TEXTFLAG_UNDERLINE

const int TEXTFLAG_UNDERLINE = 0x1

Referenced by renderText().

◆ TEXTFLAG_STRIKETHROUGH

const int TEXTFLAG_STRIKETHROUGH = 0x2

Referenced by renderText().

◆ TABLEHEADER_COLUMN

const int TABLEHEADER_COLUMN = 0x1

◆ TABLEHEADER_ROW

const int TABLEHEADER_ROW = 0x2