LibreOffice Module cui (master)  1
Classes | Namespaces | Macros | Enumerations | Functions | Variables
swpossizetabpage.cxx File Reference
#include <memory>
#include <cstddef>
#include <swpossizetabpage.hxx>
#include <svx/dlgutil.hxx>
#include <svx/anchorid.hxx>
#include <svl/intitem.hxx>
#include <svx/swframevalidation.hxx>
#include <sfx2/htmlmode.hxx>
#include <svx/svdview.hxx>
#include <svx/svdpagv.hxx>
#include <svx/swframeposstrings.hxx>
#include <svx/rectenum.hxx>
#include <sal/macros.h>
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/RelOrientation.hpp>
#include <svx/svxids.hrc>
#include <svtools/unitconv.hxx>
Include dependency graph for swpossizetabpage.cxx:

Go to the source code of this file.

Classes

struct  FrmMap
 
struct  o3tl::typed_flags< LB >
 

Namespaces

 o3tl
 

Macros

#define VERT_PAGE_REL   (LB::RelPageFrame|LB::RelPagePrintArea)
 
#define VERT_FRAME_REL   (LB::VertFrame|LB::FlyVertPrintArea)
 
#define HTML_HORI_PARA_REL   (LB::Frame|LB::PrintArea)
 
#define HTML_HORI_CHAR_REL   (LB::Frame|LB::PrintArea|LB::RelChar)
 

Enumerations

enum  LB
 

Functions

static std::size_t lcl_GetFrmMapCount (const FrmMap *pMap)
 
static SvxSwFramePosString::StringId lcl_ChangeResIdToVerticalOrRTL (SvxSwFramePosString::StringId eStringId, bool bVertical, bool bRTL)
 
static LB lcl_GetLBRelationsForRelations (const sal_uInt16 _nRel)
 
static LB lcl_GetLBRelationsForStrID (const FrmMap *_pMap, const SvxSwFramePosString::StringId _eStrId, const bool _bUseMirrorStr)
 
 IMPL_LINK_NOARG (SvxSwPosSizeTabPage, RangeModifyClickHdl, weld::ToggleButton &, void)
 
 IMPL_LINK_NOARG (SvxSwPosSizeTabPage, RangeModifyHdl, weld::Widget &, void)
 
 IMPL_LINK_NOARG (SvxSwPosSizeTabPage, AnchorTypeHdl, weld::ToggleButton &, void)
 
 IMPL_LINK_NOARG (SvxSwPosSizeTabPage, MirrorHdl, weld::ToggleButton &, void)
 
 IMPL_LINK (SvxSwPosSizeTabPage, RelHdl, weld::ComboBox &, rLB, void)
 
 IMPL_LINK (SvxSwPosSizeTabPage, PosHdl, weld::ComboBox &, rLB, void)
 
 IMPL_LINK (SvxSwPosSizeTabPage, ModifyHdl, weld::MetricSpinButton &, rEdit, void)
 
 IMPL_LINK_NOARG (SvxSwPosSizeTabPage, ProtectHdl, weld::ToggleButton &, void)
 

Variables

RelationMap const aRelationMap []
 
RelationMap const aAsCharRelationMap []
 
constexpr auto HORI_PAGE_REL
 
FrmMap const aHPageMap []
 
FrmMap const aHPageHtmlMap []
 
FrmMap const aVPageMap []
 
FrmMap const aVPageHtmlMap []
 
constexpr auto HORI_FRAME_REL
 
FrmMap const aHFrameMap []
 
FrmMap const aHFlyHtmlMap []
 
FrmMap const aVFrameMap []
 
FrmMap const aVFlyHtmlMap []
 
FrmMap const aVMultiSelectionMap []
 
FrmMap const aHMultiSelectionMap []
 
constexpr auto HORI_PARA_REL
 
FrmMap const aHParaMap []
 
FrmMap const aHParaHtmlMap []
 
FrmMap const aHParaHtmlAbsMap []
 
constexpr auto VERT_PARA_REL
 
FrmMap const aVParaMap []
 
FrmMap const aVParaHtmlMap []
 
constexpr auto HORI_CHAR_REL
 
static FrmMap aHCharMap []
 
static FrmMap aHCharHtmlMap []
 
static FrmMap aHCharHtmlAbsMap []
 
constexpr auto VERT_CHAR_REL
 
static FrmMap aVCharMap []
 
FrmMap const aVCharHtmlMap []
 
FrmMap const aVCharHtmlAbsMap []
 
FrmMap const aVAsCharMap []
 
FrmMap const aVAsCharHtmlMap []
 

Macro Definition Documentation

#define HTML_HORI_CHAR_REL   (LB::Frame|LB::PrintArea|LB::RelChar)

Definition at line 293 of file swpossizetabpage.cxx.

