LibreOffice Module cui (master) 1
|
#include <pastedlg.hxx>
Public Member Functions | |
SvPasteObjectDialog (weld::Window *pParent) | |
void | Insert (SotClipboardFormatId nFormat, const OUString &rFormatName) |
void | InsertUno (const OUString &sUnoCmd, const OUString &sLabel) |
void | SetObjName (const SvGlobalName &rClass, const OUString &rObjName) |
void | PreGetFormat (const TransferableDataHelper &aHelper) |
PreGetFormat Prepares the dialog for running to get format of paste as a SotClipboardFormatId value by calling GetFormatOnly() More... | |
SotClipboardFormatId | GetFormatOnly () |
GetFormatOnly Returns a SotClipboardFormatId value. More... | |
SotClipboardFormatId | GetFormat (const TransferableDataHelper &aHelper) |
GetFormat Prepares and runs the dialog, and returns a SotClipboardFormatId depending on the RET_OK result. More... | |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
weld::TreeView & | ObjectLB () |
void | SelectObject () |
DECL_LINK (SelectHdl, weld::TreeView &, void) | |
DECL_LINK (DoubleClickHdl, weld::TreeView &, bool) | |
Private Attributes | |
std::map< SotClipboardFormatId, OUString > | aSupplementMap |
std::pair< OUString, OUString > | aExtraCommand |
SvGlobalName | aObjClassName |
OUString | aObjName |
std::unique_ptr< weld::Label > | m_xFtObjectSource |
std::unique_ptr< weld::TreeView > | m_xLbInsertList |
std::unique_ptr< weld::Button > | m_xOKButton |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 31 of file pastedlg.hxx.
SvPasteObjectDialog::SvPasteObjectDialog | ( | weld::Window * | pParent | ) |
Definition at line 32 of file pastedlg.cxx.
References weld::TreeView::connect_changed(), weld::TreeView::connect_row_activated(), LINK, m_xLbInsertList, m_xOKButton, m_xOKButton, and ObjectLB().
|
private |
|
private |
SotClipboardFormatId SvPasteObjectDialog::GetFormat | ( | const TransferableDataHelper & | aHelper | ) |
GetFormat Prepares and runs the dialog, and returns a SotClipboardFormatId depending on the RET_OK result.
aHelper | TransferableDataHelper containing the data to be pasted |
Definition at line 201 of file pastedlg.cxx.
References aExtraCommand, aName, aObjClassName, aObjName, weld::TreeView::append(), aSupplementMap, convertLineEnd(), comphelper::dispatchCommand(), weld::TreeView::find_text(), weld::Widget::freeze(), weld::TreeView::get_selected_id(), TransferableDataHelper::GetDataFlavorExVector(), SvPasteObjectHelper::GetEmbeddedName(), SvPasteObjectHelper::GetSotFormatUIName(), GetSystemLineEnd(), TransferableDataHelper::GetTransferableObjectDescriptor(), TransferableDataHelper::HasFormat(), m_xFtObjectSource, TransferableObjectDescriptor::maClassName, TransferableObjectDescriptor::maDisplayName, TransferableObjectDescriptor::maTypeName, ObjectLB(), pName, RET_OK, weld::DialogController::run(), SelectObject(), SvtResId(), and weld::Widget::thaw().
SotClipboardFormatId SvPasteObjectDialog::GetFormatOnly | ( | ) |
GetFormatOnly Returns a SotClipboardFormatId value.
Should be called after actually running the dialog.
Definition at line 196 of file pastedlg.cxx.
References weld::TreeView::get_selected_id(), and ObjectLB().
void SvPasteObjectDialog::Insert | ( | SotClipboardFormatId | nFormat, |
const OUString & | rFormatName | ||
) |
Definition at line 70 of file pastedlg.cxx.
References aSupplementMap.
void SvPasteObjectDialog::InsertUno | ( | const OUString & | sUnoCmd, |
const OUString & | sLabel | ||
) |
Definition at line 75 of file pastedlg.cxx.
References aExtraCommand.
|
inlineprivate |
Definition at line 43 of file pastedlg.hxx.
References m_xLbInsertList.
Referenced by GetFormat(), GetFormatOnly(), PreGetFormat(), and SvPasteObjectDialog().
void SvPasteObjectDialog::PreGetFormat | ( | const TransferableDataHelper & | aHelper | ) |
PreGetFormat Prepares the dialog for running to get format of paste as a SotClipboardFormatId value by calling GetFormatOnly()
aHelper |
Definition at line 82 of file pastedlg.cxx.
References aName, aObjClassName, aObjName, weld::TreeView::append(), aSupplementMap, convertLineEnd(), weld::TreeView::find_text(), weld::Widget::freeze(), TransferableDataHelper::GetDataFlavorExVector(), SvPasteObjectHelper::GetEmbeddedName(), SvPasteObjectHelper::GetSotFormatUIName(), GetSystemLineEnd(), TransferableDataHelper::GetTransferableObjectDescriptor(), TransferableDataHelper::HasFormat(), m_xFtObjectSource, TransferableObjectDescriptor::maClassName, TransferableObjectDescriptor::maDisplayName, TransferableObjectDescriptor::maTypeName, ObjectLB(), pName, SelectObject(), SvtResId(), and weld::Widget::thaw().
|
private |
Definition at line 46 of file pastedlg.cxx.
References m_xLbInsertList.
Referenced by GetFormat(), and PreGetFormat().
void SvPasteObjectDialog::SetObjName | ( | const SvGlobalName & | rClass, |
const OUString & | rObjName | ||
) |
Definition at line 333 of file pastedlg.cxx.
References aObjClassName, and aObjName.
|
private |
Definition at line 35 of file pastedlg.hxx.
Referenced by GetFormat(), and InsertUno().
|
private |
Definition at line 36 of file pastedlg.hxx.
Referenced by GetFormat(), PreGetFormat(), and SetObjName().
|
private |
Definition at line 37 of file pastedlg.hxx.
Referenced by GetFormat(), PreGetFormat(), and SetObjName().
|
private |
Definition at line 33 of file pastedlg.hxx.
Referenced by GetFormat(), Insert(), and PreGetFormat().
|
private |
Definition at line 39 of file pastedlg.hxx.
Referenced by GetFormat(), and PreGetFormat().
|
private |
Definition at line 40 of file pastedlg.hxx.
Referenced by ObjectLB(), SelectObject(), and SvPasteObjectDialog().
|
private |
Definition at line 41 of file pastedlg.hxx.
Referenced by SvPasteObjectDialog().