LibreOffice Module cui (master) 1
Macros | Functions | Variables
numpages.cxx File Reference
#include <com/sun/star/text/VertOrientation.hpp>
#include <numpages.hxx>
#include <dialmgr.hxx>
#include <tools/mapunit.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <editeng/numitem.hxx>
#include <svl/eitem.hxx>
#include <vcl/svapp.hxx>
#include <svx/colorbox.hxx>
#include <svx/dlgutil.hxx>
#include <svx/strarray.hxx>
#include <svx/gallery.hxx>
#include <editeng/brushitem.hxx>
#include <svl/intitem.hxx>
#include <sfx2/objsh.hxx>
#include <vcl/graph.hxx>
#include <vcl/settings.hxx>
#include <cui/cuicharmap.hxx>
#include <editeng/flstitem.hxx>
#include <svx/numvset.hxx>
#include <sfx2/htmlmode.hxx>
#include <unotools/pathoptions.hxx>
#include <svtools/ctrltool.hxx>
#include <svtools/unitconv.hxx>
#include <svtools/colorcfg.hxx>
#include <com/sun/star/style/NumberingType.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/text/XDefaultNumberingProvider.hpp>
#include <com/sun/star/text/XNumberingFormatter.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <svx/svxids.hrc>
#include <o3tl/string_view.hxx>
#include <algorithm>
#include <memory>
#include <vector>
#include <sfx2/opengrf.hxx>
#include <strings.hrc>
#include <svl/stritem.hxx>
#include <svl/slstitm.hxx>
#include <sfx2/filedlghelper.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <sal/log.hxx>
#include <vcl/cvtgrf.hxx>
#include <vcl/graphicfilter.hxx>
#include <svx/SvxNumOptionsTabPageHelper.hxx>
#include <tools/urlobj.hxx>
#include <o3tl/temporary.hxx>
#include <osl/diagnose.h>
Include dependency graph for numpages.cxx:

Go to the source code of this file.

Macros

#define SHOW_NUMBERING   0
 
#define SHOW_BULLET   1
 
#define SHOW_BITMAP   2
 
#define MAX_BMP_WIDTH   16
 
#define MAX_BMP_HEIGHT   16
 
#define SEARCHPATH_DELIMITER   u';'
 
#define SEARCHFILENAME_DELIMITER   u'/'
 

Functions

static SvxNumSettings_Impllcl_CreateNumSettingsPtr (const Sequence< PropertyValue > &rLevelProps)
 
static bool lcl_IsNumFmtSet (SvxNumRule const *pNum, sal_uInt16 nLevelMask)
 
static const vcl::Fontlcl_GetDefaultBulletFont ()
 
 IMPL_LINK_NOARG (SvxSingleNumPickTabPage, NumSelectHdl_Impl, ValueSet *, void)
 
 IMPL_LINK_NOARG (SvxSingleNumPickTabPage, DoubleClickHdl_Impl, ValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBulletPickTabPage, NumSelectHdl_Impl, ValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBulletPickTabPage, DoubleClickHdl_Impl, ValueSet *, void)
 
 IMPL_LINK_NOARG (SvxNumPickTabPage, NumSelectHdl_Impl, ValueSet *, void)
 
 IMPL_LINK_NOARG (SvxNumPickTabPage, DoubleClickHdl_Impl, ValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBitmapPickTabPage, NumSelectHdl_Impl, ValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBitmapPickTabPage, DoubleClickHdl_Impl, ValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBitmapPickTabPage, ClickAddBrowseHdl_Impl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, LevelHdl_Impl, weld::TreeView &, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, LevelHdl, void *, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, PreviewInvalidateHdl_Impl, Timer *, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, AllLevelHdl_Impl, weld::SpinButton &, rBox, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, IsLegalHdl_Impl, weld::Toggleable &, rBox, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, NumberTypeSelectHdl_Impl, weld::ComboBox &, rBox, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, OrientHdl_Impl, weld::ComboBox &, rBox, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, SameLevelHdl_Impl, weld::Toggleable &, rBox, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, BulColorHdl_Impl, ColorListBox &, rColorBox, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, BulRelSizeHdl_Impl, weld::MetricSpinButton &, rField, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, GraphicHdl_Impl, const OUString &, rIdent, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, PopupActivateHdl_Impl, weld::Toggleable &, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, BulletHdl_Impl, weld::Button &, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, SizeHdl_Impl, weld::MetricSpinButton &, rField, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, RatioHdl_Impl, weld::Toggleable &, rBox, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, CharFmtHdl_Impl, weld::ComboBox &, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, EditModifyHdl_Impl, weld::Entry &, rEdit, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, SpinModifyHdl_Impl, weld::SpinButton &, rSpinButton, void)
 
