LibreOffice Module basctl (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
basctl::DlgEditor Class Reference

#include <dlged.hxx>

Inheritance diagram for basctl::DlgEditor:
[legend]
Collaboration diagram for basctl::DlgEditor:
[legend]

Public Types

enum  Mode {
  INSERT ,
  SELECT ,
  TEST ,
  READONLY
}
 

Public Member Functions

 DlgEditor (vcl::Window &, DialogWindowLayout &, css::uno::Reference< css::frame::XModel > const &xModel, css::uno::Reference< css::container::XNameContainer > const &xDialogModel)
 
virtual ~DlgEditor () override
 
vcl::WindowGetWindow () const
 
css::uno::Reference< css::awt::XControlContainer > const & GetWindowControlContainer ()
 returns the control container associated with our window More...
 
void SetScrollBars (ScrollAdaptor *pHScroll, ScrollAdaptor *pVScroll)
 
void InitScrollBars ()
 
ScrollAdaptorGetHScroll () const
 
ScrollAdaptorGetVScroll () const
 
void DoScroll ()
 
void UpdateScrollBars ()
 
void SetDialog (const css::uno::Reference< css::container::XNameContainer > &xUnoControlDialogModel)
 
void ResetDialog ()
 
const css::uno::Reference< css::container::XNameContainer > & GetDialog () const
 
css::uno::Reference< css::util::XNumberFormatsSupplier > const & GetNumberFormatsSupplier ()
 
DlgEdModelGetModel () const
 
DlgEdViewGetView () const
 
DlgEdPageGetPage () const
 
void ShowDialog ()
 
bool UnmarkDialog ()
 
bool RemarkDialog ()
 
void SetDialogModelChanged ()
 
bool IsModified () const
 
void ClearModifyFlag ()
 
void MouseButtonDown (const MouseEvent &rMEvt)
 
void MouseButtonUp (const MouseEvent &rMEvt)
 
void MouseMove (const MouseEvent &rMEvt)
 
void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
bool KeyInput (const KeyEvent &rKEvt)
 
void SetMode (Mode eMode)
 
void SetInsertObj (SdrObjKind eObj)
 
void CreateDefaultObject ()
 
Mode GetMode () const
 
bool IsCreateOK () const
 
void Cut ()
 
void Copy ()
 
void Paste ()
 
void Delete ()
 
bool IsPasteAllowed ()
 
void ShowProperties ()
 
void UpdatePropertyBrowserDelayed ()
 
bool AdjustPageSize ()
 
bool isInPaint () const
 
- Public Member Functions inherited from SfxBroadcaster
 SfxBroadcaster ()
 
 SfxBroadcaster (const SfxBroadcaster &rBC)
 
virtual ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE
 
void Broadcast (const SfxHint &rHint)
 
bool HasListeners () const
 
size_t GetListenerCount () const
 
void ForAllListeners (std::function< bool(SfxListener *)> f) const
 

Static Public Member Functions

static void printPage (sal_Int32 nPage, Printer *pPrinter, const OUString &)
 

Private Member Functions

 DECL_LINK (MarkTimeout, Timer *, void)
 

Static Private Member Functions

static void Print (Printer *pPrinter, const OUString &rTitle)
 

Private Attributes

VclPtr< ScrollAdaptorpHScroll
 
VclPtr< ScrollAdaptorpVScroll
 
std::unique_ptr< DlgEdModelpDlgEdModel
 
DlgEdPagepDlgEdPage
 
std::unique_ptr< DlgEdViewpDlgEdView
 
rtl::Reference< DlgEdFormpDlgEdForm
 
css::uno::Reference< css::container::XNameContainer > m_xUnoControlDialogModel
 
css::uno::Reference< css::awt::XControlContainer > m_xControlContainer
 
css::uno::Sequence< css::datatransfer::DataFlavor > m_ClipboardDataFlavors
 
css::uno::Sequence< css::datatransfer::DataFlavor > m_ClipboardDataFlavorsResource
 
css::uno::Reference< css::util::XNumberFormatsSupplier > m_xSupplier
 
std::unique_ptr< DlgEdFactory, o3tl::default_delete< DlgEdFactory > > pObjFac
 
vcl::WindowrWindow
 
std::unique_ptr< DlgEdFuncpFunc
 
DialogWindowLayoutrLayout
 
Mode eMode
 
SdrObjKind eActObj
 
bool bFirstDraw
 
bool bCreateOK
 
tools::Rectangle aPaintRect
 
bool bDialogModelChanged
 
Idle aMarkIdle
 
tools::Long mnPaintGuard
 
css::uno::Reference< css::frame::XModel > m_xDocument
 

Additional Inherited Members

- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 

Detailed Description

Definition at line 94 of file dlged.hxx.

Member Enumeration Documentation

◆ Mode

Enumerator
INSERT 
SELECT 
TEST 
READONLY 

Definition at line 97 of file dlged.hxx.

Constructor & Destructor Documentation

◆ DlgEditor()

basctl::DlgEditor::DlgEditor ( vcl::Window rWindow_,
DialogWindowLayout rLayout_,
css::uno::Reference< css::frame::XModel > const &  xModel,
css::uno::Reference< css::container::XNameContainer > const &  xDialogModel 
)

Definition at line 176 of file dlged.cxx.

◆ ~DlgEditor()

basctl::DlgEditor::~DlgEditor ( )
overridevirtual

Definition at line 240 of file dlged.cxx.

Member Function Documentation

◆ AdjustPageSize()

bool basctl::DlgEditor::AdjustPageSize ( )

◆ ClearModifyFlag()

void basctl::DlgEditor::ClearModifyFlag ( )

Definition at line 1072 of file dlged.cxx.

◆ Copy()

void basctl::DlgEditor::Copy ( )

◆ CreateDefaultObject()

void basctl::DlgEditor::CreateDefaultObject ( )

◆ Cut()

void basctl::DlgEditor::Cut ( )

Definition at line 636 of file dlged.cxx.

References Copy, and Delete.

Referenced by basctl::DialogWindow::ExecuteCommand().

◆ DECL_LINK()

basctl::DlgEditor::DECL_LINK ( MarkTimeout  ,
Timer ,
void   
)
private

◆ Delete()

void basctl::DlgEditor::Delete ( )

◆ DoScroll()

void basctl::DlgEditor::DoScroll ( )

◆ GetDialog()

const css::uno::Reference< css::container::XNameContainer > & basctl::DlgEditor::GetDialog ( ) const
inline

Definition at line 161 of file dlged.hxx.

References m_xUnoControlDialogModel.

◆ GetHScroll()

ScrollAdaptor * basctl::DlgEditor::GetHScroll ( ) const
inline

◆ GetMode()

Mode basctl::DlgEditor::GetMode ( ) const
inline

◆ GetModel()

DlgEdModel & basctl::DlgEditor::GetModel ( ) const
inline

Definition at line 166 of file dlged.hxx.

References pDlgEdModel.

◆ GetNumberFormatsSupplier()

Reference< util::XNumberFormatsSupplier > const & basctl::DlgEditor::GetNumberFormatsSupplier ( )

Definition at line 420 of file dlged.cxx.

Referenced by basctl::DlgEdObj::SetDefaults().

◆ GetPage()

DlgEdPage & basctl::DlgEditor::GetPage ( ) const
inline

Definition at line 168 of file dlged.hxx.

References pDlgEdPage.

Referenced by basctl::DlgEdView::MakeVisible(), and basctl::DlgEdForm::PositionAndSizeChange().

◆ GetView()

DlgEdView & basctl::DlgEditor::GetView ( ) const
inline

◆ GetVScroll()

ScrollAdaptor * basctl::DlgEditor::GetVScroll ( ) const
inline

◆ GetWindow()

vcl::Window & basctl::DlgEditor::GetWindow ( ) const
inline

◆ GetWindowControlContainer()

Reference< awt::XControlContainer > const & basctl::DlgEditor::GetWindowControlContainer ( )

returns the control container associated with our window

See also
GetWindow
SetWindow

Definition at line 247 of file dlged.cxx.

References VCLUnoHelper::CreateControlContainer().

Referenced by basctl::DlgEdForm::getDeviceInfo().

◆ InitScrollBars()

void basctl::DlgEditor::InitScrollBars ( )

Definition at line 262 of file dlged.cxx.

References DBG_ASSERT, Size::Height(), and Size::Width().

Referenced by basctl::DlgEdForm::PositionAndSizeChange().

◆ IsCreateOK()

bool basctl::DlgEditor::IsCreateOK ( ) const
inline

Definition at line 190 of file dlged.hxx.

References bCreateOK.

◆ isInPaint()

bool basctl::DlgEditor::isInPaint ( ) const
inline

Definition at line 205 of file dlged.hxx.

References mnPaintGuard.

Referenced by basctl::DlgEdObj::_propertyChange().

◆ IsModified()

bool basctl::DlgEditor::IsModified ( ) const

Definition at line 1066 of file dlged.cxx.

◆ IsPasteAllowed()

bool basctl::DlgEditor::IsPasteAllowed ( )

Definition at line 1035 of file dlged.cxx.

◆ KeyInput()

bool basctl::DlgEditor::KeyInput ( const KeyEvent rKEvt)

Definition at line 459 of file dlged.cxx.

◆ MouseButtonDown()

void basctl::DlgEditor::MouseButtonDown ( const MouseEvent rMEvt)

Definition at line 437 of file dlged.cxx.

◆ MouseButtonUp()

void basctl::DlgEditor::MouseButtonUp ( const MouseEvent rMEvt)

Definition at line 444 of file dlged.cxx.

References eMode.

◆ MouseMove()

void basctl::DlgEditor::MouseMove ( const MouseEvent rMEvt)

Definition at line 453 of file dlged.cxx.

◆ Paint()

void basctl::DlgEditor::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)

