LibreOffice Module sw (master)  1
Macros | Enumerations | Functions
modcfg.cxx File Reference
#include <memory>
#include <hintids.hxx>
#include <comphelper/classids.hxx>
#include <o3tl/any.hxx>
#include <tools/stream.hxx>
#include <tools/fontenum.hxx>
#include <vcl/svapp.hxx>
#include <svx/svxids.hrc>
#include <editeng/svxenum.hxx>
#include <osl/diagnose.h>
#include <tools/mapunit.hxx>
#include <tools/globname.hxx>
#include <swtypes.hxx>
#include <itabenum.hxx>
#include <modcfg.hxx>
#include <fldupde.hxx>
#include <caption.hxx>
#include <unomid.h>
Include dependency graph for modcfg.cxx:

Go to the source code of this file.

Macros

#define GLOB_NAME_CALC   0
 
#define GLOB_NAME_IMPRESS   1
 
#define GLOB_NAME_DRAW   2
 
#define GLOB_NAME_MATH   3
 
#define GLOB_NAME_CHART   4
 

Enumerations

enum  InsertConfigProp {
  INS_PROP_TABLE_HEADER = 0,
  INS_PROP_TABLE_REPEATHEADER,
  INS_PROP_TABLE_BORDER,
  INS_PROP_TABLE_SPLIT,
  INS_PROP_CAP_AUTOMATIC,
  INS_PROP_CAP_CAPTIONORDERNUMBERINGFIRST,
  INS_PROP_CAP_OBJECT_TABLE_ENABLE,
  INS_PROP_CAP_OBJECT_TABLE_CATEGORY,
  INS_PROP_CAP_OBJECT_TABLE_NUMBERING,
  INS_PROP_CAP_OBJECT_TABLE_NUMBERINGSEPARATOR,
  INS_PROP_CAP_OBJECT_TABLE_CAPTIONTEXT,
  INS_PROP_CAP_OBJECT_TABLE_DELIMITER,
  INS_PROP_CAP_OBJECT_TABLE_LEVEL,
  INS_PROP_CAP_OBJECT_TABLE_POSITION,
  INS_PROP_CAP_OBJECT_TABLE_CHARACTERSTYLE,
  INS_PROP_CAP_OBJECT_FRAME_ENABLE,
  INS_PROP_CAP_OBJECT_FRAME_CATEGORY,
  INS_PROP_CAP_OBJECT_FRAME_NUMBERING,
  INS_PROP_CAP_OBJECT_FRAME_NUMBERINGSEPARATOR,
  INS_PROP_CAP_OBJECT_FRAME_CAPTIONTEXT,
  INS_PROP_CAP_OBJECT_FRAME_DELIMITER,
  INS_PROP_CAP_OBJECT_FRAME_LEVEL,
  INS_PROP_CAP_OBJECT_FRAME_POSITION,
  INS_PROP_CAP_OBJECT_FRAME_CHARACTERSTYLE,
  INS_PROP_CAP_OBJECT_GRAPHIC_ENABLE,
  INS_PROP_CAP_OBJECT_GRAPHIC_CATEGORY,
  INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERING,
  INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERINGSEPARATOR,
  INS_PROP_CAP_OBJECT_GRAPHIC_CAPTIONTEXT,
  INS_PROP_CAP_OBJECT_GRAPHIC_DELIMITER,
  INS_PROP_CAP_OBJECT_GRAPHIC_LEVEL,
  INS_PROP_CAP_OBJECT_GRAPHIC_POSITION,
  INS_PROP_CAP_OBJECT_GRAPHIC_CHARACTERSTYLE,
  INS_PROP_CAP_OBJECT_GRAPHIC_APPLYATTRIBUTES,
  INS_PROP_CAP_OBJECT_CALC_ENABLE,
  INS_PROP_CAP_OBJECT_CALC_CATEGORY,
  INS_PROP_CAP_OBJECT_CALC_NUMBERING,
  INS_PROP_CAP_OBJECT_CALC_NUMBERINGSEPARATOR,
  INS_PROP_CAP_OBJECT_CALC_CAPTIONTEXT,
  INS_PROP_CAP_OBJECT_CALC_DELIMITER,
  INS_PROP_CAP_OBJECT_CALC_LEVEL,
  INS_PROP_CAP_OBJECT_CALC_POSITION,
  INS_PROP_CAP_OBJECT_CALC_CHARACTERSTYLE,
  INS_PROP_CAP_OBJECT_CALC_APPLYATTRIBUTES,
  INS_PROP_CAP_OBJECT_IMPRESS_ENABLE,
  INS_PROP_CAP_OBJECT_IMPRESS_CATEGORY,
  INS_PROP_CAP_OBJECT_IMPRESS_NUMBERING,
  INS_PROP_CAP_OBJECT_IMPRESS_NUMBERINGSEPARATOR,
  INS_PROP_CAP_OBJECT_IMPRESS_CAPTIONTEXT,
  INS_PROP_CAP_OBJECT_IMPRESS_DELIMITER,
  INS_PROP_CAP_OBJECT_IMPRESS_LEVEL,
  INS_PROP_CAP_OBJECT_IMPRESS_POSITION,
  INS_PROP_CAP_OBJECT_IMPRESS_CHARACTERSTYLE,
  INS_PROP_CAP_OBJECT_IMPRESS_APPLYATTRIBUTES,
  INS_PROP_CAP_OBJECT_CHART_ENABLE,
  INS_PROP_CAP_OBJECT_CHART_CATEGORY,
  INS_PROP_CAP_OBJECT_CHART_NUMBERING,
  INS_PROP_CAP_OBJECT_CHART_NUMBERINGSEPARATOR,
  INS_PROP_CAP_OBJECT_CHART_CAPTIONTEXT,
  INS_PROP_CAP_OBJECT_CHART_DELIMITER,
  INS_PROP_CAP_OBJECT_CHART_LEVEL,
  INS_PROP_CAP_OBJECT_CHART_POSITION,
  INS_PROP_CAP_OBJECT_CHART_CHARACTERSTYLE,
  INS_PROP_CAP_OBJECT_CHART_APPLYATTRIBUTES,
  INS_PROP_CAP_OBJECT_FORMULA_ENABLE,
  INS_PROP_CAP_OBJECT_FORMULA_CATEGORY,
  INS_PROP_CAP_OBJECT_FORMULA_NUMBERING,
  INS_PROP_CAP_OBJECT_FORMULA_NUMBERINGSEPARATOR,
  INS_PROP_CAP_OBJECT_FORMULA_CAPTIONTEXT,
  INS_PROP_CAP_OBJECT_FORMULA_DELIMITER,
  INS_PROP_CAP_OBJECT_FORMULA_LEVEL,
  INS_PROP_CAP_OBJECT_FORMULA_POSITION,
  INS_PROP_CAP_OBJECT_FORMULA_CHARACTERSTYLE,
  INS_PROP_CAP_OBJECT_FORMULA_APPLYATTRIBUTES,
  INS_PROP_CAP_OBJECT_DRAW_ENABLE,
  INS_PROP_CAP_OBJECT_DRAW_CATEGORY,
  INS_PROP_CAP_OBJECT_DRAW_NUMBERING,
  INS_PROP_CAP_OBJECT_DRAW_NUMBERINGSEPARATOR,
  INS_PROP_CAP_OBJECT_DRAW_CAPTIONTEXT,
  INS_PROP_CAP_OBJECT_DRAW_DELIMITER,
  INS_PROP_CAP_OBJECT_DRAW_LEVEL,
  INS_PROP_CAP_OBJECT_DRAW_POSITION,
  INS_PROP_CAP_OBJECT_DRAW_CHARACTERSTYLE,
  INS_PROP_CAP_OBJECT_DRAW_APPLYATTRIBUTES,
  INS_PROP_CAP_OBJECT_OLEMISC_ENABLE,
  INS_PROP_CAP_OBJECT_OLEMISC_CATEGORY,
  INS_PROP_CAP_OBJECT_OLEMISC_NUMBERING,
  INS_PROP_CAP_OBJECT_OLEMISC_NUMBERINGSEPARATOR,
  INS_PROP_CAP_OBJECT_OLEMISC_CAPTIONTEXT,
  INS_PROP_CAP_OBJECT_OLEMISC_DELIMITER,
  INS_PROP_CAP_OBJECT_OLEMISC_LEVEL,
  INS_PROP_CAP_OBJECT_OLEMISC_POSITION,
  INS_PROP_CAP_OBJECT_OLEMISC_CHARACTERSTYLE,
  INS_PROP_CAP_OBJECT_OLEMISC_APPLYATTRIBUTES
}
 