static tools::Long lcl_DrawGraphic (VirtualDevice &rVDev, const SvxNumberFormat &rFmt, tools::Long nXStart, tools::Long nYMiddle, tools::Long nDivision)
 
static tools::Long lcl_DrawBullet (VirtualDevice *pVDev, const SvxNumberFormat &rFmt, tools::Long nXStart, tools::Long nYStart, const Size &rSize)
 
 IMPL_LINK_NOARG (SvxNumPositionTabPage, EditModifyHdl_Impl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (SvxNumPositionTabPage, LevelHdl_Impl, weld::TreeView &, void)
 
 IMPL_LINK_NOARG (SvxNumPositionTabPage, LevelHdl, void *, void)
 
 IMPL_LINK (SvxNumPositionTabPage, DistanceHdl_Impl, weld::MetricSpinButton &, rFld, void)
 
 IMPL_LINK (SvxNumPositionTabPage, RelativeHdl_Impl, weld::Toggleable &, rBox, void)
 
 IMPL_LINK_NOARG (SvxNumPositionTabPage, LabelFollowedByHdl_Impl, weld::ComboBox &, void)
 
 IMPL_LINK (SvxNumPositionTabPage, ListtabPosHdl_Impl, weld::MetricSpinButton &, rFld, void)
 
 IMPL_LINK (SvxNumPositionTabPage, AlignAtHdl_Impl, weld::MetricSpinButton &, rFld, void)
 
 IMPL_LINK (SvxNumPositionTabPage, IndentAtHdl_Impl, weld::MetricSpinButton &, rFld, void)
 
 IMPL_LINK_NOARG (SvxNumPositionTabPage, StandardHdl_Impl, weld::Button &, void)
 

Variables

static bool bLastRelative = false
 
const sal_Unicode aBulletTypes []
 

Macro Definition Documentation

◆ MAX_BMP_HEIGHT

#define MAX_BMP_HEIGHT   16

Definition at line 90 of file numpages.cxx.

◆ MAX_BMP_WIDTH

#define MAX_BMP_WIDTH   16

Definition at line 89 of file numpages.cxx.

◆ SEARCHFILENAME_DELIMITER

#define SEARCHFILENAME_DELIMITER   u'/'

Definition at line 92 of file numpages.cxx.

◆ SEARCHPATH_DELIMITER

#define SEARCHPATH_DELIMITER   u';'

Definition at line 91 of file numpages.cxx.

◆ SHOW_BITMAP

#define SHOW_BITMAP   2

Definition at line 87 of file numpages.cxx.

◆ SHOW_BULLET

#define SHOW_BULLET   1

Definition at line 86 of file numpages.cxx.

◆ SHOW_NUMBERING

#define SHOW_NUMBERING   0

Definition at line 85 of file numpages.cxx.

Function Documentation

◆ IMPL_LINK() [1/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
AllLevelHdl_Impl  ,
weld::SpinButton ,
rBox  ,
void   
)

◆ IMPL_LINK() [2/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
BulColorHdl_Impl  ,
ColorListBox ,
rColorBox  ,
void   
)

Definition at line 1790 of file numpages.cxx.

References i, and SvxNumberFormat::SetBulletColor().

◆ IMPL_LINK() [3/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
BulRelSizeHdl_Impl  ,
weld::MetricSpinButton ,
rField  ,
void   
)

Definition at line 1808 of file numpages.cxx.

References i, and SvxNumberFormat::SetBulletRelSize().

◆ IMPL_LINK() [4/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
EditModifyHdl_Impl  ,
weld::Entry ,
rEdit  ,
void   
)

Definition at line 2120 of file numpages.cxx.

◆ IMPL_LINK() [5/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
GraphicHdl_Impl  ,
const OUString &  ,
rIdent  ,
void   
)

◆ IMPL_LINK() [6/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
IsLegalHdl_Impl  ,
weld::Toggleable ,
rBox  ,
void   
)

Definition at line 1642 of file numpages.cxx.

References i, and SvxNumberFormat::SetIsLegal().

◆ IMPL_LINK() [7/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
NumberTypeSelectHdl_Impl  ,
weld::ComboBox ,
rBox  ,
void   
)

◆ IMPL_LINK() [8/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
OrientHdl_Impl  ,
weld::ComboBox ,
rBox  ,
void   
)

◆ IMPL_LINK() [9/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
RatioHdl_Impl  ,
weld::Toggleable ,
rBox  ,
void   
)

Definition at line 2084 of file numpages.cxx.

◆ IMPL_LINK() [10/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
SameLevelHdl_Impl  ,
weld::Toggleable ,
rBox  ,
void   
)

Definition at line 1772 of file numpages.cxx.

References SvxNumberType::GetNumberingType(), i, and SVX_NUM_NUMBER_NONE.

◆ IMPL_LINK() [11/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
SizeHdl_Impl  ,
weld::MetricSpinButton ,
rField  ,
void   
)

◆ IMPL_LINK() [12/17]

IMPL_LINK ( SvxNumOptionsTabPage  ,
SpinModifyHdl_Impl  ,
weld::SpinButton ,
rSpinButton  ,
void   
)

Definition at line 2125 of file numpages.cxx.

◆ IMPL_LINK() [13/17]

IMPL_LINK ( SvxNumPositionTabPage  ,
AlignAtHdl_Impl  ,
weld::MetricSpinButton ,
rFld  ,
void   
)

◆ IMPL_LINK() [14/17]

IMPL_LINK ( SvxNumPositionTabPage  ,
DistanceHdl_Impl  ,
weld::MetricSpinButton ,
rFld  ,
void   
)

◆ IMPL_LINK() [15/17]

IMPL_LINK ( SvxNumPositionTabPage  ,
IndentAtHdl_Impl  ,
weld::MetricSpinButton ,
rFld  ,
void   
)

◆ IMPL_LINK() [16/17]

IMPL_LINK ( SvxNumPositionTabPage  ,
ListtabPosHdl_Impl  ,
weld::MetricSpinButton ,
rFld  ,
void   
)

Definition at line 3243 of file numpages.cxx.

References GetCoreValue(), i, nValue, and SvxNumberFormat::SetListtabPos().

◆ IMPL_LINK() [17/17]

IMPL_LINK ( SvxNumPositionTabPage  ,
RelativeHdl_Impl  ,
weld::Toggleable ,
rBox  ,
void   
)

◆ IMPL_LINK_NOARG() [1/20]

IMPL_LINK_NOARG ( SvxBitmapPickTabPage  ,
ClickAddBrowseHdl_Impl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [2/20]

IMPL_LINK_NOARG ( SvxBitmapPickTabPage  ,
DoubleClickHdl_Impl  ,
ValueSet ,
void   
)

Definition at line 903 of file numpages.cxx.

References weld::Button::clicked().

◆ IMPL_LINK_NOARG() [3/20]

IMPL_LINK_NOARG ( SvxBitmapPickTabPage  ,
NumSelectHdl_Impl  ,
ValueSet ,
void   
)

◆ IMPL_LINK_NOARG() [4/20]

IMPL_LINK_NOARG ( SvxBulletPickTabPage  ,
DoubleClickHdl_Impl  ,
ValueSet ,
void   
)

Definition at line 465 of file numpages.cxx.

References weld::Button::clicked().

◆ IMPL_LINK_NOARG() [5/20]

IMPL_LINK_NOARG ( SvxBulletPickTabPage  ,
NumSelectHdl_Impl  ,
ValueSet ,
void   
)

◆ IMPL_LINK_NOARG() [6/20]

IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
BulletHdl_Impl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [7/20]

IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
CharFmtHdl_Impl  ,
weld::ComboBox ,
void   
)

◆ IMPL_LINK_NOARG() [8/20]

IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
LevelHdl  ,
void *  ,
void   
)

