Added: 
openoffice/branches/sidebar/main/svx/source/sidebar/text/TextPropertyPanel.src
URL: 
http://svn.apache.org/viewvc/openoffice/branches/sidebar/main/svx/source/sidebar/text/TextPropertyPanel.src?rev=1436260&view=auto
==============================================================================
--- 
openoffice/branches/sidebar/main/svx/source/sidebar/text/TextPropertyPanel.src 
(added)
+++ 
openoffice/branches/sidebar/main/svx/source/sidebar/text/TextPropertyPanel.src 
Mon Jan 21 10:29:03 2013
@@ -0,0 +1,801 @@
+/**************************************************************
+ * 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * 
+ *************************************************************/
+
+#include "TextPropertyPanel.hrc"
+#include <sfx2/sidebar/propertypanel.hrc>
+#include "helpid.hrc"
+
+#define CONTROL_HEIGHT_FONT_NAME               250
+#define CONTROL_HEIGHT_FONT_SIZE               180
+#define FONTNAME_WIDTH                                 TOOLBOX_ITEM_WIDTH * 2 
+ TOOLBOX_ITEM_DD_WIDTH
+#define FONTSIZE_WIDTH                                 TOOLBOX_ITEM_WIDTH * 2
+
+#define TB_SPACE                               18
+#define TB_SPACE_V                             4
+#define TEXT_WIDTH                             TOOLBOX_42_42_ITEM_DD_WIDTH + 
TB_SPACE - 3
+
+#define FT_TB_SPACE                            1
+#define BK_IMG                                 20
+
+Control RID_SIDEBAR_TEXT_PANEL
+{
+       OutputSize = TRUE;
+       DialogControl = TRUE;
+       Border = FALSE;
+
+       Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, SECTIONPAGE_MARGIN_VERTICAL_TOP 
+ CBOX_HEIGHT + TOOLBOX_ITEM_HEIGHT * 2 + CONTROL_SPACING_VERTICAL * 2 + 
SECTIONPAGE_MARGIN_VERTICAL_BOT );
+       HelpID = HID_PROPERTYPANEL_TEXT_SECTION ;
+       Text = "Text";
+       
+       ComboBox CB_SBFONT_FONT
+       {
+               Border = TRUE;
+               Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , 
SECTIONPAGE_MARGIN_VERTICAL_TOP ); 
+               Size = MAP_APPFONT ( FONTNAME_WIDTH , CONTROL_HEIGHT_FONT_NAME  
);
+               TabStop = TRUE;
+               DropDown = TRUE;
+               HelpID = HID_COMBO_FONT_NAME ;
+               QuickHelpText [ en-US ] = "Font";
+       };
+       MetricBox MB_SBFONT_FONTSIZE
+       {
+               Border = TRUE;
+               Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + 
FONTNAME_WIDTH + 2, SECTIONPAGE_MARGIN_VERTICAL_TOP); 
+               Size = MAP_APPFONT ( FONTSIZE_WIDTH - 1, 
CONTROL_HEIGHT_FONT_SIZE );
+               TabStop = TRUE;
+               DropDown = TRUE;
+               HelpID = HID_METRIC_FONT_SIZE;
+               QuickHelpText [ en-US ] = "Font Size";
+       };
+       
+       ToolBox TB_INCREASE_DECREASE
+       {
+               SVLook = TRUE ;
+               Pos = MAP_APPFONT ( PROPERTYPAGE_WIDTH - 
SECTIONPAGE_MARGIN_HORIZONTAL - TOOLBOX_ITEM_WIDTH * 2, 
SECTIONPAGE_MARGIN_VERTICAL_TOP) ;
+               Size = MAP_APPFONT ( TOOLBOX_ITEM_WIDTH * 2 
,TOOLBOX_ITEM_HEIGHT ) ;
+               TabStop = TRUE ;
+//             HelpID = HID_TB_INCREASE_DECREASE;
+               HelpID = HID_PPROPERTYPANEL_TEXT_TBX_FONTSIZE_INDE;
+               Text = "Font Size Adjusting" ;
+               ItemList =
+               {
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_INCREASE;
+                               Text [ en-US ] = "Increase Font Size" ;
+//                             HelpID = HID_TBI_INCREASE;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_INCREASE;
+                       };
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_DECREASE;
+                               Text [ en-US ] = "Decrease Font Size" ;
+//                             HelpID = HID_TBI_DECREASE;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_DECREASE;
+                       };
+               };
+       };
+       ToolBox TB_FONT
+       {
+               SVLook = TRUE ;
+               Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL + 1, 
SECTIONPAGE_MARGIN_VERTICAL_TOP + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL  + 1) ;
+               Size = MAP_APPFONT ( TOOLBOX_ITEM_WIDTH * 4 + 
TOOLBOX_ITEM_DD_WIDTH, TOOLBOX_ITEM_HEIGHT ) ; 
+               TabStop = TRUE ;
+//             HelpID = HID_TB_FONT;
+               HelpID = HID_PPROPERTYPANEL_TEXT_TBX_FONT;
+               Text = "Font Effects" ;
+               ItemList =
+               {
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_BOLD;
+                               Text [ en-US ] = "Bold" ;
+//                             HelpID = HID_TBI_FONT_BOLD;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_BOLD;
+                       };
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_ITALIC;
+                               Text [ en-US ] = "Italic" ;
+//                             HelpID = HID_TBI_FONT_ITALIC;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_ITALIC;
+                       };
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_UNDERLINE;
+                               DropDown = TRUE ;
+                               Text [ en-US ] = "Underline" ;
+//                             HelpID = HID_TBI_FONT_UNDERLINE;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_UNDERLINE; 
                        
