LibreOffice Module sc (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScFormatShell Class Reference

#include <formatsh.hxx>

Inheritance diagram for ScFormatShell:
[legend]
Collaboration diagram for ScFormatShell:
[legend]

Public Member Functions

 ScFormatShell (ScViewData *pData)
 
virtual ~ScFormatShell () override
 
void ExecuteNumFormat (SfxRequest &rReq)
 
void GetNumFormatState (SfxItemSet &rSet)
 
void ExecuteAttr (SfxRequest &rReq)
 
void GetAttrState (SfxItemSet &rSet)
 
void ExecuteAlignment (SfxRequest &rReq)
 
void ExecuteTextAttr (SfxRequest &rReq)
 
void GetTextAttrState (SfxItemSet &rSet)
 
void GetAlignState (SfxItemSet &rSet)
 
void GetBorderState (SfxItemSet &rSet)
 
void ExecuteStyle (SfxRequest &rReq)
 
void GetStyleState (SfxItemSet &rSet)
 
void ExecuteTextDirection (const SfxRequest &rReq)
 
void GetTextDirectionState (SfxItemSet &rSet)
 
void ExecFormatPaintbrush (const SfxRequest &rReq)
 
void StateFormatPaintbrush (SfxItemSet &rSet)
 
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
 
virtual SfxInterfaceGetInterface () const
 
void SetName (const OUString &rName)
 
const OUString & GetName () const
 
SfxViewShellGetViewShell () const
 
void CallExec (SfxExecFunc pFunc, SfxRequest &rReq)
 
void CallState (SfxStateFunc pFunc, SfxItemSet &rSet)
 
const SfxPoolItemGetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
 
const SfxPoolItemExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr)
 
void ExecuteSlot (SfxRequest &rReq, bool bAsync)
 
SfxItemPoolGetPool () const
 
void SetPool (SfxItemPool *pNewPool)
 
virtual SfxUndoManagerGetUndoManager ()
 
void SetUndoManager (SfxUndoManager *pNewUndoMgr)
 
SfxRepeatTargetGetRepeatTarget () 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)
 
SfxDispatcherGetDispatcher () const
 
SfxViewFrameGetFrame () const
 
virtual bool HasUIFeature (SfxShellFeature nFeature) const
 
void UIFeatureChanged ()
 
const SfxPoolItemGetItem (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 SfxSlotGetVerbSlot_Impl (sal_uInt16 nId) const
 
virtual SfxObjectShellGetObjectShell ()
 
void SetDisableFlags (SfxDisableFlags nFlags)
 
SfxDisableFlags GetDisableFlags () const
 
virtual std::unique_ptr< SfxItemSetCreateItemSet (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)
 

Protected Member Functions

ScViewDataGetViewData ()
 
const ScViewDataGetViewData () const
 
- 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)
 

Private Member Functions

SvNumFormatType GetCurrentNumberFormatType ()
 

Static Private Member Functions

static void InitInterface_Impl ()
 SfxInterface initializer. More...
 

Private Attributes

ScViewDatapViewData
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxShell
static SfxInterfaceGetStaticInterface ()
 
static void EmptyExecStub (SfxShell *pShell, SfxRequest &)
 
static void EmptyStateStub (SfxShell *pShell, SfxItemSet &)
 
static void VerbState (SfxItemSet &)
 
- Static Protected Member Functions inherited from SfxShell
static void HandleOpenXmlFilterSettings (SfxRequest &)
 

Detailed Description

Definition at line 30 of file formatsh.hxx.

Constructor & Destructor Documentation

ScFormatShell::ScFormatShell ( ScViewData pData)
ScFormatShell::~ScFormatShell ( )
overridevirtual

Definition at line 148 of file formatsh.cxx.

Member Function Documentation

void ScFormatShell::ExecFormatPaintbrush ( const SfxRequest rReq)
void ScFormatShell::ExecuteAlignment ( SfxRequest rReq)
void ScFormatShell::ExecuteAttr ( SfxRequest rReq)

Definition at line 1658 of file formatsh.cxx.

