|
LibreOffice Module sw (master) 1
|
#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>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< SwFormToken > | lcl_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 [] |
|
static |
Builds a token from its string representation.
@sPattern the whole pattern @nCurPatternPos starting position of the token
Definition at line 843 of file tox.cxx.
References SwFormToken::bWithTab, SwFormToken::cTabFillChar, SwFormToken::eTabAlign, o3tl::getToken(), lcl_GetTokenType(), lcl_SearchNextToken(), SwFormToken::nAuthorityField, SwFormToken::nChapterFormat, SwFormToken::nOutlineLevel, SwFormToken::nPoolId, SwFormToken::nTabStopPosition, SwFormToken::sCharStyleName, SwFormToken::sText, o3tl::toInt32(), TOKEN_AUTHORITY, TOKEN_CHAPTER_INFO, TOKEN_END, TOKEN_ENTRY_NO, TOKEN_TAB_STOP, TOKEN_TEXT, and TOX_STYLE_DELIMITER.
Referenced by SwFormTokensHelper::SwFormTokensHelper().
|
static |
Returns the type of a token.
| sToken | the string representation of the token |
| rTokenLen | return parameter the length of the head of the token |
Definition at line 762 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, o3tl::starts_with(), 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 |
Returns the string of a token.
| sPattern | the whole pattern |
| nStt | starting position of the token |
Definition at line 805 of file tox.cxx.
References TOX_STYLE_DELIMITER, and u.
Referenced by lcl_BuildToken().
| const sal_Unicode C_END_PAGE_NUM = '~' |
Definition at line 48 of file tox.cxx.
Referenced by sw::ToxTextGenerator::ConstructPageNumberPlaceholder(), and SwTOXBaseSection::UpdatePageNum_().
| const sal_Unicode C_NUM_REPL = '@' |
Definition at line 47 of file tox.cxx.
Referenced by sw::ToxTextGenerator::ConstructPageNumberPlaceholder(), and SwTOXBaseSection::UpdatePageNum_().
| const TranslateId STR_POOLCOLL_TOX_ARY[] |
Definition at line 237 of file tox.cxx.
Referenced by SwForm::SwForm().
| const TranslateId STR_POOLCOLL_TOX_AUTHORITIES_ARY[] |
Definition at line 310 of file tox.cxx.
Referenced by SwForm::SwForm().
| const TranslateId STR_POOLCOLL_TOX_CITATION_ARY[] |
Definition at line 317 of file tox.cxx.
Referenced by SwForm::SwForm().
| const TranslateId STR_POOLCOLL_TOX_CNTNT_ARY[] |
Definition at line 247 of file tox.cxx.
Referenced by SwForm::SwForm().
| const TranslateId STR_POOLCOLL_TOX_CNTNT_EXTRA_ARY[] |
Definition at line 258 of file tox.cxx.
Referenced by SwForm::SwForm().
| const TranslateId STR_POOLCOLL_TOX_ILLUS_ARY[] |
Definition at line 289 of file tox.cxx.
Referenced by SwForm::SwForm().
| const TranslateId STR_POOLCOLL_TOX_OBJECT_ARY[] |
Definition at line 296 of file tox.cxx.
Referenced by SwForm::SwForm().
| const TranslateId STR_POOLCOLL_TOX_TABLES_ARY[] |
Definition at line 303 of file tox.cxx.
Referenced by SwForm::SwForm().
| const TranslateId STR_POOLCOLL_TOX_USER_ARY[] |
Definition at line 268 of file tox.cxx.
Referenced by SwForm::SwForm().
| const TranslateId STR_POOLCOLL_TOX_USER_EXTRA_ARY[] |
Definition at line 279 of file tox.cxx.
Referenced by SwForm::SwForm().