LibreOffice Module sc (master)
1
|
#include <formatsh.hxx>
Protected Member Functions | |
ScViewData & | GetViewData () |
const ScViewData & | GetViewData () const |
![]() | |
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 SfxInterface * | GetStaticInterface () |
static void | EmptyExecStub (SfxShell *pShell, SfxRequest &) |
static void | EmptyStateStub (SfxShell *pShell, SfxItemSet &) |
static void | VerbState (SfxItemSet &) |
![]() | |
static void | HandleOpenXmlFilterSettings (SfxRequest &) |
Definition at line 30 of file formatsh.hxx.
ScFormatShell::ScFormatShell | ( | ScViewData & | rData | ) |
Definition at line 131 of file formatsh.cxx.
References ScViewData::GetDocument(), SfxShell::GetPool(), ScViewData::GetSfxDocShell(), SfxShell::GetUndoManager(), GetViewData(), ScViewData::GetViewShell(), ScDocument::IsUndoEnabled(), rViewData, SfxShell::SetName(), SfxShell::SetPool(), and SfxShell::SetUndoManager().
|
overridevirtual |
Definition at line 147 of file formatsh.cxx.
void ScFormatShell::ExecFormatPaintbrush | ( | const SfxRequest & | rReq | ) |
Definition at line 2798 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 1296 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 1654 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(), rViewData, 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 | ) |
Definition at line 976 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(), SfxSetItem::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, rViewData, SC_MOD, ScViewFunc::SetNumberFormat(), ScViewFunc::SetNumFmtByStr(), and ScTabViewShell::UpdateInputHandler().
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 248 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(), SfxStyleSheetBasePool::Remove(), ScDocument::RemovePageStyleInUse(), ScViewFunc::RemoveStyleSheetInUse(), ScDocument::RenamePageStyleInUse(), RET_OK, rViewData, 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 | ) |
Definition at line 1389 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(), SvxScriptSetItem::GetItemOfScript(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), 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(), SfxRequest::SetSlot(), SfxBindings::Update(), WEIGHT_BOLD, WEIGHT_NORMAL, and SfxPoolItem::Which().
void ScFormatShell::ExecuteTextDirection | ( | const SfxRequest & | rReq | ) |
Definition at line 2686 of file formatsh.cxx.
References ScViewFunc::AdjustBlockHeight(), ScViewFunc::ApplyAttr(), ScViewFunc::ApplySelectionPattern(), ATTR_VERTICAL_ASIAN(), ATTR_WRITINGDIR(), SfxSetItem::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 2453 of file formatsh.cxx.
References ATTR_HOR_JUSTIFY(), ATTR_VER_JUSTIFY(), SfxWhichIter::FirstWhich(), SfxItemSet::Get(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionPattern(), GetViewData(), ScViewData::GetViewShell(), SfxWhichIter::NextWhich(), and SfxItemSet::Put().
void ScFormatShell::GetAttrState | ( | SfxItemSet & | rSet | ) |
Definition at line 2044 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(), SfxSetItem::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(), editeng::SvxBorderLine::SetBorderLineStyle(), editeng::SvxBorderLine::SetColor(), SvxLineItem::SetLine(), and editeng::SvxBorderLine::SetWidth().
void ScFormatShell::GetBorderState | ( | SfxItemSet & | rSet | ) |
Definition at line 2439 of file formatsh.cxx.
References ATTR_BORDER(), ATTR_BORDER_INNER(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionFrame(), GetViewData(), ScViewData::GetViewShell(), and SfxItemSet::Put().
|
private |
Definition at line 2832 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 2502 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(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionPattern(), SvNumberformat::GetType(), SvNumberFormatter::GetType(), GetViewData(), SfxShell::GetViewShell(), ScViewData::GetViewShell(), SfxItemSet::InvalidateItem(), comphelper::LibreOfficeKit::isActive(), SfxViewShell::libreOfficeKitViewCallback(), SfxWhichIter::NextWhich(), NF_NUMBER_1000DEC2, nType, OUStringToOString(), SfxItemSet::Put(), rViewData, SV_COUNTRY_LANGUAGE_OFFSET, and u.
void ScFormatShell::GetStyleState | ( | SfxItemSet & | rSet | ) |
Definition at line 151 of file formatsh.cxx.
References SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SfxViewFrame::GetBindings(), ScViewData::GetDocument(), SfxStyleSheetBase::GetName(), ScDocument::GetPageStyle(), SfxShell::GetPool(), SfxItemPool::GetSlotId(), ScViewFunc::GetStyleSheetFromMarked(), ScDocument::GetStyleSheetPool(), ScDocument::GetTableCount(), ScViewData::GetTabNo(), CntUInt16Item::GetValue(), GetViewData(), SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), i, ScDocument::IsTabProtected(), SfxItemPool::IsWhich(), SfxWhichIter::NextWhich(), SfxItemSet::Put(), SfxBindings::QueryState(), and SC_MOD.
void ScFormatShell::GetTextAttrState | ( | SfxItemSet & | rSet | ) |
Definition at line 2264 of file formatsh.cxx.
References ATTR_FONT_POSTURE(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_HOR_JUSTIFY(), ATTR_VER_JUSTIFY(), SfxItemSet::Get(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionPattern(), ScViewFunc::GetSelectionScriptType(), GetViewData(), ScViewData::GetViewShell(), SfxItemSet::InvalidateItem(), LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, SfxItemSet::Put(), ScViewUtil::PutItemScript(), SfxBoolItem::SetValue(), and SfxPoolItem::SetWhich().
void ScFormatShell::GetTextDirectionState | ( | SfxItemSet & | rSet | ) |
Definition at line 2726 of file formatsh.cxx.
References ATTR_STACKED(), ATTR_VERTICAL_ASIAN(), ATTR_WRITINGDIR(), SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SfxItemSet::Get(), ScViewData::GetDocument(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), ScViewFunc::GetSelectionPattern(), GetViewData(), ScViewData::GetViewShell(), SfxItemSet::InvalidateItem(), SvtLanguageOptions::IsCTLFontEnabled(), SvtLanguageOptions::IsVerticalTextEnabled(), SfxWhichIter::NextWhich(), and SfxItemSet::Put().
|
inlineprotected |
Definition at line 35 of file formatsh.hxx.
References rViewData.
Referenced by ScCellShell::Execute(), ExecuteAlignment(), ExecuteAttr(), ScCellShell::ExecuteCursor(), ScCellShell::ExecuteCursorSel(), ScCellShell::ExecuteDataPilotDialog(), 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::GetHLinkState(), GetNumFormatState(), ScCellShell::GetPossibleClipboardFormats(), ScCellShell::GetState(), GetStyleState(), GetTextAttrState(), GetTextDirectionState(), ScCellShell::HasClipboardFormat(), ScFormatShell(), and ScCellShell::~ScCellShell().
|
inlineprotected |
Definition at line 36 of file formatsh.hxx.
References rViewData.
|
staticprivate |
SfxInterface initializer.
Definition at line 124 of file formatsh.cxx.
References SFX_OBJECTBAR_OBJECT.
void ScFormatShell::StateFormatPaintbrush | ( | SfxItemSet & | rSet | ) |
Definition at line 2824 of file formatsh.cxx.
References SfxItemSet::DisableItem(), ScViewData::GetActivePart(), ScViewData::GetView(), ScViewData::HasEditView(), ScTabView::HasPaintBrush(), SfxItemSet::Put(), and rViewData.
|
private |
Definition at line 32 of file formatsh.hxx.
Referenced by ExecFormatPaintbrush(), ExecuteAlignment(), ExecuteAttr(), ExecuteNumFormat(), ExecuteStyle(), ExecuteTextAttr(), GetCurrentNumberFormatType(), GetNumFormatState(), GetViewData(), ScFormatShell(), and StateFormatPaintbrush().