23    const Date& rNullDate = m_pNumberFormatter->GetNullDate();
 
   24    double fDate = rCalendar.get_date() - rNullDate;
 
   26    m_pContentControl->SetSelectedDate(fDate);
 
   33    SwEditWin* pEditWin, 
const std::shared_ptr<SwContentControl>& pContentControl,
 
   36    , m_pNumberFormatter(pNumberFormatter)
 
   45                                                 "modules/swriter/ui/contentcontrolcalendar.ui");
 
   54        if (fCurrentDate != 0)
 
   56            m_xCalendar->set_date(rNullDate + sal_Int32(fCurrentDate));
 
static std::unique_ptr< weld::Builder > CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false, sal_uInt64 nLOKWindowId=0)
 
This button is shown when the cursor is inside a content control with drop-down capability.
 
virtual void LaunchPopup()
 
std::shared_ptr< SwContentControl > m_pContentControl
 
std::unique_ptr< weld::Builder > m_xPopupBuilder
 
virtual void DestroyPopup()
 
std::unique_ptr< weld::Popover > m_xPopup
 
This button is shown when the cursor is on a date content control.
 
~SwDateContentControlButton() override
 
void LaunchPopup() override
 
std::unique_ptr< weld::Calendar > m_xCalendar
 
SwDateContentControlButton(SwEditWin *pEditWin, const std::shared_ptr< SwContentControl > &pContentControl, SvNumberFormatter *pNumberFormatter)
 
SvNumberFormatter * m_pNumberFormatter
 
void DestroyPopup() override
 
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
 
SwWrtShell & GetWrtShell() const
 
Used by the UI to modify the document model.
 
bool GotoContentControl(const SwFormatContentControl &rContentControl, bool bOnlyRefresh=false)
 
weld::Window * GetFrameWeld() const
 
IMPL_LINK(SwDateContentControlButton, SelectHandler, weld::Calendar &, rCalendar, void)
 
#define LINK(Instance, Class, Member)