20#undef SC_DLLIMPLEMENTATION
30#include <osl/diagnose.h>
32#include <styledlg.hxx>
36#include <svx/svxids.hrc>
37#include <svx/dialogs.hrc>
47 OUString(
"modules/scalc/ui/pagetemplatedialog.ui") :
48 OUString(
"modules/scalc/ui/paratemplatedialog.ui"),
50 OUString(
"PageTemplateDialog") :
51 OUString(
"ParaTemplateDialog"),
88 if (rPageId ==
"page")
93 else if (rPageId ==
"header" || rPageId ==
"footer")
95 static_cast<ScHFPage&
>(rTabPage).SetStyleDlg(
this );
97 static_cast<ScHFPage&
>(rTabPage).DisableDeleteQueryBox();
99 else if (rPageId ==
"background")
101 aSet.
Put (
SfxUInt32Item(SID_FLAG_TYPE,
static_cast<sal_uInt32
>(SvxBackgroundTabFlags::SHOW_SELECTOR)));
108 if (rPageId ==
"numbers")
111 = pDocSh->GetItem( SID_ATTR_NUMBERFORMAT_INFO );
113 OSL_ENSURE( pInfoItem,
"NumberInfoItem not found!" );
118 else if (rPageId ==
"font")
121 = pDocSh->GetItem( SID_ATTR_CHAR_FONTLIST );
123 OSL_ENSURE( pInfoItem,
"FontListItem not found!" );
128 else if (rPageId ==
"background")
149 AddTabPage(
"transparency", RID_SVXPAGE_TRANSPARENCE);
151 AddTabPage(
"fonteffect", RID_SVXPAGE_CHAR_EFFECTS);
153 AddTabPage(
"indents", RID_SVXPAGE_STD_PARAGRAPH);
155 AddTabPage(
"animation", RID_SVXPAGE_TEXTANIMATION);
156 AddTabPage(
"dimensioning", RID_SVXPAGE_MEASURE);
157 AddTabPage(
"alignment", RID_SVXPAGE_ALIGN_PARAGRAPH);
160 AddTabPage(
"asiantypo", RID_SVXPAGE_PARA_ASIAN);
170 if (rPageId ==
"line")
178 else if (rPageId ==
"area")
190 else if (rPageId ==
"shadowing")
197 else if (rPageId ==
"transparency")
203 else if (rPageId ==
"font")
208 pDocSh->GetItem(SID_ATTR_CHAR_FONTLIST)));
214 else if (rPageId ==
"fonteffect")
218 else if (rPageId ==
"background")
220 aSet.
Put(
SfxUInt32Item(SID_FLAG_TYPE,
static_cast<sal_uInt32
>(SvxBackgroundTabFlags::SHOW_CHAR_BKGCOLOR)));
223 else if (rPageId ==
"text")
227 else if (rPageId ==
"dimensioning")
virtual void PageCreated(const OUString &rPageId, SfxTabPage &rTabPage) override
ScDrawStyleDlg(weld::Window *pParent, SfxStyleSheetBase &rStyleBase, SdrView *pView)
virtual void RefreshInputSet() override
virtual void RefreshInputSet() override
virtual void PageCreated(const OUString &rPageId, SfxTabPage &rTabPage) override
ScStyleDlg(weld::Window *pParent, SfxStyleSheetBase &rStyleBase, bool bPage)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
static WhichRangesContainer GetRanges()
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
static WhichRangesContainer GetRanges()
XBitmapListRef GetBitmapList() const
XDashListRef GetDashList() const
XGradientListRef GetGradientList() const
XPatternListRef GetPatternList() const
XLineEndListRef GetLineEndList() const
XColorListRef GetColorList() const
XHatchListRef GetHatchList() const
SdrModel & GetModel() const
virtual GetTabPageRanges GetTabPageRangesFunc(sal_uInt16 nId)=0
static SfxAbstractDialogFactory * Create()
virtual CreateTabPage GetTabPageCreatorFunc(sal_uInt16 nId)=0
void SetParent(const SfxItemSet *pNew)
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
SfxStyleSheetBase & GetStyleSheet()
const OUString & GetName() const
void AddTabPage(const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
void RemoveTabPage(const OUString &rName)
SfxItemSet * GetInputSetImpl()
virtual void PageCreated(const SfxAllItemSet &aSet)
const FontList * GetFontList() const
bool IsAsianTypographyEnabled()