update dev300-m58
[ooovba.git] / applied_patches / 0213-go-oo-team.diff
blobf19deb22fba70aa7b0cd4e3f56a7efb15d2b83b5
1 Index: sw/source/ui/dochdl/dochdl.src
2 ===================================================================
3 RCS file: /cvs/sw/sw/source/ui/dochdl/dochdl.src,v
4 retrieving revision 1.42
5 diff -u -r1.42 dochdl.src
6 --- sw/source/ui/dochdl/dochdl.src 26 Jun 2004 03:25:18 -0000 1.42
7 +++ sw/source/ui/dochdl/dochdl.src 4 Jan 2005 06:23:49 -0000
8 @@ -149,3 +149,13 @@
9 Text = "Back row: Aidan Butler, Hans-Peter Burow, Caolan McNamara, Michael Brauer, Martin Maher, Gunnar Timm\nFront row: Thomas Lange, Oliver-Rainer Duesterhoeft, Henning Brinkmann, Andreas Martens, Oliver Specht, Frank Meies, Daniel Vogelheim";
12 +Bitmap BMP_GO_OO_TEAM_MUGSHOT
14 + File ="go-oo-team.bmp";
15 +};
17 +String STR_GO_OO_TEAM_NAMES
19 + TEXT = "From top left: Andreas, Bernhard, David, Dhananjay, Eric, Federico, Fong\nFridrich, Giuseppe, Hubert, Jakub, Jan, Jan, Jiao\nJody, Kai, Kalman, Kohei, Martin, Matthias, Michael\nMike, Miklos, Noel, Petr, Radek, Rene, Silvan\nThorsten, Tor, Volker, Yin, ZhangYun.\n";
20 +};
22 Index: sw/source/ui/dochdl/gloshdl.cxx
23 ===================================================================
24 RCS file: /cvs/sw/sw/source/ui/dochdl/gloshdl.cxx,v
25 retrieving revision 1.19
26 diff -u -r1.19 gloshdl.cxx
27 --- sw/source/ui/dochdl/gloshdl.cxx 4 Oct 2004 19:26:10 -0000 1.19
28 +++ sw/source/ui/dochdl/gloshdl.cxx 4 Jan 2005 06:25:50 -0000
29 @@ -738,6 +738,41 @@
30 pWrtShell->EndAllAction();
31 pWrtShell->EndUndo( UNDO_INSGLOSSARY );
33 + else if ( aShortName.EqualsAscii ( "GoOOTeam", 0, 14 ) )
34 + {
35 + String sGraphicName ( RTL_CONSTASCII_USTRINGPARAM ( "Go-oo Team photo" ) );
36 + String sTeamCredits ( RTL_CONSTASCII_USTRINGPARAM ( "go-oo team credits" ) );
37 + pWrtShell->StartUndo ( UNDO_INSGLOSSARY );
38 + pWrtShell->StartAllAction();
39 + if(pWrtShell->HasSelection())
40 + pWrtShell->DelLeft();
41 + Bitmap aBitmap ( SW_RES ( BMP_GO_OO_TEAM_MUGSHOT ) );
42 + pWrtShell->Insert ( aEmptyStr, aEmptyStr, aBitmap);
43 + pWrtShell->SetFlyName ( sGraphicName );
44 + SwTxtFmtColl* pColl = pWrtShell->GetTxtCollFromPool ( RES_POOLCOLL_LABEL_ABB );
45 + const IDocumentFieldsAccess* pIDFA = pWrtShell->getIDocumentFieldsAccess();
46 + SwFieldType* pType = pIDFA->GetFldType( RES_SETEXPFLD, pColl->GetName(), false );
47 + sal_uInt16 nId = pIDFA->GetFldTypes()->GetPos( pType );
48 + pWrtShell->InsertLabel( LTYPE_OBJECT, aEmptyStr, aEmptyStr, aEmptyStr, FALSE, nId, aEmptyStr );
49 + pWrtShell->SwFEShell::SetFlyName( sTeamCredits );
50 + pWrtShell->SwFEShell::SelectObj ( Point ( ULONG_MAX, ULONG_MAX ) );
51 + pWrtShell->EnterStdMode();
52 + pWrtShell->EndPara ( TRUE );
53 + String aTmp ( SW_RES ( STR_GO_OO_TEAM_NAMES ) );
54 + pWrtShell->Insert ( aTmp );
55 + SvxAdjustItem aAdjustItem( SVX_ADJUST_CENTER, RES_PARATR_ADJUST );
56 + pWrtShell->SetAttr( aAdjustItem );
57 + pWrtShell->SttPara ();
58 + pWrtShell->SplitNode();
59 + pWrtShell->Left(CRSR_SKIP_CHARS, FALSE, 1, FALSE );
60 + SvxWeightItem aWeightItem ( WEIGHT_BOLD, RES_CHRATR_WEIGHT );
61 + pWrtShell->Insert ( String ( RTL_CONSTASCII_USTRINGPARAM ( "The go-oo.org team!" ) ) );
62 + pWrtShell->SttPara ( TRUE );
63 + pWrtShell->SetAttr( aWeightItem);
64 + pWrtShell->GotoFly ( sTeamCredits);
65 + pWrtShell->EndAllAction();
66 + pWrtShell->EndUndo( UNDO_INSGLOSSARY );
67 + }
68 else
70 String aTmp( SW_RES(STR_NOGLOS1));
71 Index: sw/inc/dochdl.hrc
72 ===================================================================
73 RCS file: /cvs/sw/sw/inc/dochdl.hrc,v
74 retrieving revision 1.2
75 diff -u -r1.2 dochdl.hrc
76 --- sw/inc/dochdl.hrc 10 May 2004 16:14:19 -0000 1.2
77 +++ sw/inc/dochdl.hrc 4 Jan 2005 06:27:14 -0000
78 @@ -81,7 +81,10 @@
79 #define BMP_SW_TEAM_MUGSHOT (RC_DOCHDL_BEGIN + 12)
80 #define STR_SW_TEAM_NAMES (RC_DOCHDL_BEGIN + 13)
82 -#define DOCHDL_ACT_END STR_SW_TEAM_NAMES
83 +#define BMP_GO_OO_TEAM_MUGSHOT (RC_DOCHDL_BEGIN + 14)
84 +#define STR_GO_OO_TEAM_NAMES (RC_DOCHDL_BEGIN + 25)
86 +#define DOCHDL_ACT_END STR_GO_OO_TEAM_NAMES
88 #if DOCHDL_ACT_END > RC_DOCHDL_END
89 #error Resource-Id Ueberlauf in #file, #line