diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-26 12:25:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-26 12:36:37 +0100 |
commit | 7800193a54f3f43210a7a5afd6c3ff419dd9e2b3 (patch) | |
tree | 6dbbad3af85f9d056248f013997ae99e0d9a5423 /sw/source/ui/index | |
parent | 4a4631b86cdc1665484b14311ec0e83494aac8bb (diff) |
convert token widget to .ui
which means that the widgets inside the token window in index/table->entries
are no longer truncated at the bottom
Change-Id: I4852ce217b6c8f6322391db30501668d035b7d92
Diffstat (limited to 'sw/source/ui/index')
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 110 | ||||
-rw-r--r-- | sw/source/ui/index/cnttab.hrc | 33 | ||||
-rw-r--r-- | sw/source/ui/index/cnttab.src | 615 |
3 files changed, 134 insertions, 624 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index b9a021574e79..c3f6987b46c9 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -2647,43 +2647,60 @@ String SwTOXEntryTabPage::GetLevelHelp(sal_uInt16 nLevel) const return sRet; } -SwTokenWindow::SwTokenWindow(Window* pParent, const ResId& rResId) : - Window( pParent, rResId ), - aLeftScrollWin(this, ResId(WIN_LEFT_SCROLL, *rResId.GetResMgr() )), - aCtrlParentWin(this, ResId(WIN_CTRL_PARENT, *rResId.GetResMgr() )), - aRightScrollWin(this, ResId(WIN_RIGHT_SCROLL, *rResId.GetResMgr() )), - pForm(0), - nLevel(0), - bValid(sal_False), - sCharStyle(ResId(STR_CHARSTYLE, *rResId.GetResMgr())), - pActiveCtrl(0), - m_pParent(NULL) -{ - SetStyle(GetStyle()|WB_TABSTOP|WB_DIALOGCONTROL); - SetHelpId(HID_TOKEN_WINDOW); - for(sal_uInt16 i = 0; i < TOKEN_END; i++) +SwTokenWindow::SwTokenWindow(Window* pParent) + : VclHBox(pParent) + , pForm(0) + , nLevel(0) + , bValid(false) + , sCharStyle(SW_RESSTR(STR_CHARSTYLE)) + , pActiveCtrl(0) + , m_pParent(NULL) +{ + m_pUIBuilder = new VclBuilder(this, getUIRootDir(), + "modules/swriter/ui/tokenwidget.ui", "TokenWidget"); + get(m_pLeftScrollWin, "left"); + get(m_pCtrlParentWin, "ctrl"); + m_pCtrlParentWin->set_height_request(Edit::GetMinimumEditSize().Height()); + get(m_pRightScrollWin, "right"); + + for (sal_uInt16 i = 0; i < TOKEN_END; ++i) { sal_uInt16 nTextId = STR_BUTTON_TEXT_START + i; if( STR_TOKEN_ENTRY_TEXT == nTextId ) nTextId = STR_TOKEN_ENTRY; - aButtonTexts[i] = String(ResId(nTextId, *rResId.GetResMgr())); + aButtonTexts[i] = SW_RESSTR(nTextId); sal_uInt16 nHelpId = STR_BUTTON_HELP_TEXT_START + i; if(STR_TOKEN_HELP_ENTRY_TEXT == nHelpId) nHelpId = STR_TOKEN_HELP_ENTRY; - aButtonHelpTexts[i] = String(ResId(nHelpId, *rResId.GetResMgr())); + aButtonHelpTexts[i] = SW_RESSTR(nHelpId); } - FreeResource(); - Link aLink(LINK(this, SwTokenWindow, ScrollHdl)); - aLeftScrollWin.SetClickHdl(aLink); - aRightScrollWin.SetClickHdl(aLink); + m_pLeftScrollWin->SetClickHdl(aLink); + m_pRightScrollWin->SetClickHdl(aLink); } extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwTokenWindow(Window *pParent, VclBuilder::stringmap &) { - return new SwTokenWindow(pParent, SW_RES(WIN_TOKEN)); + return new SwTokenWindow(pParent); +} + +void SwTokenWindow::setAllocation(const Size &rAllocation) +{ + VclHBox::setAllocation(rAllocation); + + if (aControlList.empty()) + return; + + Size aControlSize(m_pCtrlParentWin->GetSizePixel()); + for (ctrl_iterator it = aControlList.begin(); it != aControlList.end(); ++it) + { + Control* pControl = (*it); + Size aSize(pControl->GetSizePixel()); + aSize.Height() = aControlSize.Height(); + pControl->SetSizePixel(aSize); + } } SwTokenWindow::~SwTokenWindow() @@ -2803,7 +2820,7 @@ void SwTokenWindow::SetActiveControl(Control* pSet) Control* SwTokenWindow::InsertItem(const String& rText, const SwFormToken& rToken) { Control* pRet = 0; - Size aControlSize(GetOutputSizePixel()); + Size aControlSize(m_pCtrlParentWin->GetSizePixel()); Point aControlPos; if(!aControlList.empty()) @@ -2817,7 +2834,7 @@ Control* SwTokenWindow::InsertItem(const String& rText, const SwFormToken& rT if(TOKEN_TEXT == rToken.eTokenType) { - SwTOXEdit* pEdit = new SwTOXEdit(&aCtrlParentWin, this, rToken); + SwTOXEdit* pEdit = new SwTOXEdit(m_pCtrlParentWin, this, rToken); pEdit->SetPosPixel(aControlPos); aControlList.push_back(pEdit); @@ -2834,7 +2851,7 @@ Control* SwTokenWindow::InsertItem(const String& rText, const SwFormToken& rT } else { - SwTOXButton* pButton = new SwTOXButton(&aCtrlParentWin, this, rToken); + SwTOXButton* pButton = new SwTOXButton(m_pCtrlParentWin, this, rToken); pButton->SetPosPixel(aControlPos); aControlList.push_back(pButton); @@ -2850,9 +2867,9 @@ Control* SwTokenWindow::InsertItem(const String& rText, const SwFormToken& rT else { //use the first two chars as symbol - String sTmp(SwAuthorityFieldType::GetAuthFieldName( + OUString sTmp(SwAuthorityFieldType::GetAuthFieldName( (ToxAuthorityField)rToken.nAuthorityField)); - pButton->SetText(sTmp.Copy(0, 2)); + pButton->SetText(sTmp.copy(0, 2)); } pButton->Show(); @@ -3003,7 +3020,7 @@ void SwTokenWindow::InsertAtSelection( ((SwTOXEdit*)pActiveCtrl)->AdjustSize(); SwFormToken aTmpToken(TOKEN_TEXT); - SwTOXEdit* pEdit = new SwTOXEdit(&aCtrlParentWin, this, aTmpToken); + SwTOXEdit* pEdit = new SwTOXEdit(m_pCtrlParentWin, this, aTmpToken); iterActive = aControlList.insert(iterActive, pEdit); @@ -3023,7 +3040,7 @@ void SwTokenWindow::InsertAtSelection( } //now the new button - SwTOXButton* pButton = new SwTOXButton(&aCtrlParentWin, this, aToInsertToken); + SwTOXButton* pButton = new SwTOXButton(m_pCtrlParentWin, this, aToInsertToken); aControlList.insert(iterActive, pButton); @@ -3134,7 +3151,7 @@ void SwTokenWindow::AdjustScrolling() Control* pFirstCtrl = *(aControlList.begin()); Control* pLastCtrl = *(aControlList.rbegin()); - long nSpace = aCtrlParentWin.GetSizePixel().Width(); + long nSpace = m_pCtrlParentWin->GetSizePixel().Width(); long nWidth = pLastCtrl->GetPosPixel().X() - pFirstCtrl->GetPosPixel().X() + pLastCtrl->GetSizePixel().Width(); bool bEnable = nWidth > nSpace; @@ -3154,9 +3171,9 @@ void SwTokenWindow::AdjustScrolling() if(nMove) MoveControls(nMove); - aLeftScrollWin.Enable(pFirstCtrl->GetPosPixel().X() < 0); + m_pLeftScrollWin->Enable(pFirstCtrl->GetPosPixel().X() < 0); - aRightScrollWin.Enable((pLastCtrl->GetPosPixel().X() + pLastCtrl->GetSizePixel().Width()) > nSpace); + m_pRightScrollWin->Enable((pLastCtrl->GetPosPixel().X() + pLastCtrl->GetSizePixel().Width()) > nSpace); } else { @@ -3169,8 +3186,8 @@ void SwTokenWindow::AdjustScrolling() MoveControls(-nFirstPos); } - aRightScrollWin.Enable(false); - aLeftScrollWin.Enable(false); + m_pRightScrollWin->Enable(false); + m_pLeftScrollWin->Enable(false); } } } @@ -3180,7 +3197,7 @@ IMPL_LINK(SwTokenWindow, ScrollHdl, ImageButton*, pBtn ) if(aControlList.empty()) return 0; - const long nSpace = aCtrlParentWin.GetSizePixel().Width(); + const long nSpace = m_pCtrlParentWin->GetSizePixel().Width(); #if OSL_DEBUG_LEVEL > 1 //find all start/end positions and print it String sMessage(OUString("Space: ")); @@ -3203,7 +3220,7 @@ IMPL_LINK(SwTokenWindow, ScrollHdl, ImageButton*, pBtn ) #endif long nMove = 0; - if(pBtn == &aLeftScrollWin) + if(pBtn == m_pLeftScrollWin) { //find the first completely visible control (left edge visible) for (ctrl_iterator it = aControlList.begin(); it != aControlList.end(); ++it) @@ -3269,10 +3286,10 @@ IMPL_LINK(SwTokenWindow, ScrollHdl, ImageButton*, pBtn ) Control *pCtrl = 0; pCtrl = *(aControlList.begin()); - aLeftScrollWin.Enable(pCtrl->GetPosPixel().X() < 0); + m_pLeftScrollWin->Enable(pCtrl->GetPosPixel().X() < 0); pCtrl = *(aControlList.rbegin()); - aRightScrollWin.Enable((pCtrl->GetPosPixel().X() + pCtrl->GetSizePixel().Width()) > nSpace); + m_pRightScrollWin->Enable((pCtrl->GetPosPixel().X() + pCtrl->GetSizePixel().Width()) > nSpace); } return 0; @@ -3368,23 +3385,6 @@ sal_Bool SwTokenWindow::CreateQuickHelp(Control* pCtrl, return bRet; } -void SwTokenWindow::Resize() -{ - Size aCompleteSize(GetOutputSizePixel()); - - Point aRightPos(aRightScrollWin.GetPosPixel()); - Size aRightSize(aRightScrollWin.GetSizePixel()); - - Size aMiddleSize(aCtrlParentWin.GetSizePixel()); - - long nMove = aCompleteSize.Width() - aRightSize.Width() - aRightPos.X(); - - aRightPos.X() += nMove; - aRightScrollWin.SetPosPixel(aRightPos); - aMiddleSize.Width() += nMove; - aCtrlParentWin.SetSizePixel(aMiddleSize); -} - IMPL_LINK(SwTokenWindow, EditResize, Edit*, pEdit) { ((SwTOXEdit*)pEdit)->AdjustSize(); diff --git a/sw/source/ui/index/cnttab.hrc b/sw/source/ui/index/cnttab.hrc index ae77c37bee3c..330576591b0d 100644 --- a/sw/source/ui/index/cnttab.hrc +++ b/sw/source/ui/index/cnttab.hrc @@ -20,7 +20,6 @@ #define FL_TITLE 14 #define ED_TITLE 15 #define BT_HELP 16 -#define ST_AUTHTYPE 17 #define LB_ENTRY 20 #define ED_ENTRY 22 @@ -92,37 +91,7 @@ #define CLB_FROMOBJ 62 #define FL_FROMOBJ 63 #define RES_SRCTYPES 64 -#define WIN_LEFT_SCROLL 65 -#define WIN_CTRL_PARENT 66 -#define WIN_RIGHT_SCROLL 67 -#define PB_ALL_LEVELS 68 #define FT_AREA 69 -#define STR_BUTTON_TEXT_START 70 -#define STR_TOKEN_ENTRY_NO (STR_BUTTON_TEXT_START) -#define STR_TOKEN_ENTRY_TEXT (STR_BUTTON_TEXT_START + 1) -#define STR_TOKEN_ENTRY (STR_BUTTON_TEXT_START + 2) -#define STR_TOKEN_TAB_STOP (STR_BUTTON_TEXT_START + 3) -#define STR_TOKEN_TEXT (STR_BUTTON_TEXT_START + 4) -#define STR_TOKEN_PAGE_NUMS (STR_BUTTON_TEXT_START + 5) -#define STR_TOKEN_CHAPTER_INFO (STR_BUTTON_TEXT_START + 6) -#define STR_TOKEN_LINK_START (STR_BUTTON_TEXT_START + 7) -#define STR_TOKEN_LINK_END (STR_BUTTON_TEXT_START + 8) -#define STR_TOKEN_AUTHORITY (STR_BUTTON_TEXT_START + 9) - -#define STR_BUTTON_HELP_TEXT_START (STR_TOKEN_AUTHORITY + 1) -#define STR_TOKEN_HELP_ENTRY_NO (STR_BUTTON_HELP_TEXT_START) -#define STR_TOKEN_HELP_ENTRY_TEXT (STR_BUTTON_HELP_TEXT_START + 1) -#define STR_TOKEN_HELP_ENTRY (STR_BUTTON_HELP_TEXT_START + 2) -#define STR_TOKEN_HELP_TAB_STOP (STR_BUTTON_HELP_TEXT_START + 3) -#define STR_TOKEN_HELP_TEXT (STR_BUTTON_HELP_TEXT_START + 4) -#define STR_TOKEN_HELP_PAGE_NUMS (STR_BUTTON_HELP_TEXT_START + 5) -#define STR_TOKEN_HELP_CHAPTER_INFO (STR_BUTTON_HELP_TEXT_START + 6) -#define STR_TOKEN_HELP_LINK_START (STR_BUTTON_HELP_TEXT_START + 7) -#define STR_TOKEN_HELP_LINK_END (STR_BUTTON_HELP_TEXT_START + 8) -#define STR_TOKEN_HELP_AUTHORITY (STR_BUTTON_HELP_TEXT_START + 9) - -#define STR_CHARSTYLE (STR_TOKEN_HELP_AUTHORITY + 1) - #define TLB_STYLES 100 #define FL_STYLES 101 #define PB_OK 102 @@ -191,8 +160,6 @@ //TabDialog #define WIN_EXAMPLE 1 -#define CB_SHOWEXAMPLE 14 - //ButtonMenu #define MN_AUTOMARK_OPEN 1 #define MN_AUTOMARK_NEW 2 diff --git a/sw/source/ui/index/cnttab.src b/sw/source/ui/index/cnttab.src index bc4bfd43e11a..564a6a4e2dfe 100644 --- a/sw/source/ui/index/cnttab.src +++ b/sw/source/ui/index/cnttab.src @@ -60,6 +60,85 @@ String STR_DELIM Text [ en-US ] = "S"; }; +String STR_TOKEN_ENTRY_NO +{ + Text [ en-US ] = "E#"; +}; +String STR_TOKEN_ENTRY +{ + Text [ en-US ] = "E"; +}; +String STR_TOKEN_TAB_STOP +{ + Text [ en-US ] = "T"; +}; +String STR_TOKEN_TEXT +{ + Text = ""; + //unused +}; +String STR_TOKEN_PAGE_NUMS +{ + Text [ en-US ] = "#"; +}; +String STR_TOKEN_CHAPTER_INFO +{ + Text [ en-US ] = "CI"; +}; +String STR_TOKEN_LINK_START +{ + Text [ en-US ] = "LS"; +}; +String STR_TOKEN_LINK_END +{ + Text [ en-US ] = "LE"; +}; +String STR_TOKEN_AUTHORITY +{ + Text [ en-US ] = "A"; +}; +String STR_TOKEN_HELP_ENTRY_NO +{ + Text [ en-US ] = "Chapter number"; +}; +String STR_TOKEN_HELP_ENTRY +{ + Text [ en-US ] = "Entry"; +}; +String STR_TOKEN_HELP_TAB_STOP +{ + Text [ en-US ] = "Tab stop"; +}; +String STR_TOKEN_HELP_TEXT +{ + Text [ en-US ] = "Text"; +}; +String STR_TOKEN_HELP_PAGE_NUMS +{ + Text [ en-US ] = "Page number"; +}; +String STR_TOKEN_HELP_CHAPTER_INFO +{ + Text [ en-US ] = "Chapter info"; +}; +String STR_TOKEN_HELP_LINK_START +{ + Text [ en-US ] = "Hyperlink start"; +}; +String STR_TOKEN_HELP_LINK_END +{ + Text [ en-US ] = "Hyperlink end"; +}; +String STR_TOKEN_HELP_AUTHORITY +{ + Text [ en-US ] = "Bibliography entry: "; +}; +String STR_CHARSTYLE +{ + Text [ en-US ] = "Character Style: "; +}; + + //------------------------------------------------------------------ TabPage TP_TOX_SELECT { @@ -494,542 +573,6 @@ TabPage TP_TOX_SELECT }; }; -TabPage TP_TOX_ENTRY -{ - Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ; - Hide = TRUE ; - FixedText FT_LEVEL - { - Pos = MAP_APPFONT ( 6, 3 ) ; - Size = MAP_APPFONT ( 25, 8 ) ; - Text [ en-US ] = "~Level"; - }; - Control LB_LEVEL - { - Pos = MAP_APPFONT ( 6, 15 ) ; - Size = MAP_APPFONT ( 25, 167 ) ; - TabStop = TRUE ; - Border = TRUE; - }; - String ST_AUTHTYPE - { - Text [ en-US ] = "~Type"; - }; - FixedText FT_TOKEN - { - Pos = MAP_APPFONT ( 37, 18 ) ; - Size = MAP_APPFONT ( 30, 8 ) ; - Text [ en-US ] = "~Structure"; - }; - PushButton PB_ALL_LEVELS - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_ALL_LEVELS"; - Pos = MAP_APPFONT ( 209 , 14 ) ; - Size = MAP_APPFONT ( 40, 14 ) ; - Text [ en-US ] = "~All"; - }; - PushButton PB_ENTRYNO - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_ENTRYNO"; - Pos = MAP_APPFONT ( 37 , 32 ) ; - Size = MAP_APPFONT ( 40, 14 ) ; - Text [ en-US ] = "Chapter no."; - }; - PushButton PB_ENTRY - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_ENTRY"; - Pos = MAP_APPFONT ( 80, 32 ) ; - Size = MAP_APPFONT ( 40, 14 ) ; - Text [ en-US ] = "Entry text"; - }; - PushButton PB_CHAPTERINFO - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_CHAPTERINFO"; - Pos = MAP_APPFONT ( 123 , 32 ) ; - Size = MAP_APPFONT ( 40, 14) ; - Text [ en-US ] = "~Chapter info"; - }; - PushButton PB_PAGENO - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_PAGENO"; - Pos = MAP_APPFONT ( 166 , 32 ) ; - Size = MAP_APPFONT ( 40, 14 ) ; - Text [ en-US ] = "Page no."; - }; - PushButton PB_TAB - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_TAB"; - Pos = MAP_APPFONT ( 209 ,32 ) ; - Size = MAP_APPFONT ( 40, 14 ) ; - Text [ en-US ] = "Tab stop"; - }; - PushButton PB_HYPERLINK - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_HYPERLINK"; - Pos = MAP_APPFONT ( 209 , 32 ) ; - Size = MAP_APPFONT ( 40, 14 ) ; - Text [ en-US ] = "H~yperlink"; - }; - ListBox LB_AUTHFIELD - { - HelpID = "sw:ListBox:TP_TOX_ENTRY:LB_AUTHFIELD"; - Pos = MAP_APPFONT ( 37 , 33 ) ; - Size = MAP_APPFONT ( 59, 60 ) ; - DropDown = TRUE; - Border = TRUE; - Sort = TRUE; - }; - PushButton PB_AUTHINSERT - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_AUTHINSERT"; - Pos = MAP_APPFONT ( 99 , 32 ) ; - Size = MAP_APPFONT ( 39, 14 ) ; - Text [ en-US ] = "~Insert"; - }; - PushButton PB_AUTHREMOVE - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_AUTHREMOVE"; - Pos = MAP_APPFONT ( 142 , 32 ) ; - Size = MAP_APPFONT ( 39, 14 ) ; - Text [ en-US ] = "~Remove"; - }; - FixedText FT_CHARSTYLE - { - Pos = MAP_APPFONT ( 37 , 55 ) ; - Size = MAP_APPFONT (60 , 8 ) ; - Text [ en-US ] = "Character Style"; - }; - ListBox LB_CHARSTYLE - { - HelpID = "sw:ListBox:TP_TOX_ENTRY:LB_CHARSTYLE"; - Pos = MAP_APPFONT ( 100 , 53 ) ; - Size = MAP_APPFONT ( 93, 60 ) ; - TabStop = TRUE ; - DropDown = TRUE ; - }; - PushButton PB_EDITSTYLE - { - HelpID = "sw:PushButton:TP_TOX_ENTRY:PB_EDITSTYLE"; - Pos = MAP_APPFONT ( 199 , 52 ) ; - Size = MAP_APPFONT ( 50, 14 ) ; - Text [ en-US ] = "~Edit..."; - }; - FixedText FT_FILLCHAR - { - Pos = MAP_APPFONT ( 37 , 71 ) ; - Size = MAP_APPFONT (60 , 8 ) ; - Text [ en-US ] = "Fill character"; - }; - ComboBox CB_FILLCHAR - { - HelpID = "sw:ComboBox:TP_TOX_ENTRY:CB_FILLCHAR"; - Pos = MAP_APPFONT ( 100 , 69 ) ; - Size = MAP_APPFONT ( 40, 40 ) ; - TabStop = TRUE ; - DropDown = TRUE ; - }; - FixedText FT_CHAPTERENTRY - { - Pos = MAP_APPFONT ( 37 , 71 ) ; - Size = MAP_APPFONT ( 60, 8 ) ; - Text [ en-US ] = "Chapter entry"; - }; - ListBox LB_CHAPTERENTRY - { - HelpID = "sw:ListBox:TP_TOX_ENTRY:LB_CHAPTERENTRY"; - Pos = MAP_APPFONT ( 100 , 69 ) ; - Size = MAP_APPFONT ( 93, 40 ) ; - TabStop = TRUE ; - DropDown = TRUE ; - StringList [ en-US ] = - { - < "Number range only" ; > ; - < "Description only" ; > ; - < "Number range and description" ; > ; - }; - }; - - FixedText FT_ENTRY_NO - { - Pos = MAP_APPFONT ( 37 , 71 ) ; - Size = MAP_APPFONT ( 60, 8 ) ; - Text [ en-US ] = "Format"; - }; - ListBox LB_ENTRY_NO - { - HelpID = "sw:ListBox:TP_TOX_ENTRY:LB_ENTRY_NO"; - Pos = MAP_APPFONT ( 100 , 69 ) ; - Size = MAP_APPFONT ( 93, 40 ) ; - TabStop = TRUE ; - DropDown = TRUE ; - StringList [ en-US ] = - { - < "Number" ; > ; - < "Number without separator" ; > ; - }; - }; - - FixedText FT_LEVEL_OL - { - Pos = MAP_APPFONT ( 37 , 87 ) ; - Size = MAP_APPFONT ( 60 , 8 ) ; - Text [ en-US ] = "Evaluate up to level"; - }; - NumericField NF_LEVEL_OL - { - HelpID = "sw:NumericField:TP_TOX_ENTRY:NF_LEVEL_OL"; - Pos = MAP_APPFONT ( 100 , 85 ) ; - Size = MAP_APPFONT ( 20 , 12 ) ; - Border = TRUE ; - TabStop = TRUE ; - Left = TRUE ; - Repeat = TRUE ; - Spin = TRUE ; - Minimum = 1 ; - Maximum = 10 ; - Value = 10 ; - SpinSize = 1 ; - }; - - FixedText FT_TABPOS - { - Pos = MAP_APPFONT ( 37 , 87 ) ; - Size = MAP_APPFONT ( 60, 8 ) ; - Text [ en-US ] = "Tab stop position"; - }; - MetricField MF_TABPOS - { - HelpID = "sw:MetricField:TP_TOX_ENTRY:MF_TABPOS"; - Pos = MAP_APPFONT ( 100 , 85 ) ; - Size = MAP_APPFONT ( 40, 12 ) ; - Border = TRUE ; - TabStop = TRUE ; - Left = TRUE ; - Repeat = TRUE ; - Spin = TRUE ; - Minimum = 0 ; - Maximum = 1999 ; - DecimalDigits = 2 ; - Value = 0 ; - Unit = FUNIT_CM ; - First = 0 ; - Last = 1999 ; - SpinSize = 5 ; - }; - CheckBox CB_AUTORIGHT - { - HelpID = "sw:CheckBox:TP_TOX_ENTRY:CB_AUTORIGHT"; - Pos = MAP_APPFONT ( 143 , 86 ) ; - Size = MAP_APPFONT ( 100, 10 ) ; - Text [ en-US ] = "Align right"; - }; - FixedLine FL_ENTRY - { - Pos = MAP_APPFONT ( 34 , 3 ) ; - Size = MAP_APPFONT ( 220, 8 ) ; - Text [ en-US ] = "Structure and Formatting"; - }; - CheckBox CB_RELTOSTYLE - { - HelpID = "sw:CheckBox:TP_TOX_ENTRY:CB_RELTOSTYLE"; - Pos = MAP_APPFONT ( 37 , 110 ) ; - Size = MAP_APPFONT ( 200, 10 ) ; - Text [ en-US ] = "Tab position relati~ve to Paragraph Style indent"; - }; - FixedText FT_MAIN_ENTRY_STYLE - { - Pos = MAP_APPFONT ( 37 , 112 ) ; - Size = MAP_APPFONT ( 116, 8 ) ; - Text [ en-US ] = "Character Style for main entries"; - }; - ListBox LB_MAIN_ENTRY_STYLE - { - HelpID = "sw:ListBox:TP_TOX_ENTRY:LB_MAIN_ENTRY_STYLE"; - Pos = MAP_APPFONT ( 157 , 110 ) ; - Size = MAP_APPFONT ( 92, 80 ) ; - TabStop = TRUE ; - DropDown = TRUE ; - AutoHScroll = TRUE; - }; - - CheckBox CB_ALPHADELIM - { - HelpID = "sw:CheckBox:TP_TOX_ENTRY:CB_ALPHADELIM"; - Pos = MAP_APPFONT ( 37 , 126 ) ; - Size = MAP_APPFONT ( 105, 10 ) ; - Text [ en-US ] = "Alphabetical delimiter"; - }; - CheckBox CB_COMMASEPARATED - { - HelpID = "sw:CheckBox:TP_TOX_ENTRY:CB_COMMASEPARATED"; - Pos = MAP_APPFONT ( 37 , 140 ) ; - Size = MAP_APPFONT ( 105, 10 ) ; - Text [ en-US ] = "Key separated by commas"; - }; - FixedLine FL_FORMAT - { - Pos = MAP_APPFONT ( 34 , 99 ) ; - Size = MAP_APPFONT ( 220, 8 ) ; - Text [ en-US ] = "Format"; - }; - RadioButton RB_DOCPOS - { - HelpID = "sw:RadioButton:TP_TOX_ENTRY:RB_DOCPOS"; - Pos = MAP_APPFONT ( 40 , 113) ; - Size = MAP_APPFONT ( 94, 10 ) ; - Text [ en-US ] = "Document ~position "; - }; - RadioButton RB_SORTCONTENT - { - HelpID = "sw:RadioButton:TP_TOX_ENTRY:RB_SORTCONTENT"; - Pos = MAP_APPFONT ( 136 , 113 ) ; - Size = MAP_APPFONT ( 90, 10 ) ; - Text [ en-US ] = "~Content"; - }; - FixedLine FL_SORTING - { - Pos = MAP_APPFONT ( 34 , 102 ) ; - Size = MAP_APPFONT ( 220, 8 ) ; - Text [ en-US ] = "Sort by"; - }; - FixedText FT_FIRSTKEY - { - Pos = MAP_APPFONT ( 40 , 140 ) ; - Size = MAP_APPFONT ( 10, 8 ) ; - Text = "~1" ; - }; - ListBox LB_FIRSTKEY - { - HelpID = "sw:ListBox:TP_TOX_ENTRY:LB_FIRSTKEY"; - Pos = MAP_APPFONT ( 60 , 138 ) ; - Size = MAP_APPFONT ( 159, 50 ) ; - Border = TRUE; - DropDown = TRUE; - }; - ImageRadioButton RB_SORTUP1 - { - HelpID = "sw:ImageRadioButton:TP_TOX_ENTRY:RB_SORTUP1"; - Pos = MAP_APPFONT ( 222 , 138 ) ; - Size = MAP_APPFONT ( 12, 12 ) ; - RadioButtonImage = - Image - { - ImageBitmap = Bitmap{File = "sc10712.bmp"; }; - MaskColor = IMAGE_MASK_COLOR ; - }; - Check = TRUE; - QuickHelpText [ en-US ] = "Ascending"; - }; - ImageRadioButton RB_SORTDOWN1 - { - HelpID = "sw:ImageRadioButton:TP_TOX_ENTRY:RB_SORTDOWN1"; - Pos = MAP_APPFONT ( 237 , 138 ) ; - Size = MAP_APPFONT ( 12, 12 ) ; - RadioButtonImage = - Image - { - ImageBitmap = Bitmap{File = "sc10713.bmp"; }; - MaskColor = IMAGE_MASK_COLOR ; - }; - QuickHelpText [ en-US ] = "Descending"; - }; - ImageRadioButton RB_SORTUP2 - { - HelpID = "sw:ImageRadioButton:TP_TOX_ENTRY:RB_SORTUP2"; - Pos = MAP_APPFONT ( 222 , 153 ) ; - Size = MAP_APPFONT ( 12, 12 ) ; - RadioButtonImage = - Image - { - ImageBitmap = Bitmap{File = "sc10712.bmp"; }; - MaskColor = IMAGE_MASK_COLOR ; - }; - Check = TRUE; - QuickHelpText [ en-US ] = "Ascending"; - }; - ImageRadioButton RB_SORTDOWN2 - { - HelpID = "sw:ImageRadioButton:TP_TOX_ENTRY:RB_SORTDOWN2"; - Pos = MAP_APPFONT ( 237 , 153 ) ; - Size = MAP_APPFONT ( 12, 12 ) ; - RadioButtonImage = - Image - { - ImageBitmap = Bitmap{File = "sc10713.bmp"; }; - MaskColor = IMAGE_MASK_COLOR ; - }; - QuickHelpText [ en-US ] = "Descending"; - }; - ImageRadioButton RB_SORTUP3 - { - HelpID = "sw:ImageRadioButton:TP_TOX_ENTRY:RB_SORTUP3"; - Pos = MAP_APPFONT ( 222 , 168 ) ; - Size = MAP_APPFONT ( 12, 12 ) ; - RadioButtonImage = - Image - { - ImageBitmap = Bitmap{File = "sc10712.bmp"; }; - MaskColor = IMAGE_MASK_COLOR ; - }; - Check = TRUE; - QuickHelpText [ en-US ] = "Ascending"; - }; - ImageRadioButton RB_SORTDOWN3 - { - HelpID = "sw:ImageRadioButton:TP_TOX_ENTRY:RB_SORTDOWN3"; - Pos = MAP_APPFONT ( 237 ,168 ) ; - Size = MAP_APPFONT ( 12, 12 ) ; - RadioButtonImage = - Image - { - ImageBitmap = Bitmap{File = "sc10713.bmp"; }; - MaskColor = IMAGE_MASK_COLOR ; - }; - QuickHelpText [ en-US ] = "Descending"; - }; - FixedText FT_SECONDKEY - { - Pos = MAP_APPFONT ( 40 , 155 ) ; - Size = MAP_APPFONT ( 10, 8 ) ; - Text = "~2" ; - }; - ListBox LB_SECONDKEY - { - HelpID = "sw:ListBox:TP_TOX_ENTRY:LB_SECONDKEY"; - Pos = MAP_APPFONT ( 60 , 153 ) ; - Size = MAP_APPFONT ( 159, 50 ) ; - Border = TRUE; - DropDown = TRUE; - }; - FixedText FT_THIRDDKEY - { - Pos = MAP_APPFONT ( 40 , 170 ) ; - Size = MAP_APPFONT ( 10, 8 ) ; - Text = "~3" ; - }; - ListBox LB_THIRDKEY - { - HelpID = "sw:ListBox:TP_TOX_ENTRY:LB_THIRDKEY"; - Pos = MAP_APPFONT ( 60 , 168 ) ; - Size = MAP_APPFONT ( 159, 50 ) ; - Border = TRUE; - DropDown = TRUE; - }; - FixedLine FL_SORTKEY - { - Pos = MAP_APPFONT ( 34 , 126) ; - Size = MAP_APPFONT ( 220, 8 ) ; - Text [ en-US ] = "Sort keys"; - }; -}; - -Window WIN_TOKEN -{ - Pos = MAP_APPFONT ( 70, 15 ) ; - Size = MAP_APPFONT ( 136, 14 ) ; - ImageButton WIN_LEFT_SCROLL - { - HelpID = "sw:ImageButton:TP_TOX_ENTRY:WIN_LEFT_SCROLL"; - Pos = MAP_APPFONT ( 0, 0 ) ; - Size = MAP_APPFONT ( 10, 12 ) ; - Symbol = IMAGEBUTTON_ARROW_LEFT; - DialogControl = FALSE; - TabStop = FALSE; - }; - Window WIN_CTRL_PARENT - { - Pos = MAP_APPFONT ( 11, 0 ) ; - Size = MAP_APPFONT ( 114, 12 ) ; - DialogControl = TRUE; - }; - ImageButton WIN_RIGHT_SCROLL - { - HelpID = "sw:ImageButton:TP_TOX_ENTRY:WIN_RIGHT_SCROLL"; - Pos = MAP_APPFONT ( 126, 0 ) ; - Size = MAP_APPFONT ( 10, 12 ) ; - Symbol = IMAGEBUTTON_ARROW_RIGHT; - DialogControl = FALSE; - TabStop = FALSE; - }; - String STR_TOKEN_ENTRY_NO - { - Text [ en-US ] = "E#"; - }; - String STR_TOKEN_ENTRY - { - Text [ en-US ] = "E"; - }; - String STR_TOKEN_TAB_STOP - { - Text [ en-US ] = "T"; - }; - String STR_TOKEN_TEXT - { - Text = ""; - //unused - }; - String STR_TOKEN_PAGE_NUMS - { - Text [ en-US ] = "#"; - }; - String STR_TOKEN_CHAPTER_INFO - { - Text [ en-US ] = "CI"; - }; - String STR_TOKEN_LINK_START - { - Text [ en-US ] = "LS"; - }; - String STR_TOKEN_LINK_END - { - Text [ en-US ] = "LE"; - }; - String STR_TOKEN_AUTHORITY - { - Text [ en-US ] = "A"; - }; - String STR_TOKEN_HELP_ENTRY_NO - { - Text [ en-US ] = "Chapter number"; - }; - String STR_TOKEN_HELP_ENTRY - { - Text [ en-US ] = "Entry"; - }; - String STR_TOKEN_HELP_TAB_STOP - { - Text [ en-US ] = "Tab stop"; - }; - String STR_TOKEN_HELP_TEXT - { - Text [ en-US ] = "Text"; - }; - String STR_TOKEN_HELP_PAGE_NUMS - { - Text [ en-US ] = "Page number"; - }; - String STR_TOKEN_HELP_CHAPTER_INFO - { - Text [ en-US ] = "Chapter info"; - }; - String STR_TOKEN_HELP_LINK_START - { - Text [ en-US ] = "Hyperlink start"; - }; - String STR_TOKEN_HELP_LINK_END - { - Text [ en-US ] = "Hyperlink end"; - }; - String STR_TOKEN_HELP_AUTHORITY - { - Text [ en-US ] = "Bibliography entry: "; - }; - String STR_CHARSTYLE - { - Text [ en-US ] = "Character Style: "; - }; -}; - ModalDialog DLG_ADD_IDX_STYLES { HelpId = HID_DLG_ADD_IDX_STYLES; |