32 #include <editeng/editids.hrc>
33 #include <svx/svxids.hrc>
67 const FontList* pApm_pFontList =
nullptr;
73 pSh->
GetItem( SID_ATTR_CHAR_FONTLIST ));
78 const FontList* pList = pApm_pFontList;
91 else if (rId ==
"labelTP_PARA_STD")
95 else if (rId ==
"labelTP_PARA_ALIGN")
99 else if (rId ==
"background")
102 aSet.
Put(
SfxUInt32Item(SID_FLAG_TYPE,static_cast<sal_uInt32>(SvxBackgroundTabFlags::SHOW_HIGHLIGHTING)));
109 : GenericDialogController(pParent,
"cui/ui/searchattrdialog.ui",
"SearchAttrDialog")
111 , m_xAttrLB(m_xBuilder->weld_tree_view(
"treeview"))
112 , m_xOKBtn(m_xBuilder->weld_button(
"ok"))
131 sal_uInt16 nSlot = rPool.
GetSlotId( nWhich );
132 if ( nSlot >= SID_SVX_START )
134 bool bChecked =
false, bFound =
false;
137 if ( nSlot ==
rList[
i].nSlot )
150 const int nRow =
m_xAttrLB->n_children() - 1;
153 m_xAttrLB->set_id(nRow, OUString::number(nSlot));
156 SAL_WARN(
"cui.dialogs",
"no resource for slot id " << static_cast<sal_Int32>(nSlot) );
176 sal_uInt16 nSlot = m_xAttrLB->get_id(
i).toUInt32();
180 for ( j = rList.Count(); j; )
183 if( rItem.
nSlot == nSlot )
192 rItem.
pItem =
nullptr;
198 if ( !j && bChecked )
200 aInvalidItem.
nSlot = nSlot;
201 rList.Insert( aInvalidItem );
206 for ( sal_uInt16
n = rList.Count();
n; )
207 if ( !rList[ --
n ].pItem )
216 sal_uInt16 nOther, sal_uInt16 nShorter, sal_uInt16 nLonger)
217 : GenericDialogController(pParent,
"cui/ui/similaritysearchdialog.ui",
"SimilaritySearchDialog")
218 , m_xOtherFld(m_xBuilder->weld_spin_button(
"otherfld"))
219 , m_xLongerFld(m_xBuilder->weld_spin_button(
"longerfld"))
220 , m_xShorterFld(m_xBuilder->weld_spin_button(
"shorterfld"))
221 , m_xRelaxBox(m_xBuilder->weld_check_button(
"relaxbox"))
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(SvxSearchAttributeDialog, OKHdl, weld::Button &, void)
std::unique_ptr< weld::TreeView > m_xAttrLB
virtual void PageCreated(const SfxAllItemSet &aSet)
virtual ~SvxSearchAttributeDialog() override
void RemoveTabPage(const OString &rName)
SfxItemSet * GetInputSetImpl()
static SfxObjectShell * Current()
SvxSearchSimilarityDialog(weld::Window *pParent, bool bRelax, sal_uInt16 nOther, sal_uInt16 nShorter, sal_uInt16 nLonger)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
#define RESARRAY_INDEX_NOTFOUND
static OutputDevice * GetDefaultDevice()
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
SfxItemPool & GetPool() const
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
const SfxPoolItem * GetItem(sal_uInt16 nSlotId) const
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
#define DBG_ASSERT(sCon, aError)
bool IsDoubleLinesEnabled() const
std::unique_ptr< weld::Button > m_xOKBtn
SvxSearchAttributeDialog(weld::Window *pParent, SearchAttrItemList &rLst, const sal_uInt16 *pWhRanges)
virtual ~SvxSearchSimilarityDialog() override
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
SearchAttrItemList & rList
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
bool IsAsianTypographyEnabled() const
std::unique_ptr< weld::SpinButton > m_xLongerFld
void AddTabPage(const OString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
Reference< XExecutableDialog > m_xDialog
std::unique_ptr< weld::SpinButton > m_xOtherFld
std::unique_ptr< weld::SpinButton > m_xShorterFld
#define SAL_WARN(area, stream)
#define INVALID_POOL_ITEM
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
const FontList * GetFontList() const
bool IsInvalidItem(const SfxPoolItem *pItem)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
std::unique_ptr< weld::CheckButton > m_xRelaxBox
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)