52 pTabViewShell->FillFieldData(rData);
53 else if (
auto pPreviewShell =
dynamic_cast<ScPreviewShell*
>( pShell))
54 pPreviewShell->FillFieldData(rData);
89 m_xEditEngine->SetDefaultHorizontalTextDirection(EEHorizontalTextDirection::R2L);
139 for (sal_Int32
i=0;
i<nParCnt;
i++)
147 auto pSet = std::make_unique<SfxItemSet>(
m_xEditEngine->GetEmptyItemSet() );
184 OSL_ENSURE( pDocSh,
"Current DocShell not found" );
185 OSL_ENSURE( pViewSh,
"Current ViewShell not found" );
187 if ( !(pDocSh && pViewSh) )
198 pDlg->SetText(
ScResId( STR_TEXTATTRS ) );
199 if ( pDlg->Execute() ==
RET_OK )
202 aSet.
Put( *pDlg->GetOutputItemSet() );
242 bool bHadFocus = HasFocus();
static rtl::Reference< SfxItemPool > CreatePool()
const vcl::KeyCode & GetKeyCode() const
SAL_WARN_UNUSED_RESULT Point LogicToPixel(const Point &rLogicPt) const
static SC_DLLPUBLIC ScAbstractDialogFactory * Create()
virtual VclPtr< SfxAbstractTabDialog > CreateScCharDlg(weld::Window *pParent, const SfxItemSet *pAttr, const SfxObjectShell *pDocShell, bool bDrawText)=0
void SetDefaults(const SfxItemSet &rDefaults, bool bRememberCopy=true)
Creates a copy of SfxItemSet if bRememberCopy set.
void SetTextCurrentDefaults(const EditTextObject &rTextObject)
SetText and apply defaults already set.
void SetFont(const ScPatternAttr &rPattern)
virtual bool KeyInput(const KeyEvent &rKEvt) override
ScHeaderEditEngine * GetEditEngine() const override
virtual void GetFocus() override
virtual void SetDrawingArea(weld::DrawingArea *pArea) override
void SetText(const EditTextObject &rTextObject)
Link< ScEditWindow &, void > aObjectSelectLink
void SetNumType(SvxNumType eNumType)
std::function< void(ScEditWindow &)> m_GetFocusLink
unotools::WeakReference< ScAccessibleEditObject > mxAcc
virtual ~ScEditWindow() override
void InsertField(const SvxFieldItem &rFld)
virtual void LoseFocus() override
virtual void makeEditEngine() override
std::unique_ptr< EditTextObject > CreateTextObject()
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
ScEditWindowLocation eLocation
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
ScEditWindow(ScEditWindowLocation eLoc, weld::Window *pParent)
const SfxPoolItem & GetItem(sal_uInt16 nWhichP) const
void FillEditItemSet(SfxItemSet *pEditSet, const SfxItemSet *pCondSet=nullptr) const
Converts all Calc items contained in the own item set to edit engine items and puts them into pEditSe...
void SetInFormatDialog(bool bFlag)
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
constexpr tools::Long Height() const
constexpr tools::Long Width() const
std::unique_ptr< EditEngine > m_xEditEngine
std::unique_ptr< EditView > m_xEditView
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual void GetFocus() override
virtual bool KeyInput(const KeyEvent &rKEvt) override
virtual void LoseFocus() override
sal_uInt16 GetCode() const
virtual OutputDevice & get_ref_device()=0
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+16)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CTL(EE_CHAR_START+20)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CJK(EE_CHAR_START+19)
constexpr sal_uInt16 KEY_DOWN
constexpr OUStringLiteral aData
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
OUString ScResId(TranslateId aId)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_FONT_HEIGHT(101)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CJK_FONT_HEIGHT(112)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CTL_FONT_HEIGHT(117)
static void lcl_GetFieldData(ScHeaderFieldData &rData)