+                       };
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_STRIKEOUT;
+                               Text [ en-US ] = "Strikethrough" ;
+//                             HelpID = HID_TBI_FONT_STRIKEOUT;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_STRIKEOUT;
+                       };
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_SHADOWED;
+                               Text [ en-US ] = "Shadow" ;
+//                             HelpID = HID_TBI_FONT_SHADOWED;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SHADOWED;
+                       };              
+               };
+       };
+       
+       String STR_QH_BOLD
+       {
+               Text [ en-US ] = "Bold (Ctrl+B)";
+       };
+       String STR_QH_ITALIC
+       {
+               Text [ en-US ] = "Italic (Ctrl+I)";
+       };
+       String STR_QH_UNDERLINE
+       {
+               Text [ en-US ] = "Underline (Ctrl+U)";
+       };
+
+       
+       ToolBox TB_FONTCOLOR
+       {
+//             HelpID = HID_TB_COLOR;
+               HelpID = HID_PPROPERTYPANEL_TEXT_TBX_FONT_COLOR;
+               SVLook = TRUE ;
+               Pos = MAP_APPFONT (PROPERTYPAGE_WIDTH - 
SECTIONPAGE_MARGIN_HORIZONTAL - TOOLBOX_ITEM_WIDTH * 2, 
SECTIONPAGE_MARGIN_VERTICAL_TOP + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL  + 1) ;
+               Size = MAP_APPFONT (TOOLBOX_ITEM_DD_WIDTH ,TOOLBOX_ITEM_HEIGHT 
) ;
+               TabStop = TRUE ;
+               Text = "Font Color" ;
+               ItemList =
+               {
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_FONTCOLOR ;
+//                             HelpID =  HID_TBI_COLOR;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_FONT_COLOR;
+                               DropDown = TRUE ;
+                               Text [ en-US ] = "Font Color" ;
+                       };
+               };
+       };
+       
+       ToolBox TB_HIGHLIGHT
+       {
+               SVLook = TRUE ;
+               Pos = MAP_APPFONT (PROPERTYPAGE_WIDTH - 
SECTIONPAGE_MARGIN_HORIZONTAL  - TOOLBOX_ITEM_WIDTH * 2 , 
SECTIONPAGE_MARGIN_VERTICAL_TOP + CBOX_HEIGHT + (TOOLBOX_ITEM_HEIGHT + 2) + 
CONTROL_SPACING_VERTICAL * 2 + 1) ;
+               Size = MAP_APPFONT (TOOLBOX_ITEM_DD_WIDTH ,TOOLBOX_ITEM_HEIGHT 
) ;
+               TabStop = TRUE ;
+//             HelpID = HID_TB_HIGHLIGHT;
+               HelpID = HID_PPROPERTYPANEL_TEXT_TBX_HIGHLIGHT_COLOR;
+               Text = "Highlight Color" ;
+               ItemList =
+               {
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_HIGHLIGHT ;
+//                             HelpID =  HID_TBI_HIGHLIGHT;
+                               HelpID = 
HID_PPROPERTYPANEL_TEXT_TBI_HIGHLIGHT_COLOR;
+                               DropDown = TRUE ;
+                               Text [ en-US ] = "Highlight Color" ;
+                       };
+               };
+       };
+       
+       ToolBox TB_SCRIPT_SW
+       {
+               SVLook = TRUE ;
+               Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL + 1 , 
SECTIONPAGE_MARGIN_VERTICAL_TOP + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL * 2 + 
(TOOLBOX_ITEM_HEIGHT + 2) + 1) ;
+               Size = MAP_APPFONT (TOOLBOX_ITEM_WIDTH * 2 ,TOOLBOX_ITEM_HEIGHT 
) ;
+               TabStop = TRUE ;
+//             HelpID = HID_TB_SCRIPT_SW;
+               HelpID = HID_PPROPERTYPANEL_TEXT_TBX_SCRIPT_SW;
+               Text = "Font Position" ;
+               ItemList =
+               {
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_SUPER_SW;
+                               Text [ en-US ] = "Superscript" ;
+//                             HelpID = HID_TBI_SCRIPT_SW_SUPER;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SUPER_SW;
+                       };
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_SUB_SW;
+                               Text [ en-US ] = "Subscript" ;
+//                             HelpID = HID_TBI_SCRIPT_SW_SUB;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SUB_SW;
+                       };
+               };
+       };
+       ToolBox TB_SCRIPT
+       {
+               SVLook = TRUE ;
+               Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL + 1 , 
SECTIONPAGE_MARGIN_VERTICAL_TOP + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL * 2 + 
(TOOLBOX_ITEM_HEIGHT + 2) + 1) ;
+               Size = MAP_APPFONT (TOOLBOX_ITEM_WIDTH * 2 ,TOOLBOX_ITEM_HEIGHT 
) ;
+               TabStop = TRUE ;
+//             HelpID = HID_TB_SCRIPT;
+               HelpID = HID_PPROPERTYPANEL_TEXT_TBX_SCRIPT;
+               Text = "Font Position" ;
+               ItemList =
+               {
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_SUPER;
+                               Text [ en-US ] = "Superscript" ;
+//                             HelpID = HID_TBI_SCRIPT_SUPER;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SUPER;
+                       };
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_SUB;
+                               Text [ en-US ] = "Subscript" ;
+//                             HelpID = HID_TBI_SCRIPT_SUB;
+                               HelpID = HID_PPROPERTYPANEL_TEXT_TBI_SUB;
+                       };
+               };
+       };
+       
+       ToolBox TB_SPACING
+       {
+               SVLook = TRUE ;
+               Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL + 1 + 
TOOLBOX_ITEM_WIDTH * 2  + 4 , SECTIONPAGE_MARGIN_VERTICAL_TOP + CBOX_HEIGHT + 
CONTROL_SPACING_VERTICAL * 2 + (TOOLBOX_ITEM_HEIGHT + 2) + 1) ;
+               Size = MAP_APPFONT (TOOLBOX_24_16_ITEM_DD_WIDTH, 
TOOLBOX_24_16_ITEM_HEIGHT ) ;
+               TabStop = TRUE ;
+               HelpID = HID_TB_SPACING;
+               Text = "Character Spacing" ;
+               ItemList =
+               {
+                       ToolBoxItem
+                       {
+                               Identifier = TBI_SPACING;
+                               DropDown = TRUE ;
+                               Text [ en-US ] = "Character Spacing" ;
+                               HelpID = HID_TBI_SPACING;
+                       };
+               };
+       };
+       
+       Image IMG_INCREASE
+       {
+               ImageBitmap = Bitmap{File = "enlarge font.png";};
+       //      MaskColor = IMAGE_MASK_COLOR;
+       };
+       Image IMG_INCREASE_H
+       {
+               ImageBitmap = Bitmap{File = "enlarge font.png";};
+       };
+       Image IMG_DECREASE
+       {
+               ImageBitmap = Bitmap{File = "decrease font.png";};
+       };
+       Image IMG_DECREASE_H
+       {
+               ImageBitmap = Bitmap{File = "decrease font.png";};
+       };
+       Image IMG_BOLD
+       {
+               ImageBitmap = Bitmap{File = "sc_bold.png";};//sc_bold.bmp
+       };
+       Image IMG_BOLD_H
+       {
+               ImageBitmap = Bitmap{File = "sc_bold.png";};
+       };
+       Image IMG_ITALIC
+       {
+               ImageBitmap = Bitmap{File = "sc_italic.png";};//sc_italic.bmp
+       };
+       Image IMG_ITALIC_H
+       {
+               ImageBitmap = Bitmap{File = "sc_italic.png";};
+       };
+       Image IMG_UNDERLINE
+       {
+               ImageBitmap = Bitmap{File = 
"sc_underline.png";};//sc_underline.png
+       };
+       Image IMG_UNDERLINE_H
+       {
+               ImageBitmap = Bitmap{File = "sc_underline.png";};
+       };
+
+       Image IMG_STRIKEOUT
+       {
+               ImageBitmap = Bitmap{File = 
"sc_strikeout.png";};//sc_strikeout.png
+       };
+       Image IMG_STRIKEOUT_H
+       {
+               ImageBitmap = Bitmap{File = "sc_strikeout.png";};
+       };
+       Image IMG_SHADOWED
+       {
+               ImageBitmap = Bitmap{File = 
"sc_shadowed.png";};//sc_shadowed.png
+       };
+       Image IMG_SHADOWED_H
+       {
+               ImageBitmap = Bitmap{File = "sc_shadowed.png";};
+       };
+       Image IMG_FONTCOLOR
+       {
+               ImageBitmap = Bitmap{File = "sc_color.png";};
+       };
+       Image IMG_FONTCOLOR_H
+       {
+               ImageBitmap = Bitmap{File = "sc_color.png";};
+       };
+       Image IMG_SUPSCRIPT
+       {
+               ImageBitmap = Bitmap{File = "sc_superscript.png";};
+       };
+       Image IMG_SUPSCRIPT_H
+       {
+               ImageBitmap = Bitmap{File = "sc_superscript.png";};
+       };
+       Image IMG_SUBSCRIPT
+       {
+               ImageBitmap = Bitmap{File = "sc_subscript.png";};
+       };
+       Image IMG_SUBSCRIPT_H
+       {
+               ImageBitmap = Bitmap{File = "sc_subscript.png";};
+       };
+//     Image IMG_SPACING
+//     {
+//             ImageBitmap = Bitmap{File = "icon_normal.png";};
+//     };
+//     Image IMG_SPACING_H
+//     {
+//             ImageBitmap = Bitmap{File = "icon_normal.png";};
+//     };
+       Image IMG_HIGHLIGHT
+       {
+               ImageBitmap = Bitmap{File = "Highlight.png";};//sc_backcolor
+       };
+       Image IMG_HIGHLIGHT_H
+       {
+               ImageBitmap = Bitmap{File = "Highlight.png";};
+       };
+       
+       //small icon for spacing
+       Image IMG_SPACING_D
+       {
+               ImageBitmap = Bitmap{File = "icon_normal.png";};
+       };
+};
+
+Control RID_POPUPPANEL_TEXTPAGE_UNDERLINE  
+{
+       OutputSize = TRUE;
+       DialogControl = TRUE;
+       Border = FALSE;
+       
+       Size = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH , 
 13 + POPUP_BORDER_HEIGHT + POPUPPANEL_MARGIN_SMALL * 2 + 
POPUPPANEL_MARGIN_LARGE);
+       Control VS_UNDERLINE
+       {
+//             HelpID = HID_UNDERLINE_VS ;
+               HelpID = HID_PPROPERTYPANEL_TEXT_UNDERLINE_VS;
+        Hide = TRUE ;
+        Pos = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL + OFFSET_X , 
POPUPPANEL_MARGIN_SMALL + OFFSET_Y ); 
+        Size = MAP_APPFONT ( 97  , 12 * 10);
+               TabStop = TRUE ;
+               Text = "Underline";
+       };
+
+       PushButton PB_OPTIONS
+       {
+               HelpID = HID_UNDERLINE_BTN;
+               Pos = MAP_APPFONT (  POPUPPANEL_MARGIN_LARGE  , 
POPUPPANEL_MARGIN_SMALL * 2 + OFFSET_Y  ); 
+               Size = MAP_APPFONT ( POPUPPANEL_MARGIN_HORIZONTAL * 2 , 13 );
+               TabStop = TRUE;
+               Text [ en-US ] = "~More Options...";
+       };
+       
+       
+       Image IMG_SINGLE
+       {
+               ImageBitmap = Bitmap{File = "line1.bmp";};
+       };
+       Image IMG_DOUBLE
+       {
+               ImageBitmap = Bitmap{File = "line2.bmp";};
+       };
+       Image IMG_BOLD2
+       {
+               ImageBitmap = Bitmap{File = "line3.bmp";};
+       };
+       Image IMG_DOT
+       {
+               ImageBitmap = Bitmap{File = "line4.bmp";};
+       };
+       Image IMG_DOT_BOLD
+       {
+               ImageBitmap = Bitmap{File = "line5.bmp";};
+       };
+       Image IMG_DASH
+       {
+               ImageBitmap = Bitmap{File = "line6.bmp";};
+       };
+       Image IMG_DASH_LONG
+       {
+               ImageBitmap = Bitmap{File = "line7.bmp";};
+       };
+       Image IMG_DASH_DOT
+       {
+               ImageBitmap = Bitmap{File = "line8.bmp";};
+       };
+       Image IMG_DASH_DOT_DOT
+       {
+               ImageBitmap = Bitmap{File = "line9.bmp";};
+       };
+       Image IMG_WAVE
+       {
+               ImageBitmap = Bitmap{File = "line10.bmp";};
+       };
+       
+       //high contract
+       Image IMG_SINGLE_H
+       {
+               ImageBitmap = Bitmap{File = "line1_h.bmp";};
+       };
+       Image IMG_DOUBLE_H
+       {
+               ImageBitmap = Bitmap{File = "line2_h.bmp";};
+       };
+       Image IMG_BOLD2_H
+       {
+               ImageBitmap = Bitmap{File = "line3_h.bmp";};
+       };
+       Image IMG_DOT_H
+       {
+               ImageBitmap = Bitmap{File = "line4_h.bmp";};
+       };
+       Image IMG_DOT_BOLD_H
+       {
+               ImageBitmap = Bitmap{File = "line5_h.bmp";};
+       };
+       Image IMG_DASH_H
+       {
+               ImageBitmap = Bitmap{File = "line6_h.bmp";};
+       };
+       Image IMG_DASH_LONG_H
+       {
+               ImageBitmap = Bitmap{File = "line7_h.bmp";};
+       };
+       Image IMG_DASH_DOT_H
+       {
+               ImageBitmap = Bitmap{File = "line8_h.bmp";};
+       };
+       Image IMG_DASH_DOT_DOT_H
+       {
+               ImageBitmap = Bitmap{File = "line9_h.bmp";};
+       };
+       Image IMG_WAVE_H
+       {
+               ImageBitmap = Bitmap{File = "line10_h.bmp";};
+       };
+       
+       //image when selected
+       Image IMG_SINGLE_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line1.bmp";};
+       };
+       Image IMG_DOUBLE_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line2.bmp";};
+       };
+       Image IMG_BOLD2_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line3.bmp";};
+       };
+       Image IMG_DOT_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line4.bmp";};
+       };
+       Image IMG_DOT_BOLD_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line5.bmp";};
+       };
+       Image IMG_DASH_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line6.bmp";};
+       };
+       Image IMG_DASH_LONG_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line7.bmp";};
+       };
+       Image IMG_DASH_DOT_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line8.bmp";};
+       };
+       Image IMG_DASH_DOT_DOT_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line9.bmp";};
+       };
+       Image IMG_WAVE_SEL
+       {
+               ImageBitmap = Bitmap{File = "selected-line10.bmp";};
+       };
+       
+       //more button bmps
+       Bitmap  BMP_UNDERLINE_MORE
+       {
+               File = "morebutton.bmp";
+       };
+       Bitmap  BMP_UNDERLINE_MORE_H
+       {
+               File = "morebutton_h.bmp";
+       };      
+       
+       //tips 
+       String STR_SINGLE
+       {
+               Text [ en-US ] = "Single";
+       };
+       String STR_DOUBLE
+       {
+               Text [ en-US ] = "Double";
+       };
+       String STR_BOLD
+       {
+               Text [ en-US ] = "Bold";
+       };
+       String STR_DOT
+       {
+               Text [ en-US ] = "Dotted";
+       };
+       String STR_DOT_BOLD
+       {
+               Text [ en-US ] = "Dotted (Bold)";
+       };
+       String STR_DASH
+       {
+               Text [ en-US ] = "Dash";
+       };
+       String STR_DASH_LONG
+       {
+               Text [ en-US ] = "Long Dash";
+       };
+       String STR_DASH_DOT
+       {
+               Text [ en-US ] = "Dot Dash";
+       };
+       String STR_DASH_DOT_DOT
+       {
+               Text [ en-US ] = "Dot Dot Dash";
+       };
+       String STR_WAVE
+       {
+               Text [ en-US ] = "Wave";
+       };
+               
+};
+
+
+Control RID_POPUPPANEL_TEXTPAGE_FONT_COLOR
+{
+       OutputSize = TRUE;
+       DialogControl = TRUE;
+       Border = FALSE;
+       Size = MAP_APPFONT(  POPUP_COLOR_PICKER_WIDTH , 
POPUP_COLOR_PICKER_HEIGHT  );
+       
+       Control VS_FONT_COLOR
+       {
+//             HelpID = HID_COLOR_VS ;
+               HelpID = HID_PPROPERTYPANEL_TEXT_COLOR_VS;
+        Hide = TRUE ;
+        Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
+        Size = MAP_APPFONT (  POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, 
POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
+               TabStop = TRUE ;
+               Text = "Color Picker";
+       };
+       String STR_AUTOMATICE
+       {
+               Text [ en-US ] = "Automatic";
+       };
+
+};
+
+Control RID_POPUPPANEL_TEXTPAGE_SPACING
+{
+       OutputSize = TRUE;
+       DialogControl = TRUE;
+       Border = FALSE;
+       
+       Size = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + 
VS_SPACING_WIDTH , POPUPPANEL_MARGIN_SMALL * 3 + 15 * 6 + CUSTOM_HEIGHT + 
TEXT_HEIGHT + POPUPPANEL_MARGIN_LARGE + POPUP_BORDER_WIDTH + 1);
+       
+       Control VS_SPACING
+       {
+               HelpId = HID_PPROPERTYPANEL_TEXT_SPACING_VS ;
+        Hide = TRUE ;
+        Pos = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL + OFFSET_X , 
POPUPPANEL_MARGIN_SMALL + OFFSET_Y ); 
+        Size = MAP_APPFONT ( VS_SPACING_WIDTH  , 15 * 6);
+               TabStop = TRUE ;
+               Text  = "Character Spacing";
+       };
+    
+    FixedText FT_LASTCUSTOM
+    {
+               Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_LARGE + OFFSET_X 
,POPUPPANEL_MARGIN_SMALL + OFFSET_Y + POPUPPANEL_MARGIN_SMALL + 15 * 6) ;
+        Size = MAP_APPFONT ( CUSTOM_WIDTH , TEXT_HEIGHT );
+        Left = TRUE ;
+        Text [ en-US ] = "Custom:" ;
+    };
+    //custom area
+//     Control CT_BORDER
+//     {
+//             Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_LARGE + OFFSET_X + 1 , 
OFFSET_Y + POPUPPANEL_MARGIN_SMALL * 3 + 15 * 6 + TEXT_HEIGHT) ;
+//             Size = MAP_APPFONT (CUSTOM_WIDTH ,  CUSTOM_HEIGHT ) ;// 
TOOLBOX_42_42_ITEM_DD_WIDTH * 2 +  TB_SPACE * 2 - 5 + TEXT_WIDTH - 2
+//        DialogControl = TRUE;
+//     };
+       FixedText       FT_SPACING
+       {
+               Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, 
CUSTOM_Y + POPUPPANEL_MARGIN_LARGE);
+        Size = MAP_APPFONT ( CUSTOM_WIDTH - POPUPPANEL_MARGIN_LARGE * 2 , 
TEXT_HEIGHT );
+        Left = TRUE ;
+        Text [ en-US ] = "~Character spacing: " ;
+       };
+       ListBox LB_KERNING
+       {
+               Border = TRUE;
+        Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, CUSTOM_Y + 
POPUPPANEL_MARGIN_LARGE + TEXT_HEIGHT + POPUPPANEL_MARGIN_SMALL);//20
+               Size = MAP_APPFONT ( CUSTOM_WIDTH - POPUPPANEL_MARGIN_LARGE * 2 
, 80 ) ;
+               TabStop = TRUE;
+               DropDown = TRUE ;
+               HelpID = HID_SPACING_CB_KERN;
+               StringList [ en-US ] =
+               {
+                       < "Default" ; Default ; > ;
+                       < "Expanded" ; Default ; > ;
+                       < "Condensed" ; Default ; > ;
+               };
+       };
+       FixedText       FT_BY
+       {
+               Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, 
CUSTOM_Y + POPUPPANEL_MARGIN_LARGE * 2 + TEXT_HEIGHT + POPUPPANEL_MARGIN_SMALL 
+ CBOX_HEIGHT );
+        Size = MAP_APPFONT ( CUSTOM_WIDTH - POPUPPANEL_MARGIN_LARGE * 2 , 
TEXT_HEIGHT );
+        Left = TRUE ;
+        Text [ en-US ] = "Change ~by: " ;
+       };
+       MetricField ED_KERNING
+       {
+               HelpID = HID_SPACING_MB_KERN;
+               Border = TRUE;
+        Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, CUSTOM_Y + 
POPUPPANEL_MARGIN_LARGE * 2 + TEXT_HEIGHT * 2 + POPUPPANEL_MARGIN_SMALL * 2 + 
CBOX_HEIGHT);//60
+        Size = MAP_APPFONT ( CUSTOM_WIDTH - POPUPPANEL_MARGIN_LARGE * 2 , 
MBOX_HEIGHT );
+               TabStop = TRUE;
+               Repeat = TRUE ;
+               Spin = TRUE ;
+               Maximum = 9999 ;
+               DecimalDigits = 1 ;
+               Unit = FUNIT_POINT ;
+               SpinSize = 10 ;
+       };
+       
+       Image IMG_NORMAL
+       {
+               ImageBitmap = Bitmap{File = "spacing_normal.bmp" 
;};//"spacing_normal.bmp"
+       };
+       Image IMG_VERY_TIGHT
+       {
+               ImageBitmap = Bitmap{File = "spacing_very tight.bmp";};
+       };
+       Image IMG_TIGHT
+       {
+               ImageBitmap = Bitmap{File = "spacing_tight.bmp";};
+       };
+       Image IMG_LOOSE
+       {
+               ImageBitmap = Bitmap{File = "spacing_loose.bmp";};
+       };
+       Image IMG_VERY_LOOSE
+       {
+               ImageBitmap = Bitmap{File = "spacing_very loose.bmp";};
+       };
+       
+       Image IMG_NORMAL_S
+       {
+               ImageBitmap = Bitmap{File = "spacing_normal_s.bmp";};
+       };
+       Image IMG_VERY_TIGHT_S
+       {
+               ImageBitmap = Bitmap{File = "spacing_very tight_s.bmp";};
+       };
+       Image IMG_TIGHT_S
+       {
+               ImageBitmap = Bitmap{File = "spacing_tight_s.bmp";};
+       };
+       Image IMG_LOOSE_S
+       {
+               ImageBitmap = Bitmap{File = "spacing_loose_s.bmp";};
+       };
+       Image IMG_VERY_LOOSE_S
+       {
+               ImageBitmap = Bitmap{File = "spacing_very loose_s.bmp";};
+       };
+       
+       Image IMG_CUSTOM
+       {
+               ImageBitmap = Bitmap{File = "last_custom_common.png";};
+       };
+       Image IMG_CUSTOM_GRAY
+       {
+               ImageBitmap = Bitmap{File = "last_custom_common_grey.png";};
+       };
+       
+       String STR_VERY_TIGHT
+       {
+               Text [ en-US ] = "Very Tight";
+       };
+       String STR_TIGHT
+       {
+               Text [ en-US ] = "Tight";
+       };
+       String STR_NORMAL
+       {
+               Text [ en-US ] = "Normal";
+       };
+       String STR_LOOSE
+       {
+               Text [ en-US ] = "Loose";
+       };
+       String STR_VERY_LOOSE
+       {
+               Text [ en-US ] = "Very Loose";
+       };
+       String STR_CUSTOM
+       {
+               Text [ en-US ] = "Last Custom Value";
+       };
+       
+       String STR_VERY_TIGHT_TIP
+       {
+               Text [ en-US ] = " Spacing: Condensed By: 3pt";
+       };
+       String STR_TIGHT_TIP
+       {
+               Text [ en-US ] = " Spacing: Condensed By: 1.5pt";
+       };
+       String STR_NORMAL_TIP
+       {
+               Text [ en-US ] = " Spacing: Normal";
+       };
+       String STR_LOOSE_TIP
+       {
+               Text [ en-US ] = " Spacing: Expanded By: 3pt";
+       };
+       String STR_VERY_LOOSE_TIP
+       {
+               Text [ en-US ] = " Spacing: Expanded By: 6pt";
+       };
+       String STR_CUSTOM_C_TIP
+       {
+               Text [ en-US ] = " Spacing: Condensed By: ";
+       };
+       String STR_CUSTOM_E_TIP
+       {
+               Text [ en-US ] = " Spacing: Expanded By: ";
+       };
+       String STR_PT
+       {
+               Text[ en-US ] = "pt";
+       };
+};

