LibreOffice Module sd (master) 1
|
#include <TextObjectBar.hxx>
Public Member Functions | |
TextObjectBar (ViewShell *pSdViewShell, SfxItemPool &rItemPool, ::sd::View *pSdView) | |
virtual | ~TextObjectBar () override |
void | GetAttrState (SfxItemSet &rSet) |
Status of attribute items. More... | |
void | GetCharState (SfxItemSet &rSet) |
void | Execute (SfxRequest &rReq) |
Process SfxRequests. More... | |
Public Member Functions inherited from SfxShell | |
virtual | ~SfxShell () override |
virtual SfxInterface * | GetInterface () const |
void | SetName (const OUString &rName) |
const OUString & | GetName () const |
SfxViewShell * | GetViewShell () const |
const SfxPoolItem * | GetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr) |
const SfxPoolItem * | ExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr) |
void | ExecuteSlot (SfxRequest &rReq, bool bAsync) |
SfxItemPool & | GetPool () const |
void | SetPool (SfxItemPool *pNewPool) |
virtual SfxUndoManager * | GetUndoManager () |
void | SetUndoManager (SfxUndoManager *pNewUndoMgr) |
SfxRepeatTarget * | GetRepeatTarget () const |
void | SetRepeatTarget (SfxRepeatTarget *pTarget) |
virtual void | Invalidate (sal_uInt16 nId=0) |
virtual bool | IsDesignMode () const |
bool | IsActive () const |
virtual void | Activate (bool bMDI) |
virtual void | Deactivate (bool bMDI) |
SfxDispatcher * | GetDispatcher () const |
SfxViewFrame * | GetFrame () const |
virtual bool | HasUIFeature (SfxShellFeature nFeature) const |
void | UIFeatureChanged () |
const SfxPoolItem * | GetItem (sal_uInt16 nSlotId) const |
const T * | GetItem (TypedWhichId< T > nWhich) const |
void | PutItem (const SfxPoolItem &rItem) |
void | SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs) |
const css::uno::Sequence< css::embed::VerbDescriptor > & | GetVerbs () const |
void | VerbExec (SfxRequest &) |
SAL_DLLPRIVATE const SfxSlot * | GetVerbSlot_Impl (sal_uInt16 nId) const |
virtual SfxObjectShell * | GetObjectShell () |
void | SetDisableFlags (SfxDisableFlags nFlags) |
SfxDisableFlags | GetDisableFlags () const |
virtual std::optional< SfxItemSet > | CreateItemSet (sal_uInt16 nId) |
virtual void | ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet) |
void | SetContextName (const OUString &rsContextName) |
void | BroadcastContextForActivation (const bool bIsActivated) |
bool | SetContextBroadcasterEnabled (const bool bIsEnabled) |
SAL_DLLPRIVATE bool | CanExecuteSlot_Impl (const SfxSlot &rSlot) |
virtual bool | IsConditionalFastCall (const SfxRequest &rReq) |
SAL_DLLPRIVATE void | DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI) |
SAL_DLLPRIVATE void | DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI) |
Static Private Member Functions | |
static void | InitInterface_Impl () |
SfxInterface initializer. More... | |
Private Attributes | |
ViewShell * | mpViewShell |
::sd::View * | mpView |
Additional Inherited Members | |
Static Public Member Functions inherited from SfxShell | |
static SfxInterface * | GetStaticInterface () |
static void | EmptyExecStub (SfxShell *pShell, SfxRequest &) |
static void | EmptyStateStub (SfxShell *pShell, SfxItemSet &) |
static void | VerbState (SfxItemSet &) |
Protected Member Functions inherited from SfxShell | |
SfxShell () | |
SfxShell (SfxViewShell *pViewSh) | |
void | SetViewShell_Impl (SfxViewShell *pView) |
SAL_DLLPRIVATE void | Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId) |
Static Protected Member Functions inherited from SfxShell | |
static void | HandleOpenXmlFilterSettings (SfxRequest &) |
Definition at line 30 of file TextObjectBar.hxx.
sd::TextObjectBar::TextObjectBar | ( | ViewShell * | pSdViewShell, |
SfxItemPool & | rItemPool, | ||
::sd::View * | pSdView | ||
) |
Definition at line 79 of file drtxtob.cxx.
References sd::View::GetDoc(), SdDrawDocument::GetDocSh(), sd::OutlineView::GetOutliner(), sd::DrawDocShell::GetUndoManager(), mpView, mpView, SfxShell::SetName(), SfxShell::SetPool(), SfxShell::SetRepeatTarget(), and SfxShell::SetUndoManager().
|
overridevirtual |
Definition at line 114 of file drtxtob.cxx.
References SfxShell::SetRepeatTarget().
void sd::TextObjectBar::Execute | ( | SfxRequest & | rReq | ) |
Process SfxRequests.
Definition at line 75 of file drtxtob1.cxx.
References model::ComplexColor::addTransformation(), ESelection::Adjust(), OutlinerView::AdjustDepth(), OutlinerView::AdjustHeight(), SdStyleSheet::BroadcastSdStyleSheetChange(), sd::FuText::ChangeFontSize(), SfxItemSet::Clone(), SvxLRSpaceItem::Clone(), SvxULSpaceItem::Clone(), model::convertToThemeColorType(), sd::FuTemplate::Create(), SfxRequest::Done(), EE_CHAR_CASEMAP(), EE_CHAR_COLOR(), EE_CHAR_ESCAPEMENT(), EE_CHAR_ITALIC(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_PARA_JUST(), EE_PARA_LRSPACE(), EE_PARA_NUMBULLET(), EE_PARA_SBL(), EE_PARA_ULSPACE(), EE_PARA_WRITINGDIR(), SfxDispatcher::Execute(), Execute(), SfxStyleSheetBasePool::Find(), SfxItemSet::Get(), sd::ViewShell::GetActiveWindow(), SfxRequest::GetArg(), SfxRequest::GetArgs(), sd::View::GetAttributes(), SfxViewFrame::GetBindings(), Outliner::GetDepth(), SfxViewFrame::GetDispatcher(), sd::View::GetDoc(), sd::View::GetDocSh(), sd::ViewShell::GetDocSh(), OutlinerView::GetEditView(), EditView::GetEmptyItemSet(), SvxFontListItem::GetFontList(), SfxShell::GetItem(), SfxItemSet::GetItemIfSet(), SfxStyleSheetBase::GetItemSet(), SfxItemSet::GetItemState(), SvxNumRule::GetLevel(), SvxNumberType::GetNumberingType(), SvxNumBulletItem::GetNumRule(), OutlinerView::GetOutliner(), SdrPageView::GetPage(), SdPage::GetPageKind(), Outliner::GetParaAttribs(), Outliner::GetParagraphCount(), SdDrawDocument::GetPool(), SfxShell::GetPool(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), SvxLRSpaceItem::GetRight(), SdrObjEditView::GetScriptType(), SdrPaintView::GetSdrPageView(), OutlinerView::GetSelection(), SfxRequest::GetSlot(), Outliner::GetStyleSheet(), sd::DrawDocShell::GetStyleSheetPool(), SdrObjEditView::GetTextEditOutlinerView(), SvxLRSpaceItem::GetTextFirstLineOffset(), SvxLRSpaceItem::GetTextLeft(), CntUnencodedStringItem::GetValue(), sd::ViewShell::GetViewFrame(), SfxShell::GetViewShell(), SfxItemPool::GetWhich(), OutlinerView::GetWindow(), SfxViewShell::GetWindow(), vcl::Window::GrabFocus(), ESelection::HasRange(), SfxBindings::Invalidate(), SfxShell::Invalidate(), SdrPage::IsMasterPage(), ITALIC_NONE, ITALIC_NORMAL, LINE_SPACE_DEFAULT_HEIGHT, LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, model::LumMod, model::LumOff, mpView, mpViewShell, nAdjust, ESelection::nEndPara, ESelection::nStartPara, OLUNDO_ATTR, Outline_1, SfxItemSet::Put(), SvxScriptSetItem::PutItemForScriptType(), ReplaceTextWithSynonym(), SDRATTR_TEXTDIRECTION(), sd::View::SdrEndTextEdit(), SdResId(), SvxNumberFormat::SetAbsLSpace(), OutlinerView::SetAttribs(), sd::View::SetAttributes(), SdStyleSheetPool::setDefaultOutlineNumberFormatBulletAndIndent(), SvxEscapementItem::SetEscapement(), SvxNumberFormat::SetFirstLineOffset(), SvxNumRule::SetLevel(), SvxNumberType::SetNumberingType(), Outliner::SetParaAttribs(), SvxLineSpacingItem::SetPropLineSpace(), SvxLRSpaceItem::SetRight(), model::ComplexColor::setSchemeColor(), SvxLRSpaceItem::SetTextFirstLineOffset(), SvxLRSpaceItem::SetTextLeft(), OutlinerView::ShowCursor(), Standard, STRIKEOUT_NONE, STRIKEOUT_SINGLE, SVX_NUM_CHAR_SPECIAL, SVX_NUM_NUMBER_NONE, OutlinerView::ToggleBullets(), Outliner::UndoActionEnd(), Outliner::UndoActionStart(), WEIGHT_BOLD, and WEIGHT_NORMAL.
Referenced by Execute().
void sd::TextObjectBar::GetAttrState | ( | SfxItemSet & | rSet | ) |
Status of attribute items.
Definition at line 143 of file drtxtob.cxx.
References ESelection::Adjust(), SfxPoolItem::CloneSetWhich(), OutlinerView::CreateSelectionList(), SfxItemSet::DisableItem(), EE_CHAR_ESCAPEMENT(), EE_CHAR_UNDERLINE(), EE_PARA_JUST(), EE_PARA_LRSPACE(), EE_PARA_SBL(), EE_PARA_ULSPACE(), EE_PARA_WRITINGDIR(), eMode, SfxWhichIter::FirstWhich(), SfxItemSet::Get(), Outliner::GetAbsPos(), sd::ViewShell::GetActiveWindow(), sd::View::GetAttributes(), SdDrawDocument::GetDefaultWritingMode(), Outliner::GetDepth(), sd::View::GetDoc(), sd::DrawViewShell::GetEditMode(), OutlinerView::GetEditView(), SvxFontHeightItem::GetHeight(), vcl::Window::GetInputLanguage(), SvxScriptSetItem::GetItemOfScript(), SfxItemSet::GetItemState(), getLocale(), SfxStyleSheetBase::GetName(), OutlinerView::GetOutliner(), Outliner::GetOutlinerMode(), Outliner::GetParaAttribs(), Outliner::GetParagraph(), Outliner::GetParagraphCount(), SdDrawDocument::GetPool(), SfxShell::GetPool(), SvxFontHeightItem::GetPropUnit(), SdrObjEditView::GetScriptType(), SvtLanguageOptions::GetScriptTypeOfLanguage(), OutlinerView::GetSelection(), SfxItemPool::GetSlotId(), GetStatusValueForThesaurusFromContext(), SdrEditView::GetStyleSheetFromMarked(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), LinguMgr::GetThesaurus(), SvxULSpaceItem::GetUpper(), SfxShell::GetViewShell(), SfxViewShell::GetWindow(), Outliner::HasParaFlag(), ESelection::HasRange(), SfxShell::Invalidate(), SfxItemSet::InvalidateItem(), SvtCTLOptions::IsCTLFontEnabled(), SvtCJKOptions::IsVerticalTextEnabled(), SfxItemPool::IsWhich(), LANGUAGE_DONTKNOW, LANGUAGE_NONE, LANGUAGE_SYSTEM, LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, MasterPage, mpView, mpViewShell, ESelection::nEndPara, SfxWhichIter::NextWhich(), ESelection::nStartPara, SfxItemSet::Put(), rSet, SDRATTR_TEXTDIRECTION(), SvxFontHeightItem::SetHeight(), and o3tl::temporary().
void sd::TextObjectBar::GetCharState | ( | SfxItemSet & | rSet | ) |
Definition at line 119 of file drtxtob.cxx.
References EE_CHAR_KERNING(), SfxItemSet::Get(), sd::View::GetAttributes(), sd::View::GetDoc(), SfxItemSet::GetItemState(), SdDrawDocument::GetPool(), SfxShell::GetPool(), SfxItemSet::InvalidateItem(), mpView, mpViewShell, SfxItemSet::Put(), and rSet.
|
staticprivate |
SfxInterface initializer.
Declare default interface (Slotmap must not be empty, therefore enter something that (hopefully) never occurs.
Definition at line 74 of file drtxtob.cxx.
|
private |
Definition at line 53 of file TextObjectBar.hxx.
Referenced by Execute(), GetAttrState(), GetCharState(), and TextObjectBar().
|
private |
Definition at line 52 of file TextObjectBar.hxx.
Referenced by Execute(), GetAttrState(), and GetCharState().