summaryrefslogtreecommitdiff
path: root/sw/source/ui/dialog/wordcountwrapper.cxx
blob: 6a0c8a3d9427b4da65fc5ab79fe57a3ddda2c784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * Version: MPL 1.1 / GPLv3+ / LGPLv3+
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Initial Developer of the Original Code is
 *       Matt Pratt <mattpratt.au@gmail.com>
 * Portions created by the Initial Developer are Copyright (C) 2011 the
 * Initial Developer. All Rights Reserved.
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
 * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
 * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
 * instead of those above.
 */

#include <swtypes.hxx>
#include <wordcountdialog.hxx>
#include <docstat.hxx>
#include <dialog.hrc>
#include <cmdid.h>

SFX_IMPL_CHILDWINDOW_WITHID(SwWordCountWrapper, FN_WORDCOUNT_DIALOG)

SwWordCountWrapper::SwWordCountWrapper(   Window *pParentWindow,
                            sal_uInt16 nId,
                            SfxBindings* pBindings,
                            SfxChildWinInfo* pInfo ) :
        SfxChildWindow(pParentWindow, nId)
{
    SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
    OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
    pAbstDlg = pFact->CreateSwWordCountDialog(pBindings, this, pParentWindow, pInfo);
    OSL_ENSURE(pAbstDlg, "Dialog construction failed!");
    pWindow = pAbstDlg->GetWindow();

    eChildAlignment = SFX_ALIGN_NOALIGNMENT;
}

SfxChildWinInfo SwWordCountWrapper::GetInfo() const
{
    SfxChildWinInfo aInfo = SfxChildWindow::GetInfo();
    return aInfo;
}

void SwWordCountWrapper::UpdateCounts()
{
    pAbstDlg->UpdateCounts();
}

