22#include <svx/svxids.hrc>
24#include <com/sun/star/linguistic2/XThesaurus.hpp>
63#define ShellClass_TextObjectBar
83 :
SfxShell(pSdViewSh->GetViewShell()),
84 mpViewShell( pSdViewSh ),
103 if ( pDrawViewShell )
126 aNewAttr.
Put(aCharAttrSet,
false);
134 if ( eState == SfxItemState::DONTCARE )
161 case SID_ATTR_CHAR_FONT:
162 case SID_ATTR_CHAR_FONTHEIGHT:
163 case SID_ATTR_CHAR_WEIGHT:
164 case SID_ATTR_CHAR_POSTURE:
165 case SID_ATTR_CHAR_SHADOWED:
166 case SID_ATTR_CHAR_STRIKEOUT:
167 case SID_ATTR_CHAR_CASEMAP:
169 double stretchY = 100.0;
171 aSetItem.GetItemSet().Put( aAttrSet,
false );
175 if( (nSlotId == SID_ATTR_CHAR_FONT) || (nSlotId == SID_ATTR_CHAR_FONTHEIGHT) )
204 if( nSlotId == SID_ATTR_CHAR_FONTHEIGHT )
208 aFontItem.SetWhich(nWhich);
209 aAttrSet.
Put( aFontItem );
223 case SID_STYLE_APPLY:
224 case SID_STYLE_FAMILY2:
236 case SID_OUTLINE_LEFT:
237 case SID_OUTLINE_RIGHT:
239 case SID_OUTLINE_DOWN:
241 bool bDisableLeft =
true;
242 bool bDisableRight =
true;
243 bool bDisableUp =
true;
244 bool bDisableDown =
true;
264 std::vector<Paragraph*> aSelList;
266 Paragraph* pPara = aSelList.empty() ? nullptr : *(aSelList.begin());
292 for (
const auto& rpItem : aSelList)
301 bDisableLeft =
false;
304 if( (nDepth < pOLV->GetOutliner()->GetMaxDepth() && ( !bOutlineViewSh || pOutl->
GetAbsPos(pPara) != 0 )) ||
308 bDisableRight =
false;
316 bDisableDown =
false;
320 pPara = aSelList.empty() ? nullptr : *(aSelList.begin());
322 if(!bDisableDown && bIsOutlineView
345 case SID_TEXTDIRECTION_LEFT_TO_RIGHT:
346 case SID_TEXTDIRECTION_TOP_TO_BOTTOM:
348 if ( bDisableVerticalText )
355 bool bLeftToRight =
true;
360 if( pOutl->IsVertical() )
361 bLeftToRight =
false;
370 bDisableParagraphTextDirection =
true;
375 case SID_ULINE_VAL_NONE:
376 case SID_ULINE_VAL_SINGLE:
377 case SID_ULINE_VAL_DOUBLE:
378 case SID_ULINE_VAL_DOTTED:
386 case SID_ULINE_VAL_NONE:
389 case SID_ULINE_VAL_SINGLE:
392 case SID_ULINE_VAL_DOUBLE:
395 case SID_ULINE_VAL_DOTTED:
403 case SID_GROW_FONT_SIZE:
404 case SID_SHRINK_FONT_SIZE:
422 if (!bIsLookUpWord ||
478 for( sal_Int32 nPara = nStartPara; nPara <= nEndPara; nPara++ )
500 case SvxAdjust::Left:
506 case SvxAdjust::Center:
512 case SvxAdjust::Right:
518 case SvxAdjust::Block:
536 if( bDisableParagraphTextDirection )
545 case SvxFrameDirection::Vertical_LR_TB:
546 case SvxFrameDirection::Vertical_RL_TB:
553 case SvxFrameDirection::Horizontal_LR_TB:
558 case SvxFrameDirection::Horizontal_RL_TB:
564 case SvxFrameDirection::Environment:
568 bool bIsLeftToRight(
false);
570 if(css::text::WritingMode_LR_TB ==
eMode
571 || css::text::WritingMode_TB_RL ==
eMode)
573 bIsLeftToRight =
true;
585 aLRSpace.SetWhich(SID_ATTR_PARA_LRSPACE);
591 if ( eState == SfxItemState::DONTCARE )
596 sal_uInt16 nLineSpace = aAttrSet.
Get(
EE_PARA_SBL ).GetPropLineSpace();
static css::uno::Reference< css::linguistic2::XThesaurus > GetThesaurus()
void CreateSelectionList(std::vector< Paragraph * > &aSelList)
ESelection GetSelection() const
Outliner * GetOutliner() const
EditView & GetEditView() const
static bool HasParaFlag(const Paragraph *pPara, ParaFlag nFlag)
OutlinerMode GetOutlinerMode() const
Paragraph * GetParagraph(sal_Int32 nAbsPos) const
sal_Int16 GetDepth(sal_Int32 nPara) const
sal_Int32 GetAbsPos(Paragraph const *pPara) const
SfxItemSet const & GetParaAttribs(sal_Int32 nPara) const
sal_Int32 GetParagraphCount() const
SAL_DLLPRIVATE SfxItemPool & GetPool()
css::text::WritingMode GetDefaultWritingMode() const
SAL_DLLPRIVATE::sd::DrawDocShell * GetDocSh() const
SfxStyleSheet * GetStyleSheetFromMarked() const
const OutlinerView * GetTextEditOutlinerView() const
virtual SvtScriptType GetScriptType() const
const SdrOutliner * GetTextEditOutliner() const
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
static bool IsWhich(sal_uInt16 nId)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void DisableItem(sal_uInt16 nWhich)
void InvalidateItem(sal_uInt16 nWhich)
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
void SetUndoManager(SfxUndoManager *pNewUndoMgr)
SfxItemPool & GetPool() const
void SetRepeatTarget(SfxRepeatTarget *pTarget)
virtual void Invalidate(sal_uInt16 nId=0)
SfxViewShell * GetViewShell() const
void SetPool(SfxItemPool *pNewPool)
void SetName(const OUString &rName)
const OUString & GetName() const
vcl::Window * GetWindow() const
static bool IsCTLFontEnabled()
sal_uInt32 GetHeight() const
MapUnit GetPropUnit() const
void SetHeight(sal_uInt32 nNewHeight, const sal_uInt16 nNewProp=100, MapUnit eUnit=MapUnit::MapRelative)
const SfxPoolItem * GetItemOfScript(SvtScriptType nScript) const
sal_uInt16 GetUpper() const
virtual SfxUndoManager * GetUndoManager() override
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
EditMode GetEditMode() const
Show a textual overview of the text contents of all slides.
Derivative of sd::View for the outline mode |* .
SdrOutliner & GetOutliner()
TextObjectBar(ViewShell *pSdViewShell, SfxItemPool &rItemPool, ::sd::View *pSdView)
void GetAttrState(SfxItemSet &rSet)
Status of attribute items.
virtual ~TextObjectBar() override
void GetCharState(SfxItemSet &rSet)
Base class of the stacked shell hierarchy.
::sd::Window * GetActiveWindow() const
The active window is usually the mpContentWindow.
virtual void GetAttributes(SfxItemSet &rTargetSet, bool bOnlyHardAttr=false) const
SdDrawDocument & GetDoc() const
LanguageType GetInputLanguage() const
constexpr TypedWhichId< SvxKerningItem > EE_CHAR_KERNING(EE_CHAR_START+12)
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+16)
constexpr TypedWhichId< SvxULSpaceItem > EE_PARA_ULSPACE(EE_PARA_START+14)
constexpr TypedWhichId< SvxLRSpaceItem > EE_PARA_LRSPACE(EE_PARA_START+13)
constexpr TypedWhichId< SvxLineSpacingItem > EE_PARA_SBL(EE_PARA_START+15)
constexpr TypedWhichId< SvxEscapementItem > EE_CHAR_ESCAPEMENT(EE_CHAR_START+10)
constexpr TypedWhichId< SvxFrameDirectionItem > EE_PARA_WRITINGDIR(EE_PARA_START+0)
#define LANGUAGE_DONTKNOW
bool IsVerticalTextEnabled()
SvtScriptType GetScriptTypeOfLanguage(LanguageType nLang)
const LanguageTag & getLocale()
constexpr T & temporary(T &&x)
bool GetStatusValueForThesaurusFromContext(OUString &rStatusVal, LanguageType &rLang, const EditView &rEditView)
#define SFX_IMPL_INTERFACE(Class, SuperClass)
constexpr TypedWhichId< SvxWritingModeItem > SDRATTR_TEXTDIRECTION(SDRATTR_NOTPERSIST_FIRST+34)