Modified: openoffice/branches/sidebar/main/svx/source/unodraw/unoctabl.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/branches/sidebar/main/svx/source/unodraw/unoctabl.cxx?rev=1436260&r1=1436259&r2=1436260&view=diff
==============================================================================
--- openoffice/branches/sidebar/main/svx/source/unodraw/unoctabl.cxx (original)
+++ openoffice/branches/sidebar/main/svx/source/unodraw/unoctabl.cxx Mon Jan 21 
10:29:03 2013
@@ -238,6 +238,8 @@ uno::Reference< uno::XInterface > SAL_CA
 #include "cppuhelper/factory.hxx"
 #include "uno/lbnames.h"
 #include <svx/sdr/primitive2d/primitiveFactory2d.hxx>
+#include "sidebar/PanelFactory.hxx"
+
 
 /*
 namespace svx
@@ -366,16 +368,15 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL com
                 ::svx::SvXMLGraphicExportHelper_createInstance,
                 ::svx::SvXMLGraphicExportHelper_getSupportedServiceNames() );
         }
-/*
-               else if( 
::svx::ExtrusionDepthController_getImplementationName().equalsAscii( pImplName 
) )
-               {
-                       xFactory = ::cppu::createSingleFactory(
-                               reinterpret_cast< lang::XMultiServiceFactory * 
>( pServiceManager ),
-                               
::svx::ExtrusionDepthController_getImplementationName(),
-                               ::svx::ExtrusionDepthController_createInstance,
-                               
::svx::ExtrusionDepthController_getSupportedServiceNames() );
-               }
-*/
+        else if 
(::svx::sidebar::PanelFactory::getImplementationName().equalsAscii(pImplName))
+        {
+            xFactory = ::cppu::createSingleFactory(
+                reinterpret_cast<lang::XMultiServiceFactory*>(pServiceManager),
+                ::svx::sidebar::PanelFactory::getImplementationName(),
+                ::svx::sidebar::PanelFactory::createInstance,
+                ::svx::sidebar::PanelFactory::getSupportedServiceNames());
+        }
+
                if( xFactory.is())
                {
                        xFactory->acquire();

Modified: openoffice/branches/sidebar/main/svx/util/svx.component
URL: 
http://svn.apache.org/viewvc/openoffice/branches/sidebar/main/svx/util/svx.component?rev=1436260&r1=1436259&r2=1436260&view=diff
==============================================================================
--- openoffice/branches/sidebar/main/svx/util/svx.component (original)
+++ openoffice/branches/sidebar/main/svx/util/svx.component Mon Jan 21 10:29:03 
2013
@@ -69,4 +69,7 @@
   <implementation name="com.sun.star.svx.UpSearchToolboxController">
     <service name="com.sun.star.frame.ToolbarController"/>
   </implementation>
+  <implementation name="org.apache.openoffice.comp.svx.sidebar.PanelFactory">
+    <service name="com.sun.star.ui.UIElementFactory"/>
+  </implementation>
 </component>


Reply via email to