LibreOffice Module sc (master) 1
Typedefs | Functions | Variables
vbaborders.cxx File Reference
#include "vbaborders.hxx"
#include <sal/macros.h>
#include <cppuhelper/implbase.hxx>
#include <ooo/vba/excel/XlBordersIndex.hpp>
#include <ooo/vba/excel/XlBorderWeight.hpp>
#include <ooo/vba/excel/XlLineStyle.hpp>
#include <ooo/vba/excel/XlColorIndex.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/table/TableBorder.hpp>
#include <com/sun/star/table/XCellRange.hpp>
#include <com/sun/star/table/XColumnRowRange.hpp>
#include <utility>
#include "vbapalette.hxx"
Include dependency graph for vbaborders.cxx:

Go to the source code of this file.

Typedefs

typedef ::cppu::WeakImplHelper< container::XIndexAccess > RangeBorders_Base
 
typedef InheritedHelperInterfaceWeakImpl< excel::XBorder > ScVbaBorder_Base
 

Functions

static uno::Reference< container::XIndexAccess > rangeToBorderIndexAccess (const uno::Reference< table::XCellRange > &xRange, const uno::Reference< uno::XComponentContext > &xContext, const ScVbaPalette &rPalette)
 
static bool lcl_areAllLineWidthsSame (const table::TableBorder &maTableBorder, bool bIsCell)
 

Variables

const sal_Int16 supportedIndexTable [] = { XlBordersIndex::xlEdgeLeft, XlBordersIndex::xlEdgeTop, XlBordersIndex::xlEdgeBottom, XlBordersIndex::xlEdgeRight, XlBordersIndex::xlDiagonalDown, XlBordersIndex::xlDiagonalUp, XlBordersIndex::xlInsideVertical, XlBordersIndex::xlInsideHorizontal }
 
constexpr OUStringLiteral sTableBorder = u"TableBorder"
 
const sal_Int32 OOLineThin = 26
 
const sal_Int32 OOLineMedium = 88
 
const sal_Int32 OOLineThick = 141
 
const sal_Int32 OOLineHairline = 2
 

Typedef Documentation

◆ RangeBorders_Base

typedef ::cppu::WeakImplHelper<container::XIndexAccess > RangeBorders_Base

Definition at line 39 of file vbaborders.cxx.

◆ ScVbaBorder_Base

Definition at line 40 of file vbaborders.cxx.

Function Documentation

◆ lcl_areAllLineWidthsSame()

static bool lcl_areAllLineWidthsSame ( const table::TableBorder &  maTableBorder,
bool  bIsCell 
)
static

Definition at line 484 of file vbaborders.cxx.

Referenced by ScVbaBorders::getLineStyle().

◆ rangeToBorderIndexAccess()

static uno::Reference< container::XIndexAccess > rangeToBorderIndexAccess ( const uno::Reference< table::XCellRange > &  xRange,
const uno::Reference< uno::XComponentContext > &  xContext,
const ScVbaPalette rPalette 
)
static

Definition at line 360 of file vbaborders.cxx.

Variable Documentation

◆ OOLineHairline

const sal_Int32 OOLineHairline = 2

Definition at line 52 of file vbaborders.cxx.

◆ OOLineMedium

const sal_Int32 OOLineMedium = 88

Definition at line 50 of file vbaborders.cxx.

◆ OOLineThick

const sal_Int32 OOLineThick = 141

Definition at line 51 of file vbaborders.cxx.

◆ OOLineThin

const sal_Int32 OOLineThin = 26

Definition at line 49 of file vbaborders.cxx.

◆ sTableBorder

constexpr OUStringLiteral sTableBorder = u"TableBorder"
constexpr

Definition at line 46 of file vbaborders.cxx.

Referenced by ScVbaBorders::getLineStyle().

◆ supportedIndexTable

const sal_Int16 supportedIndexTable[] = { XlBordersIndex::xlEdgeLeft, XlBordersIndex::xlEdgeTop, XlBordersIndex::xlEdgeBottom, XlBordersIndex::xlEdgeRight, XlBordersIndex::xlDiagonalDown, XlBordersIndex::xlDiagonalUp, XlBordersIndex::xlInsideVertical, XlBordersIndex::xlInsideHorizontal }