LibreOffice Module basctl (master) 1
|
#include <dlged.hxx>
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::Window & | GetWindow () 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 () |
ScrollAdaptor * | GetHScroll () const |
ScrollAdaptor * | GetVScroll () 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 () |
DlgEdModel & | GetModel () const |
DlgEdView & | GetView () const |
DlgEdPage & | GetPage () 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< ScrollAdaptor > | pHScroll |
VclPtr< ScrollAdaptor > | pVScroll |
std::unique_ptr< DlgEdModel > | pDlgEdModel |
DlgEdPage * | pDlgEdPage |
std::unique_ptr< DlgEdView > | pDlgEdView |
rtl::Reference< DlgEdForm > | pDlgEdForm |
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::Window & | rWindow |
std::unique_ptr< DlgEdFunc > | pFunc |
DialogWindowLayout & | rLayout |
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) |
basctl::DlgEditor::DlgEditor | ( | vcl::Window & | rWindow_, |
DialogWindowLayout & | rLayout_, | ||
css::uno::Reference< css::frame::XModel > const & | xModel, | ||
css::uno::Reference< css::container::XNameContainer > const & | xDialogModel | ||
) |
bool basctl::DlgEditor::AdjustPageSize | ( | ) |
Definition at line 1187 of file dlged.cxx.
References basctl::DLGED_PAGE_HEIGHT_MIN, basctl::DLGED_PAGE_WIDTH_MIN, basctl::DLGED_PROP_HEIGHT, basctl::DLGED_PROP_POSITIONX, basctl::DLGED_PROP_POSITIONY, basctl::DLGED_PROP_WIDTH, Size::Height(), and Size::Width().
Referenced by basctl::DlgEdForm::PositionAndSizeChange().
void basctl::DlgEditor::Copy | ( | ) |
Definition at line 659 of file dlged.cxx.
References aName, Any, basctl::aResourceResolverPropName, basctl::DLGED_PROP_NAME, comphelper::getProcessComponentContext(), SdrUnoObj::GetUnoControlModel(), i, basctl::implCopyStreamToByteSequence(), m_xDocument, n, and xStream.
Referenced by basctl::DialogWindow::ExecuteCommand().
void basctl::DlgEditor::CreateDefaultObject | ( | ) |
Definition at line 605 of file dlged.cxx.
References Point::AdjustX(), Point::AdjustY(), Size::Height(), SdrObjFactory::MakeNewObject(), basctl::DlgEdObj::SetDefaults(), SdrObject::SetSnapRect(), basctl::DlgEdObj::StartListening(), and Size::Width().
Referenced by basctl::DialogWindow::ExecuteCommand().
void basctl::DlgEditor::Cut | ( | ) |
Definition at line 636 of file dlged.cxx.
Referenced by basctl::DialogWindow::ExecuteCommand().
|
private |
void basctl::DlgEditor::Delete | ( | ) |
Definition at line 979 of file dlged.cxx.
References aName, Any, basctl::DLGED_PROP_NAME, basctl::DlgEdObj::GetDlgEdForm(), SdrUnoObj::GetUnoControlModel(), and i.
Referenced by basctl::DialogWindow::ExecuteCommand().
void basctl::DlgEditor::DoScroll | ( | ) |
Definition at line 286 of file dlged.cxx.
References aMap, Size::Height(), Size::Width(), Point::X(), and Point::Y().
Referenced by basctl::DlgEdFunc::ForceScroll(), and basctl::DlgEdFunc::KeyInput().
|
inline |
Definition at line 161 of file dlged.hxx.
References m_xUnoControlDialogModel.
|
inline |
Definition at line 154 of file dlged.hxx.
References pHScroll.
Referenced by basctl::DlgEdFunc::ForceScroll(), basctl::DlgEdFunc::KeyInput(), and basctl::DlgEdView::MakeVisible().
|
inline |
Definition at line 189 of file dlged.hxx.
References eMode.
Referenced by basctl::DialogWindow::ExecuteCommand(), basctl::DlgEdFuncInsert::MouseButtonDown(), and basctl::DlgEdFuncSelect::MouseButtonDown().
|
inline |
Definition at line 166 of file dlged.hxx.
References pDlgEdModel.
Reference< util::XNumberFormatsSupplier > const & basctl::DlgEditor::GetNumberFormatsSupplier | ( | ) |
Definition at line 420 of file dlged.cxx.
Referenced by basctl::DlgEdObj::SetDefaults().
|
inline |
Definition at line 168 of file dlged.hxx.
References pDlgEdPage.
Referenced by basctl::DlgEdView::MakeVisible(), and basctl::DlgEdForm::PositionAndSizeChange().
|
inline |
Definition at line 167 of file dlged.hxx.
References pDlgEdView.
Referenced by basctl::DlgEdFuncInsert::DlgEdFuncInsert(), basctl::DlgEdObj::GetControl(), basctl::DlgEdFunc::KeyInput(), basctl::DlgEdFuncInsert::MouseButtonDown(), basctl::DlgEdFuncSelect::MouseButtonDown(), basctl::DlgEdFuncInsert::MouseButtonUp(), basctl::DlgEdFuncSelect::MouseButtonUp(), basctl::DlgEdFuncInsert::MouseMove(), basctl::DlgEdFuncSelect::MouseMove(), and basctl::DlgEdFuncInsert::~DlgEdFuncInsert().
|
inline |
Definition at line 155 of file dlged.hxx.
References pVScroll.
Referenced by basctl::DlgEdFunc::ForceScroll(), basctl::DlgEdFunc::KeyInput(), and basctl::DlgEdView::MakeVisible().
|
inline |
Definition at line 143 of file dlged.hxx.
References rWindow.
Referenced by basctl::DlgEdFunc::ForceScroll(), basctl::DlgEdObj::GetControl(), basctl::DlgEdForm::getDeviceInfo(), basctl::DlgEdFunc::KeyInput(), basctl::DlgEdFuncInsert::MouseButtonDown(), basctl::DlgEdFuncSelect::MouseButtonDown(), basctl::DlgEdFuncInsert::MouseButtonUp(), basctl::DlgEdFuncSelect::MouseButtonUp(), basctl::DlgEdFuncInsert::MouseMove(), and basctl::DlgEdFuncSelect::MouseMove().
Reference< awt::XControlContainer > const & basctl::DlgEditor::GetWindowControlContainer | ( | ) |
returns the control container associated with our window
Definition at line 247 of file dlged.cxx.
References VCLUnoHelper::CreateControlContainer().
Referenced by basctl::DlgEdForm::getDeviceInfo().
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().
|
inline |
|
inline |
Definition at line 205 of file dlged.hxx.
References mnPaintGuard.
Referenced by basctl::DlgEdObj::_propertyChange().
bool basctl::DlgEditor::KeyInput | ( | const KeyEvent & | rKEvt | ) |
void basctl::DlgEditor::MouseButtonDown | ( | const MouseEvent & | rMEvt | ) |
void basctl::DlgEditor::MouseButtonUp | ( | const MouseEvent & | rMEvt | ) |
void basctl::DlgEditor::MouseMove | ( | const MouseEvent & | rMEvt | ) |
void basctl::DlgEditor::Paint | ( | vcl::RenderContext & | rRenderContext, |
const tools::Rectangle & | rRect | ||
) |
Definition at line 465 of file dlged.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), Point::AdjustX(), Point::AdjustY(), SdrPaintView::BeginDrawLayers(), basctl::DLGED_PROP_HEIGHT, basctl::DLGED_PROP_WIDTH, OutputDevice::DrawWallpaper(), SdrPaintView::EndDrawLayers(), StyleSettings::GetLightColor(), OutputDevice::GetOutputSize(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), SdrPaintWindow::GetTargetOutputDevice(), SdrPageView::GetView(), Size::Height(), i, OutputDevice::PixelToLogic(), Point::setX(), Point::setY(), Size::Width(), Point::X(), and Point::Y().
void basctl::DlgEditor::Paste | ( | ) |
Definition at line 804 of file dlged.cxx.
References Any, basctl::aResourceResolverPropName, basctl::DLGED_PROP_NAME, basctl::DLGED_PROP_TABINDEX, comphelper::getProcessComponentContext(), getProcessComponentContext(), i, m_xDocument, n, Point::X(), and Point::Y().
Referenced by basctl::DialogWindow::ExecuteCommand().
|
staticprivate |
Definition at line 1134 of file dlged.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), Point::AdjustX(), Point::AdjustY(), ALIGN_BOTTOM, aMap, OutputDevice::DrawBitmapEx(), OutputDevice::GetFont(), OutputDevice::GetMapMode(), OutputDevice::GetOutputSize(), BitmapEx::GetSizePixel(), Size::Height(), basctl::lcl_PrintHeader(), basctl::Print::nBottomMargin, basctl::Print::nRightMargin, basctl::Print::nTopMargin, OutputDevice::PixelToLogic(), vcl::Font::SetAlignment(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), Size::setHeight(), OutputDevice::SetMapMode(), Size::setWidth(), and Size::Width().
|
static |
bool basctl::DlgEditor::RemarkDialog | ( | ) |
Definition at line 162 of file dlged.cxx.
References pDlgEdModel, and pDlgEdView.
void basctl::DlgEditor::ResetDialog | ( | ) |
Definition at line 402 of file dlged.cxx.
References SdrObjList::ClearSdrObjList(), and basctl::DlgEdPage::SetDlgEdForm().
Referenced by basctl::DlgEdObj::_propertyChange().
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().
|
inline |
Definition at line 175 of file dlged.hxx.
References bDialogModelChanged.
Referenced by basctl::DlgEdObj::_elementInserted(), basctl::DlgEdObj::_elementRemoved(), basctl::DlgEdObj::_elementReplaced(), basctl::DlgEdObj::_propertyChange(), basctl::DlgEdForm::EndCreate(), basctl::DlgEdObj::NbcMove(), basctl::DlgEdForm::NbcMove(), basctl::DlgEdObj::NbcResize(), and basctl::DlgEdForm::NbcResize().
void basctl::DlgEditor::SetInsertObj | ( | SdrObjKind | eObj | ) |
Definition at line 598 of file dlged.cxx.
Referenced by basctl::DialogWindow::ExecuteCommand().
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().
void basctl::DlgEditor::SetScrollBars | ( | ScrollAdaptor * | pHScroll, |
ScrollAdaptor * | pVScroll | ||
) |
void basctl::DlgEditor::ShowDialog | ( | ) |
Definition at line 88 of file dlged.cxx.
References basctl::aDecorationPropName, Any, basctl::aResourceResolverPropName, vcl::Window::GetComponentInterface(), getProcessComponentContext(), m_xUnoControlDialogModel, and rWindow.
void basctl::DlgEditor::ShowProperties | ( | ) |
Definition at line 1054 of file dlged.cxx.
Referenced by basctl::DlgEdFuncInsert::MouseButtonDown(), and basctl::DlgEdFuncSelect::MouseButtonDown().
bool basctl::DlgEditor::UnmarkDialog | ( | ) |
Definition at line 148 of file dlged.cxx.
References pDlgEdModel, and pDlgEdView.
void basctl::DlgEditor::UpdatePropertyBrowserDelayed | ( | ) |
Definition at line 1060 of file dlged.cxx.
Referenced by basctl::DlgEdView::MarkListHasChanged().
void basctl::DlgEditor::UpdateScrollBars | ( | ) |
Definition at line 324 of file dlged.cxx.
References aMap, Point::X(), and Point::Y().
Referenced by basctl::DlgEdView::MakeVisible().
|
private |
|
private |
Definition at line 128 of file dlged.hxx.
Referenced by IsCreateOK().
|
private |
Definition at line 130 of file dlged.hxx.
Referenced by SetDialogModelChanged().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 116 of file dlged.hxx.
Referenced by GetDialog(), and ShowDialog().
|
private |
Definition at line 132 of file dlged.hxx.
Referenced by isInPaint().
|
private |
|
private |
Definition at line 112 of file dlged.hxx.
Referenced by GetModel(), RemarkDialog(), and UnmarkDialog().
|
private |
|
private |
Definition at line 114 of file dlged.hxx.
Referenced by GetView(), RemarkDialog(), and UnmarkDialog().
|
private |
|
private |
Definition at line 110 of file dlged.hxx.
Referenced by GetHScroll().
|
private |
|
private |
Definition at line 111 of file dlged.hxx.
Referenced by GetVScroll().
|
private |
|
private |
Definition at line 122 of file dlged.hxx.
Referenced by GetWindow(), and ShowDialog().