28#include <document.hxx>
46 sal_Int64 nUserVal =
vcl::ConvertValue( nTwips*100, 1, 2, FieldUnit::TWIP, eUserMet );
48 OUString
aStr = OUString::Concat(rText) +
" "
58 ScHeaderControl( pParent, pEng, pTab->GetViewData().GetDocument().MaxCol()+1, false, pTab ),
88 ? OUString::number(nEntryNo + 1)
95 sal_uInt16 nSizeTwips;
97 if (nNewSize < 10) nNewSize = 10;
105 nSizeTwips =
static_cast<sal_uInt16
>( nNewSize / rViewData.
GetPPTX() );
109 std::vector<sc::ColRowSpan> aRanges;
114 while (nStart<=rDoc.
MaxCol())
125 aRanges.emplace_back(nStart,nEnd);
142 std::vector<sc::ColRowSpan> aRanges(1,
sc::ColRowSpan(nStart,nEnd));
218 ScHeaderControl( pParent, pEng, pTab->GetViewData().GetDocument().MaxRow()+1, true, pTab ),
220 mpFuncSet( pFuncSet )
240 if (rDoc.
RowHidden(nEntryNo, nTab,
nullptr, &nLastRow))
244 nTab ), rViewData.
GetPPTY() ));
249 return OUString::number( nEntryNo + 1 );
255 sal_uInt16 nSizeTwips;
257 if (nNewSize < 10) nNewSize = 10;
265 nSizeTwips =
static_cast<sal_uInt16
>( nNewSize / rViewData.
GetPPTY() );
269 std::vector<sc::ColRowSpan> aRanges;
274 while (nStart<=rDoc.
MaxRow())
285 aRanges.emplace_back(nStart,nEnd);
302 std::vector<sc::ColRowSpan> aRange(1,
sc::ColRowSpan(nStart,nEnd));
371 const ScViewData& rViewData = pTabView->GetViewData();
void ScColToAlpha(OUStringBuffer &rBuf, SCCOL nCol)
append alpha representation of column to buffer
OUString getNum(sal_Int64 nNumber, sal_uInt16 nDecimals, bool bUseThousandSep=true, bool bTrailingZeros=true) const
void Invert(const tools::Rectangle &rRect, InvertFlags nFlags=InvertFlags::NONE)
virtual void HideEntries(SCCOLROW nStart, SCCOLROW nEnd) override
virtual OUString GetDragHelp(tools::Long nVal) override
virtual bool ResizeAllowed() const override
virtual void SelectWindow() override
virtual OUString GetEntryText(SCCOLROW nEntryNo) const override
virtual SCCOLROW GetPos() const override
ScColBar(vcl::Window *pParent, ScHSplitPos eWhich, ScHeaderFunctionSet *pFuncSet, ScHeaderSelectionEngine *pEng, ScTabView *pTab)
virtual sal_uInt16 GetEntrySize(SCCOLROW nEntryNo) const override
ScHeaderFunctionSet * mpFuncSet
virtual void SetEntrySize(SCCOLROW nPos, sal_uInt16 nNewSize) override
virtual void DrawInvert(tools::Long nDragPos) override
virtual ~ScColBar() override
virtual bool IsLayoutRTL() const override
virtual void SetMarking(bool bSet) override
virtual bool IsDisabled() const override
SC_DLLPUBLIC sal_uInt16 GetColWidth(SCCOL nCol, SCTAB nTab, bool bHiddenAsZero=true) const
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention GetAddressConvention() const
SC_DLLPUBLIC SCROW MaxRow() const
SC_DLLPUBLIC sal_uInt16 GetOriginalHeight(SCROW nRow, SCTAB nTab) const
SCROW GetHiddenRowCount(SCROW nRow, SCTAB nTab) const
SC_DLLPUBLIC bool RowHidden(SCROW nRow, SCTAB nTab, SCROW *pFirstRow=nullptr, SCROW *pLastRow=nullptr) const
SC_DLLPUBLIC bool ColHidden(SCCOL nCol, SCTAB nTab, SCCOL *pFirstCol=nullptr, SCCOL *pLastCol=nullptr) const
SC_DLLPUBLIC bool IsLayoutRTL(SCTAB nTab) const
static SC_DLLPUBLIC const LocaleDataWrapper & getLocaleData()
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
void SetMarking(bool bFlag)
bool IsColumnMarked(SCCOL nCol) const
bool IsRowMarked(SCROW nRow) const
bool IsModalMode(SfxObjectShell *pDocSh=nullptr)
virtual sal_uInt16 GetEntrySize(SCCOLROW nEntryNo) const override
virtual OUString GetDragHelp(tools::Long nVal) override
virtual void HideEntries(SCCOLROW nStart, SCCOLROW nEnd) override
virtual OUString GetEntryText(SCCOLROW nEntryNo) const override
virtual void SelectWindow() override
virtual bool ResizeAllowed() const override
virtual bool IsMirrored() const override
virtual void SetMarking(bool bSet) override
virtual SCCOLROW GetHiddenCount(SCCOLROW nEntryNo) const override
ScHeaderFunctionSet * mpFuncSet
virtual void SetEntrySize(SCCOLROW nPos, sal_uInt16 nNewSize) override
virtual void DrawInvert(tools::Long nDragPos) override
virtual ~ScRowBar() override
virtual bool IsDisabled() const override
virtual SCCOLROW GetPos() const override
ScRowBar(vcl::Window *pParent, ScVSplitPos eWhich, ScHeaderFunctionSet *pFuncSet, ScHeaderSelectionEngine *pEng, ScTabView *pTab)
void UpdateAutoFillMark(bool bFromPaste=false)
void InvertHorizontal(ScVSplitPos eWhich, tools::Long nDragPos)
void InvertVertical(ScHSplitPos eWhich, tools::Long nDragPos)
ScViewData & GetViewData()
void ActivatePart(ScSplitPos eWhich)
ScMarkData & GetMarkData()
ScDocument & GetDocument() const
SCROW GetPosY(ScVSplitPos eWhich, SCTAB nForTab=-1) const
ScTabViewShell * GetViewShell() const
static tools::Long ToPixel(sal_uInt16 nTwips, double nFactor)
ScDBFunc * GetView() const
ScSplitPos GetActivePart() const
bool HasEditView(ScSplitPos eWhich) const
SCCOL GetPosX(ScHSplitPos eWhich, SCTAB nForTab=-1) const
void SetWidthOrHeight(bool bWidth, const std::vector< sc::ColRowSpan > &rRanges, ScSizeMode eMode, sal_uInt16 nSizeTwips, bool bRecord=true, const ScMarkData *pMarkData=nullptr)
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
::OutputDevice const * GetOutDev() const
Size GetOutputSizePixel() const
static OUString lcl_MetricString(tools::Long nTwips, std::u16string_view rText)
constexpr sal_Int32 STD_EXTRA_WIDTH
sal_Int64 ConvertValue(sal_Int64 nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, FieldUnit eInUnit, FieldUnit eOutUnit)
OUString ScResId(TranslateId aId)
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW