LibreOffice Module sw (master) 1
Functions | Variables
tox.cxx File Reference
#include <calbck.hxx>
#include <doc.hxx>
#include <docary.hxx>
#include <editeng/tstpitem.hxx>
#include <hintids.hxx>
#include <hints.hxx>
#include <ndtxt.hxx>
#include <paratr.hxx>
#include <rootfrm.hxx>
#include <scriptinfo.hxx>
#include <strings.hrc>
#include <swtypes.hxx>
#include <tox.hxx>
#include <txtfrm.hxx>
#include <txttxmrk.hxx>
#include <unoidx.hxx>
#include <optional>
#include <sal/log.hxx>
#include <o3tl/string_view.hxx>
#include <osl/diagnose.h>
#include <algorithm>
#include <string_view>
#include <utility>
Include dependency graph for tox.cxx:

Go to the source code of this file.

Functions

static FormTokenType lcl_GetTokenType (std::u16string_view sToken, sal_Int32 &rTokenLen)
 Returns the type of a token. More...
 
static std::u16string_view lcl_SearchNextToken (std::u16string_view sPattern, sal_Int32 const nStt)
 Returns the string of a token. More...
 
static std::optional< SwFormTokenlcl_BuildToken (std::u16string_view sPattern, size_t &nCurPatternPos)
 Builds a token from its string representation. More...
 

Variables

const sal_Unicode C_NUM_REPL = '@'
 
const sal_Unicode C_END_PAGE_NUM = '~'
 
const TranslateId STR_POOLCOLL_TOX_ARY []
 
const TranslateId STR_POOLCOLL_TOX_CNTNT_ARY []
 
const TranslateId STR_POOLCOLL_TOX_CNTNT_EXTRA_ARY []
 
const TranslateId STR_POOLCOLL_TOX_USER_ARY []
 
const TranslateId STR_POOLCOLL_TOX_USER_EXTRA_ARY []
 
const TranslateId STR_POOLCOLL_TOX_ILLUS_ARY []
 
const TranslateId STR_POOLCOLL_TOX_OBJECT_ARY []
 
const TranslateId STR_POOLCOLL_TOX_TABLES_ARY []
 
const TranslateId STR_POOLCOLL_TOX_AUTHORITIES_ARY []
 
const TranslateId STR_POOLCOLL_TOX_CITATION_ARY []
 

Function Documentation

◆ lcl_BuildToken()

static std::optional< SwFormToken > lcl_BuildToken ( std::u16string_view  sPattern,
size_t &  nCurPatternPos 
)
static

◆ lcl_GetTokenType()

static FormTokenType lcl_GetTokenType ( std::u16string_view  sToken,
sal_Int32 &  rTokenLen 
)
static

◆ lcl_SearchNextToken()

static std::u16string_view lcl_SearchNextToken ( std::u16string_view  sPattern,
sal_Int32 const  nStt 
)
static

Returns the string of a token.

Parameters
sPatternthe whole pattern
nSttstarting position of the token
Returns
the string representation of the token

Definition at line 805 of file tox.cxx.

References TOX_STYLE_DELIMITER, and u.

Referenced by lcl_BuildToken().

Variable Documentation

◆ C_END_PAGE_NUM

const sal_Unicode C_END_PAGE_NUM = '~'

◆ C_NUM_REPL

const sal_Unicode C_NUM_REPL = '@'

◆ STR_POOLCOLL_TOX_ARY

const TranslateId STR_POOLCOLL_TOX_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_IDXH,
STR_POOLCOLL_TOX_IDX1,
STR_POOLCOLL_TOX_IDX2,
STR_POOLCOLL_TOX_IDX3,
STR_POOLCOLL_TOX_IDXBREAK
}

Definition at line 237 of file tox.cxx.

Referenced by SwForm::SwForm().

◆ STR_POOLCOLL_TOX_AUTHORITIES_ARY

const TranslateId STR_POOLCOLL_TOX_AUTHORITIES_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_AUTHORITIESH,
STR_POOLCOLL_TOX_AUTHORITIES1
}

Definition at line 310 of file tox.cxx.

Referenced by SwForm::SwForm().

◆ STR_POOLCOLL_TOX_CITATION_ARY

const TranslateId STR_POOLCOLL_TOX_CITATION_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_CITATION
}

Definition at line 317 of file tox.cxx.

Referenced by SwForm::SwForm().

◆ STR_POOLCOLL_TOX_CNTNT_ARY

const TranslateId STR_POOLCOLL_TOX_CNTNT_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_CNTNTH,
STR_POOLCOLL_TOX_CNTNT1,
STR_POOLCOLL_TOX_CNTNT2,
STR_POOLCOLL_TOX_CNTNT3,
STR_POOLCOLL_TOX_CNTNT4,
STR_POOLCOLL_TOX_CNTNT5
}

Definition at line 247 of file tox.cxx.

Referenced by SwForm::SwForm().

◆ STR_POOLCOLL_TOX_CNTNT_EXTRA_ARY

const TranslateId STR_POOLCOLL_TOX_CNTNT_EXTRA_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_CNTNT6,
STR_POOLCOLL_TOX_CNTNT7,
STR_POOLCOLL_TOX_CNTNT8,
STR_POOLCOLL_TOX_CNTNT9,
STR_POOLCOLL_TOX_CNTNT10
}

Definition at line 258 of file tox.cxx.

Referenced by SwForm::SwForm().

◆ STR_POOLCOLL_TOX_ILLUS_ARY

const TranslateId STR_POOLCOLL_TOX_ILLUS_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_ILLUSH,
STR_POOLCOLL_TOX_ILLUS1
}

Definition at line 289 of file tox.cxx.

Referenced by SwForm::SwForm().

◆ STR_POOLCOLL_TOX_OBJECT_ARY

const TranslateId STR_POOLCOLL_TOX_OBJECT_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_OBJECTH,
STR_POOLCOLL_TOX_OBJECT1
}

Definition at line 296 of file tox.cxx.

Referenced by SwForm::SwForm().

◆ STR_POOLCOLL_TOX_TABLES_ARY

const TranslateId STR_POOLCOLL_TOX_TABLES_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_TABLESH,
STR_POOLCOLL_TOX_TABLES1
}

Definition at line 303 of file tox.cxx.

Referenced by SwForm::SwForm().

◆ STR_POOLCOLL_TOX_USER_ARY

const TranslateId STR_POOLCOLL_TOX_USER_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_USERH,
STR_POOLCOLL_TOX_USER1,
STR_POOLCOLL_TOX_USER2,
STR_POOLCOLL_TOX_USER3,
STR_POOLCOLL_TOX_USER4,
STR_POOLCOLL_TOX_USER5
}

Definition at line 268 of file tox.cxx.

Referenced by SwForm::SwForm().

◆ STR_POOLCOLL_TOX_USER_EXTRA_ARY

const TranslateId STR_POOLCOLL_TOX_USER_EXTRA_ARY[]
Initial value:
=
{
STR_POOLCOLL_TOX_USER6,
STR_POOLCOLL_TOX_USER7,
STR_POOLCOLL_TOX_USER8,
STR_POOLCOLL_TOX_USER9,
STR_POOLCOLL_TOX_USER10
}

Definition at line 279 of file tox.cxx.

Referenced by SwForm::SwForm().