12 #include <bookmark.hxx>
19 #include <strings.hrc>
30 sw::mark::IFieldmark::parameter_map_t::const_iterator pListEntries
32 css::uno::Sequence<OUString> vListEntries;
33 if (pListEntries != pParameters->end())
35 pListEntries->second >>= vListEntries;
36 for (OUString
const&
i : std::as_const(vListEntries))
40 if (!vListEntries.hasElements())
46 sw::mark::IFieldmark::parameter_map_t::const_iterator pResult
48 if (pResult != pParameters->end())
50 sal_Int32 nSelection = -1;
51 pResult->second >>= nSelection;
62 lbSize.AdjustHeight(4);
64 lbSize.setWidth(std::max(lbSize.Width(), nMinListWidth));
65 m_xTreeView->set_size_request(lbSize.Width(), lbSize.Height());
70 OUString sSelection = rBox.get_selected_text();
71 if (sSelection ==
SwResId(STR_DROP_DOWN_EMPTY_LIST))
73 m_xFieldPopup->popdown();
77 sal_Int32 nSelection = rBox.get_selected_index();
81 m_rFieldmark.Invalidate();
86 m_xFieldPopup->popdown();
#define LINK(Instance, Class, Member)
virtual void SetModified(bool=true) override
std::map< OUString, css::uno::Any > parameter_map_t
static const AllSettings & GetSettings()
virtual Size GetSizePixel() const
OUString SwResId(TranslateId aId)
constexpr tools::Long Width() const
weld::Window * GetFrameWeld() const
constexpr OUStringLiteral ODF_FORMDROPDOWN_RESULT
constexpr OUStringLiteral ODF_FORMDROPDOWN_LISTENTRY
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
SwDocShell * GetDocShell()
tools::Long AdjustWidth(tools::Long n)
Fieldmark representing a drop-down form field.
static std::unique_ptr< weld::Builder > CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false, sal_uInt64 nLOKWindowId=0)
virtual IFieldmark::parameter_map_t * GetParameters() override