Kaydet (Commit) 06ef6fe6 authored tarafından Caolán McNamara's avatar Caolán McNamara

convert Template Management dialog to .ui

Change-Id: Ifebd5ad91d1c8b456c458b01738261dfe34a6f83
üst 5e1a8771
...@@ -69,7 +69,6 @@ $(eval $(call gb_SrsTarget_add_files,sfx/res,\ ...@@ -69,7 +69,6 @@ $(eval $(call gb_SrsTarget_add_files,sfx/res,\
sfx2/source/doc/doc.src \ sfx2/source/doc/doc.src \
sfx2/source/doc/doctdlg.src \ sfx2/source/doc/doctdlg.src \
sfx2/source/doc/doctempl.src \ sfx2/source/doc/doctempl.src \
sfx2/source/doc/docvor.src \
sfx2/source/doc/graphhelp.src \ sfx2/source/doc/graphhelp.src \
sfx2/source/doc/new.src \ sfx2/source/doc/new.src \
sfx2/source/doc/templatelocnames.src \ sfx2/source/doc/templatelocnames.src \
......
...@@ -13,6 +13,7 @@ $(eval $(call gb_UI_add_uifiles,sfx,\ ...@@ -13,6 +13,7 @@ $(eval $(call gb_UI_add_uifiles,sfx,\
sfx2/uiconfig/ui/checkin \ sfx2/uiconfig/ui/checkin \
sfx2/uiconfig/ui/password \ sfx2/uiconfig/ui/password \
sfx2/uiconfig/ui/printeroptionsdialog \ sfx2/uiconfig/ui/printeroptionsdialog \
sfx2/uiconfig/ui/templatemanagementdialog \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -77,10 +77,12 @@ protected: ...@@ -77,10 +77,12 @@ protected:
virtual void DragFinished( sal_Int8 nDropAction ); virtual void DragFinished( sal_Int8 nDropAction );
public: public:
using SvListView::Select; using SvListView::Select;
enum DataEnum { VIEW_TEMPLATES, VIEW_FILES } eViewType; enum DataEnum { VIEW_TEMPLATES, VIEW_FILES } eViewType;
SfxOrganizeListBox_Impl( SfxOrganizeDlg_Impl* pDlg, Window* pParent, WinBits, DataEnum ); SfxOrganizeListBox_Impl(Window* pParent, WinBits nBits);
void Init(SfxOrganizeDlg_Impl* pArgDlg, DataEnum eType);
DataEnum GetViewType() const { return eViewType; } DataEnum GetViewType() const { return eViewType; }
void SetViewType(DataEnum eType) { eViewType = eType; } void SetViewType(DataEnum eType) { eViewType = eType; }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#define DLG_NEW_FILE (RID_SFX_DOC_START+1) #define DLG_NEW_FILE (RID_SFX_DOC_START+1)
#define DLG_DOC_TEMPLATE (RID_SFX_DOC_START+2) #define DLG_DOC_TEMPLATE (RID_SFX_DOC_START+2)
#define DLG_ORGANIZE (RID_SFX_DOC_START+3)
#define DLG_TEMPLATE_MANAGER (RID_SFX_DOC_START+4) #define DLG_TEMPLATE_MANAGER (RID_SFX_DOC_START+4)
#define BMP_STYLES_CLOSED (RID_SFX_DOC_START+ 0) #define BMP_STYLES_CLOSED (RID_SFX_DOC_START+ 0)
......
This diff is collapsed.
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* 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 .
*/
#define IMG_OPENED_FOLDER 2
#define IMG_CLOSED_FOLDER 1
#define IMG_OPENED_DOC 3
#define IMG_CLOSED_DOC 4
#define ACC_EDIT 1
#define ID_COPY 201
#define ID_MOVE 202
#define ID_DELETE 203
#define ID_EDIT 204
#define ID_COPY_FROM 211
#define ID_RESCAN 220
#define ID_COPY_TO 210
#define ID_NEW 200
#define ID_PRINT 240
#define ID_PRINTER_SETUP 2341
#define ID_DEFAULT_TEMPLATE 300
#define ID_RESET_DEFAULT_TEMPLATE 301
//!!! dont use the ids from 302 to 350, we need them as dynamic ids
#define ID_RESET_DEFAULT_TEMPLATE_END (ID_RESET_DEFAULT_TEMPLATE+49)
#define LB_RIGHT_TYP 11
#define LB_RIGHT 10
#define LB_LEFT_TYP 2
#define BTN_EDIT 105
#define BTN_FILES 3
#define BTN_ADDRESSTEMPLATE 4
#define LB_LEFT 1
#define BTN_HELP 100
#ifdef BTN_OK
#undef BTN_OK
#endif
#define BTN_OK 100
#ifdef BTN_CANCEL
#undef BTN_CANCEL
#endif
#define BTN_CANCEL 101
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* 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 .
*/
#include <sfx2/sfx.hrc>
#include "doc.hrc"
#include "docvor.hrc"
#include "helpid.hrc"
// DLG_ORGANIZE ----------------------------------------------------------
#define MASKCOLOR MaskColor = Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; }
ModalDialog DLG_ORGANIZE
{
HelpId = CMD_SID_ORGANIZER ;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 271 , 162 ) ;
Text [ en-US ] = "Template Management" ;
Moveable = TRUE ;
HelpButton BTN_HELP
{
Pos = MAP_APPFONT ( 205 , 43 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
TabStop = TRUE ;
};
OKButton BTN_OK
{
Pos = MAP_APPFONT ( 205 , 6 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
Text [ en-US ] = "Close" ;
TabStop = TRUE ;
DefButton = TRUE ;
};
PushButton BTN_FILES
{
HelpID = "sfx2:PushButton:DLG_ORGANIZE:BTN_FILES";
Pos = MAP_APPFONT ( 205 , 143 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
Text [ en-US ] = "~File..." ;
TabStop = TRUE ;
};
PushButton BTN_ADDRESSTEMPLATE
{
HelpID = "sfx2:PushButton:DLG_ORGANIZE:BTN_ADDRESSTEMPLATE";
Pos = MAP_APPFONT ( 205 , 124 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
Text [ en-US ] = "~Address Book..." ;
};
ListBox LB_LEFT_TYP
{
HelpID = "sfx2:ListBox:DLG_ORGANIZE:LB_LEFT_TYP";
Border = TRUE ;
Pos = MAP_APPFONT ( 3 , 144 ) ;
Size = MAP_APPFONT ( 94 , 55 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
CurPos = 0 ;
StringList [ en-US ] =
{
< "Templates" ; Default ; > ;
< "Documents" ; Default ; > ;
};
};
ListBox LB_RIGHT_TYP
{
HelpID = "sfx2:ListBox:DLG_ORGANIZE:LB_RIGHT_TYP";
Border = TRUE ;
Pos = MAP_APPFONT ( 103 , 144 ) ;
Size = MAP_APPFONT ( 94 , 55 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
CurPos = 1 ;
StringList [ en-US ] =
{
< "Templates" ; Default ; > ;
< "Documents" ; Default ; > ;
};
};
Control LB_LEFT
{
HelpId = HID_CTL_ORGANIZER_LEFT ;
Border = TRUE ;
Pos = MAP_APPFONT ( 3 , 6 ) ;
Size = MAP_APPFONT ( 94 , 132 ) ;
TabStop = TRUE ;
ClipChildren = TRUE ;
};
Control LB_RIGHT
{
HelpId = HID_CTL_ORGANIZER_RIGHT ;
Border = TRUE ;
Pos = MAP_APPFONT ( 103 , 6 ) ;
Size = MAP_APPFONT ( 94 , 132 ) ;
TabStop = TRUE ;
ClipChildren = TRUE ;
};
Accelerator ACC_EDIT
{
ItemList =
{
AcceleratorItem
{
Identifier = ID_NEW ;
Key = KeyCode
{
Code = KEY_INSERT ;
};
};
AcceleratorItem
{
Identifier = ID_DELETE ;
Key = KeyCode
{
Code = KEY_DELETE ;
};
};
};
};
MenuButton BTN_EDIT
{
HelpID = "sfx2:MenuButton:DLG_ORGANIZE:BTN_EDIT";
Pos = MAP_APPFONT ( 205 , 23 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
Text [ en-US ] = "Commands" ;
TabStop = TRUE ;
ButtonMenu = Menu
{
ItemList =
{
MenuItem
{
Identifier = ID_NEW ;
HelpId = HID_ORGANIZE_NEW ;
Text [ en-US ] = "~New" ;
AccelKey = KeyCode
{
Code = KEY_INSERT ;
};
};
MenuItem
{
Identifier = ID_DELETE ;
HelpId = HID_ORGANIZE_DELETE ;
Text [ en-US ] = "~Delete" ;
AccelKey = KeyCode
{
Code = KEY_DELETE ;
};
};
MenuItem
{
Identifier = ID_EDIT ;
HelpId = HID_ORGANIZE_EDIT ;
Text [ en-US ] = "~Edit" ;
};
MenuItem
{
Separator = TRUE ;
};
MenuItem
{
Identifier = ID_COPY_FROM ;
HelpId = HID_ORGANIZE_COPY_FROM ;
Text [ en-US ] = "Import Template..." ;
};
MenuItem
{
Identifier = ID_COPY_TO ;
HelpId = HID_ORGANIZE_COPY_TO ;
Text [ en-US ] = "Export Template..." ;
};
MenuItem
{
Separator = TRUE ;
};
MenuItem
{
Identifier = ID_PRINT ;
HelpId = HID_ORGANIZE_PRINT ;
Text [ en-US ] = "~Print" ;
};
MenuItem
{
Identifier = ID_PRINTER_SETUP ;
HelpId = HID_ORGANIZE_PRINTER_SETUP ;
Text [ en-US ] = "Printer Settings..." ;
};
MenuItem
{
Separator = TRUE ;
};
MenuItem
{
Identifier = ID_RESCAN ;
HelpId = HID_ORGANIZE_RESCAN ;
Text [ en-US ] = "Update" ;
};
MenuItem
{
Separator = TRUE ;
};
MenuItem
{
Identifier = ID_DEFAULT_TEMPLATE ;
HelpId = HID_ORGANIZE_STDTEMPLATE_ADD ;
Text [ en-US ] = "Set As Default Template" ;
};
MenuItem
{
Identifier = ID_RESET_DEFAULT_TEMPLATE ;
HelpId = HID_ORGANIZE_STDTEMPLATE_DEL ;
Text [ en-US ] = "Reset Default Template" ;
};
};
};
};
Image IMG_OPENED_FOLDER
{
MASKCOLOR ;
ImageBitmap = Bitmap { File = "folderop.bmp" ; } ;
};
Image IMG_CLOSED_FOLDER
{
MASKCOLOR ;
ImageBitmap = Bitmap { File = "foldercl.bmp" ; } ;
};
Image IMG_OPENED_DOC
{
MASKCOLOR ;
ImageBitmap = Bitmap { File = "doccl.bmp" ; } ;
};
Image IMG_CLOSED_DOC
{
MASKCOLOR ;
ImageBitmap = Bitmap { File = "doccl.bmp" ; } ;
};
};
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
#define HID_DOCINFOUSER "SFX2_HID_DOCINFOUSER" #define HID_DOCINFOUSER "SFX2_HID_DOCINFOUSER"
#define HID_DOCINFORELOAD "SFX2_HID_DOCINFORELOAD" #define HID_DOCINFORELOAD "SFX2_HID_DOCINFORELOAD"
#define HID_BROWSERCONTROL "SFX2_HID_BROWSERCONTROL" #define HID_BROWSERCONTROL "SFX2_HID_BROWSERCONTROL"
#define HID_CTL_ORGANIZER_LEFT "SFX2_HID_CTL_ORGANIZER_LEFT"
#define HID_CTL_ORGANIZER_RIGHT "SFX2_HID_CTL_ORGANIZER_RIGHT"
#define HID_PRINT_OPTIONS "SFX2_HID_PRINT_OPTIONS" #define HID_PRINT_OPTIONS "SFX2_HID_PRINT_OPTIONS"
#define HID_PREVIEW_FRAME "SFX2_HID_PREVIEW_FRAME" #define HID_PREVIEW_FRAME "SFX2_HID_PREVIEW_FRAME"
#define HID_DOCINFO_FRAME "SFX2_HID_DOCINFO_FRAME" #define HID_DOCINFO_FRAME "SFX2_HID_DOCINFO_FRAME"
...@@ -57,14 +55,6 @@ ...@@ -57,14 +55,6 @@
#define HID_EXPLORER_SRCH_LATEST_COUNT "SFX2_HID_EXPLORER_SRCH_LATEST_COUNT" #define HID_EXPLORER_SRCH_LATEST_COUNT "SFX2_HID_EXPLORER_SRCH_LATEST_COUNT"
#define HID_CONFIG_EVENT_OFFICE_BASED "SFX2_HID_CONFIG_EVENT_OFFICE_BASED" #define HID_CONFIG_EVENT_OFFICE_BASED "SFX2_HID_CONFIG_EVENT_OFFICE_BASED"
#define HID_CONFIG_EVENT_DOCUMENT_BASED "SFX2_HID_CONFIG_EVENT_DOCUMENT_BASED" #define HID_CONFIG_EVENT_DOCUMENT_BASED "SFX2_HID_CONFIG_EVENT_DOCUMENT_BASED"
#define HID_ORGANIZE_NEW "SFX2_HID_ORGANIZE_NEW"
#define HID_ORGANIZE_DELETE "SFX2_HID_ORGANIZE_DELETE"
#define HID_ORGANIZE_EDIT "SFX2_HID_ORGANIZE_EDIT"
#define HID_ORGANIZE_COPY_FROM "SFX2_HID_ORGANIZE_COPY_FROM"
#define HID_ORGANIZE_COPY_TO "SFX2_HID_ORGANIZE_COPY_TO"
#define HID_ORGANIZE_PRINT "SFX2_HID_ORGANIZE_PRINT"
#define HID_ORGANIZE_PRINTER_SETUP "SFX2_HID_ORGANIZE_PRINTER_SETUP"
#define HID_ORGANIZE_RESCAN "SFX2_HID_ORGANIZE_RESCAN"
#define HID_STYLIST_NEW "SFX2_HID_STYLIST_NEW" #define HID_STYLIST_NEW "SFX2_HID_STYLIST_NEW"
#define HID_STYLIST_EDIT "SFX2_HID_STYLIST_EDIT" #define HID_STYLIST_EDIT "SFX2_HID_STYLIST_EDIT"
#define HID_STYLIST_DELETE "SFX2_HID_STYLIST_DELETE" #define HID_STYLIST_DELETE "SFX2_HID_STYLIST_DELETE"
...@@ -126,8 +116,6 @@ ...@@ -126,8 +116,6 @@
#define HID_HELP_TABPAGE_SEARCH "SFX2_HID_HELP_TABPAGE_SEARCH" #define HID_HELP_TABPAGE_SEARCH "SFX2_HID_HELP_TABPAGE_SEARCH"
#define HID_HELP_TABPAGE_BOOKMARKS "SFX2_HID_HELP_TABPAGE_BOOKMARKS" #define HID_HELP_TABPAGE_BOOKMARKS "SFX2_HID_HELP_TABPAGE_BOOKMARKS"
#define HID_TBXCONTROL_FILENEW "SFX2_HID_TBXCONTROL_FILENEW" #define HID_TBXCONTROL_FILENEW "SFX2_HID_TBXCONTROL_FILENEW"
#define HID_ORGANIZE_STDTEMPLATE_ADD "SFX2_HID_ORGANIZE_STDTEMPLATE_ADD"
#define HID_ORGANIZE_STDTEMPLATE_DEL "SFX2_HID_ORGANIZE_STDTEMPLATE_DEL"
#define HID_HELP_TOOLBOXITEM_SEARCHDIALOG "SFX2_HID_HELP_TOOLBOXITEM_SEARCHDIALOG" #define HID_HELP_TOOLBOXITEM_SEARCHDIALOG "SFX2_HID_HELP_TOOLBOXITEM_SEARCHDIALOG"
#define HID_HELP_BOOKMARKS_OPEN "SFX2_HID_HELP_BOOKMARKS_OPEN" #define HID_HELP_BOOKMARKS_OPEN "SFX2_HID_HELP_BOOKMARKS_OPEN"
#define HID_HELP_BOOKMARKS_RENAME "SFX2_HID_HELP_BOOKMARKS_RENAME" #define HID_HELP_BOOKMARKS_RENAME "SFX2_HID_HELP_BOOKMARKS_RENAME"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment