LibreOffice Module cui (master) 1
Classes | Namespaces | Macros | Functions | Variables
swpossizetabpage.cxx File Reference
#include <memory>
#include <cstddef>
#include <type_traits>
#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 <osl/diagnose.h>
Include dependency graph for swpossizetabpage.cxx:

Go to the source code of this file.

Classes

struct  FrmMap
 
struct  o3tl::typed_flags< LB >
 

Namespaces

namespace  o3tl
 

Macros

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

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::Toggleable &, void)
 
 IMPL_LINK_NOARG (SvxSwPosSizeTabPage, RangeModifyHdl, weld::Widget &, void)
 
 IMPL_LINK_NOARG (SvxSwPosSizeTabPage, AnchorTypeHdl, weld::Toggleable &, void)
 
 IMPL_LINK_NOARG (SvxSwPosSizeTabPage, MirrorHdl, weld::Toggleable &, 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::Toggleable &, 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

◆ HTML_HORI_CHAR_REL

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

Definition at line 297 of file swpossizetabpage.cxx.

◆ HTML_HORI_PARA_REL

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

Definition at line 250 of file swpossizetabpage.cxx.

◆ VERT_FRAME_REL

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

Definition at line 209 of file swpossizetabpage.cxx.

◆ VERT_PAGE_REL

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

Definition at line 171 of file swpossizetabpage.cxx.

Function Documentation

◆ IMPL_LINK() [1/3]

IMPL_LINK ( SvxSwPosSizeTabPage  ,
ModifyHdl  ,
weld::MetricSpinButton ,
rEdit  ,
void   
)

Definition at line 1337 of file swpossizetabpage.cxx.

◆ IMPL_LINK() [2/3]

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

◆ IMPL_LINK() [3/3]

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

Definition at line 1218 of file swpossizetabpage.cxx.

◆ IMPL_LINK_NOARG() [1/5]

IMPL_LINK_NOARG ( SvxSwPosSizeTabPage  ,
AnchorTypeHdl  ,
weld::Toggleable ,
void   
)

Definition at line 1192 of file swpossizetabpage.cxx.

References LONG_MAX, and nId.

◆ IMPL_LINK_NOARG() [2/5]

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

Definition at line 1212 of file swpossizetabpage.cxx.

References LONG_MAX, and nId.

◆ IMPL_LINK_NOARG() [3/5]

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

Definition at line 1358 of file swpossizetabpage.cxx.

References TRISTATE_TRUE.

◆ IMPL_LINK_NOARG() [4/5]

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

Definition at line 1112 of file swpossizetabpage.cxx.

◆ IMPL_LINK_NOARG() [5/5]

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

◆ lcl_ChangeResIdToVerticalOrRTL()

static SvxSwFramePosString::StringId lcl_ChangeResIdToVerticalOrRTL ( SvxSwFramePosString::StringId  eStringId,
bool  bVertical,
bool  bRTL 
)
static

◆ lcl_GetFrmMapCount()

static std::size_t lcl_GetFrmMapCount ( const FrmMap pMap)
static

◆ lcl_GetLBRelationsForRelations()

static LB lcl_GetLBRelationsForRelations ( const sal_uInt16  _nRel)
static

Definition at line 490 of file swpossizetabpage.cxx.

References aRelationMap.

Referenced by SvxSwPosSizeTabPage::FillPosLB().

◆ lcl_GetLBRelationsForStrID()

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

Definition at line 507 of file swpossizetabpage.cxx.

References lcl_GetFrmMapCount(), and FrmMap::nLBRelations.

Referenced by SvxSwPosSizeTabPage::FillRelLB().

Variable Documentation

◆ aAsCharRelationMap

RelationMap const aAsCharRelationMap[]

◆ aHCharHtmlAbsMap

FrmMap aHCharHtmlAbsMap[]
static

◆ aHCharHtmlMap

FrmMap aHCharHtmlMap[]
static

◆ aHCharMap

FrmMap aHCharMap[]
static

◆ aHFlyHtmlMap

FrmMap const aHFlyHtmlMap[]
Initial value:
=
{
{SvxSwFramePosString::LEFT, SvxSwFramePosString::MIR_LEFT, HoriOrientation::LEFT, LB::FlyRelPageFrame},
{SvxSwFramePosString::FROMLEFT, SvxSwFramePosString::MIR_FROMLEFT, HoriOrientation::NONE, LB::FlyRelPageFrame}
}

Definition at line 201 of file swpossizetabpage.cxx.

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

◆ aHFrameMap

FrmMap const aHFrameMap[]

◆ aHMultiSelectionMap

FrmMap const aHMultiSelectionMap[]
Initial value:
=
{
}

Definition at line 229 of file swpossizetabpage.cxx.

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

◆ aHPageHtmlMap

FrmMap const aHPageHtmlMap[]
Initial value:
=
{
{SvxSwFramePosString::FROMLEFT, SvxSwFramePosString::MIR_FROMLEFT, HoriOrientation::NONE, LB::RelPageFrame}
}

Definition at line 166 of file swpossizetabpage.cxx.

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

◆ aHPageMap

FrmMap const aHPageMap[]

◆ aHParaHtmlAbsMap

FrmMap const aHParaHtmlAbsMap[]

◆ aHParaHtmlMap

FrmMap const aHParaHtmlMap[]

◆ aHParaMap

FrmMap const aHParaMap[]

◆ aRelationMap

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_TOP,SvxSwFramePosString::REL_PG_PRTAREA_TOP, LB::RelPagePrintAreaTop, RelOrientation::PAGE_PRINT_AREA_TOP},
{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 114 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::FillRelLB(), lcl_GetLBRelationsForRelations(), and SvxSwPosSizeTabPage::setOptimalRelWidth().

◆ aVAsCharHtmlMap

FrmMap const aVAsCharHtmlMap[]

◆ aVAsCharMap

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 352 of file swpossizetabpage.cxx.

Referenced by SvxSwPosSizeTabPage::FillRelLB(), SvxSwPosSizeTabPage::GetAlignment(), SvxSwPosSizeTabPage::GetMapPos(), SvxSwPosSizeTabPage::InitPos(), lcl_GetFrmMapCount(), and SvxSwPosSizeTabPage::setOptimalFrmWidth().

◆ aVCharHtmlAbsMap

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 343 of file swpossizetabpage.cxx.

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

◆ aVCharHtmlMap

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

Definition at line 338 of file swpossizetabpage.cxx.

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

◆ aVCharMap

FrmMap aVCharMap[]
static

◆ aVFlyHtmlMap

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

Definition at line 219 of file swpossizetabpage.cxx.

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

◆ aVFrameMap

FrmMap const aVFrameMap[]

◆ aVMultiSelectionMap

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

Definition at line 225 of file swpossizetabpage.cxx.

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

◆ aVPageHtmlMap

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

Definition at line 181 of file swpossizetabpage.cxx.

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

◆ aVPageMap

FrmMap const aVPageMap[]

◆ aVParaHtmlMap

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

Definition at line 276 of file swpossizetabpage.cxx.

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

◆ aVParaMap

FrmMap const aVParaMap[]

◆ HORI_CHAR_REL

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

Definition at line 285 of file swpossizetabpage.cxx.

◆ HORI_FRAME_REL

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

Definition at line 190 of file swpossizetabpage.cxx.

◆ HORI_PAGE_REL

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

Definition at line 155 of file swpossizetabpage.cxx.

◆ HORI_PARA_REL

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

Definition at line 238 of file swpossizetabpage.cxx.

◆ VERT_CHAR_REL

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

Definition at line 314 of file swpossizetabpage.cxx.

◆ VERT_PARA_REL

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

Definition at line 265 of file swpossizetabpage.cxx.