LibreOffice Module cui (master)  1
Macros | Functions | Variables
numpages.cxx File Reference
#include <com/sun/star/text/HoriOrientation.hpp>
#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/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 <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 <svx/svxids.hrc>
#include <algorithm>
#include <memory>
#include <vector>
#include <sfx2/opengrf.hxx>
#include <strings.hrc>
#include <svl/aeitem.hxx>
#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 <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, SvtValueSet *, void)
 
 IMPL_LINK_NOARG (SvxSingleNumPickTabPage, DoubleClickHdl_Impl, SvtValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBulletPickTabPage, NumSelectHdl_Impl, SvtValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBulletPickTabPage, DoubleClickHdl_Impl, SvtValueSet *, void)
 
 IMPL_LINK_NOARG (SvxNumPickTabPage, NumSelectHdl_Impl, SvtValueSet *, void)
 
 IMPL_LINK_NOARG (SvxNumPickTabPage, DoubleClickHdl_Impl, SvtValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBitmapPickTabPage, NumSelectHdl_Impl, SvtValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBitmapPickTabPage, DoubleClickHdl_Impl, SvtValueSet *, void)
 
 IMPL_LINK_NOARG (SvxBitmapPickTabPage, ClickAddBrowseHdl_Impl, weld::Button &, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, LevelHdl_Impl, weld::TreeView &, rBox, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, PreviewInvalidateHdl_Impl, Timer *, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, AllLevelHdl_Impl, weld::SpinButton &, 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::ToggleButton &, 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 OString &, rIdent, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, PopupActivateHdl_Impl, weld::ToggleButton &, 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::ToggleButton &, rBox, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, CharFmtHdl_Impl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (SvxNumOptionsTabPage, EditListBoxHdl_Impl, weld::ComboBox &, void)
 
 IMPL_LINK (SvxNumOptionsTabPage, EditModifyHdl_Impl, weld::Entry &, rEdit, void)
 
static long lcl_DrawGraphic (VirtualDevice *pVDev, const SvxNumberFormat &rFmt, long nXStart, long nYMiddle, long nDivision)
 
static long lcl_DrawBullet (VirtualDevice *pVDev, const SvxNumberFormat &rFmt, long nXStart, 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::ToggleButton &, 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
 
static const sal_Unicode aBulletTypes []
 

Macro Definition Documentation

#define MAX_BMP_HEIGHT   16

Definition at line 88 of file numpages.cxx.

Referenced by IMPL_LINK_NOARG().

#define MAX_BMP_WIDTH   16

Definition at line 87 of file numpages.cxx.

Referenced by IMPL_LINK_NOARG().

#define SEARCHFILENAME_DELIMITER   u'/'

Definition at line 90 of file numpages.cxx.

Referenced by IMPL_LINK_NOARG().

#define SEARCHPATH_DELIMITER   u';'

Definition at line 89 of file numpages.cxx.

Referenced by IMPL_LINK_NOARG().

#define SHOW_BITMAP   2
#define SHOW_BULLET   1
#define SHOW_NUMBERING   0

Definition at line 83 of file numpages.cxx.

Referenced by IMPL_LINK(), and SvxNumOptionsTabPage::InitControls().

Function Documentation

IMPL_LINK ( SvxNumOptionsTabPage  ,
LevelHdl_Impl  ,
weld::TreeView ,
rBox  ,
void   
)

Definition at line 1550 of file numpages.cxx.

References i.

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

Definition at line 1595 of file numpages.cxx.

References SvxNumberFormat::SetIncludeUpperLevels().

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

Definition at line 1703 of file numpages.cxx.

References i, LINK_TOKEN, nPos, and SVX_NUM_BITMAP.

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

Definition at line 1728 of file numpages.cxx.

References i, and SVX_NUM_NUMBER_NONE.

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

Definition at line 1746 of file numpages.cxx.

References i, and SvxNumberFormat::SetBulletColor().

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

Definition at line 1764 of file numpages.cxx.

References i, and SvxNumberFormat::SetBulletRelSize().

IMPL_LINK ( SvxNumOptionsTabPage  ,
GraphicHdl_Impl  ,
const OString &  ,
rIdent  ,
void   
)
IMPL_LINK ( SvxNumOptionsTabPage  ,
SizeHdl_Impl  ,
weld::MetricSpinButton ,
rField  ,
void   
)

Definition at line 1969 of file numpages.cxx.

References Height, i, LINK_TOKEN, OutputDevice::LogicToLogic(), SVX_NUM_BITMAP, and Width.

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

Definition at line 2036 of file numpages.cxx.

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

Definition at line 2077 of file numpages.cxx.

References rEdit.

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

Definition at line 3025 of file numpages.cxx.

References GetCoreValue(), SvxNumberFormat::GetFirstLineOffset(), and i.

IMPL_LINK ( SvxNumPositionTabPage  ,
RelativeHdl_Impl  ,
weld::ToggleButton ,
rBox  ,
void   
)
IMPL_LINK ( SvxNumPositionTabPage  ,
ListtabPosHdl_Impl  ,
weld::MetricSpinButton ,
rFld  ,
void   
)

Definition at line 3187 of file numpages.cxx.

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

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

Definition at line 3208 of file numpages.cxx.

References GetCoreValue(), SvxNumberFormat::GetIndentAt(), and i.

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

Definition at line 3230 of file numpages.cxx.

References GetCoreValue(), SvxNumberFormat::GetIndentAt(), and i.

IMPL_LINK_NOARG ( SvxSingleNumPickTabPage  ,
NumSelectHdl_Impl  ,
SvtValueSet ,
void   
)
IMPL_LINK_NOARG ( SvxSingleNumPickTabPage  ,
DoubleClickHdl_Impl  ,
SvtValueSet ,
void   
)

Definition at line 334 of file numpages.cxx.

References weld::Button::clicked().

IMPL_LINK_NOARG ( SvxBulletPickTabPage  ,
NumSelectHdl_Impl  ,
SvtValueSet ,
void   
)
IMPL_LINK_NOARG ( SvxBulletPickTabPage  ,
DoubleClickHdl_Impl  ,
SvtValueSet ,
void   
)

Definition at line 475 of file numpages.cxx.

References weld::Button::clicked().

IMPL_LINK_NOARG ( SvxNumPickTabPage  ,
NumSelectHdl_Impl  ,
SvtValueSet ,
void   
)
IMPL_LINK_NOARG ( SvxNumPickTabPage  ,
DoubleClickHdl_Impl  ,
SvtValueSet ,
void   
)

Definition at line 712 of file numpages.cxx.

References weld::Button::clicked().

IMPL_LINK_NOARG ( SvxBitmapPickTabPage  ,
NumSelectHdl_Impl  ,
SvtValueSet ,
void   
)
IMPL_LINK_NOARG ( SvxBitmapPickTabPage  ,
DoubleClickHdl_Impl  ,
SvtValueSet ,
void   
)

Definition at line 909 of file numpages.cxx.

References weld::Button::clicked().

IMPL_LINK_NOARG ( SvxBitmapPickTabPage  ,
ClickAddBrowseHdl_Impl  ,
weld::Button ,
void   
)
IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
PreviewInvalidateHdl_Impl  ,
Timer ,
void   
)

Definition at line 1590 of file numpages.cxx.

IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
PopupActivateHdl_Impl  ,
weld::ToggleButton ,
void   
)
IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
BulletHdl_Impl  ,
weld::Button ,
void   
)
IMPL_LINK_NOARG ( SvxNumOptionsTabPage  ,
CharFmtHdl_Impl  ,
weld::ComboBox ,
void   
)

