LibreOffice Module sw (master)  1
Macros | Functions
accportions.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include "accportions.hxx"
#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

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

Definition at line 51 of file accportions.cxx.

Referenced by SwAccessiblePortionData::Special().

Function Documentation

template<typename T >
static size_t FindBreak ( const std::vector< T > &  rPositions,
nValue 
)
static
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 433 of file accportions.cxx.

References FindBreak().

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