LibreOffice Module sc (master)  1
Macros | Functions | Variables
styleuno.cxx File Reference
#include <scitems.hxx>
#include <editeng/memberids.h>
#include <svx/algitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/justifyitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/numitem.hxx>
#include <editeng/shaditem.hxx>
#include <svx/pageitem.hxx>
#include <editeng/pbinitem.hxx>
#include <svx/unomid.hxx>
#include <editeng/unonrule.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/sfxsids.hrc>
#include <vcl/virdev.hxx>
#include <vcl/svapp.hxx>
#include <svl/itempool.hxx>
#include <svl/itemset.hxx>
#include <svl/intitem.hxx>
#include <svl/zformat.hxx>
#include <tools/fract.hxx>
#include <osl/diagnose.h>
#include <com/sun/star/table/BorderLine.hpp>
#include <com/sun/star/table/TableBorder.hpp>
#include <com/sun/star/table/TableBorder2.hpp>
#include <com/sun/star/table/ShadowFormat.hpp>
#include <com/sun/star/table/CellHoriJustify.hpp>
#include <com/sun/star/table/CellOrientation.hpp>
#include <com/sun/star/style/PageStyleLayout.hpp>
#include <com/sun/star/style/GraphicLocation.hpp>
#include <com/sun/star/sheet/XHeaderFooterContent.hpp>
#include <com/sun/star/util/CellProtection.hpp>
#include <com/sun/star/awt/FontSlant.hpp>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/graphic/XGraphic.hpp>
#include <comphelper/propertysequence.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <styleuno.hxx>
#include <docsh.hxx>
#include <attrib.hxx>
#include <stlpool.hxx>
#include <docpool.hxx>
#include <miscuno.hxx>
#include <tablink.hxx>
#include <unonames.hxx>
#include <unowids.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <cellsuno.hxx>
#include <stylehelper.hxx>
Include dependency graph for styleuno.cxx:

Go to the source code of this file.

Macros

#define SC_STYLE_FAMILY_COUNT   2
 
#define SC_FAMILYNAME_CELL   "CellStyles"
 
#define SC_FAMILYNAME_PAGE   "PageStyles"
 
#define SCSTYLE_SERVICE   "com.sun.star.style.Style"
 
#define SCCELLSTYLE_SERVICE   "com.sun.star.style.CellStyle"
 
#define SCPAGESTYLE_SERVICE   "com.sun.star.style.PageStyle"
 
#define SC_PAPERBIN_DEFAULTNAME   "[From printer settings]"
 

Functions

static const SfxItemPropertySetlcl_GetCellStyleSet ()
 
static const SfxItemPropertySetlcl_GetPageStyleSet ()
 
static const SfxItemPropertyMaplcl_GetHeaderStyleMap ()
 
static const SfxItemPropertyMaplcl_GetFooterStyleMap ()
 
static bool lcl_AnyTabProtected (const ScDocument &rDoc)
 
 UNO3_GETIMPLEMENTATION_IMPL (ScStyleObj)
 

Variables

static const SfxStyleFamily aStyleFamilyTypes [SC_STYLE_FAMILY_COUNT] = { SfxStyleFamily::Para, SfxStyleFamily::Page }
 

Macro Definition Documentation

#define SC_FAMILYNAME_CELL   "CellStyles"
#define SC_FAMILYNAME_PAGE   "PageStyles"
#define SC_PAPERBIN_DEFAULTNAME   "[From printer settings]"
#define SC_STYLE_FAMILY_COUNT   2
#define SCCELLSTYLE_SERVICE   "com.sun.star.style.CellStyle"

Definition at line 394 of file styleuno.cxx.

Referenced by ScStyleObj::getSupportedServiceNames().

#define SCPAGESTYLE_SERVICE   "com.sun.star.style.PageStyle"

Definition at line 395 of file styleuno.cxx.

Referenced by ScStyleObj::getSupportedServiceNames().

#define SCSTYLE_SERVICE   "com.sun.star.style.Style"

Definition at line 393 of file styleuno.cxx.

Referenced by ScStyleObj::getSupportedServiceNames().

Function Documentation

