]> git.pld-linux.org Git - packages/libreoffice.git/blob - openoffice-word-count.patch
- up
[packages/libreoffice.git] / openoffice-word-count.patch
1 Index: sw/inc/cmdid.h
2 ===================================================================
3 RCS file: /cvs/sw/sw/inc/cmdid.h,v
4 retrieving revision 1.46
5 diff -u -p -u -r1.46 cmdid.h
6 --- sw/inc/cmdid.h      22 May 2003 08:40:37 -0000      1.46
7 +++ sw/inc/cmdid.h      31 Jul 2003 17:01:16 -0000
8 @@ -749,6 +749,7 @@ Achtung: Ab sofort sind in diesem File k
9  #define FN_MACRO_POPUP                         (FN_EXTRA + 37)   /* Alle Macrofunktionen */
10  #define FN_BULLET                                      (FN_EXTRA + 38)   /* Bullet-Liste */
11  
12 +#define FN_WORD_COUNT_DLG                       (FN_EXTRA + 39)
13  
14  //     Bereich: Gloassaries
15  
16 Index: sw/sdi/swriter.sdi
17 ===================================================================
18 RCS file: /cvs/sw/sw/sdi/swriter.sdi,v
19 retrieving revision 1.43
20 diff -u -p -u -r1.43 swriter.sdi
21 --- sw/sdi/swriter.sdi  22 May 2003 08:42:09 -0000      1.43
22 +++ sw/sdi/swriter.sdi  31 Jul 2003 17:01:17 -0000
23 @@ -8482,6 +8482,29 @@ SfxBoolItem UnderlineDouble FN_UNDERLINE
24  ]
25  
26  //--------------------------------------------------------------------------
27 +SfxVoidItem WordCount FN_WORD_COUNT_DLG
28 +()
29 +[
30 +       /* flags: */
31 +       AutoUpdate = FALSE,
32 +       Cachable = Cachable,
33 +       FastCall = FALSE,
34 +       HasCoreId = FALSE,
35 +       HasDialog = TRUE,
36 +       ReadOnlyDoc = TRUE,
37 +       Toggle = TRUE,
38 +       Container = FALSE,
39 +       Asynchron;
40 +
41 +       /* config: */
42 +       AccelConfig = TRUE,
43 +       MenuConfig = TRUE,
44 +       StatusBarConfig = FALSE,
45 +       ToolBoxConfig = TRUE,
46 +       GroupId = GID_DOCUMENT;
47 +]
48 +
49 +//--------------------------------------------------------------------------
50  SfxVoidItem UnhainFrames FN_FRAME_UNCHAIN
51  
52  [
53 Index: sw/sdi/swslots.src
54 ===================================================================
55 RCS file: /cvs/sw/sw/sdi/swslots.src,v
56 retrieving revision 1.109
57 diff -u -p -u -r1.109 swslots.src
58 --- sw/sdi/swslots.src  17 Jul 2003 11:48:28 -0000      1.109
59 +++ sw/sdi/swslots.src  31 Jul 2003 17:01:27 -0000
60 @@ -3685,6 +3685,52 @@ SfxSlotInfo FN_HYPHENATE_OPT_DLG
61         SlotName[ hindi ] = "हाइफनेशन";
62         SlotName[ slovak ] = "Delenie slov";
63  };
64 +SfxSlotInfo FN_WORD_COUNT_DLG
65 +{
66 +       SlotName = "Wörter zählen...";
67 +       SlotName[ arabic ] = "ÅÍÕÇÆíÇÊ";
68 +       SlotName[ english ] = "Word count";
69 +       SlotName[ english_us ] = "Word count";
70 +       SlotName[ catalan ] = "Comptador de paraules";
71 +       SlotName[ czech ] = "PoÄ?et slov";
72 +       SlotName[ danish ] = "Ordoptælling";
73 +       SlotName[ greek ] = "Î?Ï?ίθμηÏ?η Î?έξεÏ?ν";
74 +       SlotName[ spanish ] = "Contar palabras";
75 +       SlotName[ estonian ] = "Sõnade arv";
76 +       SlotName[ finnish ] = "Laske sanat";
77 +       SlotName[ french ] = "Statistiques";
78 +       SlotName[ hindi ] = "शबà¥?द à¤?िनà¥?à¤?";
79 +       SlotName[ italian ] = "Statistiche";
80 +       SlotName[ hungarian ] = "Szavak száma";
81 +       SlotName[ japanese ] = "ã?¯ã?¼ã??ã?«ã?¦ã?³ã??";
82 +       SlotName[ korean ] = "í?µê³?";
83 +       SlotName[ norwegian ] = "Ordtelling";
84 +       SlotName[ dutch ] = "Woorden tellen";
85 +       SlotName[ polish ] = "Liczba s³ów";
86 +       SlotName[ portuguese ] = "Contagem palavras";
87 +       SlotName[ portuguese_brazilian ] = "Contagem palavras";
88 +       SlotName[ russian ] = "Ð?олиÑ?еÑ?Ñ?во Ñ?лов";
89 +       SlotName[ slovak ] = "PoÄ?et slov";
90 +       SlotName[ swedish ] = "Ordräkning";
91 +       SlotName[ turkish ] = "Ýstatistik";
92 +       SlotName[ chinese_simplified ] = "ç»?计";
93 +       SlotName[ chinese_traditional ] = "çµ±è¨?";
94 +/*     --: "Word count" translations
95 +       az:     "KÉ?lmÉ? Miqdarı"
96 +       bs:     "Zbir rijeÄ?i"
97 +       cy:     "Cyfrif geiriau"
98 +       eu:     "Hitz kopurua"
99 +       mk:     "Ð?Ñ?оеÑ?е Ð½Ð° Ð·Ð±Ð¾Ñ?ови"
100 +       mt:     "Għadd taâ?? kliem"
101 +       ro:     "NumÄ?rÄ? cuvintele"
102 +       sl:     "Å tevilo besed"
103 +       sq:     "Llogariti fjalët"
104 +       ta:     "à®?à¯?லà¯? à®?ணà¯?ணி"
105 +       uk:     "Ð?Ñ?лÑ?кÑ?Ñ?Ñ?Ñ? Ñ?лÑ?в"
106 +       vi:     "Ä?ếm từ"
107 +       wa:     "Contaedje des mots"
108 +*/
109 +};
110  SfxSlotInfo FN_IDX_MARK_TO_IDX
111  {
112         SlotName = "Indexmarke zum Index";
113 Index: sw/sdi/viewsh.sdi
114 ===================================================================
115 RCS file: /cvs/sw/sw/sdi/viewsh.sdi,v
116 retrieving revision 1.9
117 diff -u -p -u -r1.9 viewsh.sdi
118 --- sw/sdi/viewsh.sdi   6 Dec 2002 13:58:48 -0000       1.9
119 +++ sw/sdi/viewsh.sdi   31 Jul 2003 17:01:27 -0000
120 @@ -112,6 +112,12 @@ interface TextEditView : BaseTextEditVie
121                 StateMethod = GetState ;
122                 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
123         ]
124 +       FN_WORD_COUNT_DLG // status(final|play)
125 +       [
126 +               ExecMethod = ExecLingu ;
127 +               StateMethod = GetState ;
128 +               DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
129 +       ];
130         FN_CHANGE_PAGENUM // status(final)
131         [
132                 ExecMethod = ExecDlg ;
133 Index: sw/source/ui/inc/swmn.hrc
134 ===================================================================
135 RCS file: /cvs/sw/sw/source/ui/inc/swmn.hrc,v
136 retrieving revision 1.133
137 diff -u -p -u -r1.133 swmn.hrc
138 --- sw/source/ui/inc/swmn.hrc   17 Jul 2003 11:58:11 -0000      1.133
139 +++ sw/source/ui/inc/swmn.hrc   31 Jul 2003 17:02:02 -0000
140 @@ -7708,6 +7708,54 @@ MenuItem _MN_EXTRA
141                                 Text[ hindi ] = "~हाइफनेशन...";
142                                 Text[ slovak ] = "~Delenie slov...";
143                         };
144 +                       MenuItem
145 +                       {
146 +                               Identifier = FN_WORD_COUNT_DLG ;
147 +                               HelpID = FN_WORD_COUNT_DLG ;
148 +                               Text = "Wörter zählen..." ;
149 +                               Text [ arabic ] = "ÅÍÕÇÆíÇÊ...";
150 +                               Text [ english ] = "Word count...";
151 +                               Text [ english_us ] = "Word count...";
152 +                               Text [ catalan ] = "Comptador de paraules...";
153 +                               Text [ czech ] = "PoÄ?et slov...";
154 +                               Text [ danish ] = "Ordoptælling...";
155 +                               Text [ greek ] = "Î?Ï?ίθμηÏ?η Î?έξεÏ?ν...";
156 +                               Text [ spanish ] = "Contar palabras...";
157 +                               Text [ estonian ] = "Sõnade arv...";
158 +                               Text [ finnish ] = "Laske sanat...";
159 +                               Text [ french ] = "Statistiques...";
160 +                               Text [ hindi ] = "शबà¥?द à¤?िनà¥?à¤?...";
161 +                               Text [ italian ] = "Statistiche...";
162 +                               Text [ hungarian ] = "Szavak száma...";
163 +                               Text [ japanese ] = "ã?¯ã?¼ã??ã?«ã?¦ã?³ã??...";
164 +                               Text [ korean ] = "í?µê³?...";
165 +                               Text [ norwegian ] = "Ordtelling...";
166 +                               Text [ dutch ] = "Woorden tellen...";
167 +                               Text [ polish ] = "Liczba s³ów...";
168 +                               Text [ portuguese ] = "Contagem palavras...";
169 +                               Text [ portuguese_brazilian ] = "Contagem palavras...";
170 +                               Text [ russian ] = "Ð?олиÑ?еÑ?Ñ?во Ñ?лов...";
171 +                               Text [ slovak ] = "PoÄ?et slov...";
172 +                               Text [ swedish ] = "Ordräkning...";
173 +                               Text [ turkish ] = "Ýstatistik...";
174 +                               Text [ chinese_simplified ] = "ç»?计...";
175 +                               Text [ chinese_traditional ] = "çµ±è¨?...";
176 +/*                             --: "Word count" translations
177 +                               az:     "KÉ?lmÉ? Miqdarı"
178 +                               bs:     "Zbir rijeÄ?i"
179 +                               cy:     "Cyfrif geiriau"
180 +                               eu:     "Hitz kopurua"
181 +                               mk:     "Ð?Ñ?оеÑ?е Ð½Ð° Ð·Ð±Ð¾Ñ?ови"
182 +                               mt:     "Għadd taâ?? kliem"
183 +                               ro:     "NumÄ?rÄ? cuvintele"
184 +                               sl:     "Å tevilo besed"
185 +                               sq:     "Llogariti fjalët"
186 +                               ta:     "à®?à¯?லà¯? à®?ணà¯?ணி"
187 +                               uk:     "Ð?Ñ?лÑ?кÑ?Ñ?Ñ?Ñ? Ñ?лÑ?в"
188 +                               vi:     "Ä?ếm từ"
189 +                               wa:     "Contaedje des mots"
190 +*/
191 +                       };
192  #endif
193                         SEPARATOR ;
194                         MenuItem
195 Index: sw/source/ui/uiview/viewling.cxx
196 ===================================================================
197 RCS file: /cvs/sw/sw/source/ui/uiview/viewling.cxx,v
198 retrieving revision 1.13
199 diff -u -p -u -r1.13 viewling.cxx
200 --- sw/source/ui/uiview/viewling.cxx    17 Apr 2003 17:51:30 -0000      1.13
201 +++ sw/source/ui/uiview/viewling.cxx    7 Aug 2003 12:38:22 -0000
202 @@ -105,6 +105,9 @@
203  #ifndef _SVX_DIALMGR_HXX //autogen
204  #include <svx/dialmgr.hxx>
205  #endif
206 +#ifndef _SFX_DINFDLG_HXX
207 +#include <sfx2/dinfdlg.hxx>
208 +#endif
209  #ifndef _SVX_LANGITEM_HXX
210  #include <svx/langitem.hxx>
211  #endif
212 @@ -214,6 +217,40 @@ void SwView::ExecLingu(SfxRequest &rReq)
213                 case FN_HYPHENATE_OPT_DLG:
214                         HyphenateDocument();
215                         break;
216 +       case FN_WORD_COUNT_DLG: {
217 +
218 +               SfxObjectShell *pObjectShell = GetObjectShell();
219 +               if (!pObjectShell)
220 +                       break;
221 +
222 +               String aURL, aTitle;
223 +               SfxDocumentInfo *pTmpDocInfo = new SfxDocumentInfo;
224 +               *pTmpDocInfo = pObjectShell->GetDocInfo ();
225 +               pTmpDocInfo->SetReadOnly( true );
226 +               SfxDocumentInfoItem aDocInfoItem( aURL, *pTmpDocInfo );
227 +
228 +               SfxItemSet aSet(GetPool(), SID_DOCINFO, SID_DOCINFO,
229 +                               SID_EXPLORER_PROPS_START, SID_EXPLORER_PROPS_START, 0L );
230 +               aSet.Put( aDocInfoItem );
231 +               aSet.Put( SfxStringItem( SID_EXPLORER_PROPS_START, aTitle ) );
232 +
233 +               // SwDocShell::CreateDocumentInfoDialog
234 +               SfxDocumentInfoDialog *pDlg = pObjectShell->CreateDocumentInfoDialog( 0, aSet );
235 +
236 +               pDlg->RemoveResetButton();
237 +               pDlg->RemoveTabPage( TP_DOCINFODESC );
238 +               pDlg->RemoveTabPage( TP_DOCINFODOC );
239 +               pDlg->RemoveTabPage( TP_DOCINFOUSER );
240 +               pDlg->RemoveTabPage( TP_DOCINFORELOAD );
241 +               pDlg->GetCancelButton().Hide();
242 +
243 +               pDlg->Execute(); // discard return value - it's irrelevant.
244 +
245 +               delete pDlg;
246 +               delete pTmpDocInfo;
247 +               break;
248 +       }
249 +               
250                 default:
251                         ASSERT(!this, falscher Dispatcher);
252                         return;
This page took 0.054332 seconds and 3 git commands to generate.