void SwWordCountWrapper::SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
{
    pAbstDlg->SetCounts(rCurrCnt, rDocStat);
}
absolute coordinate and does not refer to the window of the office application."
+msgid "<emph>xpostwips</emph>: Integer expression that specifies the horizontal position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application."
msgstr ""
-#. QyymW
+#. CannW
#: 03010201.xhp
msgctxt ""
"03010201.xhp\n"
"par_id3156024\n"
"help.text"
-msgid "<emph>yPosTwips</emph>: Integer expression that specifies the vertical position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application."
+msgid "<emph>ypostwips</emph>: Integer expression that specifies the vertical position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application."
msgstr ""
-#. 8pC7C
+#. m6iBC
#: 03010201.xhp
msgctxt ""
"03010201.xhp\n"
"par_id3153897\n"
"help.text"
-msgid "If <emph>xPosTwips</emph> and <emph>yPosTwips</emph> are omitted, the dialog is centered on the screen. The position is specified in <link href=\"text/sbasic/shared/00000002.xhp#twips\" name=\"twips\">twips</link>."
+msgid "If <literal>xpostwips</literal> and <literal>yPosTwips</literal> are omitted, the dialog is centered on the screen. The position is specified in <link href=\"text/sbasic/shared/00000002.xhp#twips\" name=\"twips\">twips</link>."
msgstr ""
#. Mh8Z6
@@ -9331,31 +9484,31 @@ msgctxt ""
msgid "Parameter:"
msgstr "पैरामीटर"
-#. pP9x5
+#. QM73e
#: 03010305.xhp
msgctxt ""
"03010305.xhp\n"
"par_id3152597\n"
"help.text"
-msgid "<emph>Red</emph>: Any integer expression that represents the red component (0-255) of the composite color."
+msgid "<emph>red</emph>: Any integer expression that represents the red component (0-255) of the composite color."
msgstr ""
-#. pbFvi
+#. H7yGv
#: 03010305.xhp
msgctxt ""
"03010305.xhp\n"
"par_id3146974\n"
"help.text"
-msgid "<emph>Green</emph>: Any integer expression that represents the green component (0-255) of the composite color."
+msgid "<emph>green</emph>: Any integer expression that represents the green component (0-255) of the composite color."
msgstr ""
-#. XG6FB
+#. t8P2M
#: 03010305.xhp
msgctxt ""
"03010305.xhp\n"
"par_id3151113\n"
"help.text"
-msgid "<emph>Blue</emph>: Any integer expression that represents the blue component (0-255) of the composite color."
+msgid "<emph>blue</emph>: Any integer expression that represents the blue component (0-255) of the composite color."
msgstr ""
#. cFpDD
@@ -13075,68 +13228,32 @@ msgctxt ""
msgid "Returns a date value from a date string. The date string is a complete date in a single numeric value. You can also use this serial number to determine the difference between two dates."
msgstr ""
-#. QJz7y
-#: 03030102.xhp
-msgctxt ""
-"03030102.xhp\n"
-"hd_id3148799\n"
-"help.text"
-msgid "Syntax:"
-msgstr ""
-
-#. 3FsEa
+#. PxEGo
#: 03030102.xhp
msgctxt ""
"03030102.xhp\n"
"par_id3154910\n"
"help.text"
-msgid "DateValue [(date)]"
-msgstr "DateValue [(date)]"
-
-#. B7CrF
-#: 03030102.xhp
-msgctxt ""
-"03030102.xhp\n"
-"hd_id3150870\n"
-"help.text"
-msgid "Return value:"
-msgstr "वापसी मूल्य:"
-
-#. 4G37B
-#: 03030102.xhp
-msgctxt ""
-"03030102.xhp\n"
-"par_id3153194\n"
-"help.text"
-msgid "Date"
-msgstr "तारीख़"
-
-#. NHYd9
-#: 03030102.xhp
-msgctxt ""
-"03030102.xhp\n"
-"hd_id3153969\n"
-"help.text"
-msgid "Parameters:"
-msgstr "पैरामीटर"
+msgid "DateValue(date)"
+msgstr ""
-#. ghsyA
+#. vxxyq
#: 03030102.xhp
msgctxt ""
"03030102.xhp\n"
"par_id3153770\n"
"help.text"
-msgid "<emph>Date:</emph> String expression that contains the date that you want to calculate. In contrast to the DateSerial function that passes years, months and days as separate numeric values, the DateValue function requests the date string to be according to either one of the date acceptance patterns defined for your locale setting (see <switchinline select=\"sys\"><caseinline select=\"MAC\"><menuitem>%PRODUCTNAME - Preferences</menuitem></caseinline><defaultinline><menuitem>Tools - Options</menuitem></defaultinline></switchinline><menuitem> - Language Settings - Languages</menuitem>) or to ISO date format (momentarily, only the ISO format with hyphens, e.g. \"2012-12-31\" is accepted)."
+msgid "<emph>Date</emph>: String expression that contains the date that you want to calculate. In contrast to the DateSerial function that passes years, months and days as separate numeric values, the DateValue function requests the date string to be according to either one of the date acceptance patterns defined for your locale setting (see <switchinline select=\"sys\"><caseinline select=\"MAC\"><menuitem>%PRODUCTNAME - Preferences</menuitem></caseinline><defaultinline><menuitem>Tools - Options</menuitem></defaultinline></switchinline><menuitem> - Language Settings - Languages</menuitem>) or to ISO date format (momentarily, only the ISO format with hyphens, e.g. \"2012-12-31\" is accepted)."
msgstr ""
-#. EWVzU
+#. KmwFZ
#: 03030102.xhp
msgctxt ""
"03030102.xhp\n"
-"hd_id3153142\n"
+"par_id3153194\n"
"help.text"
-msgid "Example:"
-msgstr "उदाहरण:"
+msgid "The computed date."
+msgstr ""
#. wDviP
#: 03030103.xhp
@@ -14893,22 +15010,22 @@ msgctxt ""
msgid "<emph>date1, date2</emph> - The two date values to be compared."
msgstr ""
-#. yVo8Q
+#. e7hMm
#: 03030120.xhp
msgctxt ""
"03030120.xhp\n"
"par_idN1066A\n"
"help.text"
-msgid "<emph>firstDayOfWeek</emph> - An optional parameter that specifies the starting day of a week."
+msgid "<emph>firstdayofweek</emph>: An optional parameter that specifies the starting day of a week."
msgstr ""
-#. dDoRU
+#. wpCoP
#: 03030120.xhp
msgctxt ""
"03030120.xhp\n"
"par_idN1067A\n"
"help.text"
-msgid "firstDayOfWeek value"
+msgid "firstdayofweek value"
msgstr ""
#. gmaR8
@@ -15064,22 +15181,22 @@ msgctxt ""
msgid "Saturday"
msgstr ""
-#. BLhqf
+#. E5nqv
#: 03030120.xhp
msgctxt ""
"03030120.xhp\n"
"par_idN106EB\n"
"help.text"
-msgid "<emph>firstWeekOfYear</emph> - An optional parameter that specifies the starting week of a year."
+msgid "<emph>firstweekofyear</emph>: An optional parameter that specifies the starting week of a year."
msgstr ""
-#. KGncd
+#. e3gQd
#: 03030120.xhp
msgctxt ""
"03030120.xhp\n"
"par_idN106FB\n"
"help.text"
-msgid "firstWeekOfYear value"
+msgid "firstweekofyear value"
msgstr ""
#. zAFFS
@@ -16414,13 +16531,13 @@ msgctxt ""
msgid "<bookmark_value>Basic constants</bookmark_value>"
msgstr ""
-#. NMCZ2
+#. ev3DS
#: 03040000.xhp
msgctxt ""
"03040000.xhp\n"
"hd_id051620171022255424\n"
"help.text"
-msgid "<link href=\"text/sbasic/shared/03040000.xhp\">Basic Constants</link>"
+msgid "<variable id=\"basicconstantsh1\"><link href=\"text/sbasic/shared/03040000.xhp\">