static bool lcl_AnyTabProtected ( const ScDocument rDoc)
static
static const SfxItemPropertySet* lcl_GetCellStyleSet ( )
static

CONVERT_TWIPS

Definition at line 79 of file styleuno.cxx.

References ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_LANGUAGE(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_LANGUAGE(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_EMPHASISMARK(), ATTR_FONT_HEIGHT(), ATTR_FONT_LANGUAGE(), ATTR_FONT_OVERLINE(), ATTR_FONT_POSTURE(), ATTR_FONT_RELIEF(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_FONT_WORDLINE(), ATTR_FORBIDDEN_RULES(), ATTR_HANGPUNCTUATION(), ATTR_HIDDEN(), ATTR_HOR_JUSTIFY(), ATTR_HOR_JUSTIFY_METHOD(), ATTR_HYPERLINK(), ATTR_HYPHENATE(), ATTR_INDENT(), ATTR_LINEBREAK(), ATTR_MARGIN(), ATTR_PROTECTION(), ATTR_ROTATE_MODE(), ATTR_ROTATE_VALUE(), ATTR_SCRIPTSPACE(), ATTR_SHADOW(), ATTR_SHRINKTOFIT(), ATTR_STACKED(), ATTR_USERDEF(), ATTR_VALUE_FORMAT(), ATTR_VER_JUSTIFY(), ATTR_VER_JUSTIFY_METHOD(), ATTR_VERTICAL_ASIAN(), ATTR_WRITINGDIR(), BOTTOM_BORDER, CONVERT_TWIPS, cppu::UnoType< class >::get(), LEFT_BORDER, MID_BACK_COLOR, MID_CROSS_OUT, MID_CROSSED_OUT, MID_EMPHASIS, MID_FONT_CHAR_SET, MID_FONT_FAMILY, MID_FONT_FAMILY_NAME, MID_FONT_PITCH, MID_FONT_STYLE_NAME, MID_FONTHEIGHT, MID_GRAPHIC_TRANSPARENT, MID_HORJUST_ADJUST, MID_HORJUST_HORJUST, MID_LANG_LOCALE, MID_MARGIN_L_MARGIN, MID_MARGIN_LO_MARGIN, MID_MARGIN_R_MARGIN, MID_MARGIN_UP_MARGIN, MID_POSTURE, MID_RELIEF, MID_TL_COLOR, MID_TL_HASCOLOR, MID_TL_STYLE, MID_WEIGHT, RIGHT_BORDER, SC_UNO_CJK_CFCHARS, SC_UNO_CJK_CFFAMIL, SC_UNO_CJK_CFNAME, SC_UNO_CJK_CFPITCH, SC_UNO_CJK_CFSTYLE, SC_UNO_CJK_CHEIGHT, SC_UNO_CJK_CLOCAL, SC_UNO_CJK_CPOST, SC_UNO_CJK_CWEIGHT, SC_UNO_CTL_CFCHARS, SC_UNO_CTL_CFFAMIL, SC_UNO_CTL_CFNAME, SC_UNO_CTL_CFPITCH, SC_UNO_CTL_CFSTYLE, SC_UNO_CTL_CHEIGHT, SC_UNO_CTL_CLOCAL, SC_UNO_CTL_CPOST, SC_UNO_CTL_CWEIGHT, SC_UNONAME_ASIANVERT, SC_UNONAME_BOTTBORDER, SC_UNONAME_BOTTBORDER2, SC_UNONAME_CCOLOR, SC_UNONAME_CCROSS, SC_UNONAME_CELLBACK, SC_UNONAME_CELLHJUS, SC_UNONAME_CELLHJUS_METHOD, SC_UNONAME_CELLORI, SC_UNONAME_CELLPRO, SC_UNONAME_CELLTRAN, SC_UNONAME_CELLVJUS, SC_UNONAME_CELLVJUS_METHOD, SC_UNONAME_CEMPHAS, SC_UNONAME_CFCHARS, SC_UNONAME_CFFAMIL, SC_UNONAME_CFNAME, SC_UNONAME_CFONT, SC_UNONAME_CFPITCH, SC_UNONAME_CFSTYLE, SC_UNONAME_CHEIGHT, SC_UNONAME_CLOCAL, SC_UNONAME_COUTL, SC_UNONAME_COVER, SC_UNONAME_COVRLCOL, SC_UNONAME_COVRLHAS, SC_UNONAME_CPOST, SC_UNONAME_CRELIEF, SC_UNONAME_CSHADD, SC_UNONAME_CSTRIKE, SC_UNONAME_CUNDER, SC_UNONAME_CUNDLCOL, SC_UNONAME_CUNDLHAS, SC_UNONAME_CWEIGHT, SC_UNONAME_CWORDMOD, SC_UNONAME_DIAGONAL_BLTR, SC_UNONAME_DIAGONAL_BLTR2, SC_UNONAME_DIAGONAL_TLBR, SC_UNONAME_DIAGONAL_TLBR2, SC_UNONAME_DISPNAME, SC_UNONAME_HIDDEN, SC_UNONAME_HYPERLINK, SC_UNONAME_LEFTBORDER, SC_UNONAME_LEFTBORDER2, SC_UNONAME_NUMFMT, SC_UNONAME_PADJUST, SC_UNONAME_PBMARGIN, SC_UNONAME_PINDENT, SC_UNONAME_PISCHDIST, SC_UNONAME_PISFORBID, SC_UNONAME_PISHANG, SC_UNONAME_PISHYPHEN, SC_UNONAME_PLASTADJ, SC_UNONAME_PLMARGIN, SC_UNONAME_PRMARGIN, SC_UNONAME_PTMARGIN, SC_UNONAME_RIGHTBORDER, SC_UNONAME_RIGHTBORDER2, SC_UNONAME_ROTANG, SC_UNONAME_ROTREF, SC_UNONAME_SHADOW, SC_UNONAME_SHRINK_TO_FIT, SC_UNONAME_TBLBORD, SC_UNONAME_TOPBORDER, SC_UNONAME_TOPBORDER2, SC_UNONAME_USERDEF, SC_UNONAME_WRAP, SC_UNONAME_WRITING, SC_WID_UNO_DISPNAME, SC_WID_UNO_TBLBORD, SC_WID_UNO_TBLBORD2, and TOP_BORDER.

static const SfxItemPropertyMap* lcl_GetFooterStyleMap ( )
static
static const SfxItemPropertyMap* lcl_GetHeaderStyleMap ( )
static
static const SfxItemPropertySet* lcl_GetPageStyleSet ( )
static

Definition at line 179 of file styleuno.cxx.

References ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_HIDDEN(), ATTR_LRSPACE(), ATTR_PAGE(), ATTR_PAGE_CHARTS(), ATTR_PAGE_DRAWINGS(), ATTR_PAGE_FIRSTPAGENO(), ATTR_PAGE_FOOTERLEFT(), ATTR_PAGE_FOOTERRIGHT(), ATTR_PAGE_FORMULAS(), ATTR_PAGE_GRID(), ATTR_PAGE_HEADERLEFT(), ATTR_PAGE_HEADERRIGHT(), ATTR_PAGE_HEADERS(), ATTR_PAGE_HORCENTER(), ATTR_PAGE_NOTES(), ATTR_PAGE_NULLVALS(), ATTR_PAGE_OBJECTS(), ATTR_PAGE_PAPERBIN(), ATTR_PAGE_SCALE(), ATTR_PAGE_SCALETO(), ATTR_PAGE_SCALETOPAGES(), ATTR_PAGE_SIZE(), ATTR_PAGE_TOPDOWN(), ATTR_PAGE_VERCENTER(), ATTR_SHADOW(), ATTR_ULSPACE(), ATTR_USERDEF(), ATTR_WRITINGDIR(), BORDER_DISTANCE, BOTTOM_BORDER, BOTTOM_BORDER_DISTANCE, CONVERT_TWIPS, cppu::UnoType< class >::get(), LEFT_BORDER, LEFT_BORDER_DISTANCE, MID_BACK_COLOR, MID_GRAPHIC, MID_GRAPHIC_FILTER, MID_GRAPHIC_POSITION, MID_GRAPHIC_TRANSPARENT, MID_GRAPHIC_URL, MID_L_MARGIN, MID_LO_MARGIN, MID_PAGE_LAYOUT, MID_PAGE_NUMTYPE, MID_PAGE_ORIENTATION, MID_R_MARGIN, MID_SIZE_HEIGHT, MID_SIZE_SIZE, MID_SIZE_WIDTH, MID_UP_MARGIN, OLD_UNO_PAGE_BACKCOLOR, OLD_UNO_PAGE_BACKTRANS, OLD_UNO_PAGE_FTRBACKCOL, OLD_UNO_PAGE_FTRBACKTRAN, OLD_UNO_PAGE_FTRDYNAMIC, OLD_UNO_PAGE_FTRON, OLD_UNO_PAGE_FTRSHARED, OLD_UNO_PAGE_HDRBACKCOL, OLD_UNO_PAGE_HDRBACKTRAN, OLD_UNO_PAGE_HDRDYNAMIC, OLD_UNO_PAGE_HDRON, OLD_UNO_PAGE_HDRSHARED, RIGHT_BORDER, RIGHT_BORDER_DISTANCE, SC_UNO_PAGE_BACKCOLOR, SC_UNO_PAGE_BACKTRANS, SC_UNO_PAGE_BORDERDIST, SC_UNO_PAGE_BOTTBORDER, SC_UNO_PAGE_BOTTBRDDIST, SC_UNO_PAGE_BOTTMARGIN, SC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GHTBDIS, SC_UNO_PAGE_HDRRIGHTBOR, SC_UNO_PAGE_HDRRIGHTMAR, SC_UNO_PAGE_HDRSHADOW, SC_UNO_PAGE_HDRSHARED, SC_UNO_PAGE_HDRTOPBDIS, SC_UNO_PAGE_HDRTOPBOR, SC_UNO_PAGE_HEIGHT, SC_UNO_PAGE_LANDSCAPE, SC_UNO_PAGE_LEFTBORDER, SC_UNO_PAGE_LEFTBRDDIST, SC_UNO_PAGE_LEFTFTRCONT, SC_UNO_PAGE_LEFTHDRCONT, SC_UNO_PAGE_LEFTMARGIN, SC_UNO_PAGE_NUMBERTYPE, SC_UNO_PAGE_PAPERTRAY, SC_UNO_PAGE_PRINTANNOT, SC_UNO_PAGE_PRINTCHARTS, SC_UNO_PAGE_PRINTDOWN, SC_UNO_PAGE_PRINTDRAW, SC_UNO_PAGE_PRINTFORMUL, SC_UNO_PAGE_PRINTGRID, SC_UNO_PAGE_PRINTHEADER, SC_UNO_PAGE_PRINTOBJS, SC_UNO_PAGE_PRINTZERO, SC_UNO_PAGE_RIGHTBORDER, SC_UNO_PAGE_RIGHTBRDDIST, SC_UNO_PAGE_RIGHTFTRCON, SC_UNO_PAGE_RIGHTHDRCON, SC_UNO_PAGE_RIGHTMARGIN, SC_UNO_PAGE_SCALETOPAG, SC_UNO_PAGE_SCALETOX, SC_UNO_PAGE_SCALETOY, SC_UNO_PAGE_SCALEVAL, SC_UNO_PAGE_SHADOWFORM, SC_UNO_PAGE_SIZE, SC_UNO_PAGE_SYTLELAYOUT, SC_UNO_PAGE_TOPBORDER, SC_UNO_PAGE_TOPBRDDIST, SC_UNO_PAGE_TOPMARGIN, SC_UNO_PAGE_WIDTH, SC_UNONAME_DISPNAME, SC_UNONAME_HIDDEN, SC_UNONAME_USERDEF, SC_UNONAME_WRITING, SC_WID_UNO_DISPNAME, SC_WID_UNO_FOOTERSET, SC_WID_UNO_HEADERSET, TOP_BORDER, and TOP_BORDER_DISTANCE.

UNO3_GETIMPLEMENTATION_IMPL ( ScStyleObj  )

Variable Documentation

Definition at line 388 of file styleuno.cxx.

Referenced by ScStyleFamiliesObj::GetObjectByIndex_Impl().