◆ Paste()

void basctl::DlgEditor::Paste ( )

◆ Print()

void basctl::DlgEditor::Print ( Printer pPrinter,
const OUString &  rTitle 
)
staticprivate

◆ printPage()

void basctl::DlgEditor::printPage ( sal_Int32  nPage,
Printer pPrinter,
const OUString &  rTitle 
)
static

Definition at line 1127 of file dlged.cxx.

References Print().

◆ RemarkDialog()

bool basctl::DlgEditor::RemarkDialog ( )

Definition at line 162 of file dlged.cxx.

References pDlgEdModel, and pDlgEdView.

◆ ResetDialog()

void basctl::DlgEditor::ResetDialog ( )

◆ SetDialog()

void basctl::DlgEditor::SetDialog ( const css::uno::Reference< css::container::XNameContainer > &  xUnoControlDialogModel)

Definition at line 337 of file dlged.cxx.

References aName, Any, basctl::DLGED_PROP_TABINDEX, i, and SdrObjList::InsertObject().

◆ SetDialogModelChanged()

void basctl::DlgEditor::SetDialogModelChanged ( )
inline

◆ SetInsertObj()

void basctl::DlgEditor::SetInsertObj ( SdrObjKind  eObj)

Definition at line 598 of file dlged.cxx.