Definition at line 1577 of file numpages.cxx.

References i.

◆ IMPL_LINK_NOARG() [9/20]

IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
LevelHdl_Impl  ,
weld::TreeView ,
void   
)

Definition at line 1567 of file numpages.cxx.

References LINK, and Application::PostUserEvent().

◆ IMPL_LINK_NOARG() [10/20]

IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
PopupActivateHdl_Impl  ,
weld::Toggleable ,
void   
)

◆ IMPL_LINK_NOARG() [11/20]

IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
PreviewInvalidateHdl_Impl  ,
Timer ,
void   
)

Definition at line 1619 of file numpages.cxx.

◆ IMPL_LINK_NOARG() [12/20]

IMPL_LINK_NOARG ( SvxNumPickTabPage  ,
DoubleClickHdl_Impl  ,
ValueSet ,
void   
)

Definition at line 706 of file numpages.cxx.

References weld::Button::clicked().

◆ IMPL_LINK_NOARG() [13/20]

IMPL_LINK_NOARG ( SvxNumPickTabPage  ,
NumSelectHdl_Impl  ,
ValueSet ,
void   
)

◆ IMPL_LINK_NOARG() [14/20]

IMPL_LINK_NOARG ( SvxNumPositionTabPage  ,
EditModifyHdl_Impl  ,
weld::ComboBox ,
void   
)

