LibreOffice Module sw (master) 1
Macros | Functions
accportions.cxx File Reference
#include <sal/config.h>
#include "accportions.hxx"
#include <osl/diagnose.h>
#include <rtl/ustring.hxx>
#include <com/sun/star/i18n/Boundary.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <txttypes.hxx>
#include <viewopt.hxx>
#include <breakit.hxx>
#include <txtfrm.hxx>
#include <crstate.hxx>
Include dependency graph for accportions.cxx:

Go to the source code of this file.

Macros

#define POR_TERMINATE   PortionType::NONE
 
#define PORATTR_SPECIAL   1
 
#define PORATTR_READONLY   2
 
#define PORATTR_GRAY   4
 
#define PORATTR_TERM   128
 

Functions

template<typename T >
static size_t FindBreak (const std::vector< T > &rPositions, T nValue)
 returns the index of the first position whose value is smaller or equal, and whose following value is equal or larger More...
 
template<typename T >
static size_t FindLastBreak (const std::vector< T > &rPositions, T nValue)
 like FindBreak, but finds the last equal or larger position More...
 

Macro Definition Documentation

◆ POR_TERMINATE

#define POR_TERMINATE   PortionType::NONE

Definition at line 44 of file accportions.cxx.

◆ PORATTR_GRAY

#define PORATTR_GRAY   4

Definition at line 49 of file accportions.cxx.

◆ PORATTR_READONLY

#define PORATTR_READONLY   2

Definition at line 48 of file accportions.cxx.

◆ PORATTR_SPECIAL

#define PORATTR_SPECIAL   1

Definition at line 47 of file accportions.cxx.

◆ PORATTR_TERM

#define PORATTR_TERM   128

Definition at line 50 of file accportions.cxx.

Function Documentation

◆ FindBreak()

template<typename T >
static size_t FindBreak ( const std::vector< T > &  rPositions,
nValue 
)
static

◆ FindLastBreak()

template<typename T >
static size_t FindLastBreak ( const std::vector< T > &  rPositions,
nValue 
)
static

like FindBreak, but finds the last equal or larger position

Definition at line 428 of file accportions.cxx.

References FindBreak(), and nValue.

Referenced by SwAccessiblePortionData::FillSpecialPos(), and SwAccessiblePortionData::GetAccessiblePosition().