LibreOffice Module sd (master) 1
|
PopupMenu for editing field-commands. More...
#include <sdpopup.hxx>
Public Member Functions | |
SdFieldPopup (const SvxFieldData *pInField, LanguageType eLanguage) | |
void | Execute (weld::Window *pParent, const tools::Rectangle &rRect) |
~SdFieldPopup () | |
SvxFieldData * | GetField () |
Returns a new field, owned by caller. More... | |
Private Member Functions | |
void | Fill (LanguageType eLanguage) |
Private Attributes | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Menu > | m_xPopup |
const SvxFieldData * | m_pField |
PopupMenu for editing field-commands.
Definition at line 30 of file sdpopup.hxx.
SdFieldPopup::SdFieldPopup | ( | const SvxFieldData * | pInField, |
LanguageType | eLanguage | ||
) |
Definition at line 39 of file sdpopup.cxx.
References Fill().
SdFieldPopup::~SdFieldPopup | ( | ) |
Definition at line 47 of file sdpopup.cxx.
void SdFieldPopup::Execute | ( | weld::Window * | pParent, |
const tools::Rectangle & | rRect | ||
) |
Definition at line 156 of file sdpopup.cxx.
References i, m_xPopup, and nCount.
Referenced by sd::DrawViewShell::Command().
|
private |
Definition at line 51 of file sdpopup.cxx.
References SvxAuthorField::GetFormatted(), SvxDateField::GetFormatted(), SvxExtTimeField::GetFormatted(), i, m_pField, m_xPopup, SD_MOD, SdResId(), SvxAuthorField::SetFormat(), SvxDateField::SetFormat(), and SvxExtTimeField::SetFormat().
Referenced by SdFieldPopup().
SvxFieldData * SdFieldPopup::GetField | ( | ) |
Returns a new field, owned by caller.
Returns NULL if nothing changed.
Definition at line 180 of file sdpopup.cxx.
References aName, SfxObjectShell::Current(), eType, SvtUserOptions::GetFirstName(), SvtUserOptions::GetID(), SvtUserOptions::GetLastName(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SfxObjectShell::HasName(), i, m_pField, m_xPopup, nCount, SetFormat(), Date::SYSTEM, and tools::Time::SYSTEM.
Referenced by sd::DrawViewShell::Command().
|
private |
Definition at line 35 of file sdpopup.hxx.
Referenced by Fill(), and GetField().
|
private |
Definition at line 33 of file sdpopup.hxx.
|
private |
Definition at line 34 of file sdpopup.hxx.
Referenced by Execute(), Fill(), and GetField().