LibreOffice Module sw (master) 1
Functions | Variables
unoobj.cxx File Reference
#include <com/sun/star/table/TableSortField.hpp>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <svl/itemprop.hxx>
#include <o3tl/any.hxx>
#include <o3tl/safeint.hxx>
#include <osl/endian.h>
#include <unotools/collatorwrapper.hxx>
#include <autostyle_helper.hxx>
#include <swtypes.hxx>
#include <hintids.hxx>
#include <cmdid.h>
#include <unomid.h>
#include <hints.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <istyleaccess.hxx>
#include <ndtxt.hxx>
#include <unocrsr.hxx>
#include <unocrsrhelper.hxx>
#include <swundo.hxx>
#include <rootfrm.hxx>
#include <paratr.hxx>
#include <pam.hxx>
#include <shellio.hxx>
#include <unotbl.hxx>
#include <fmtruby.hxx>
#include <docsh.hxx>
#include <docstyle.hxx>
#include <fmtpdsc.hxx>
#include <pagedesc.hxx>
#include <edimp.hxx>
#include <fchrfmt.hxx>
#include <fmtautofmt.hxx>
#include <unotextrange.hxx>
#include <unotextcursor.hxx>
#include <unomap.hxx>
#include <unoprnms.hxx>
#include <unometa.hxx>
#include <unocontentcontrol.hxx>
#include <unotext.hxx>
#include <com/sun/star/text/TextMarkupType.hpp>
#include <utility>
#include <vcl/svapp.hxx>
#include <unotools/syslocale.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <SwStyleNameMapper.hxx>
#include <sortopt.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <memory>
#include <unoparaframeenum.hxx>
#include <unoparagraph.hxx>
#include <iodetect.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/profilezone.hxx>
#include <comphelper/flagguard.hxx>
#include <swmodule.hxx>
Include dependency graph for unoobj.cxx:

Go to the source code of this file.

Functions

static void lcl_setCharStyle (SwDoc &rDoc, const uno::Any &rValue, SfxItemSet &rSet)
 
static void lcl_setAutoStyle (IStyleAccess &rStyleAccess, const uno::Any &rValue, SfxItemSet &rSet, const bool bPara)
 
static void lcl_SetNodeNumStart (SwPaM &rCursor, uno::Any const &rValue)
 
static bool lcl_setCharFormatSequence (SwPaM &rPam, uno::Any const &rValue)
 
static void lcl_setDropcapCharStyle (SwPaM const &rPam, SfxItemSet &rItemSet, uno::Any const &rValue)
 
static void lcl_setRubyCharstyle (SfxItemSet &rItemSet, uno::Any const &rValue)
 
static bool lcl_ForceIntoMeta (SwPaM &rCursor, uno::Reference< text::XText > const &xParentText, const enum ForceIntoMetaMode eMode)
 
static bool propertyCausesSideEffectsInNodes (sal_uInt16 nWID)
 
static void lcl_SelectParaAndReset (SwPaM &rPaM, SwDoc &rDoc, o3tl::sorted_vector< sal_uInt16 > const &rWhichIds)
 
static void lcl_EnumerateIds (sal_uInt16 const *pIdRange, o3tl::sorted_vector< sal_uInt16 > &rWhichIds)
 

Variables

static sal_uInt16 g_ParaResetableSetRange []
 
static sal_uInt16 g_ResetableSetRange []
 

Function Documentation

◆ lcl_EnumerateIds()

static void lcl_EnumerateIds ( sal_uInt16 const *  pIdRange,
o3tl::sorted_vector< sal_uInt16 > &  rWhichIds 
)
static

◆ lcl_ForceIntoMeta()

static bool lcl_ForceIntoMeta ( SwPaM rCursor,
uno::Reference< text::XText > const &  xParentText,
const enum ForceIntoMetaMode  eMode 
)
static

◆ lcl_SelectParaAndReset()

static void lcl_SelectParaAndReset ( SwPaM rPaM,
SwDoc rDoc,
o3tl::sorted_vector< sal_uInt16 > const &  rWhichIds 
)
static

◆ lcl_setAutoStyle()

static void lcl_setAutoStyle ( IStyleAccess rStyleAccess,
const uno::Any rValue,
SfxItemSet rSet,
const bool  bPara 
)
static

◆ lcl_setCharFormatSequence()

static bool lcl_setCharFormatSequence ( SwPaM rPam,
uno::Any const &  rValue 
)
static

◆ lcl_setCharStyle()

static void lcl_setCharStyle ( SwDoc rDoc,
const uno::Any rValue,
SfxItemSet rSet 
)
static
Exceptions
lang::IllegalArgumentException
uno::RuntimeException

Definition at line 193 of file unoobj.cxx.

References ChrFmt, SwStyleNameMapper::FillUIName(), SfxStyleSheetBasePool::Find(), SwDocStyleSheet::GetCharFormat(), SwDoc::GetDocShell(), SwDocShell::GetStyleSheetPool(), SfxItemSet::Put(), and rSet.

Referenced by lcl_setCharFormatSequence().

◆ lcl_setDropcapCharStyle()

static void lcl_setDropcapCharStyle ( SwPaM const &  rPam,
SfxItemSet rItemSet,
uno::Any const &  rValue 
)
static

◆ lcl_SetNodeNumStart()

static void lcl_SetNodeNumStart ( SwPaM rCursor,
uno::Any const &  rValue 
)
static

◆ lcl_setRubyCharstyle()

static void lcl_setRubyCharstyle ( SfxItemSet rItemSet,
uno::Any const &  rValue 
)
static

◆ propertyCausesSideEffectsInNodes()

static bool propertyCausesSideEffectsInNodes ( sal_uInt16  nWID)
static

Variable Documentation

◆ g_ParaResetableSetRange

sal_uInt16 g_ParaResetableSetRange[]
static
Initial value:
= {
0
}
constexpr sal_uInt16 RES_FRMATR_BEGIN(RES_PARATR_LIST_END)
constexpr sal_uInt16 RES_PARATR_BEGIN(RES_TXTATR_END)
constexpr sal_uInt16 RES_UNKNOWNATR_END(160)
constexpr sal_uInt16 RES_FRMATR_END(141)
constexpr sal_uInt16 RES_PARATR_END(82)
constexpr sal_uInt16 RES_PARATR_LIST_BEGIN(RES_PARATR_END)
constexpr sal_uInt16 RES_UNKNOWNATR_BEGIN(RES_BOXATR_END)
constexpr sal_uInt16 RES_PARATR_LIST_END(88)

Definition at line 2503 of file unoobj.cxx.

Referenced by SwXTextCursor::setAllPropertiesToDefault().

◆ g_ResetableSetRange

sal_uInt16 g_ResetableSetRange[]
static
Initial value:
= {
0
}
constexpr sal_uInt16 RES_CHRATR_END(46)
constexpr TypedWhichId< SwFormatINetFormat > RES_TXTATR_INETFMT(51)
constexpr sal_uInt16 RES_CHRATR_BEGIN(HINT_BEGIN)
constexpr TypedWhichId< SwFormatCharFormat > RES_TXTATR_CHARFMT(52)
constexpr TypedWhichId< SvXMLAttrContainerItem > RES_TXTATR_UNKNOWN_CONTAINER(54)
constexpr TypedWhichId< SwFormatRuby > RES_TXTATR_CJK_RUBY(53)

Definition at line 2512 of file unoobj.cxx.

Referenced by SwXTextCursor::setAllPropertiesToDefault().