32#include <editeng/editids.hrc>
33#include <svx/svxids.hrc>
66 const FontList* pApm_pFontList =
nullptr;
70 pSh->GetItem( SID_ATTR_CHAR_FONTLIST ));
75 const FontList* pList = pApm_pFontList;
88 else if (rId ==
"labelTP_PARA_STD")
92 else if (rId ==
"labelTP_PARA_ALIGN")
96 else if (rId ==
"background")
99 aSet.
Put(
SfxUInt32Item(SID_FLAG_TYPE,
static_cast<sal_uInt32
>(SvxBackgroundTabFlags::SHOW_HIGHLIGHTING)));
106 : GenericDialogController(pParent,
"cui/ui/searchattrdialog.ui",
"SearchAttrDialog")
108 , m_xAttrLB(m_xBuilder->weld_tree_view(
"treeview"))
109 , m_xOKBtn(m_xBuilder->weld_button(
"ok"))
129 sal_uInt16 nSlot = rPool.
GetSlotId( nWhich );
130 if ( nSlot >= SID_SVX_START )
132 bool bChecked =
false, bFound =
false;
135 if ( nSlot ==
rList[
i].nSlot )
148 const int nRow =
m_xAttrLB->n_children() - 1;
151 m_xAttrLB->set_id(nRow, OUString::number(nSlot));
154 SAL_WARN(
"cui.dialogs",
"no resource for slot id " <<
static_cast<sal_Int32
>(nSlot) );
175 sal_uInt16 nSlot = m_xAttrLB->get_id(
i).toUInt32();
179 for ( j = rList.Count(); j; )
182 if( rItem.
nSlot == nSlot )
191 rItem.
pItem =
nullptr;
197 if ( !j && bChecked )
199 aInvalidItem.
nSlot = nSlot;
200 rList.Insert( aInvalidItem );
205 for ( sal_uInt16
n = rList.Count();
n; )
206 if ( !rList[ --
n ].pItem )
215 sal_uInt16 nOther, sal_uInt16 nShorter, sal_uInt16 nLonger)
216 : GenericDialogController(pParent,
"cui/ui/similaritysearchdialog.ui",
"SimilaritySearchDialog")
217 , m_xOtherFld(m_xBuilder->weld_spin_button(
"otherfld"))
218 , m_xLongerFld(m_xBuilder->weld_spin_button(
"longerfld"))
219 , m_xShorterFld(m_xBuilder->weld_spin_button(
"shorterfld"))
220 , m_xRelaxBox(m_xBuilder->weld_check_button(
"relaxbox"))
Reference< XExecutableDialog > m_xDialog
static OutputDevice * GetDefaultDevice()
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
SfxItemPool & GetPool() const
void AddTabPage(const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
void RemoveTabPage(const OUString &rName)
SfxItemSet * GetInputSetImpl()
virtual void PageCreated(const SfxAllItemSet &aSet)
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 *)
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)
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)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
const FontList * GetFontList() const
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
std::unique_ptr< weld::TreeView > m_xAttrLB
std::unique_ptr< weld::Button > m_xOKBtn
SearchAttrItemList & rList
SvxSearchAttributeDialog(weld::Window *pParent, SearchAttrItemList &rLst, const WhichRangesContainer &pWhRanges)
virtual ~SvxSearchAttributeDialog() override
std::unique_ptr< weld::SpinButton > m_xOtherFld
SvxSearchSimilarityDialog(weld::Window *pParent, bool bRelax, sal_uInt16 nOther, sal_uInt16 nShorter, sal_uInt16 nLonger)
std::unique_ptr< weld::SpinButton > m_xShorterFld
std::unique_ptr< weld::CheckButton > m_xRelaxBox
std::unique_ptr< weld::SpinButton > m_xLongerFld
virtual ~SvxSearchSimilarityDialog() override
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
#define DBG_ASSERT(sCon, aError)
#define LINK(Instance, Class, Member)
#define SAL_WARN(area, stream)
bool IsDoubleLinesEnabled()
bool IsAsianTypographyEnabled()
#define INVALID_POOL_ITEM
bool IsInvalidItem(const SfxPoolItem *pItem)
#define RESARRAY_INDEX_NOTFOUND
IMPL_LINK_NOARG(SvxSearchAttributeDialog, OKHdl, weld::Button &, void)