#define HTML_HORI_PARA_REL   (LB::Frame|LB::PrintArea)

Definition at line 246 of file swpossizetabpage.cxx.

#define VERT_FRAME_REL   (LB::VertFrame|LB::FlyVertPrintArea)

Definition at line 205 of file swpossizetabpage.cxx.

#define VERT_PAGE_REL   (LB::RelPageFrame|LB::RelPagePrintArea)

Definition at line 167 of file swpossizetabpage.cxx.

Enumeration Type Documentation

enum LB
strong

Definition at line 70 of file swpossizetabpage.cxx.

Function Documentation

IMPL_LINK ( SvxSwPosSizeTabPage  ,
RelHdl  ,
weld::ComboBox ,
rLB  ,
void   
)

Definition at line 1230 of file swpossizetabpage.cxx.

IMPL_LINK ( SvxSwPosSizeTabPage  ,
PosHdl  ,
weld::ComboBox ,
rLB  ,
void   
)
IMPL_LINK ( SvxSwPosSizeTabPage  ,
ModifyHdl  ,
weld::MetricSpinButton ,
rEdit  ,
void   
)

Definition at line 1349 of file swpossizetabpage.cxx.

References rEdit.

IMPL_LINK_NOARG ( SvxSwPosSizeTabPage  ,
RangeModifyClickHdl  ,
weld::ToggleButton ,
void   
)

Definition at line 1124 of file swpossizetabpage.cxx.

IMPL_LINK_NOARG ( SvxSwPosSizeTabPage  ,
RangeModifyHdl  ,
weld::Widget ,
void   
)
IMPL_LINK_NOARG ( SvxSwPosSizeTabPage  ,
AnchorTypeHdl  ,
weld::ToggleButton ,
void   
)

Definition at line 1204 of file swpossizetabpage.cxx.

References LONG_MAX, nId, and USHRT_MAX.

IMPL_LINK_NOARG ( SvxSwPosSizeTabPage  ,
MirrorHdl  ,
weld::ToggleButton ,
void   
)

Definition at line 1224 of file swpossizetabpage.cxx.

References LONG_MAX, nId, and USHRT_MAX.

IMPL_LINK_NOARG ( SvxSwPosSizeTabPage  ,
ProtectHdl  ,
weld::ToggleButton ,
void   
)

Definition at line 1370 of file swpossizetabpage.cxx.

References TRISTATE_TRUE.

static SvxSwFramePosString::StringId lcl_ChangeResIdToVerticalOrRTL ( SvxSwFramePosString::StringId  eStringId,
bool  bVertical,
bool  bRTL 
)
static
static std::size_t lcl_GetFrmMapCount ( const FrmMap pMap)
static
static LB lcl_GetLBRelationsForRelations ( const sal_uInt16  _nRel)
static

Definition at line 487 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::FillPosLB().

static LB lcl_GetLBRelationsForStrID ( const FrmMap _pMap,
const SvxSwFramePosString::StringId  _eStrId,
const bool  _bUseMirrorStr 
)
static

Definition at line 504 of file swpossizetabpage.cxx.

References lcl_GetFrmMapCount(), and FrmMap::nLBRelations.

Referenced by SvxSwPosSizeTabPage::FillRelLB().

Variable Documentation

RelationMap const aAsCharRelationMap[]
Initial value:

Definition at line 140 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::setOptimalRelWidth().

FrmMap aHCharHtmlAbsMap[]
static
FrmMap aHCharHtmlMap[]
static
FrmMap aHCharMap[]
static
FrmMap const aHFlyHtmlMap[]
Initial value:

Definition at line 197 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap const aHFrameMap[]
FrmMap const aHMultiSelectionMap[]
Initial value:

Definition at line 225 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::InitPos().

FrmMap const aHPageHtmlMap[]
Initial value:

