LibreOffice Module sd (master) 1
|
#include <TableDesignPane.hxx>
Public Member Functions | |
TableDesignWidget (weld::Builder &rBuilder, ViewShellBase &rBase) | |
~TableDesignWidget () | |
void | onSelectionChanged () |
void | ApplyOptions () |
void | ApplyStyle () |
void | InsertStyle () |
void | CloneStyle () |
void | ResetStyle () |
void | DeleteStyle () |
void | EditStyle (const OUString &rCommand) |
Private Member Functions | |
void | addListener () |
void | removeListener () |
void | updateControls () |
void | selectStyle (std::u16string_view rStyle) |
void | endTextEditForStyle (const css::uno::Reference< css::uno::XInterface > &rStyle) |
void | setDocumentModified () |
void | FillDesignPreviewControl () |
DECL_LINK (EventMultiplexerListener, tools::EventMultiplexerEvent &, void) | |
DECL_LINK (implContextMenuHandler, const Point *, void) | |
DECL_LINK (implValueSetHdl, ValueSet *, void) | |
DECL_LINK (implCheckBoxHdl, weld::Toggleable &, void) | |
Private Attributes | |
ViewShellBase & | mrBase |
std::unique_ptr< weld::Menu > | m_xMenu |
std::unique_ptr< TableValueSet > | m_xValueSet |
std::unique_ptr< weld::CustomWeld > | m_xValueSetWin |
std::unique_ptr< weld::CheckButton > | m_aCheckBoxes [CB_COUNT] |
css::uno::Reference< css::beans::XPropertySet > | mxSelectedTable |
css::uno::Reference< css::drawing::XDrawView > | mxView |
css::uno::Reference< css::container::XIndexAccess > | mxTableFamily |
css::uno::Reference< css::container::XNameContainer > | mxCellFamily |
Definition at line 67 of file TableDesignPane.hxx.
sd::TableDesignWidget::TableDesignWidget | ( | weld::Builder & | rBuilder, |
ViewShellBase & | rBase | ||
) |
Definition at line 102 of file TableDesignPane.cxx.
References addListener(), sd::CB_BANDED_COLUMNS, sd::CB_HEADER_ROW, Exception, SfxViewShell::GetController(), sd::gPropNames, i, LINK, m_aCheckBoxes, m_xValueSet, mrBase, mxCellFamily, mxTableFamily, mxView, onSelectionChanged(), TOOLS_WARN_EXCEPTION, updateControls(), WB_FLATVALUESET, WB_ITEMBORDER, WB_NO_DIRECTSELECT, weld::Builder::weld_check_button(), and xController.
sd::TableDesignWidget::~TableDesignWidget | ( | ) |
Definition at line 142 of file TableDesignPane.cxx.
References removeListener().
|
private |
Definition at line 701 of file TableDesignPane.cxx.
References sd::ViewShellBase::GetEventMultiplexer(), LINK, and mrBase.
Referenced by TableDesignWidget().
void sd::TableDesignWidget::ApplyOptions | ( | ) |
Definition at line 500 of file TableDesignPane.cxx.
References SfxRequest::AppendItem(), sd::CB_BANDED_COLUMNS, sd::CB_COUNT, sd::CB_HEADER_ROW, sd::getBindings(), sd::ViewShellBase::GetDrawView(), SdrObjEditView::getSelectionController(), i, SfxBindings::Invalidate(), m_aCheckBoxes, mrBase, mxSelectedTable, setDocumentModified(), SfxGetpApp(), and xController.
void sd::TableDesignWidget::ApplyStyle | ( | ) |
Definition at line 435 of file TableDesignPane.cxx.
References SfxRequest::AppendItem(), Exception, SfxDispatcher::ExecuteList(), sd::getBindings(), sd::getDispatcher(), sd::ViewShellBase::GetDrawView(), SdrObjEditView::getSelectionController(), InsertStyle(), SfxBindings::Invalidate(), SdrObjEditView::IsTextEdit(), m_xValueSet, mrBase, mxSelectedTable, mxTableFamily, nIndex, SdrObjEditView::SdrEndTextEdit(), setDocumentModified(), SfxGetpApp(), TOOLS_WARN_EXCEPTION, and xController.
void sd::TableDesignWidget::CloneStyle | ( | ) |
Definition at line 255 of file TableDesignPane.cxx.
References aName, Any, sd::aTableStyleBaseName, Exception, m_xValueSet, mxCellFamily, mxTableFamily, name, selectStyle(), setDocumentModified(), TOOLS_WARN_EXCEPTION, updateControls(), and xFactory.
|
private |
|
private |
|
private |
|
private |
void sd::TableDesignWidget::DeleteStyle | ( | ) |
Definition at line 327 of file TableDesignPane.cxx.
References Application::CreateMessageDialog(), endTextEditForStyle(), Exception, m_xValueSet, mxTableFamily, RET_YES, SdResId(), setDocumentModified(), TOOLS_WARN_EXCEPTION, and updateControls().
void sd::TableDesignWidget::EditStyle | ( | const OUString & | rCommand | ) |
Definition at line 355 of file TableDesignPane.cxx.
References Any, sdr::properties::CleanupFillProperties(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxFormatCellsDialog(), endTextEditForStyle(), Exception, SfxItemSet::Get(), sd::ViewShellBase::GetDrawView(), SfxViewShell::GetFrameWeld(), SdrPaintView::GetModel(), m_xValueSet, mrBase, mxCellFamily, mxTableFamily, SfxItemSet::Put(), RET_OK, SDRATTR_TABLE_BORDER_INNER(), setDocumentModified(), SvxBoxInfoItem::SetTable(), sdr::table::SvxTableController::SvxBoxItemToTextDistances(), sdr::table::SvxTableController::TextDistancesToSvxBoxItem(), TOOLS_WARN_EXCEPTION, updateControls(), and xFactory.
|
private |
Definition at line 688 of file TableDesignPane.cxx.
References sd::ViewShellBase::GetDrawView(), SdrObjEditView::IsTextEdit(), mrBase, mxSelectedTable, and SdrObjEditView::SdrEndTextEdit().
Referenced by DeleteStyle(), EditStyle(), and ResetStyle().
|
private |
Definition at line 1013 of file TableDesignPane.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), sd::CB_BANDED_COLUMNS, sd::CB_BANDED_ROWS, sd::CB_FIRST_COLUMN, sd::CB_HEADER_ROW, sd::CB_LAST_COLUMN, sd::CB_TOTAL_ROW, sd::CreateDesignPreview(), Exception, weld::Widget::get_preferred_size(), Size::Height(), mxView, nCount, nIndex, SdResId(), weld::Widget::set_size_request(), TOOLS_WARN_EXCEPTION, and Size::Width().
Referenced by updateControls().
void sd::TableDesignWidget::InsertStyle | ( | ) |
Definition at line 225 of file TableDesignPane.cxx.
References aName, Any, sd::aTableStyleBaseName, Exception, mxCellFamily, mxTableFamily, selectStyle(), setDocumentModified(), TOOLS_WARN_EXCEPTION, updateControls(), and xFactory.
Referenced by ApplyStyle().
void sd::TableDesignWidget::onSelectionChanged | ( | ) |
Definition at line 537 of file TableDesignPane.cxx.
References Any, Exception, mxSelectedTable, mxView, TOOLS_WARN_EXCEPTION, and updateControls().
Referenced by TableDesignWidget().
|
private |
Definition at line 707 of file TableDesignPane.cxx.
References sd::ViewShellBase::GetEventMultiplexer(), LINK, and mrBase.
Referenced by ~TableDesignWidget().
void sd::TableDesignWidget::ResetStyle | ( | ) |
Definition at line 300 of file TableDesignPane.cxx.
References Any, endTextEditForStyle(), Exception, i, m_xValueSet, mxCellFamily, mxTableFamily, setDocumentModified(), TOOLS_WARN_EXCEPTION, and updateControls().
|
private |
Definition at line 676 of file TableDesignPane.cxx.
References comphelper::findValue(), m_xValueSet, mxTableFamily, and nIndex.
Referenced by CloneStyle(), InsertStyle(), and updateControls().
|
private |
Definition at line 147 of file TableDesignPane.cxx.
References Exception, SfxViewShell::GetController(), mrBase, TOOLS_WARN_EXCEPTION, and xController.
Referenced by ApplyOptions(), ApplyStyle(), CloneStyle(), DeleteStyle(), EditStyle(), InsertStyle(), and ResetStyle().
|
private |
Definition at line 643 of file TableDesignPane.cxx.
References sd::CB_BANDED_COLUMNS, sd::CB_COUNT, sd::CB_HEADER_ROW, Exception, FillDesignPreviewControl(), sd::gPropNames, i, m_aCheckBoxes, m_xValueSet, mxSelectedTable, selectStyle(), and TOOLS_WARN_EXCEPTION.
Referenced by CloneStyle(), DeleteStyle(), EditStyle(), InsertStyle(), onSelectionChanged(), ResetStyle(), and TableDesignWidget().
|
private |
Definition at line 104 of file TableDesignPane.hxx.
Referenced by ApplyOptions(), TableDesignWidget(), and updateControls().
|
private |
Definition at line 101 of file TableDesignPane.hxx.
|
private |
Definition at line 102 of file TableDesignPane.hxx.
Referenced by ApplyStyle(), CloneStyle(), DeleteStyle(), EditStyle(), ResetStyle(), selectStyle(), TableDesignWidget(), and updateControls().
|
private |
Definition at line 103 of file TableDesignPane.hxx.
|
private |
Definition at line 99 of file TableDesignPane.hxx.
Referenced by addListener(), ApplyOptions(), ApplyStyle(), EditStyle(), endTextEditForStyle(), removeListener(), setDocumentModified(), and TableDesignWidget().
|
private |
Definition at line 109 of file TableDesignPane.hxx.
Referenced by CloneStyle(), EditStyle(), InsertStyle(), ResetStyle(), and TableDesignWidget().
|
private |
Definition at line 106 of file TableDesignPane.hxx.
Referenced by ApplyOptions(), ApplyStyle(), endTextEditForStyle(), onSelectionChanged(), and updateControls().
|
private |
Definition at line 108 of file TableDesignPane.hxx.
Referenced by ApplyStyle(), CloneStyle(), DeleteStyle(), EditStyle(), InsertStyle(), ResetStyle(), selectStyle(), and TableDesignWidget().
|
private |
Definition at line 107 of file TableDesignPane.hxx.
Referenced by onSelectionChanged(), and TableDesignWidget().