office-gobmx/sw/sdi/_viewsh.sdi
Samuel Mehrbrodt b4558b5081 fdo#73151 Make better use of the sidebar
The general idea is to encourage use of the sidebar instead of floating windows (for Navigator, Styles&Formatting and Gallery)

Changes:
* Show the sidebar by default in Writer & Impress
* Remove the Gallery floating window (Gallery now always opens in the sidebar)
* Remove all Gallery, Navigator and Styles&Formatting links from the default toolbar in Writer
  (since they have an icon in the sidebar and the sidebar is shown by default now)
* When selecting "More" from the Styles dropdown, the Stylelist opens in the sidebar instead of the floating window

This has all been discussed extensively here: https://bugs.freedesktop.org/show_bug.cgi?id=73151

Change-Id: I3a0461d1472711da7121801000af294b432fccb1
Reviewed-on: https://gerrit.libreoffice.org/11077
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-24 06:26:17 -05:00

818 lines
19 KiB
Text

/*
* 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 .
*/
interface BaseTextEditView
[
Automation = FALSE;
]
{
FN_REFRESH_VIEW // status(final|play)
[
ExecMethod = Execute ;
]
FN_PAGEUP // status(final|play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
FN_PAGEUP_SEL // status()
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_UNDO // status(final|play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_FORMATPAINTBRUSH
[
ExecMethod = ExecFormatPaintbrush ;
StateMethod = StateFormatPaintbrush ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_CLEARHISTORY // status(final|play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_CREATE_SW_DRAWVIEW
[
ExecMethod = Execute;
]
FN_PAGEDOWN // status(final|play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
FN_PAGEDOWN_SEL // status()
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
FN_NAVIGATION_PI_GOTO_PAGE // status(final|play)
[
ExecMethod = Execute ;
StateMethod = NoState ;
]
FN_SCROLL_NAVIGATION
[
ExecMethod = NoExec ;
StateMethod = NoState ;
]
FN_NAVIGATION_POPUP
[
ExecMethod = Execute;
]
FN_SCROLL_PREV
[
ExecMethod = Execute;
]
FN_SCROLL_NEXT
[
ExecMethod = Execute;
]
FN_SET_PAGE_STYLE // status(final|play)
[
ExecMethod = ExecColl ;
]
SID_OBJECT_SELECT
[
ExecMethod = ExecDraw ;
StateMethod = GetDrawState ;
]
SID_BROWSER_MODE
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
]
FN_PRINT_LAYOUT
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
]
FN_REDLINE_PROTECT
[
ExecMethod = Execute;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
FN_REDLINE_ON // status()
[
ExecMethod = Execute;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
FN_REDLINE_SHOW // status()
[
ExecMethod = Execute;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
FN_REDLINE_ACCEPT // status(play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
FN_REDLINE_ACCEPT_DIRECT
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
FN_REDLINE_REJECT_DIRECT
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
FN_REDLINE_NEXT_CHANGE
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
FN_REDLINE_PREV_CHANGE
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
SID_DOCUMENT_COMPARE // status(play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
SID_DOCUMENT_MERGE // status(play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
FN_ESCAPE // status(final|play|rec)
[
ExecMethod = Execute ;
]
FN_FAX // status(final|play)
[
ExecMethod = ExecutePrint ;
]
SID_PRINTDOC // status(final|play)
[
ExecMethod = ExecutePrint ;
StateMethod = GetState ;
]
SID_PRINTDOCDIRECT // status(final|play)
[
ExecMethod = ExecutePrint ;
StateMethod = GetState ;
]
SID_ATTR_LRSPACE
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
GroupId = GID_EDIT ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_ULSPACE
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_LONG_LRSPACE // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_LONG_ULSPACE // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_PARA_LRSPACE // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_PARA_LRSPACE_VERTICAL // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RULER_BORDERS // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RULER_BORDERS_VERTICAL // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RULER_BORDER_DISTANCE // status()
[
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RULER_PAGE_POS // status()
[
ExecMethod = NoExec ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RULER_TEXT_RIGHT_TO_LEFT
[
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RULER_LR_MIN_MAX // status()
[
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RULER_PROTECT // status()
[
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RULER_ROWS // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RULER_ROWS_VERTICAL // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
FN_EDIT_LINK_DLG // status(final|play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
FN_SPELL_GRAMMAR_DIALOG
[
ExecMethod = Execute ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_RECHECK_DOCUMENT
[
ExecMethod = Execute ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
FN_LINE_NUMBERING_DLG // status()
[
ExecMethod = Execute;
]
FN_UPDATE_TOX // status()
[
ExecMethod = Execute ;
StateMethod = GetState ;
MenuConfig , AccelConfig , ToolBoxConfig ;
]
FN_UPDATE_CUR_TOX // status()
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
FN_EDIT_CURRENT_TOX // status()
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_TWAIN_SELECT
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_TWAIN_TRANSFER
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
//From here the statusbar
FN_STAT_PAGE // status()
[
ExecMethod = ExecuteStatusLine ;
StateMethod = StateStatusLine ;
]
FN_STAT_WORDCOUNT // status()
[
ExecMethod = ExecuteStatusLine ;
StateMethod = StateStatusLine ;
]
FN_STAT_BOOKMARK // status()
[
ExecMethod = ExecuteStatusLine ;
]
FN_STAT_TEMPLATE // status(final|play)
[
ExecMethod = ExecuteStatusLine ;
StateMethod = StateStatusLine ;
]
FN_STAT_SELMODE // status(final|play)
[
//Current Selectionmode: 0 == Normal, 2 == Add, 1 == Enhance
ExecMethod = ExecuteStatusLine ;
StateMethod = StateStatusLine ;
]
FN_SET_ADD_MODE // status()
[
ExecMethod = ExecuteStatusLine ;
StateMethod = NoState ;
]
FN_SET_EXT_MODE // status()
[
ExecMethod = ExecuteStatusLine ;
StateMethod = NoState ;
]
SID_ATTR_ZOOM // status(final|play)
[
ExecMethod = ExecuteStatusLine ;
StateMethod = StateStatusLine ;
]
SID_ATTR_VIEWLAYOUT // status()
[
ExecMethod = ExecuteStatusLine ;
StateMethod = StateStatusLine ;
]
SID_ATTR_ZOOMSLIDER // status()
[
ExecMethod = ExecuteStatusLine ;
StateMethod = StateStatusLine ;
]
SID_ATTR_INSERT // status(final|play|rec)
[
ExecMethod = ExecuteStatusLine ;
StateMethod = StateStatusLine ;
]
SID_ATTR_SIZE // status()
[
ExecMethod = ExecuteStatusLine ;
StateMethod = StateStatusLine ;
]
SID_ATTR_POSITION // status()
[
StateMethod = StateStatusLine ;
]
SID_TABLE_CELL // status()
[
StateMethod = StateStatusLine ;
]
//End of the statusbar
SID_ATTR_BORDER_SHADOW // status()
[
ExecMethod = Execute ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
// Properties Page Format
SID_ATTR_PAGE // status()
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_ATTR_PAGE_SIZE // status(final|play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_ATTR_PAGE_MAXSIZE // status()
[
Export = FALSE ;
ExecMethod = Execute ;
]
SID_ATTR_PAGE_PAPERBIN // status(final|play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_ATTR_PARA_ULSPACE
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
]
SID_ATTR_PAGE_COLUMN
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
]
SID_ATTR_PAGE_ULSPACE
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_PAGE_LRSPACE
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_THESAURUS // status(final|play)
[
ExecMethod = ExecLingu ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_HANGUL_HANJA_CONVERSION // status(final|play)
[
ExecMethod = ExecLingu ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_CHINESE_CONVERSION
[
ExecMethod = ExecLingu ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
/*
search and replace
*/
SID_SEARCH_ITEM // status()
[
ExecMethod = ExecSearch ;
StateMethod = StateSearch ;
Export = FALSE;
]
FN_REPEAT_SEARCH // status(final|play)
[
ExecMethod = ExecSearch ;
]
FID_SEARCH_NOW // status()
[
ExecMethod = ExecSearch ;
]
SID_SEARCH_OPTIONS // status()
[
StateMethod = StateSearch ;
]
FID_SEARCH_SEARCHSET // status()
[
ExecMethod = ExecSearch ;
]
FID_SEARCH_REPLACESET // status()
[
ExecMethod = ExecSearch ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_TABSTOP // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_TABSTOP_VERTICAL // status()
[
ExecMethod = ExecTabWin ;
StateMethod = StateTabWin ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
// from here Export = FALSE;
FID_SEARCH_ON // status()
[
ExecMethod = ExecSearch ;
Export = FALSE;
]
FID_SEARCH_OFF // status()
[
ExecMethod = ExecSearch ;
Export = FALSE;
]
FN_INSERT_CTRL
[
ExecMethod = Execute ;
StateMethod = GetState ;
Export = FALSE;
]
SID_ATTR_DEFTABSTOP
[
ExecMethod = Execute ;
StateMethod = GetState ;
Export = FALSE;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_LANGUAGE
[
ExecMethod = Execute ;
StateMethod = GetState ;
Export = FALSE;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_CHAR_CJK_LANGUAGE
[
ExecMethod = Execute ;
StateMethod = GetState ;
Export = FALSE;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_ATTR_CHAR_CTL_LANGUAGE
[
ExecMethod = Execute ;
StateMethod = GetState ;
Export = FALSE;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_JUMPTOMARK
[
ExecMethod = Execute ;
StateMethod = NoState ;
FastCall , Cachable ;
]
FN_SYNC_LABELS // status(play)
[
ExecMethod = Execute ;
]
FN_MAILMERGE_CHILDWINDOW
[
ExecMethod = Execute ;
StateMethod = GetState;
]
FN_MAILMERGE_SENDMAIL_CHILDWINDOW
[
ExecMethod = Execute ;
StateMethod = GetState;
]
SID_ATTR_BRUSH // status()
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_GALLERY
[
ExecMethod = Execute ;
]
SID_AVMEDIA_PLAYER
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_VIEW_DATA_SOURCE_BROWSER // status()
[
ExecMethod = Execute ;
StateMethod = GetState;
]
SID_READONLY_MODE // ole : no, status : no
[
StateMethod = GetState ;
]
SID_IMAGE_ORIENTATION
[
StateMethod = GetState ;
]
FN_INSERT_FIELD_DATA_ONLY // status(final|play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
FN_QRY_MERGE // status()
[
ExecMethod = Execute ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
SID_ALIGN_ANY_LEFT
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_ALIGN_ANY_HCENTER
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_ALIGN_ANY_RIGHT
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_ALIGN_ANY_JUSTIFIED
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_ALIGN_ANY_TOP
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_ALIGN_ANY_VCENTER
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_ALIGN_ANY_BOTTOM
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_RESTORE_EDITING_VIEW
[
ExecMethod = Execute ;
StateMethod = GetState ;
]
SID_INSERT_GRAPHIC // status(final|play)
[
ExecMethod = Execute ;
StateMethod = GetState ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
SID_AUTOSPELL_CHECK
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
]
//Extra/Options/View
//Will be summerized to Property ViewSettings
FN_VIEW_HIDDEN_PARA
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Export = FALSE;
]
FN_VIEW_NOTES
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Export = FALSE;
]
// Everything from here can be removed (Export = FALSE;), if the previous works
FN_RULER // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Export = FALSE;
Cachable;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
FN_VIEW_BOUNDS // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Export = FALSE;
Cachable;
]
FN_VIEW_GRAPHIC // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Export = FALSE ;
]
FN_VIEW_FIELDS // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Export = FALSE;
]
FN_VIEW_FIELDNAME // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Cachable ;
Export = FALSE;
]
FN_VIEW_MARKS // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Cachable ;
Export = FALSE;
]
FN_VIEW_META_CHARS // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Cachable ;
Export = FALSE;
]
FN_VIEW_TABLEGRID // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
]
SID_GRID_VISIBLE
[
ExecMethod = ExecViewOptions;
StateMethod = StateViewOptions ;
]
SID_GRID_USE
[
ExecMethod = ExecViewOptions;
StateMethod = StateViewOptions ;
]
SID_HELPLINES_MOVE
[
ExecMethod = ExecViewOptions;
StateMethod = StateViewOptions ;
]
FN_VLINEAL // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Export = FALSE;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
FN_HSCROLLBAR // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Export = FALSE;
]
FN_VSCROLLBAR // status()
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
Export = FALSE;
]
FN_SHADOWCURSOR // status(final|play)
[
ExecMethod = ExecViewOptions ;
StateMethod = StateViewOptions ;
DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
]
}
interface GlobalContents
[ uuid = "1FD80520-F517-11d0-AC9B-008029E867C6"; ]
{
UINT16 Type FN_COLL_TYPE
(
UINT16 Position FN_COLL_TYPE
)
[
]
// Areaname, Index-Titel or Empty String
String Title FN_COLL_TITLE
(
UINT16 Position FN_COLL_TITLE
)
[
]
// Without a FileName an area of the text is inserted at this location.
BOOL InsertDocument FN_COLL_ADD
(
UINT16 Position FN_COLL_ADD,
UINT16 FileName FN_PARAM_1
)
[
]
}