20#include <officecfg/Office/Writer.hxx>
28#include <rtl/math.hxx>
36#define IS_MOBILE_PHONE (comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() && SfxViewShell::Current()->isLOKMobilePhone())
50 void setDoubleValue(
weld::Label& rWidget,
double fValue)
52 OUString sValue(OUString::number(::rtl::math::round(fValue, 1)));
74 static_cast<double>(rCurrent.
nChar) / nCharsPerStandardizedPage);
76 static_cast<double>(rDoc.
nChar) / nCharsPerStandardizedPage);
111 , m_xCurrentWordFT(m_xBuilder->weld_label(
"selectwords"))
112 , m_xCurrentCharacterFT(m_xBuilder->weld_label(
"selectchars"))
113 , m_xCurrentCharacterExcludingSpacesFT(m_xBuilder->weld_label(
"selectcharsnospaces"))
114 , m_xCurrentCjkcharsFT(m_xBuilder->weld_label(
"selectcjkchars"))
115 , m_xCurrentStandardizedPagesFT(m_xBuilder->weld_label(
"selectstandardizedpages"))
116 , m_xDocWordFT(m_xBuilder->weld_label(
"docwords"))
117 , m_xDocCharacterFT(m_xBuilder->weld_label(
"docchars"))
118 , m_xDocCharacterExcludingSpacesFT(m_xBuilder->weld_label(
"doccharsnospaces"))
119 , m_xDocCjkcharsFT(m_xBuilder->weld_label(
"doccjkchars"))
120 , m_xDocStandardizedPagesFT(m_xBuilder->weld_label(
"docstandardizedpages"))
121 , m_xCjkcharsLabelFT(m_xBuilder->weld_label(
"cjkcharsft"))
122 , m_xCjkcharsLabelFT2(m_xBuilder->weld_label(
"cjkcharsft2"))
123 , m_xStandardizedPagesLabelFT(m_xBuilder->weld_label(
"standardizedpages"))
124 , m_xStandardizedPagesLabelFT2(m_xBuilder->weld_label(
"standardizedpages2"))
125 , m_xDocComments(m_xBuilder->weld_label(
"docComments"))
141 auto& rDocShell(*pView->GetDocShell());
142 SwWait aWait(rDocShell,
true);
143 auto aLock = rDocShell.LockAllViews();
Reference< XExecutableDialog > m_xDialog
const LocaleDataWrapper & GetUILocaleDataWrapper() const
static const AllSettings & GetSettings()
OUString getNum(sal_Int64 nNumber, sal_uInt16 nDecimals, bool bUseThousandSep=true, bool bTrailingZeros=true) const
void Initialize(SfxChildWinInfo const *pInfo)
void EndAction(const bool bIdleEnd=false)
void CountWords(SwDocStat &rStat) const
Count words in current selection.
const SwDocStat & GetUpdatedDocStat()
const_iterator begin() const
const_iterator end() const
static void SetCareDialog(const std::shared_ptr< weld::Window > &rNew)
const SwPostItMgr * GetPostItMgr() const
void SetValues(const SwDocStat &rCurrent, const SwDocStat &rDoc)
void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
std::unique_ptr< weld::Label > m_xDocComments
std::unique_ptr< weld::Label > m_xCjkcharsLabelFT
std::unique_ptr< weld::Label > m_xDocCjkcharsFT
std::unique_ptr< weld::Label > m_xDocCharacterFT
std::unique_ptr< weld::Label > m_xCjkcharsLabelFT2
std::unique_ptr< weld::Label > m_xDocCharacterExcludingSpacesFT
std::unique_ptr< weld::Label > m_xCurrentCjkcharsFT
std::unique_ptr< weld::Label > m_xCurrentStandardizedPagesFT
std::unique_ptr< weld::Label > m_xDocStandardizedPagesFT
std::unique_ptr< weld::Label > m_xDocWordFT
std::unique_ptr< weld::Label > m_xCurrentCharacterFT
virtual ~SwWordCountFloatDlg() override
std::unique_ptr< weld::Label > m_xCurrentWordFT
SwWordCountFloatDlg(SfxBindings *pBindings, SfxChildWindow *pChild, weld::Window *pParent, SfxChildWinInfo const *pInfo)
std::unique_ptr< weld::Label > m_xStandardizedPagesLabelFT2
void showCJK(bool bShowCJK)
void showStandardizedPages(bool bShowStandardizedPages)
std::unique_ptr< weld::Label > m_xCurrentCharacterExcludingSpacesFT
std::unique_ptr< weld::Label > m_xStandardizedPagesLabelFT
Used by the UI to modify the document model.
virtual void set_label(const OUString &rText)=0
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
RegError REGISTRY_CALLTYPE setValue(RegKeyHandle hKey, rtl_uString *keyName, RegValueType valueType, RegValue pData, sal_uInt32 valueSize)
sal_uLong nCharExcludingSpaces