LibreOffice Module sw (master) 1
Classes | Macros | Typedefs | Functions | Variables
unoidx.cxx File Reference
#include <memory>
#include <unoidx.hxx>
#include <unoidxcoll.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/container/XIndexReplace.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/text/ChapterFormat.hpp>
#include <com/sun/star/text/ReferenceFieldPart.hpp>
#include <com/sun/star/text/BibliographyDataField.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <comphelper/interfacecontainer4.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <tools/UnitConversion.hxx>
#include <vcl/svapp.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <editeng/memberids.h>
#include <swtypes.hxx>
#include <shellres.hxx>
#include <viewsh.hxx>
#include <doc.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <docary.hxx>
#include <fmtcntnt.hxx>
#include <unomap.hxx>
#include <unotextrange.hxx>
#include <unotextcursor.hxx>
#include <unosection.hxx>
#include <doctxm.hxx>
#include <txttxmrk.hxx>
#include <ndtxt.hxx>
#include <docsh.hxx>
#include <chpfld.hxx>
#include <editsh.hxx>
#include <SwStyleNameMapper.hxx>
#include <strings.hrc>
#include <comphelper/servicehelper.hxx>
#include <comphelper/string.hxx>
#include <cppuhelper/implbase.hxx>
#include <svl/itemprop.hxx>
#include <svl/listener.hxx>
#include <mutex>
Include dependency graph for unoidx.cxx:

Go to the source code of this file.

Classes

class  SwXDocumentIndex::StyleAccess_Impl
 
class  SwXDocumentIndex::TokenAccess_Impl
 
class  SwXDocumentIndex::Impl
 
class  SwXDocumentIndexMark::Impl
 

Macros

#define USER_LEN   12
 
#define USER_AND_SUFFIXLEN   19
 

Typedefs

typedef ::cppu::WeakImplHelper< lang::XServiceInfo, container::XIndexReplace > SwXDocumentIndexStyleAccess_Base
 
typedef ::cppu::WeakImplHelper< lang::XServiceInfo, container::XIndexReplace > SwXDocumentIndexTokenAccess_Base
 

Functions

template<typename T >
static T lcl_AnyToType (uno::Any const &rVal)
 
template<typename T >
static void lcl_AnyToBitMask (uno::Any const &rValue, T &rBitMask, const T nBit)
 
template<typename T >
static void lcl_BitMaskToAny (uno::Any &o_rValue, const T nBitMask, const T nBit)
 
static void lcl_ReAssignTOXType (SwDoc &rDoc, SwTOXBase &rTOXBase, const OUString &rNewName)
 
static void lcl_ConvertTOUNameToProgrammaticName (OUString &rTmp)
 
static void lcl_ConvertTOUNameToUserName (OUString &rTmp)
 
static sal_uInt16 lcl_TypeToPropertyMap_Index (const TOXTypes eType)
 
static void lcl_CalcLayout (SwDoc *pDoc)
 
static sal_uInt16 lcl_TypeToPropertyMap_Mark (const TOXTypes eType)
 

Variables

constexpr OUStringLiteral cUserDefined = u"User-Defined"
 
const char cUserSuffix [] = " (user)"
 
const struct TokenType_ g_TokenTypes []
 

Macro Definition Documentation

◆ USER_AND_SUFFIXLEN

#define USER_AND_SUFFIXLEN   19

Definition at line 124 of file unoidx.cxx.

◆ USER_LEN

#define USER_LEN   12

Definition at line 123 of file unoidx.cxx.

Typedef Documentation

◆ SwXDocumentIndexStyleAccess_Base

typedef ::cppu::WeakImplHelper< lang::XServiceInfo, container::XIndexReplace> SwXDocumentIndexStyleAccess_Base

Definition at line 165 of file unoidx.cxx.

◆ SwXDocumentIndexTokenAccess_Base