Definition at line 162 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap const aHPageMap[]
FrmMap const aHParaHtmlAbsMap[]
FrmMap const aHParaHtmlMap[]
FrmMap const aHParaMap[]
RelationMap const aRelationMap[]
Initial value:
=
{
{SvxSwFramePosString::FRAME, SvxSwFramePosString::FRAME, LB::Frame, RelOrientation::FRAME},
{SvxSwFramePosString::PRTAREA, SvxSwFramePosString::PRTAREA, LB::PrintArea, RelOrientation::PRINT_AREA},
{SvxSwFramePosString::REL_PG_LEFT, SvxSwFramePosString::MIR_REL_PG_LEFT, LB::RelPageLeft, RelOrientation::PAGE_LEFT},
{SvxSwFramePosString::REL_PG_RIGHT, SvxSwFramePosString::MIR_REL_PG_RIGHT, LB::RelPageRight, RelOrientation::PAGE_RIGHT},
{SvxSwFramePosString::REL_FRM_LEFT, SvxSwFramePosString::MIR_REL_FRM_LEFT, LB::RelFrameLeft, RelOrientation::FRAME_LEFT},
{SvxSwFramePosString::REL_FRM_RIGHT, SvxSwFramePosString::MIR_REL_FRM_RIGHT, LB::RelFrameRight, RelOrientation::FRAME_RIGHT},
{SvxSwFramePosString::REL_PG_FRAME, SvxSwFramePosString::REL_PG_FRAME, LB::RelPageFrame, RelOrientation::PAGE_FRAME},
{SvxSwFramePosString::REL_PG_PRTAREA,SvxSwFramePosString::REL_PG_PRTAREA, LB::RelPagePrintArea, RelOrientation::PAGE_PRINT_AREA},
{SvxSwFramePosString::REL_PG_PRTAREA_BOTTOM,SvxSwFramePosString::REL_PG_PRTAREA_BOTTOM, LB::RelPagePrintAreaBottom, RelOrientation::PAGE_PRINT_AREA_BOTTOM},
{SvxSwFramePosString::REL_CHAR, SvxSwFramePosString::REL_CHAR, LB::RelChar, RelOrientation::CHAR},
{SvxSwFramePosString::FLY_REL_PG_LEFT, SvxSwFramePosString::FLY_MIR_REL_PG_LEFT, LB::FlyRelPageLeft, RelOrientation::PAGE_LEFT},
{SvxSwFramePosString::FLY_REL_PG_RIGHT, SvxSwFramePosString::FLY_MIR_REL_PG_RIGHT, LB::FlyRelPageRight, RelOrientation::PAGE_RIGHT},
{SvxSwFramePosString::FLY_REL_PG_FRAME, SvxSwFramePosString::FLY_REL_PG_FRAME, LB::FlyRelPageFrame, RelOrientation::PAGE_FRAME},
{SvxSwFramePosString::FLY_REL_PG_PRTAREA, SvxSwFramePosString::FLY_REL_PG_PRTAREA, LB::FlyRelPagePrintArea, RelOrientation::PAGE_PRINT_AREA},
{SvxSwFramePosString::REL_BORDER, SvxSwFramePosString::REL_BORDER, LB::VertFrame, RelOrientation::FRAME},
{SvxSwFramePosString::REL_PRTAREA, SvxSwFramePosString::REL_PRTAREA, LB::VertPrintArea, RelOrientation::PRINT_AREA},
{SvxSwFramePosString::FLY_REL_PG_PRTAREA, SvxSwFramePosString::FLY_REL_PG_PRTAREA, LB::FlyVertPrintArea, RelOrientation::PRINT_AREA},
{SvxSwFramePosString::REL_LINE, SvxSwFramePosString::REL_LINE, LB::VertLine, RelOrientation::TEXT_LINE}
}

Definition at line 111 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::setOptimalRelWidth().

FrmMap const aVAsCharHtmlMap[]
Initial value:
=
{
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::TOP, LB::RelBase},
{SvxSwFramePosString::CENTER_VERT, SvxSwFramePosString::CENTER_VERT, VertOrientation::CENTER, LB::RelBase},
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::CHAR_TOP, LB::RelChar},
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::LINE_TOP, LB::RelRow},
{SvxSwFramePosString::BOTTOM, SvxSwFramePosString::BOTTOM, VertOrientation::LINE_BOTTOM, LB::RelRow},
{SvxSwFramePosString::CENTER_VERT, SvxSwFramePosString::CENTER_VERT, VertOrientation::LINE_CENTER, LB::RelRow}
}

Definition at line 365 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap const aVAsCharMap[]
Initial value:
=
{
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::TOP, LB::RelBase},
{SvxSwFramePosString::BOTTOM, SvxSwFramePosString::BOTTOM, VertOrientation::BOTTOM, LB::RelBase},
{SvxSwFramePosString::CENTER_VERT, SvxSwFramePosString::CENTER_VERT, VertOrientation::CENTER, LB::RelBase},
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::CHAR_TOP, LB::RelChar},
{SvxSwFramePosString::BOTTOM, SvxSwFramePosString::BOTTOM, VertOrientation::CHAR_BOTTOM, LB::RelChar},
{SvxSwFramePosString::CENTER_VERT, SvxSwFramePosString::CENTER_VERT, VertOrientation::CHAR_CENTER, LB::RelChar},
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::LINE_TOP, LB::RelRow},
{SvxSwFramePosString::BOTTOM, SvxSwFramePosString::BOTTOM, VertOrientation::LINE_BOTTOM, LB::RelRow},
{SvxSwFramePosString::CENTER_VERT, SvxSwFramePosString::CENTER_VERT, VertOrientation::LINE_CENTER, LB::RelRow},
}