Referenced by basctl::DialogWindow::ExecuteCommand().

◆ SetMode()

void basctl::DlgEditor::SetMode ( Mode  eMode)

Definition at line 576 of file dlged.cxx.

References eMode, INSERT, READONLY, ShowDialog, and TEST.

Referenced by basctl::DialogWindow::ExecuteCommand().

◆ SetScrollBars()

void basctl::DlgEditor::SetScrollBars ( ScrollAdaptor pHScroll,
ScrollAdaptor pVScroll 
)

Definition at line 254 of file dlged.cxx.

◆ ShowDialog()

void basctl::DlgEditor::ShowDialog ( )

◆ ShowProperties()

void basctl::DlgEditor::ShowProperties ( )

◆ UnmarkDialog()

bool basctl::DlgEditor::UnmarkDialog ( )

Definition at line 148 of file dlged.cxx.

References pDlgEdModel, and pDlgEdView.

◆ UpdatePropertyBrowserDelayed()

void basctl::DlgEditor::UpdatePropertyBrowserDelayed ( )

Definition at line 1060 of file dlged.cxx.

Referenced by basctl::DlgEdView::MarkListHasChanged().

◆ UpdateScrollBars()

void basctl::DlgEditor::UpdateScrollBars ( )

Definition at line 324 of file dlged.cxx.

References aMap, Point::X(), and Point::Y().

Referenced by basctl::DlgEdView::MakeVisible().

Member Data Documentation

◆ aMarkIdle

Idle basctl::DlgEditor::aMarkIdle
private

Definition at line 131 of file dlged.hxx.

