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 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 OString &rDialogId)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString 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 &, void)
 

Private Attributes

std::map< SotClipboardFormatId, OUString > aSupplementMap
 
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 32 of file pastedlg.hxx.

Constructor & Destructor Documentation

SvPasteObjectDialog::SvPasteObjectDialog ( weld::Window pParent)

Member Function Documentation

SvPasteObjectDialog::DECL_LINK ( SelectHdl  ,
weld::TreeView ,
void   
)
private
SvPasteObjectDialog::DECL_LINK ( DoubleClickHdl  ,
weld::TreeView ,
void   
)
private
SotClipboardFormatId SvPasteObjectDialog::GetFormat ( const TransferableDataHelper aHelper)
SotClipboardFormatId SvPasteObjectDialog::GetFormatOnly ( )

GetFormatOnly Returns a SotClipboardFormatId value.

Should be called after actually running the dialog.

Returns

Definition at line 189 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.

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

Definition at line 42 of file pastedlg.hxx.

References m_xLbInsertList.

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

void SvPasteObjectDialog::PreGetFormat ( const TransferableDataHelper aHelper)
void SvPasteObjectDialog::SelectObject ( )
private

Definition at line 47 of file pastedlg.cxx.

References m_xLbInsertList.

Referenced by GetFormat(), and PreGetFormat().

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

Definition at line 313 of file pastedlg.cxx.

References aObjClassName, and aObjName.

Member Data Documentation

SvGlobalName SvPasteObjectDialog::aObjClassName
private

Definition at line 35 of file pastedlg.hxx.

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

OUString SvPasteObjectDialog::aObjName
private

Definition at line 36 of file pastedlg.hxx.

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

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

Definition at line 34 of file pastedlg.hxx.

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

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

Definition at line 38 of file pastedlg.hxx.

Referenced by GetFormat(), and PreGetFormat().

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

Definition at line 39 of file pastedlg.hxx.

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

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

Definition at line 40 of file pastedlg.hxx.

Referenced by SvPasteObjectDialog().


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