References SfxRequest::AppendItem(), ScViewFunc::ApplyAttr(), ScViewFunc::ApplyAttributes(), ScViewFunc::ApplyUserItemSet(), ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_INNER(), ATTR_BORDER_TLBR(), ATTR_FONT_COLOR(), ATTR_LINEBREAK(), ATTR_PATTERN_END(), ATTR_PATTERN_START(), ATTR_PROTECTION(), ATTR_SHADOW(), SvxScriptSetItem::Clone(), COL_BLACK, COL_TRANSPARENT(), SfxRequest::Done(), ScTabViewShell::ExecuteCellFormatDlg(), SfxItemSet::Get(), Get(), SfxRequest::GetArgs(), ScViewData::GetBindings(), SvxBoxItem::GetBottom(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScTabViewShell::GetDefaultFrameLine(), ScViewData::GetDocument(), SvxFontHeightItem::GetHeight(), SvxBoxInfoItem::GetHori(), SfxShell::GetItem(), ScPatternAttr::GetItem(), SvxScriptSetItem::GetItemOfScript(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), SvxBoxItem::GetLeft(), ScViewData::GetMarkData(), editeng::SvxBorderLine::GetOutWidth(), SfxShell::GetPool(), SfxItemSet::GetPool(), ScDocument::GetPool(), ScDocument::GetPreviewSelection(), SvxBoxItem::GetRight(), ScViewFunc::GetSelectionPattern(), ScViewFunc::GetSelectionScriptType(), SfxRequest::GetSlot(), ScViewData::GetTabNo(), SvxBoxItem::GetTop(), SvxColorItem::GetValue(), SvxBoxInfoItem::GetVert(), GetViewData(), ScViewData::GetViewShell(), SfxItemPool::GetWhich(), GetWhich, ScTabView::HideListBox(), SfxBindings::Invalidate(), SfxRequest::IsAPI(), SfxRequest::IsDone(), nFontInc, nFontMaxSz, SfxItemSet::Put(), SvxScriptSetItem::PutItemForScriptType(), pViewData, editeng::SvxBorderLine::SetBorderLineStyle(), editeng::SvxBorderLine::SetColor(), SvxBrushItem::SetColor(), ScTabViewShell::SetDefaultFrameLine(), SvxFontHeightItem::SetHeight(), SvxBoxItem::SetLine(), SvxLineItem::SetLine(), SvxBoxInfoItem::SetLine(), ScDocument::SetPreviewFont(), ScDocument::SetPreviewSelection(), ScViewFunc::SetSelectionFrameLines(), SvxColorItem::SetValue(), editeng::SvxBorderLine::SetWidth(), ScViewUtil::UnmarkFiltered(), SfxBindings::Update(), ScViewFunc::UpdateSelectionArea(), and SfxPoolItem::Which().

void ScFormatShell::ExecuteNumFormat ( SfxRequest rReq)
void ScFormatShell::ExecuteStyle ( SfxRequest rReq)

!! As it happens, a method that does it for a particular style

Here also queries for Page Styles

Definition at line 249 of file formatsh.cxx.

References SfxUndoManager::AddUndoAction(), aHelper, SfxRequest::AppendItem(), ScDocument::ApplySelectionPattern(), ATTR_BORDER_INNER(), ATTR_CONDITIONAL(), ATTR_LANGUAGE_FORMAT(), ATTR_MERGE(), ATTR_MERGE_FLAG(), ATTR_VALIDDATA(), ATTR_VALUE_FORMAT(), aUIName, ScDocumentPool::CellStyleCreated(), ScGlobal::CheckWidthInvalidate(), SfxItemSet::ClearItem(), ScAbstractDialogFactory::Create(), ScAbstractDialogFactory::CreateScStyleDlg(), ScopedVclPtr< reference_type >::disposeAndReset(), SfxRequest::Done(), SfxUndoManager::EnterListAction(), eType, SfxDispatcher::Execute(), SfxStyleSheetBasePool::Find(), SfxItemSet::Get(), SfxRequest::GetArg(), SfxRequest::GetArgs(), ScViewData::GetBindings(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDispatcher(), SfxObjectShell::getDocProperties(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), SvNumberFormatter::GetEntry(), SfxStyleSheetBase::GetFamily(), ScDocument::GetFormatTable(), SfxRequest::GetFrameWeld(), SfxViewShell::GetFrameWeld(), ScModule::GetIsWaterCan(), SfxShell::GetItem(), SfxStyleSheetBase::GetItemSet(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), SvNumberformat::GetLanguage(), ScViewData::GetMarkData(), SfxStyleSheetBase::GetMask(), SfxObjectShell::GetModel(), SfxStyleSheetBase::GetName(), SfxNewStyleDlg::GetName(), SfxAbstractDialog::GetOutputItemSet(), ScDocument::GetPageStyle(), ScDocument::GetPattern(), SfxShell::GetPool(), ScDocument::GetPool(), ScDocument::GetPreviewCellStyle(), ScDocument::GetPreviewSelection(), ScTabViewShell::GetPrinter(), ScDocument::GetSelectionPattern(), SfxRequest::GetSlot(), ScViewFunc::GetStyleSheetFromMarked(), ScDocument::GetStyleSheetPool(), ScDocument::GetTableCount(), ScViewData::GetTabNo(), ScDocShell::GetUndoManager(), CntUnencodedStringItem::GetValue(), GetValue, GetViewData(), ScViewData::GetViewShell(), SfxViewShell::GetViewShellId(), SfxStyleSheetBase::HasParentSupport(), ScStyleSaveData::InitFromStyle(), SfxBindings::Invalidate(), ScTabView::InvalidateAttribs(), ScDocument::InvalidateTextWidth(), ScDocument::IsPageStyleInUse(), ScDocument::IsUndoEnabled(), SfxUndoManager::LeaveListAction(), SfxStyleSheetBasePool::Make(), ScTabViewShell::MakeNumberInfoItem(), SfxItemSet::MergeRange(), ScDocument::ModifyStyleSheet(), ScDocShell::PostPaintGridAll(), SfxItemSet::Put(), SfxShell::PutItem(), pViewData, SfxStyleSheetBasePool::Remove(), ScDocument::RemovePageStyleInUse(), ScViewFunc::RemoveStyleSheetInUse(), ScDocument::RenamePageStyleInUse(), RET_OK, SAL_WARN, SC_MOD, ScResId(), ScTabView::SetActivePointer(), SvxBoxInfoItem::SetDist(), ScDocShell::SetDocumentModified(), SfxStyleSheetBase::SetHidden(), ScTabViewShell::SetInFormatDialog(), SvxBoxInfoItem::SetMinDist(), ScDocument::SetPageStyle(), SfxStyleSheetBase::SetParent(), ScDocument::SetPreviewCellStyle(), ScDocument::SetPreviewSelection(), SfxRequest::SetReturnValue(), ScDocument::SetStreamValid(), ScPatternAttr::SetStyleSheet(), ScViewFunc::SetStyleSheetToMarked(), SvxBoxInfoItem::SetTable(), ScModule::SetWaterCan(), SfxClassificationHelper::stringToPolicyType(), ScDocument::StylesToNames(), ScViewUtil::UnmarkFiltered(), ScTabViewShell::UpdateNumberFormatter(), ScViewFunc::UpdateSelectionArea(), ScViewFunc::UpdateStyleSheetInUse(), ScDocument::UpdStlShtPtrsFrmNms(), XATTR_FILL_FIRST(), XATTR_FILL_LAST(), and xModel.

Referenced by ScTabViewObj::SelectionChanged().

void ScFormatShell::ExecuteTextAttr ( SfxRequest rReq)
void ScFormatShell::ExecuteTextDirection ( const SfxRequest rReq)
void ScFormatShell::GetAlignState ( SfxItemSet rSet)
void ScFormatShell::GetAttrState ( SfxItemSet rSet)
void ScFormatShell::GetBorderState ( SfxItemSet rSet)
SvNumFormatType ScFormatShell::GetCurrentNumberFormatType ( )
private
void ScFormatShell::GetNumFormatState ( SfxItemSet rSet)
void ScFormatShell::GetStyleState ( SfxItemSet rSet)
void ScFormatShell::GetTextAttrState ( SfxItemSet rSet)
void ScFormatShell::GetTextDirectionState ( SfxItemSet rSet)
ScViewData* ScFormatShell::GetViewData ( )
inlineprotected
const ScViewData* ScFormatShell::GetViewData ( ) const
inlineprotected

Definition at line 36 of file formatsh.hxx.

References pViewData.

void ScFormatShell::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 125 of file formatsh.cxx.

References SFX_OBJECTBAR_OBJECT.

void ScFormatShell::StateFormatPaintbrush ( SfxItemSet rSet)

Member Data Documentation

ScViewData* ScFormatShell::pViewData
private

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