◆ aPaintRect

tools::Rectangle basctl::DlgEditor::aPaintRect
private

Definition at line 129 of file dlged.hxx.

◆ bCreateOK

bool basctl::DlgEditor::bCreateOK
private

Definition at line 128 of file dlged.hxx.

Referenced by IsCreateOK().

◆ bDialogModelChanged

bool basctl::DlgEditor::bDialogModelChanged
private

Definition at line 130 of file dlged.hxx.

Referenced by SetDialogModelChanged().

◆ bFirstDraw

bool basctl::DlgEditor::bFirstDraw
private

Definition at line 127 of file dlged.hxx.

◆ eActObj

SdrObjKind basctl::DlgEditor::eActObj
private

Definition at line 126 of file dlged.hxx.

◆ eMode

Mode basctl::DlgEditor::eMode
private

Definition at line 125 of file dlged.hxx.

Referenced by GetMode().

◆ m_ClipboardDataFlavors

css::uno::Sequence< css::datatransfer::DataFlavor > basctl::DlgEditor::m_ClipboardDataFlavors
private

Definition at line 118 of file dlged.hxx.

◆ m_ClipboardDataFlavorsResource

css::uno::Sequence< css::datatransfer::DataFlavor > basctl::DlgEditor::m_ClipboardDataFlavorsResource
private

Definition at line 119 of file dlged.hxx.

◆ m_xControlContainer

css::uno::Reference< css::awt::XControlContainer > basctl::DlgEditor::m_xControlContainer
private

Definition at line 117 of file dlged.hxx.

◆ m_xDocument

css::uno::Reference< css::frame::XModel > basctl::DlgEditor::m_xDocument
private

Definition at line 133 of file dlged.hxx.

◆ m_xSupplier

css::uno::Reference< css::util::XNumberFormatsSupplier > basctl::DlgEditor::m_xSupplier
private

Definition at line 120 of file dlged.hxx.

◆ m_xUnoControlDialogModel

css::uno::Reference< css::container::XNameContainer > basctl::DlgEditor::m_xUnoControlDialogModel
private

Definition at line 116 of file dlged.hxx.

Referenced by GetDialog(), and ShowDialog().

◆ mnPaintGuard

tools::Long basctl::DlgEditor::mnPaintGuard
private

Definition at line 132 of file dlged.hxx.

Referenced by isInPaint().

◆ pDlgEdForm

rtl::Reference<DlgEdForm> basctl::DlgEditor::pDlgEdForm
private

Definition at line 115 of file dlged.hxx.

◆ pDlgEdModel

std::unique_ptr<DlgEdModel> basctl::DlgEditor::pDlgEdModel
private

Definition at line 112 of file dlged.hxx.

Referenced by GetModel(), RemarkDialog(), and UnmarkDialog().

◆ pDlgEdPage

DlgEdPage* basctl::DlgEditor::pDlgEdPage
private

Definition at line 113 of file dlged.hxx.

Referenced by GetPage().

◆ pDlgEdView

std::unique_ptr<DlgEdView> basctl::DlgEditor::pDlgEdView
private

Definition at line 114 of file dlged.hxx.

Referenced by GetView(), RemarkDialog(), and UnmarkDialog().

◆ pFunc

std::unique_ptr<DlgEdFunc> basctl::DlgEditor::pFunc
private

Definition at line 123 of file dlged.hxx.

◆ pHScroll

VclPtr<ScrollAdaptor> basctl::DlgEditor::pHScroll
private

Definition at line 110 of file dlged.hxx.

Referenced by GetHScroll().

◆ pObjFac

std::unique_ptr<DlgEdFactory, o3tl::default_delete<DlgEdFactory> > basctl::DlgEditor::pObjFac
private

Definition at line 121 of file dlged.hxx.

◆ pVScroll

VclPtr<ScrollAdaptor> basctl::DlgEditor::pVScroll
private

Definition at line 111 of file dlged.hxx.

Referenced by GetVScroll().

◆ rLayout

DialogWindowLayout& basctl::DlgEditor::rLayout
private

Definition at line 124 of file dlged.hxx.

◆ rWindow

vcl::Window& basctl::DlgEditor::rWindow
private

Definition at line 122 of file dlged.hxx.

Referenced by GetWindow(), and ShowDialog().


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