LibreOffice Module sw (master)  1
Functions | Variables
tox.cxx File Reference
#include <hintids.hxx>
#include <swtypes.hxx>
#include <txtatr.hxx>
#include <ndtxt.hxx>
#include <txttxmrk.hxx>
#include <tox.hxx>
#include <strings.hrc>
#include <doc.hxx>
#include <docary.hxx>
#include <paratr.hxx>
#include <editeng/tstpitem.hxx>
#include <SwStyleNameMapper.hxx>
#include <hints.hxx>
#include <functional>
#include <calbck.hxx>
#include <boost/optional.hpp>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <algorithm>
Include dependency graph for tox.cxx:

Go to the source code of this file.

Functions

const OUString S_PAGE_DELI (", ")
 
static FormTokenType lcl_GetTokenType (const OUString &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 boost::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 = '~'
 
static const char * STR_POOLCOLL_TOX_ARY []
 
static const char * STR_POOLCOLL_TOX_CNTNT_ARY []
 
static const char * STR_POOLCOLL_TOX_CNTNT_EXTRA_ARY []
 
static const char * STR_POOLCOLL_TOX_USER_ARY []
 
static const char * STR_POOLCOLL_TOX_USER_EXTRA_ARY []
 
static const char * STR_POOLCOLL_TOX_ILLUS_ARY []
 
static const char * STR_POOLCOLL_TOX_OBJECT_ARY []
 
static const char * STR_POOLCOLL_TOX_TABLES_ARY []
 
static const char * STR_POOLCOLL_TOX_AUTHORITIES_ARY []
 
static const char * STR_POOLCOLL_TOX_CITATION_ARY []
 

Function Documentation

static boost::optional<SwFormToken> lcl_BuildToken ( const OUString &  sPattern,
sal_Int32 &  nCurPatternPos 
)
static
static FormTokenType lcl_GetTokenType ( const OUString &  sToken,
sal_Int32 &  rTokenLen 
)
static

Returns the type of a token.

Parameters
sTokenthe string representation of the token
rTokenLenreturn parameter the length of the head of the token
Returns
the type of the token

Definition at line 745 of file tox.cxx.

References SwForm::GetFormAuth(), SwForm::GetFormChapterMark(), SwForm::GetFormEntry(), SwForm::GetFormEntryNum(), SwForm::GetFormEntryText(), SwForm::GetFormLinkEnd(), SwForm::GetFormLinkStt(), SwForm::GetFormPageNums(), SwForm::GetFormTab(), SwForm::GetFormText(), i, SAL_WARN, TOKEN_AUTHORITY, TOKEN_CHAPTER_INFO, TOKEN_END, TOKEN_ENTRY, TOKEN_ENTRY_NO, TOKEN_ENTRY_TEXT, TOKEN_LINK_END, TOKEN_LINK_START, TOKEN_PAGE_NUMS, TOKEN_TAB_STOP, and TOKEN_TEXT.

Referenced by lcl_BuildToken().

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

References TOX_STYLE_DELIMITER.

Referenced by lcl_BuildToken().

const OUString S_PAGE_DELI ( ,
 
)

Variable Documentation

const sal_Unicode C_END_PAGE_NUM = '~'
const sal_Unicode C_NUM_REPL = '@'
const char* STR_POOLCOLL_TOX_ARY[]
static
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 215 of file tox.cxx.

Referenced by SwForm::SwForm().

const char* STR_POOLCOLL_TOX_AUTHORITIES_ARY[]
static
Initial value:
=
{
STR_POOLCOLL_TOX_AUTHORITIESH,
STR_POOLCOLL_TOX_AUTHORITIES1
}

Definition at line 288 of file tox.cxx.

Referenced by SwForm::SwForm().

const char* STR_POOLCOLL_TOX_CITATION_ARY[]
static
Initial value:
=
{
STR_POOLCOLL_TOX_CITATION
}

Definition at line 295 of file tox.cxx.

Referenced by SwForm::SwForm().

const char* STR_POOLCOLL_TOX_CNTNT_ARY[]
static
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 225 of file tox.cxx.

Referenced by SwForm::SwForm().

const char* STR_POOLCOLL_TOX_CNTNT_EXTRA_ARY[]
static
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 236 of file tox.cxx.

Referenced by SwForm::SwForm().

const char* STR_POOLCOLL_TOX_ILLUS_ARY[]
static
Initial value:
=
{
STR_POOLCOLL_TOX_ILLUSH,
STR_POOLCOLL_TOX_ILLUS1
}

Definition at line 267 of file tox.cxx.

Referenced by SwForm::SwForm().

const char* STR_POOLCOLL_TOX_OBJECT_ARY[]
static
Initial value:
=
{
STR_POOLCOLL_TOX_OBJECTH,
STR_POOLCOLL_TOX_OBJECT1
}

Definition at line 274 of file tox.cxx.

Referenced by SwForm::SwForm().

const char* STR_POOLCOLL_TOX_TABLES_ARY[]
static
Initial value:
=
{
STR_POOLCOLL_TOX_TABLESH,
STR_POOLCOLL_TOX_TABLES1
}

Definition at line 281 of file tox.cxx.

Referenced by SwForm::SwForm().

const char* STR_POOLCOLL_TOX_USER_ARY[]
static
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 246 of file tox.cxx.

Referenced by SwForm::SwForm().

const char* STR_POOLCOLL_TOX_USER_EXTRA_ARY[]
static
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 257 of file tox.cxx.

Referenced by SwForm::SwForm().