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 <optional>
#include <sal/log.hxx>
#include <o3tl/string_view.hxx>
#include <osl/diagnose.h>
#include <algorithm>
#include <string_view>
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 OUString lcl_SearchNextToken (const OUString &sPattern, sal_Int32 const nStt)
 Returns the string of a token. More...
 
static std::optional< SwFormTokenlcl_BuildToken (const OUString &sPattern, sal_Int32 &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

static std::optional<SwFormToken> lcl_BuildToken ( const OUString &  sPattern,
sal_Int32 &  nCurPatternPos 
)
static
static FormTokenType lcl_GetTokenType ( std::u16string_view  sToken,
sal_Int32 &  rTokenLen 
)
static
static OUString lcl_SearchNextToken ( const OUString &  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 794 of file tox.cxx.

References TOX_STYLE_DELIMITER.

Referenced by lcl_BuildToken().

Variable Documentation

const sal_Unicode C_END_PAGE_NUM = '~'
const sal_Unicode C_NUM_REPL = '@'
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 228 of file tox.cxx.

Referenced by SwForm::SwForm().

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

Definition at line 301 of file tox.cxx.

Referenced by SwForm::SwForm().

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

Definition at line 308 of file tox.cxx.

Referenced by SwForm::SwForm().

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 238 of file tox.cxx.

Referenced by SwForm::SwForm().

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 249 of file tox.cxx.

Referenced by SwForm::SwForm().

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

Definition at line 280 of file tox.cxx.

Referenced by SwForm::SwForm().

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

Definition at line 287 of file tox.cxx.

Referenced by SwForm::SwForm().

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

Definition at line 294 of file tox.cxx.

Referenced by SwForm::SwForm().

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 259 of file tox.cxx.

Referenced by SwForm::SwForm().

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 270 of file tox.cxx.

Referenced by SwForm::SwForm().