Definition at line 348 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::InitPos(), and SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap const aVCharHtmlAbsMap[]
Initial value:
=
{
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::TOP, LB::RelChar},
{SvxSwFramePosString::BELOW, SvxSwFramePosString::BELOW, VertOrientation::CHAR_BOTTOM, LB::RelChar}
}

Definition at line 339 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::InitPos(), and SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap const aVCharHtmlMap[]
Initial value:
=
{
{SvxSwFramePosString::BELOW, SvxSwFramePosString::BELOW, VertOrientation::CHAR_BOTTOM, LB::RelChar}
}

Definition at line 334 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap aVCharMap[]
static
Initial value:
=
{
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::TOP, VERT_CHAR_REL|LB::RelChar},
{SvxSwFramePosString::BOTTOM, SvxSwFramePosString::BOTTOM, VertOrientation::BOTTOM, VERT_CHAR_REL|LB::RelChar},
{SvxSwFramePosString::BELOW, SvxSwFramePosString::BELOW, VertOrientation::CHAR_BOTTOM, LB::RelChar},
{SvxSwFramePosString::FROMTOP, SvxSwFramePosString::FROMTOP, VertOrientation::NONE, VERT_CHAR_REL|LB::RelPagePrintAreaBottom},
{SvxSwFramePosString::FROMBOTTOM, SvxSwFramePosString::FROMBOTTOM, VertOrientation::NONE, LB::RelChar|LB::VertLine},
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::LINE_TOP, LB::VertLine},
{SvxSwFramePosString::BOTTOM, SvxSwFramePosString::BOTTOM, VertOrientation::LINE_BOTTOM, LB::VertLine},
{SvxSwFramePosString::CENTER_VERT, SvxSwFramePosString::CENTER_VERT, VertOrientation::LINE_CENTER, LB::VertLine}
}
constexpr auto VERT_CHAR_REL

Definition at line 313 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::FillPosLB(), SvxSwPosSizeTabPage::InitPos(), and SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap const aVFlyHtmlMap[]
Initial value:
=
{
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::TOP, LB::FlyVertFrame},
{SvxSwFramePosString::FROMTOP, SvxSwFramePosString::FROMTOP, VertOrientation::NONE, LB::FlyVertFrame}
}

Definition at line 215 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap const aVFrameMap[]
FrmMap const aVMultiSelectionMap[]
Initial value:

Definition at line 221 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::InitPos().

FrmMap const aVPageHtmlMap[]
Initial value:
=
{
{SvxSwFramePosString::FROMTOP, SvxSwFramePosString::FROMTOP, VertOrientation::NONE, LB::RelPageFrame}
}

Definition at line 177 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap const aVPageMap[]
FrmMap const aVParaHtmlMap[]
Initial value:
=
{
{SvxSwFramePosString::TOP, SvxSwFramePosString::TOP, VertOrientation::TOP, LB::VertPrintArea}
}

Definition at line 272 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::InitPos(), and SvxSwPosSizeTabPage::setOptimalFrmWidth().

FrmMap const aVParaMap[]
constexpr auto HORI_CHAR_REL
Initial value:
= LB::Frame|LB::PrintArea|LB::RelPageLeft|LB::RelPageRight|
LB::RelPageFrame|LB::RelPagePrintArea|LB::RelFrameLeft|
LB::RelFrameRight|LB::RelChar

Definition at line 281 of file swpossizetabpage.cxx.

constexpr auto HORI_FRAME_REL
Initial value:
= LB::FlyRelPageFrame|LB::FlyRelPagePrintArea|
LB::FlyRelPageLeft|LB::FlyRelPageRight

Definition at line 186 of file swpossizetabpage.cxx.

constexpr auto HORI_PAGE_REL
Initial value:
= LB::RelPageFrame|LB::RelPagePrintArea|LB::RelPageLeft|
LB::RelPageRight

Definition at line 151 of file swpossizetabpage.cxx.

constexpr auto HORI_PARA_REL
Initial value:
= LB::Frame|LB::PrintArea|LB::RelPageLeft|LB::RelPageRight|
LB::RelPageFrame|LB::RelPagePrintArea|LB::RelFrameLeft|
LB::RelFrameRight

Definition at line 234 of file swpossizetabpage.cxx.

constexpr auto VERT_CHAR_REL
Initial value:
= LB::VertFrame|LB::VertPrintArea|
LB::RelPageFrame|LB::RelPagePrintArea

Definition at line 310 of file swpossizetabpage.cxx.

constexpr auto VERT_PARA_REL
Initial value:
= LB::VertFrame|LB::VertPrintArea|
LB::RelPageFrame|LB::RelPagePrintArea

Definition at line 261 of file swpossizetabpage.cxx.