typedef ::cppu::WeakImplHelper< lang::XServiceInfo, container::XIndexReplace> SwXDocumentIndexTokenAccess_Base

Definition at line 204 of file unoidx.cxx.

Function Documentation

◆ lcl_AnyToBitMask()

template<typename T >
static void lcl_AnyToBitMask ( uno::Any const &  rValue,
T &  rBitMask,
const T  nBit 
)
static
Exceptions
lang::IllegalArgumentException

Definition at line 82 of file unoidx.cxx.

References nBit.

Referenced by SwXDocumentIndex::setPropertyValue().

◆ lcl_AnyToType()

template<typename T >
static T lcl_AnyToType ( uno::Any const &  rVal)
static
Exceptions
lang::IllegalArgumentException

Definition at line 70 of file unoidx.cxx.

◆ lcl_BitMaskToAny()

template<typename T >
static void lcl_BitMaskToAny ( uno::Any o_rValue,
const T  nBitMask,
const T  nBit 
)
static

Definition at line 91 of file unoidx.cxx.

References nBit.

Referenced by SwXDocumentIndex::getPropertyValue().

◆ lcl_CalcLayout()

static void lcl_CalcLayout ( SwDoc pDoc)
static

◆ lcl_ConvertTOUNameToProgrammaticName()

static void lcl_ConvertTOUNameToProgrammaticName ( OUString &  rTmp)
static

◆ lcl_ConvertTOUNameToUserName()

static void lcl_ConvertTOUNameToUserName ( OUString &  rTmp)
static

◆ lcl_ReAssignTOXType()

static void lcl_ReAssignTOXType ( SwDoc rDoc,
SwTOXBase rTOXBase,
const OUString &  rNewName 
)
static

◆ lcl_TypeToPropertyMap_Index()

static sal_uInt16 lcl_TypeToPropertyMap_Index ( const TOXTypes  eType)
static

◆ lcl_TypeToPropertyMap_Mark()

static sal_uInt16 lcl_TypeToPropertyMap_Mark ( const TOXTypes  eType)
static

Variable Documentation

◆ cUserDefined

constexpr OUStringLiteral cUserDefined = u"User-Defined"
constexpr

◆ cUserSuffix

const char cUserSuffix[] = " (user)"

◆ g_TokenTypes

const struct TokenType_ g_TokenTypes[]
Initial value:
=
{
{ "TokenEntryNumber", TOKEN_ENTRY_NO },
{ "TokenEntryText", TOKEN_ENTRY_TEXT },
{ "TokenTabStop", TOKEN_TAB_STOP },
{ "TokenText", TOKEN_TEXT },
{ "TokenPageNumber", TOKEN_PAGE_NUMS },
{ "TokenChapterInfo", TOKEN_CHAPTER_INFO },
{ "TokenHyperlinkStart", TOKEN_LINK_START },
{ "TokenHyperlinkEnd", TOKEN_LINK_END },
{ "TokenBibliographyDataField", TOKEN_AUTHORITY },
{ nullptr, static_cast<enum FormTokenType>(0) }
}
FormTokenType
Definition: tox.hxx:229
@ TOKEN_ENTRY_NO
Definition: tox.hxx:230
@ TOKEN_LINK_START
Definition: tox.hxx:237
@ TOKEN_TEXT
Definition: tox.hxx:234
@ TOKEN_AUTHORITY
Definition: tox.hxx:239
@ TOKEN_PAGE_NUMS
Definition: tox.hxx:235
@ TOKEN_TAB_STOP
Definition: tox.hxx:233
@ TOKEN_ENTRY_TEXT
Definition: tox.hxx:231
@ TOKEN_CHAPTER_INFO
Definition: tox.hxx:236
@ TOKEN_LINK_END
Definition: tox.hxx:238

Definition at line 2638 of file unoidx.cxx.

Referenced by SwXDocumentIndex::TokenAccess_Impl::replaceByIndex().