LibreOffice Module cui (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SvPasteObjectDialog Class Reference

#include <pastedlg.hxx>

Inheritance diagram for SvPasteObjectDialog:
[legend]
Collaboration diagram for SvPasteObjectDialog:
[legend]

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 DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () 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::TreeViewObjectLB ()
 
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::Labelm_xFtObjectSource
 
std::unique_ptr< weld::TreeViewm_xLbInsertList
 
std::unique_ptr< weld::Buttonm_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::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 31 of file pastedlg.hxx.

Constructor & Destructor Documentation

◆ SvPasteObjectDialog()

SvPasteObjectDialog::SvPasteObjectDialog ( weld::Window pParent)

Member Function Documentation

◆ DECL_LINK() [1/2]

SvPasteObjectDialog::DECL_LINK ( DoubleClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [2/2]

SvPasteObjectDialog::DECL_LINK ( SelectHdl  ,
weld::TreeView ,
void   
)
private

◆ GetFormat()

SotClipboardFormatId SvPasteObjectDialog::GetFormat ( const TransferableDataHelper aHelper)

◆ GetFormatOnly()

SotClipboardFormatId SvPasteObjectDialog::GetFormatOnly ( )

GetFormatOnly Returns a SotClipboardFormatId value.

Should be called after actually running the dialog.

Returns

Definition at line 196 of file pastedlg.cxx.

References weld::TreeView::get_selected_id(), and ObjectLB().

◆ Insert()

void SvPasteObjectDialog::Insert ( SotClipboardFormatId  nFormat,
const OUString &  rFormatName 
)

Definition at line 70 of file pastedlg.cxx.

References aSupplementMap.

◆ InsertUno()

void SvPasteObjectDialog::InsertUno ( const OUString &  sUnoCmd,
const OUString &  sLabel 
)

Definition at line 75 of file pastedlg.cxx.

References aExtraCommand.

◆ ObjectLB()

weld::TreeView & SvPasteObjectDialog::ObjectLB ( )
inlineprivate

Definition at line 43 of file pastedlg.hxx.

References m_xLbInsertList.

Referenced by GetFormat(), GetFormatOnly(), PreGetFormat(), and SvPasteObjectDialog().

◆ PreGetFormat()

void SvPasteObjectDialog::PreGetFormat ( const TransferableDataHelper aHelper)

◆ SelectObject()

void SvPasteObjectDialog::SelectObject ( )
private

Definition at line 46 of file pastedlg.cxx.

References m_xLbInsertList.

Referenced by GetFormat(), and PreGetFormat().

◆ SetObjName()

void SvPasteObjectDialog::SetObjName ( const SvGlobalName rClass,
const OUString &  rObjName 
)

Definition at line 333 of file pastedlg.cxx.

References aObjClassName, and aObjName.

Member Data Documentation

◆ aExtraCommand

std::pair<OUString, OUString> SvPasteObjectDialog::aExtraCommand
private

Definition at line 35 of file pastedlg.hxx.

Referenced by GetFormat(), and InsertUno().

◆ aObjClassName

SvGlobalName SvPasteObjectDialog::aObjClassName
private

Definition at line 36 of file pastedlg.hxx.

Referenced by GetFormat(), PreGetFormat(), and SetObjName().

◆ aObjName

OUString SvPasteObjectDialog::aObjName
private

Definition at line 37 of file pastedlg.hxx.

Referenced by GetFormat(), PreGetFormat(), and SetObjName().

◆ aSupplementMap

std::map< SotClipboardFormatId, OUString > SvPasteObjectDialog::aSupplementMap
private

Definition at line 33 of file pastedlg.hxx.

Referenced by GetFormat(), Insert(), and PreGetFormat().

◆ m_xFtObjectSource

std::unique_ptr<weld::Label> SvPasteObjectDialog::m_xFtObjectSource
private

Definition at line 39 of file pastedlg.hxx.

Referenced by GetFormat(), and PreGetFormat().

◆ m_xLbInsertList

std::unique_ptr<weld::TreeView> SvPasteObjectDialog::m_xLbInsertList
private

Definition at line 40 of file pastedlg.hxx.

Referenced by ObjectLB(), SelectObject(), and SvPasteObjectDialog().

◆ m_xOKButton

std::unique_ptr<weld::Button> SvPasteObjectDialog::m_xOKButton
private

Definition at line 41 of file pastedlg.hxx.

Referenced by SvPasteObjectDialog().


The documentation for this class was generated from the following files: