LibreOffice Module sc (master) 1
|
#include <formatsh.hxx>
Public Member Functions | |
ScFormatShell (ScViewData &rData) | |
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 | 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 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) |
Protected Member Functions | |
ScViewData & | GetViewData () |
const ScViewData & | GetViewData () 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 | |
ScViewData & | rViewData |
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 &) |
Static Protected Member Functions inherited from SfxShell | |
static void | HandleOpenXmlFilterSettings (SfxRequest &) |
Definition at line 29 of file formatsh.hxx.
ScFormatShell::ScFormatShell | ( | ScViewData & | rData | ) |
Definition at line 128 of file formatsh.cxx.
References ScViewData::GetDocument(), SfxShell::GetPool(), ScViewData::GetSfxDocShell(), SfxShell::GetUndoManager(), GetViewData(), ScViewData::GetViewShell(), ScDocument::IsUndoEnabled(), rViewData, SfxUndoManager::SetMaxUndoActionCount(), SfxShell::SetName(), SfxShell::SetPool(), and SfxShell::SetUndoManager().
|
overridevirtual |
Definition at line 144 of file formatsh.cxx.
void ScFormatShell::ExecFormatPaintbrush | ( | const SfxRequest & | rReq | ) |
Definition at line 2019 of file formatsh.cxx.
References ScViewFunc::CopyToClip(), SfxItemSet::Count(), SfxItemSet::Get(), SfxRequest::GetArgs(), ScViewData::GetSimpleArea(), ScViewData::GetView(), ScTabView::HasPaintBrush(), ScTabView::ResetBrushDocument(), rViewData, SC_MARK_SIMPLE, SCDOCMODE_CLIP, ScTabView::SetBrushDocument(), and ScTabView::Unmark().
void ScFormatShell::ExecuteAlignment | ( | SfxRequest & | rReq | ) |
Definition at line 567 of file formatsh.cxx.
References ScViewFunc::ApplyAttr(), ATTR_HOR_JUSTIFY(), ATTR_VER_JUSTIFY(), SfxRequest::Done(), SfxRequest::GetArgs(), ScViewData::GetBindings(), SfxItemSet::GetItemState(), SfxShell::GetPool(), SfxRequest::GetSlot(), GetValue, GetViewData(), ScViewData::GetViewShell(), GetWhich, ScTabView::HideListBox(), SfxBindings::Invalidate(), SfxRequest::IsAPI(), rViewData, SfxBindings::Update(), and ScTabViewShell::UpdateInputHandlerCellAdjust().
void ScFormatShell::ExecuteAttr | ( | SfxRequest & | rReq | ) |
Definition at line 901 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_LINEBREAK(), ATTR_PROTECTION(), ATTR_SHADOW(), SvxScriptSetItem::Clone(), COL_BLACK(), COL_TRANSPARENT(), SfxRequest::Done(), ScTabViewShell::ExecuteCellFormatDlg(), Get(), SfxItemSet::Get(), SfxRequest::GetArgs(), ScViewData::GetBindings(), SvxBoxItem::GetBottom(), SvxBrushItem::GetColor(), SvxBrushItem::getComplexColor(), SvxColorItem::getComplexColor(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScTabViewShell::GetDefaultFrameLine(), ScViewData::GetDocument(), SvxFontHeightItem::GetHeight(), SvxBoxInfoItem::GetHori(), SfxShell::GetItem(), ScPatternAttr::GetItem(), SfxItemSet::GetItemIfSet(), SvxScriptSetItem::GetItemOfScript(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), SvxBoxItem::GetLeft(), ScViewData::GetMarkData(), editeng::SvxBorderLine::GetOutWidth(), ScDocument::GetPool(), SfxShell::GetPool(), SfxItemSet::GetPool(), ScDocument::GetPreviewSelection(), SvxBoxItem::GetRight(), ScViewFunc::GetSelectionPattern(), ScViewFunc::GetSelectionScriptType(), SfxRequest::GetSlot(), ScViewData::GetTabNo(), SvxBoxItem::GetTop(), SvxColorItem::GetValue(), SvxBoxInfoItem::GetVert(), GetViewData(), ScViewData::GetViewShell(), GetWhich, SfxItemPool::GetWhich(), ScTabView::HideListBox(), SfxBindings::Invalidate(), SfxRequest::IsAPI(), SfxRequest::IsDone(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScMarkData::MarkToMulti(), nFontInc, nFontMaxSz, SfxItemSet::Put(), SvxScriptSetItem::PutItemForScriptType(), rViewData, editeng::SvxBorderLine::SetBorderLineStyle(), SvxBrushItem::SetColor(), editeng::SvxBorderLine::SetColor(), SvxBrushItem::setComplexColor(), ScTabViewShell::SetDefaultFrameLine(), SvxFontHeightItem::SetHeight(), SvxLineItem::SetLine(), SvxBoxInfoItem::SetLine(), SvxBoxItem::SetLine(), ScMarkData::SetMarkArea(), ScDocument::SetPreviewFont(), ScDocument::SetPreviewSelection(), ScViewFunc::SetSelectionFrameLines(), editeng::SvxBorderLine::SetWidth(), ScViewUtil::UnmarkFiltered(), SfxBindings::Update(), ScViewFunc::UpdateSelectionArea(), and SfxPoolItem::Which().
void ScFormatShell::ExecuteNumFormat | ( | SfxRequest & | rReq | ) |
Definition at line 248 of file formatsh.cxx.
References ScViewFunc::ApplyAttributes(), ScViewFunc::ApplySelectionPattern(), ATTR_LANGUAGE_FORMAT(), ATTR_VALUE_FORMAT(), ScViewFunc::ChangeNumFmtDecimals(), SfxRequest::Done(), ScGlobal::eLnge, eType, SvNumberFormatter::GenerateFormat(), SfxItemSet::Get(), SfxRequest::GetArgs(), SfxViewFrame::GetBindings(), GetCurrentNumberFormatType(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), SvNumberFormatter::GetEntry(), SvNumberFormatter::GetFormatSpecialInfo(), ScDocument::GetFormatTable(), SfxItemSet::GetItemIfSet(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), SvNumberformat::GetLanguage(), SvNumberformat::GetMaskedType(), ScDocument::GetNumberFormat(), ScDocument::GetPool(), ScViewFunc::GetSelectionPattern(), SfxRequest::GetSlot(), ScViewData::GetTabNo(), GetValue, GetViewData(), SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), SfxItemSet::HasItem(), ScTabView::HideListBox(), ScModule::InputEnterHandler(), SfxBindings::Invalidate(), LANGUAGE_DONTKNOW, nCount, nType, SfxItemSet::Put(), rSet, rViewData, SC_MOD, ScViewFunc::SetNumberFormat(), ScViewFunc::SetNumFmtByStr(), and ScTabViewShell::UpdateInputHandler().
void ScFormatShell::ExecuteStyle | ( | SfxRequest & | rReq | ) |
Definition at line 148 of file formatsh.cxx.
References aHelper, ScDocument::ApplySelectionPattern(), eType, SfxStyleSheetBasePool::Find(), SfxRequest::GetArgs(), ScViewData::GetCurX(), ScViewData::GetCurY(), SfxObjectShell::getDocProperties(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), SfxItemSet::GetItemIfSet(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), ScViewData::GetMarkData(), SfxShell::GetPool(), ScDocument::GetPreviewCellStyle(), ScDocument::GetPreviewSelection(), ScDocument::GetSelectionPattern(), SfxRequest::GetSlot(), ScDocument::GetStyleSheetPool(), ScViewData::GetTabNo(), CntUInt16Item::GetValue(), CntUnencodedStringItem::GetValue(), GetValue, GetViewData(), ScViewData::GetViewShell(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScMarkData::MarkToMulti(), SfxItemSet::Put(), rViewData, SAL_WARN, ScMarkData::SetMarkArea(), ScDocument::SetPreviewCellStyle(), ScDocument::SetPreviewSelection(), ScPatternAttr::SetStyleSheet(), SfxClassificationHelper::stringToPolicyType(), ScViewUtil::UnmarkFiltered(), and ScViewFunc::UpdateSelectionArea().
Referenced by ScTabViewObj::SelectionChanged().
void ScFormatShell::ExecuteTextAttr | ( | SfxRequest & | rReq | ) |
Definition at line 660 of file formatsh.cxx.
References SfxRequest::AppendItem(), ScViewFunc::ApplyAttr(), ScViewFunc::ApplyUserItemSet(), ATTR_FONT_POSTURE(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_HOR_JUSTIFY(), ATTR_VER_JUSTIFY(), SfxRequest::Done(), SfxShell::ExecuteSlot(), SfxItemSet::Get(), SfxRequest::GetArgs(), ScViewData::GetBindings(), SfxShell::GetInterface(), ScPatternAttr::GetItem(), SfxItemSet::GetItemIfSet(), SvxScriptSetItem::GetItemOfScript(), ScPatternAttr::GetItemSet(), SvxTextLineItem::GetLineStyle(), SfxShell::GetPool(), ScViewFunc::GetSelectionPattern(), SfxRequest::GetSlot(), GetViewData(), ScViewData::GetViewShell(), ScTabView::HideListBox(), SfxBindings::Invalidate(), ITALIC_NONE, ITALIC_NORMAL, LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, SvxScriptSetItem::PutItemForScriptType(), rViewData, SvxTextLineItem::SetColor(), SvxTextLineItem::SetLineStyle(), SfxRequest::SetSlot(), SfxBindings::Update(), WEIGHT_BOLD, WEIGHT_NORMAL, and SfxPoolItem::Which().
void ScFormatShell::ExecuteTextDirection | ( | const SfxRequest & | rReq | ) |
Definition at line 1908 of file formatsh.cxx.
References ScViewFunc::AdjustBlockHeight(), ScViewFunc::ApplyAttr(), ScViewFunc::ApplySelectionPattern(), ATTR_VERTICAL_ASIAN(), ATTR_WRITINGDIR(), ScPatternAttr::GetItemSet(), SfxShell::GetPool(), SfxRequest::GetSlot(), GetViewData(), ScViewData::GetViewShell(), ScTabView::HideListBox(), SfxItemSet::Put(), SC_INPUT_TABLE, SC_MOD, and ScTabViewShell::UpdateInputHandler().
void ScFormatShell::GetAlignState | ( | SfxItemSet & | rSet | ) |
Definition at line 1672 of file formatsh.cxx.
References ATTR_HOR_JUSTIFY(), ATTR_VER_JUSTIFY(), SfxWhichIter::FirstWhich(), SfxItemSet::Get(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionPattern(), GetViewData(), ScViewData::GetViewShell(), SfxWhichIter::NextWhich(), SfxItemSet::Put(), and rSet.
void ScFormatShell::GetAttrState | ( | SfxItemSet & | rSet | ) |
Definition at line 1263 of file formatsh.cxx.
References ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_BORDER_INNER(), ATTR_FONT(), ATTR_FONT_HEIGHT(), ATTR_PROTECTION(), COL_AUTO(), COL_TRANSPARENT(), SfxWhichIter::FirstWhich(), SfxItemSet::Get(), SvxBrushItem::GetColor(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), SfxShell::GetPool(), ScViewFunc::GetSelectionFrame(), ScViewFunc::GetSelectionPattern(), ScViewFunc::GetSelectionScriptType(), GetViewData(), ScViewData::GetViewShell(), GetWhich, SfxShell::Invalidate(), SfxItemSet::InvalidateItem(), SfxWhichIter::NextWhich(), SfxItemSet::Put(), ScViewUtil::PutItemScript(), rSet, editeng::SvxBorderLine::SetBorderLineStyle(), editeng::SvxBorderLine::SetColor(), SvxLineItem::SetLine(), and editeng::SvxBorderLine::SetWidth().
void ScFormatShell::GetBorderState | ( | SfxItemSet & | rSet | ) |
Definition at line 1658 of file formatsh.cxx.
References ATTR_BORDER(), ATTR_BORDER_INNER(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionFrame(), GetViewData(), ScViewData::GetViewShell(), SfxItemSet::Put(), and rSet.
|
private |
Definition at line 2053 of file formatsh.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), ScDocument::GetFormatTable(), ScMarkData::GetMultiMarkArea(), ScMarkData::GetMultiSelData(), ScDocument::GetNumberFormat(), ScViewData::GetTabNo(), SvNumberFormatter::GetType(), GetViewData(), ScMultiSel::HasMarks(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), ScMarkData::MarkToMulti(), ScMultiSelIter::Next(), nType, rViewData, ScAddress::SetRow(), and ScAddress::Tab().
Referenced by ExecuteNumFormat(), and GetNumFormatState().
void ScFormatShell::GetNumFormatState | ( | SfxItemSet & | rSet | ) |
Definition at line 1721 of file formatsh.cxx.
References ATTR_VALUE_FORMAT(), SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SfxItemSet::Get(), GetCurrentNumberFormatType(), ScViewData::GetDocument(), SvNumberFormatter::GetEntry(), SvNumberformat::GetFormatIntegerDigits(), SvNumberFormatter::GetFormatSpecialInfo(), ScDocument::GetFormatTable(), SvNumberFormatter::GetIndexTableOffset(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionPattern(), SvNumberformat::GetType(), SvNumberFormatter::GetType(), GetViewData(), SfxShell::GetViewShell(), ScViewData::GetViewShell(), SfxItemSet::InvalidateItem(), comphelper::LibreOfficeKit::isActive(), SvNumberFormatter::IsNatNum12(), SfxViewShell::libreOfficeKitViewCallback(), SfxWhichIter::NextWhich(), NF_NUMBER_1000DEC2, nType, OUStringToOString(), SfxItemSet::Put(), rSet, rViewData, SV_COUNTRY_LANGUAGE_OFFSET, and u.
void ScFormatShell::GetTextAttrState | ( | SfxItemSet & | rSet | ) |
Definition at line 1483 of file formatsh.cxx.
References ATTR_FONT_POSTURE(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_HOR_JUSTIFY(), ATTR_VER_JUSTIFY(), SfxItemSet::Get(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionPattern(), ScViewFunc::GetSelectionScriptType(), GetViewData(), ScViewData::GetViewShell(), SfxItemSet::InvalidateItem(), LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, SfxItemSet::Put(), ScViewUtil::PutItemScript(), rSet, SfxBoolItem::SetValue(), and SfxPoolItem::SetWhich().
void ScFormatShell::GetTextDirectionState | ( | SfxItemSet & | rSet | ) |
Definition at line 1948 of file formatsh.cxx.
References ATTR_STACKED(), ATTR_VERTICAL_ASIAN(), ATTR_WRITINGDIR(), SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SfxItemSet::Get(), ScViewData::GetDocument(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionPattern(), GetViewData(), ScViewData::GetViewShell(), SfxItemSet::InvalidateItem(), SvtCTLOptions::IsCTLFontEnabled(), SvtCJKOptions::IsVerticalTextEnabled(), SfxWhichIter::NextWhich(), SfxItemSet::Put(), and rSet.
|
inlineprotected |
Definition at line 34 of file formatsh.hxx.
References rViewData.
Referenced by ScCellShell::Execute(), ExecuteAlignment(), ExecuteAttr(), ScCellShell::ExecuteCursor(), ScCellShell::ExecuteCursorSel(), ScCellShell::ExecuteDataPilotDialog(), ScCellShell::ExecuteDB(), ScCellShell::ExecuteEdit(), ScCellShell::ExecuteExternalSource(), ScCellShell::ExecuteFillSingleEdit(), ScCellShell::ExecuteMove(), ExecuteNumFormat(), ScCellShell::ExecutePage(), ScCellShell::ExecuteRotateTrans(), ExecuteStyle(), ScCellShell::ExecuteSubtotals(), ExecuteTextAttr(), ExecuteTextDirection(), ScCellShell::ExecuteTrans(), ScCellShell::ExecuteXMLSourceDialog(), GetAlignState(), GetAttrState(), ScCellShell::GetBlockState(), GetBorderState(), ScCellShell::GetCellState(), ScCellShell::GetClipState(), GetCurrentNumberFormatType(), ScCellShell::GetDBState(), ScCellShell::GetHLinkState(), GetNumFormatState(), ScCellShell::GetPossibleClipboardFormats(), ScCellShell::GetState(), GetTextAttrState(), GetTextDirectionState(), ScCellShell::HasClipboardFormat(), ScFormatShell(), and ScCellShell::~ScCellShell().
|
inlineprotected |
Definition at line 35 of file formatsh.hxx.
References rViewData.
|
staticprivate |
SfxInterface initializer.
Definition at line 121 of file formatsh.cxx.
References SFX_OBJECTBAR_OBJECT.
void ScFormatShell::StateFormatPaintbrush | ( | SfxItemSet & | rSet | ) |
Definition at line 2045 of file formatsh.cxx.
References SfxItemSet::DisableItem(), ScViewData::GetActivePart(), ScViewData::GetView(), ScViewData::HasEditView(), ScTabView::HasPaintBrush(), SfxItemSet::Put(), rSet, and rViewData.
|
private |
Definition at line 31 of file formatsh.hxx.
Referenced by ExecFormatPaintbrush(), ExecuteAlignment(), ExecuteAttr(), ExecuteNumFormat(), ExecuteStyle(), ExecuteTextAttr(), GetCurrentNumberFormatType(), GetNumFormatState(), GetViewData(), ScFormatShell(), and StateFormatPaintbrush().