Definition at line 2047 of file numpages.cxx.

References i, LINK_TOKEN, SvxNumberFormat::SetCharFormatName(), and SVX_NUM_BITMAP.

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

Definition at line 2072 of file numpages.cxx.

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

Definition at line 2944 of file numpages.cxx.

References i, and nPos.

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

Definition at line 2969 of file numpages.cxx.

References LINK, and Application::PostUserEvent().

IMPL_LINK_NOARG ( SvxNumPositionTabPage  ,
LevelHdl  ,
void ,
void   
)

Definition at line 2979 of file numpages.cxx.

References i.

IMPL_LINK_NOARG ( SvxNumPositionTabPage  ,
LabelFollowedByHdl_Impl  ,
weld::ComboBox ,
void   
)
IMPL_LINK_NOARG ( SvxNumPositionTabPage  ,
StandardHdl_Impl  ,
weld::Button ,
void   
)
static SvxNumSettings_Impl* lcl_CreateNumSettingsPtr ( const Sequence< PropertyValue > &  rLevelProps)
static
static long lcl_DrawBullet ( VirtualDevice pVDev,
const SvxNumberFormat rFmt,
long  nXStart,
long  nYStart,
const Size rSize 
)
static
static long lcl_DrawGraphic ( VirtualDevice pVDev,
const SvxNumberFormat rFmt,
long  nXStart,
long  nYMiddle,
long  nDivision 
)
static
static const vcl::Font& lcl_GetDefaultBulletFont ( )
static
static bool lcl_IsNumFmtSet ( SvxNumRule const *  pNum,
sal_uInt16  nLevelMask 
)
static

Variable Documentation

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

Definition at line 121 of file numpages.cxx.

Referenced by IMPL_LINK_NOARG().

bool bLastRelative = false
static

Definition at line 92 of file numpages.cxx.

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