Definition at line 3000 of file numpages.cxx.

References i, nPos, and SvxNumberFormat::SetNumAdjust().

◆ IMPL_LINK_NOARG() [15/20]

IMPL_LINK_NOARG ( SvxNumPositionTabPage  ,
LabelFollowedByHdl_Impl  ,
weld::ComboBox ,
void   
)

◆ IMPL_LINK_NOARG() [16/20]

IMPL_LINK_NOARG ( SvxNumPositionTabPage  ,
LevelHdl  ,
void *  ,
void   
)

Definition at line 3035 of file numpages.cxx.

References i.

◆ IMPL_LINK_NOARG() [17/20]

IMPL_LINK_NOARG ( SvxNumPositionTabPage  ,
LevelHdl_Impl  ,
weld::TreeView ,
void   
)

Definition at line 3025 of file numpages.cxx.

References LINK, and Application::PostUserEvent().

◆ IMPL_LINK_NOARG() [18/20]

IMPL_LINK_NOARG ( SvxNumPositionTabPage  ,
StandardHdl_Impl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [19/20]

IMPL_LINK_NOARG ( SvxSingleNumPickTabPage  ,
DoubleClickHdl_Impl  ,
ValueSet ,
void   
)

Definition at line 329 of file numpages.cxx.

References weld::Button::clicked().

◆ IMPL_LINK_NOARG() [20/20]

IMPL_LINK_NOARG ( SvxSingleNumPickTabPage  ,
NumSelectHdl_Impl  ,
ValueSet ,
void   
)

◆ lcl_CreateNumSettingsPtr()

static SvxNumSettings_Impl * lcl_CreateNumSettingsPtr ( const Sequence< PropertyValue > &  rLevelProps)
static

◆ lcl_DrawBullet()

static tools::Long lcl_DrawBullet ( VirtualDevice pVDev,
const SvxNumberFormat rFmt,
tools::Long  nXStart,
tools::Long  nYStart,
const Size rSize 
)
static

◆ lcl_DrawGraphic()

static tools::Long lcl_DrawGraphic ( VirtualDevice rVDev,
const SvxNumberFormat rFmt,
tools::Long  nXStart,
tools::Long  nYMiddle,
tools::Long  nDivision 
)
static

◆ lcl_GetDefaultBulletFont()

static const vcl::Font & lcl_GetDefaultBulletFont ( )
static

◆ lcl_IsNumFmtSet()

static bool lcl_IsNumFmtSet ( SvxNumRule const *  pNum,
sal_uInt16  nLevelMask 
)
static

Variable Documentation

◆ aBulletTypes

const sal_Unicode aBulletTypes[]
Initial value:
=
{
0x2022,
0x25cf,
0xe00c,
0xe00a,
0x2794,
0x27a2,
0x2717,
0x2714
}

Definition at line 123 of file numpages.cxx.

Referenced by IMPL_LINK_NOARG().

◆ bLastRelative

bool bLastRelative = false
static

Definition at line 94 of file numpages.cxx.

Referenced by IMPL_LINK(), and SvxNumPositionTabPage::SvxNumPositionTabPage().