21#include <svx/dialogs.hrc>
22#include <svx/svxids.hrc>
40#define IS_OUTLINE(x) (x >= PresentationObjects::Outline_1 && x <= PresentationObjects::Outline_9)
54 , aInputSet(*rStyleBase.
GetItemSet().GetPool(),
svl::Items<SID_PARAM_NUM_PRESET, SID_PARAM_CUR_NUM_LEVEL>)
63 for( sal_Int32
i = 0;
i < pPtr.
size(); ++
i )
69 while(
i < pPtr.
size() - 1 && (pPtr[
i+1].first - p2 == 1))
71 p2 = pPtr[
i+1].second;
92 OUString aStyleName(
SdResId(STR_PSEUDOSHEET_OUTLINE) +
" 1");
173 aTitle =
SdResId(STR_PSEUDOSHEET_TITLE);
177 aTitle =
SdResId(STR_PSEUDOSHEET_SUBTITLE);
181 aTitle =
SdResId(STR_PSEUDOSHEET_BACKGROUND);
185 aTitle =
SdResId(STR_PSEUDOSHEET_BACKGROUNDOBJECTS);
197 aTitle =
SdResId(STR_PSEUDOSHEET_OUTLINE) +
" " +
202 aTitle =
SdResId(STR_PSEUDOSHEET_NOTES);
216 if (rId ==
"RID_SVXPAGE_LINE")
224 else if (rId ==
"RID_SVXPAGE_AREA")
236 else if (rId ==
"RID_SVXPAGE_SHADOW")
243 else if (rId ==
"RID_SVXPAGE_TRANSPARENCE")
249 else if (rId ==
"RID_SVXPAGE_CHAR_NAME")
255 else if (rId ==
"RID_SVXPAGE_CHAR_EFFECTS")
259 else if (rId ==
"RID_SVXPAGE_TEXTATTR")
261 aSet.
Put(
CntUInt16Item(SID_SVXTEXTATTRPAGE_OBJKIND,
static_cast<sal_uInt16
>(SdrObjKind::Text)));
264 else if (rId ==
"RID_SVXPAGE_BKG")
266 aSet.
Put(
SfxUInt32Item(SID_FLAG_TYPE,
static_cast<sal_uInt32
>(SvxBackgroundTabFlags::SHOW_CHAR_BKGCOLOR)));
278 if (pSvxNumBulletItem)
Reference< XExecutableDialog > m_xDialog
static void MapFontsInNumRule(SvxNumRule &aNumRule, const SfxItemSet &rSet)
SdPresLayoutTemplateDlg(SfxObjectShell const *pDocSh, weld::Window *pParent, bool bBackground, SfxStyleSheetBase &rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool *pSSPool)
Constructor of Tab dialog: appends pages to the dialog.
std::unique_ptr< SfxItemSet > pOutSet
XLineEndListRef pLineEndList
virtual void PageCreated(const OUString &rId, SfxTabPage &rPage) override
const SfxObjectShell * mpDocShell
XGradientListRef pGradientList
sal_uInt16 GetOutlineLevel() const
virtual ~SdPresLayoutTemplateDlg() override
XHatchListRef pHatchingList
const SfxItemSet * GetOutputItemSet() const
XPatternListRef pPatternList
XBitmapListRef pBitmapList
static SfxAbstractDialogFactory * Create()
virtual CreateTabPage GetTabPageCreatorFunc(sal_uInt16 nId)=0
const WhichRangesContainer & GetRanges() const
SfxItemPool * GetPool() const
void SetParent(const SfxItemSet *pNew)
const SfxItemSet * GetParent() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void MergeRange(sal_uInt16 nFrom, sal_uInt16 nTo)
const SfxPoolItem * GetItem(sal_uInt16 nSlotId) const
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
virtual SfxItemSet & GetItemSet()
void AddTabPage(const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
void SetInputSet(const SfxItemSet *pInSet)
void RemoveTabPage(const OUString &rName)
const SfxItemSet * GetOutputItemSet() const
virtual void PageCreated(const SfxAllItemSet &aSet)
const XBitmapListRef & GetBitmapList() const
const XColorListRef & GetColorList() const
const XDashListRef & GetDashList() const
const FontList * GetFontList() const
const XGradientListRef & GetGradientList() const
const XHatchListRef & GetHatchList() const
const XLineEndListRef & GetLineEndList() const
const SvxNumRule & GetNumRule() const
const XPatternListRef & GetPatternList() const
constexpr TypedWhichId< SvxNumBulletItem > EE_PARA_NUMBULLET(EE_PARA_START+5)
#define SAL_WARN(area, stream)
bool IsAsianTypographyEnabled()
OUString SdResId(TranslateId aId)
sal_Int32 size() const noexcept