Functions

static sal_Int32 lcl_ConvertAttrToCfg (const AuthorCharAttr &rAttr)
 
static void lcl_ConvertCfgToAttr (sal_Int32 nVal, AuthorCharAttr &rAttr, bool bDelete=false)
 
static void lcl_WriteOpt (const InsCaptionOpt &rOpt, Any *pValues, sal_Int32 nProp, sal_Int32 nOffset)
 
static void lcl_ReadOpt (InsCaptionOpt &rOpt, const Any *pValues, sal_Int32 nProp, sal_Int32 nOffset)
 

Macro Definition Documentation

#define GLOB_NAME_CALC   0
#define GLOB_NAME_CHART   4
#define GLOB_NAME_DRAW   2
#define GLOB_NAME_IMPRESS   1
#define GLOB_NAME_MATH   3

Enumeration Type Documentation

Enumerator
INS_PROP_TABLE_HEADER 
INS_PROP_TABLE_REPEATHEADER 
INS_PROP_TABLE_BORDER 
INS_PROP_TABLE_SPLIT 
INS_PROP_CAP_AUTOMATIC 
INS_PROP_CAP_CAPTIONORDERNUMBERINGFIRST 
INS_PROP_CAP_OBJECT_TABLE_ENABLE 
INS_PROP_CAP_OBJECT_TABLE_CATEGORY 
INS_PROP_CAP_OBJECT_TABLE_NUMBERING 
INS_PROP_CAP_OBJECT_TABLE_NUMBERINGSEPARATOR 
INS_PROP_CAP_OBJECT_TABLE_CAPTIONTEXT 
INS_PROP_CAP_OBJECT_TABLE_DELIMITER 
INS_PROP_CAP_OBJECT_TABLE_LEVEL 
INS_PROP_CAP_OBJECT_TABLE_POSITION 
INS_PROP_CAP_OBJECT_TABLE_CHARACTERSTYLE 
INS_PROP_CAP_OBJECT_FRAME_ENABLE 
INS_PROP_CAP_OBJECT_FRAME_CATEGORY 
INS_PROP_CAP_OBJECT_FRAME_NUMBERING 
INS_PROP_CAP_OBJECT_FRAME_NUMBERINGSEPARATOR 
INS_PROP_CAP_OBJECT_FRAME_CAPTIONTEXT 
INS_PROP_CAP_OBJECT_FRAME_DELIMITER 
INS_PROP_CAP_OBJECT_FRAME_LEVEL 
INS_PROP_CAP_OBJECT_FRAME_POSITION 
INS_PROP_CAP_OBJECT_FRAME_CHARACTERSTYLE 
INS_PROP_CAP_OBJECT_GRAPHIC_ENABLE 
INS_PROP_CAP_OBJECT_GRAPHIC_CATEGORY 
INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERING 
INS_PROP_CAP_OBJECT_GRAPHIC_NUMBERINGSEPARATOR 
INS_PROP_CAP_OBJECT_GRAPHIC_CAPTIONTEXT 
INS_PROP_CAP_OBJECT_GRAPHIC_DELIMITER 
INS_PROP_CAP_OBJECT_GRAPHIC_LEVEL 
INS_PROP_CAP_OBJECT_GRAPHIC_POSITION 
INS_PROP_CAP_OBJECT_GRAPHIC_CHARACTERSTYLE 
INS_PROP_CAP_OBJECT_GRAPHIC_APPLYATTRIBUTES 
INS_PROP_CAP_OBJECT_CALC_ENABLE 
INS_PROP_CAP_OBJECT_CALC_CATEGORY 
INS_PROP_CAP_OBJECT_CALC_NUMBERING 
INS_PROP_CAP_OBJECT_CALC_NUMBERINGSEPARATOR 
INS_PROP_CAP_OBJECT_CALC_CAPTIONTEXT 
INS_PROP_CAP_OBJECT_CALC_DELIMITER 
INS_PROP_CAP_OBJECT_CALC_LEVEL 
INS_PROP_CAP_OBJECT_CALC_POSITION 
INS_PROP_CAP_OBJECT_CALC_CHARACTERSTYLE 
INS_PROP_CAP_OBJECT_CALC_APPLYATTRIBUTES 
INS_PROP_CAP_OBJECT_IMPRESS_ENABLE 
INS_PROP_CAP_OBJECT_IMPRESS_CATEGORY 
INS_PROP_CAP_OBJECT_IMPRESS_NUMBERING 
INS_PROP_CAP_OBJECT_IMPRESS_NUMBERINGSEPARATOR 
INS_PROP_CAP_OBJECT_IMPRESS_CAPTIONTEXT 
INS_PROP_CAP_OBJECT_IMPRESS_DELIMITER 
INS_PROP_CAP_OBJECT_IMPRESS_LEVEL 
INS_PROP_CAP_OBJECT_IMPRESS_POSITION 
INS_PROP_CAP_OBJECT_IMPRESS_CHARACTERSTYLE 
INS_PROP_CAP_OBJECT_IMPRESS_APPLYATTRIBUTES 
INS_PROP_CAP_OBJECT_CHART_ENABLE 
INS_PROP_CAP_OBJECT_CHART_CATEGORY 
INS_PROP_CAP_OBJECT_CHART_NUMBERING 
INS_PROP_CAP_OBJECT_CHART_NUMBERINGSEPARATOR 
INS_PROP_CAP_OBJECT_CHART_CAPTIONTEXT 
INS_PROP_CAP_OBJECT_CHART_DELIMITER 
INS_PROP_CAP_OBJECT_CHART_LEVEL 
INS_PROP_CAP_OBJECT_CHART_POSITION 
INS_PROP_CAP_OBJECT_CHART_CHARACTERSTYLE 
INS_PROP_CAP_OBJECT_CHART_APPLYATTRIBUTES 
INS_PROP_CAP_OBJECT_FORMULA_ENABLE 
INS_PROP_CAP_OBJECT_FORMULA_CATEGORY 
INS_PROP_CAP_OBJECT_FORMULA_NUMBERING 
INS_PROP_CAP_OBJECT_FORMULA_NUMBERINGSEPARATOR 
INS_PROP_CAP_OBJECT_FORMULA_CAPTIONTEXT 
INS_PROP_CAP_OBJECT_FORMULA_DELIMITER 
INS_PROP_CAP_OBJECT_FORMULA_LEVEL 
INS_PROP_CAP_OBJECT_FORMULA_POSITION 
INS_PROP_CAP_OBJECT_FORMULA_CHARACTERSTYLE 
INS_PROP_CAP_OBJECT_FORMULA_APPLYATTRIBUTES 
INS_PROP_CAP_OBJECT_DRAW_ENABLE 
INS_PROP_CAP_OBJECT_DRAW_CATEGORY 
INS_PROP_CAP_OBJECT_DRAW_NUMBERING 
INS_PROP_CAP_OBJECT_DRAW_NUMBERINGSEPARATOR 
INS_PROP_CAP_OBJECT_DRAW_CAPTIONTEXT 
INS_PROP_CAP_OBJECT_DRAW_DELIMITER 
INS_PROP_CAP_OBJECT_DRAW_LEVEL 
INS_PROP_CAP_OBJECT_DRAW_POSITION 
INS_PROP_CAP_OBJECT_DRAW_CHARACTERSTYLE 
INS_PROP_CAP_OBJECT_DRAW_APPLYATTRIBUTES 
INS_PROP_CAP_OBJECT_OLEMISC_ENABLE 
INS_PROP_CAP_OBJECT_OLEMISC_CATEGORY 
INS_PROP_CAP_OBJECT_OLEMISC_NUMBERING 
INS_PROP_CAP_OBJECT_OLEMISC_NUMBERINGSEPARATOR 
INS_PROP_CAP_OBJECT_OLEMISC_CAPTIONTEXT 
INS_PROP_CAP_OBJECT_OLEMISC_DELIMITER 
INS_PROP_CAP_OBJECT_OLEMISC_LEVEL 
INS_PROP_CAP_OBJECT_OLEMISC_POSITION 
INS_PROP_CAP_OBJECT_OLEMISC_CHARACTERSTYLE 
INS_PROP_CAP_OBJECT_OLEMISC_APPLYATTRIBUTES 

Definition at line 362 of file modcfg.cxx.

Function Documentation

static sal_Int32 lcl_ConvertAttrToCfg ( const AuthorCharAttr rAttr)
static
static void lcl_ConvertCfgToAttr ( sal_Int32  nVal,
AuthorCharAttr rAttr,
bool  bDelete = false 
)
static
static void lcl_ReadOpt ( InsCaptionOpt rOpt,
const Any *  pValues,
sal_Int32  nProp,
sal_Int32  nOffset 
)
static
static void lcl_WriteOpt ( const InsCaptionOpt rOpt,
Any *  pValues,
sal_Int32  nProp,
sal_Int32  nOffset 
)
static