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 <osl/mutex.hxx>
#include <cppuhelper/interfacecontainer.h>
#include <comphelper/interfacecontainer2.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <vcl/svapp.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <editeng/unolingu.hxx>
#include <editeng/memberids.h>
#include <hints.hxx>
#include <cmdid.h>
#include <swtypes.hxx>
#include <shellres.hxx>
#include <viewsh.hxx>
#include <doc.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <docary.hxx>
#include <poolfmt.hxx>
#include <pagedesc.hxx>
#include <fmtcntnt.hxx>
#include <unomap.hxx>
#include <unotextrange.hxx>
#include <unotextcursor.hxx>
#include <unosection.hxx>
#include <doctxm.hxx>
#include <txttxmrk.hxx>
#include <unocrsr.hxx>
#include <unostyle.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 dependency graph for unoidx.cxx:

Go to the source code of this file.

Classes

class  SwXDocumentIndex::StyleAccess_Impl
 
class  SwXDocumentIndex::TokenAccess_Impl
 
class  SwDocIndexDescriptorProperties_Impl
 
class  SwXDocumentIndex::Impl
 
class  SwXDocumentIndexMark::Impl
 
struct  NotContainedIn< T >
 
struct  TokenType_
 

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 *pDoc, 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

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

Macro Definition Documentation

#define USER_AND_SUFFIXLEN   19

Definition at line 131 of file unoidx.cxx.

Referenced by lcl_ConvertTOUNameToUserName().

#define USER_LEN   12

Definition at line 130 of file unoidx.cxx.

Referenced by lcl_ConvertTOUNameToUserName().

Typedef Documentation

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

Definition at line 172 of file unoidx.cxx.

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

Definition at line 211 of file unoidx.cxx.

Function Documentation

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

Definition at line 89 of file unoidx.cxx.

Referenced by SwXDocumentIndex::setPropertyValue().

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

Definition at line 77 of file unoidx.cxx.

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

Definition at line 98 of file unoidx.cxx.

Referenced by SwXDocumentIndex::getPropertyValue().

static void lcl_CalcLayout ( SwDoc pDoc)
static
static void lcl_ConvertTOUNameToProgrammaticName ( OUString &  rTmp)
static
static void lcl_ConvertTOUNameToUserName ( OUString &  rTmp)
static
static void lcl_ReAssignTOXType ( SwDoc pDoc,
SwTOXBase rTOXBase,
const OUString &  rNewName 
)
static
static sal_uInt16 lcl_TypeToPropertyMap_Index ( const TOXTypes  eType)
static
static sal_uInt16 lcl_TypeToPropertyMap_Mark ( const TOXTypes  eType)
static

Variable Documentation

const char cUserDefined[] = "User-Defined"
static
const char cUserSuffix[] = " (user)"
static
const struct TokenType_ g_TokenTypes[]
static
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:191

Definition at line 2647 of file unoidx.cxx.