optpage.cxx (4d7c9de0) | optpage.cxx (5ba3629c) |
---|---|
1/************************************************************** | 1/************************************************************** |
2 * | 2 * |
3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at | 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at |
10 * | 10 * |
11 * http://www.apache.org/licenses/LICENSE-2.0 | 11 * http://www.apache.org/licenses/LICENSE-2.0 |
12 * | 12 * |
13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. | 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. |
19 * | 19 * |
20 *************************************************************/ 21 22 23 24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_sw.hxx" 26 27#ifdef SW_DLLIMPLEMENTATION --- 63 unchanged lines hidden (view full) --- 91 TabPage Anzeige/Inhalt 92--------------------------------------------------*/ 93 94SwContentOptPage::SwContentOptPage( Window* pParent, 95 const SfxItemSet& rCoreSet ) : 96 SfxTabPage( pParent, SW_RES( TP_CONTENT_OPT ), rCoreSet ), 97 aLineFL ( this, SW_RES( FL_LINE ) ), 98 aCrossCB ( this, SW_RES( CB_CROSS ) ), | 20 *************************************************************/ 21 22 23 24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_sw.hxx" 26 27#ifdef SW_DLLIMPLEMENTATION --- 63 unchanged lines hidden (view full) --- 91 TabPage Anzeige/Inhalt 92--------------------------------------------------*/ 93 94SwContentOptPage::SwContentOptPage( Window* pParent, 95 const SfxItemSet& rCoreSet ) : 96 SfxTabPage( pParent, SW_RES( TP_CONTENT_OPT ), rCoreSet ), 97 aLineFL ( this, SW_RES( FL_LINE ) ), 98 aCrossCB ( this, SW_RES( CB_CROSS ) ), |
99 aSolidHandleCB( this, SW_RES( CB_HANDLE ) ), | 99// aSolidHandleCB( this, SW_RES( CB_HANDLE ) ), |
100 aBigHandleCB ( this, SW_RES( CB_BIGHANDLE) ), 101 102 aWindowFL ( this, SW_RES( FL_WINDOW ) ), 103 aHScrollBox ( this, SW_RES( CB_HSCROLL ) ), 104 aVScrollBox ( this, SW_RES( CB_VSCROLL ) ), 105 aAnyRulerCB ( this, SW_RES( CB_ANY_RULER ) ), 106 aHRulerCBox ( this, SW_RES( CB_HRULER ) ), 107 aHMetric ( this, SW_RES( LB_HMETRIC ) ), --- 108 unchanged lines hidden (view full) --- 216 if(pElemAttr) 217 { 218 aTblCB .Check (pElemAttr->bTable ); 219 aGrfCB .Check (pElemAttr->bGraphic ); 220 aDrwCB .Check (pElemAttr->bDrawing ); 221 aFldNameCB .Check (pElemAttr->bFieldName ); 222 aPostItCB .Check (pElemAttr->bNotes ); 223 aCrossCB .Check( pElemAttr->bCrosshair ); | 100 aBigHandleCB ( this, SW_RES( CB_BIGHANDLE) ), 101 102 aWindowFL ( this, SW_RES( FL_WINDOW ) ), 103 aHScrollBox ( this, SW_RES( CB_HSCROLL ) ), 104 aVScrollBox ( this, SW_RES( CB_VSCROLL ) ), 105 aAnyRulerCB ( this, SW_RES( CB_ANY_RULER ) ), 106 aHRulerCBox ( this, SW_RES( CB_HRULER ) ), 107 aHMetric ( this, SW_RES( LB_HMETRIC ) ), --- 108 unchanged lines hidden (view full) --- 216 if(pElemAttr) 217 { 218 aTblCB .Check (pElemAttr->bTable ); 219 aGrfCB .Check (pElemAttr->bGraphic ); 220 aDrwCB .Check (pElemAttr->bDrawing ); 221 aFldNameCB .Check (pElemAttr->bFieldName ); 222 aPostItCB .Check (pElemAttr->bNotes ); 223 aCrossCB .Check( pElemAttr->bCrosshair ); |
224 aSolidHandleCB.Check( !pElemAttr->bHandles ); | |
225 aBigHandleCB.Check(pElemAttr->bBigHandles ); 226 aHScrollBox.Check( pElemAttr->bHorzScrollbar ); 227 aVScrollBox.Check( pElemAttr->bVertScrollbar ); 228 aAnyRulerCB.Check( pElemAttr->bAnyRuler ); 229 aHRulerCBox.Check( pElemAttr->bHorzRuler ); 230 aVRulerCBox.Check( pElemAttr->bVertRuler ); 231 aVRulerRightCBox.Check(pElemAttr->bVertRulerRight); 232 aSmoothCBox.Check( pElemAttr->bSmoothScroll ); --- 17 unchanged lines hidden (view full) --- 250 if(pOldAttr) 251 aElem = *pOldAttr; 252 aElem.bTable = aTblCB .IsChecked(); 253 aElem.bGraphic = aGrfCB .IsChecked(); 254 aElem.bDrawing = aDrwCB .IsChecked(); 255 aElem.bFieldName = aFldNameCB .IsChecked(); 256 aElem.bNotes = aPostItCB .IsChecked(); 257 aElem.bCrosshair = aCrossCB .IsChecked(); | 224 aBigHandleCB.Check(pElemAttr->bBigHandles ); 225 aHScrollBox.Check( pElemAttr->bHorzScrollbar ); 226 aVScrollBox.Check( pElemAttr->bVertScrollbar ); 227 aAnyRulerCB.Check( pElemAttr->bAnyRuler ); 228 aHRulerCBox.Check( pElemAttr->bHorzRuler ); 229 aVRulerCBox.Check( pElemAttr->bVertRuler ); 230 aVRulerRightCBox.Check(pElemAttr->bVertRulerRight); 231 aSmoothCBox.Check( pElemAttr->bSmoothScroll ); --- 17 unchanged lines hidden (view full) --- 249 if(pOldAttr) 250 aElem = *pOldAttr; 251 aElem.bTable = aTblCB .IsChecked(); 252 aElem.bGraphic = aGrfCB .IsChecked(); 253 aElem.bDrawing = aDrwCB .IsChecked(); 254 aElem.bFieldName = aFldNameCB .IsChecked(); 255 aElem.bNotes = aPostItCB .IsChecked(); 256 aElem.bCrosshair = aCrossCB .IsChecked(); |
258 aElem.bHandles = !aSolidHandleCB.IsChecked(); | |
259 aElem.bBigHandles = aBigHandleCB.IsChecked(); 260 aElem.bHorzScrollbar = aHScrollBox.IsChecked(); 261 aElem.bVertScrollbar = aVScrollBox.IsChecked(); 262 aElem.bAnyRuler = aAnyRulerCB.IsChecked(); 263 aElem.bHorzRuler = aHRulerCBox.IsChecked(); 264 aElem.bVertRuler = aVRulerCBox.IsChecked(); 265 aElem.bVertRulerRight= aVRulerRightCBox.IsChecked(); 266 aElem.bSmoothScroll = aSmoothCBox.IsChecked(); --- 127 unchanged lines hidden (view full) --- 394 aProspectCB.SetPosPixel(aLeftPageCB.GetPosPixel()); 395 Point aPt( aRightPageCB.GetPosPixel() ); 396 aPt.setX(aPt.getX() + 15); // indent 397 aProspectCB_RTL.SetPosPixel(aPt); 398// aBlackFontCB.SetPosPixel(aBackgroundCB.GetPosPixel()); 399// aPrintHiddenTextCB.SetPosPixel(aBlackFontCB.GetPosPixel()); 400// aBackgroundCB.SetPosPixel(aCtrlFldCB.GetPosPixel()); 401// aCtrlFldCB.SetPosPixel(aDrawCB.GetPosPixel()); | 257 aElem.bBigHandles = aBigHandleCB.IsChecked(); 258 aElem.bHorzScrollbar = aHScrollBox.IsChecked(); 259 aElem.bVertScrollbar = aVScrollBox.IsChecked(); 260 aElem.bAnyRuler = aAnyRulerCB.IsChecked(); 261 aElem.bHorzRuler = aHRulerCBox.IsChecked(); 262 aElem.bVertRuler = aVRulerCBox.IsChecked(); 263 aElem.bVertRulerRight= aVRulerRightCBox.IsChecked(); 264 aElem.bSmoothScroll = aSmoothCBox.IsChecked(); --- 127 unchanged lines hidden (view full) --- 392 aProspectCB.SetPosPixel(aLeftPageCB.GetPosPixel()); 393 Point aPt( aRightPageCB.GetPosPixel() ); 394 aPt.setX(aPt.getX() + 15); // indent 395 aProspectCB_RTL.SetPosPixel(aPt); 396// aBlackFontCB.SetPosPixel(aBackgroundCB.GetPosPixel()); 397// aPrintHiddenTextCB.SetPosPixel(aBlackFontCB.GetPosPixel()); 398// aBackgroundCB.SetPosPixel(aCtrlFldCB.GetPosPixel()); 399// aCtrlFldCB.SetPosPixel(aDrawCB.GetPosPixel()); |
402 | 400 |
403 // hide aPrintEmptyPagesCB and move everything below up accordingly 404 long nDeltaY = aPaperFromSetupCB.GetPosPixel().getY() - aPrintEmptyPagesCB.GetPosPixel().getY(); 405 aPrintEmptyPagesCB.Hide(); 406 aPt = aPaperFromSetupCB.GetPosPixel(); 407 aPt.setY( aPt.getY() - nDeltaY ); 408 aPaperFromSetupCB.SetPosPixel( aPt ); 409 aPt = aFaxFT.GetPosPixel(); 410 aPt.setY( aPt.getY() - nDeltaY ); --- 514 unchanged lines hidden (view full) --- 925 // get the set of disctinct available family names 926 std::set< String > aFontNames; 927 int nFontNames = pPrt->GetDevFontCount(); 928 for( int i = 0; i < nFontNames; i++ ) 929 { 930 FontInfo aInf( pPrt->GetDevFont( i ) ); 931 aFontNames.insert( aInf.GetName() ); 932 } | 401 // hide aPrintEmptyPagesCB and move everything below up accordingly 402 long nDeltaY = aPaperFromSetupCB.GetPosPixel().getY() - aPrintEmptyPagesCB.GetPosPixel().getY(); 403 aPrintEmptyPagesCB.Hide(); 404 aPt = aPaperFromSetupCB.GetPosPixel(); 405 aPt.setY( aPt.getY() - nDeltaY ); 406 aPaperFromSetupCB.SetPosPixel( aPt ); 407 aPt = aFaxFT.GetPosPixel(); 408 aPt.setY( aPt.getY() - nDeltaY ); --- 514 unchanged lines hidden (view full) --- 923 // get the set of disctinct available family names 924 std::set< String > aFontNames; 925 int nFontNames = pPrt->GetDevFontCount(); 926 for( int i = 0; i < nFontNames; i++ ) 927 { 928 FontInfo aInf( pPrt->GetDevFont( i ) ); 929 aFontNames.insert( aInf.GetName() ); 930 } |
933 | 931 |
934 // insert to listboxes 935 for( std::set< String >::const_iterator it = aFontNames.begin(); 936 it != aFontNames.end(); ++it ) 937 { 938 aStandardBox.InsertEntry( *it ); 939 aTitleBox .InsertEntry( *it ); 940 aListBox .InsertEntry( *it ); 941 aLabelBox .InsertEntry( *it ); --- 1013 unchanged lines hidden (view full) --- 1955 }; 1956 1957 // remove strikethrough from insert and change and underline + double 1958 // underline from delete 1959 aInsertLB.RemoveEntry(5); 1960 aChangedLB.RemoveEntry(5); 1961 aDeletedLB.RemoveEntry(4); 1962 aDeletedLB.RemoveEntry(3); | 932 // insert to listboxes 933 for( std::set< String >::const_iterator it = aFontNames.begin(); 934 it != aFontNames.end(); ++it ) 935 { 936 aStandardBox.InsertEntry( *it ); 937 aTitleBox .InsertEntry( *it ); 938 aListBox .InsertEntry( *it ); 939 aLabelBox .InsertEntry( *it ); --- 1013 unchanged lines hidden (view full) --- 1953 }; 1954 1955 // remove strikethrough from insert and change and underline + double 1956 // underline from delete 1957 aInsertLB.RemoveEntry(5); 1958 aChangedLB.RemoveEntry(5); 1959 aDeletedLB.RemoveEntry(4); 1960 aDeletedLB.RemoveEntry(3); |
1963 | 1961 |
1964 Link aLk = LINK(this, SwRedlineOptionsTabPage, AttribHdl); 1965 aInsertLB.SetSelectHdl( aLk ); 1966 aDeletedLB.SetSelectHdl( aLk ); 1967 aChangedLB.SetSelectHdl( aLk ); 1968 1969 aLk = LINK(this, SwRedlineOptionsTabPage, ColorHdl); 1970 aInsertColorLB.SetSelectHdl( aLk ); 1971 aDeletedColorLB.SetSelectHdl( aLk ); --- 233 unchanged lines hidden (view full) --- 2205 aChangedColorLB.SelectEntry(Color(nColor)); 2206 } 2207 2208 aMarkColorLB.SelectEntry(pOpt->GetMarkAlignColor()); 2209 2210 aInsertLB.SelectEntryPos(0); 2211 aDeletedLB.SelectEntryPos(0); 2212 aChangedLB.SelectEntryPos(0); | 1962 Link aLk = LINK(this, SwRedlineOptionsTabPage, AttribHdl); 1963 aInsertLB.SetSelectHdl( aLk ); 1964 aDeletedLB.SetSelectHdl( aLk ); 1965 aChangedLB.SetSelectHdl( aLk ); 1966 1967 aLk = LINK(this, SwRedlineOptionsTabPage, ColorHdl); 1968 aInsertColorLB.SetSelectHdl( aLk ); 1969 aDeletedColorLB.SetSelectHdl( aLk ); --- 233 unchanged lines hidden (view full) --- 2203 aChangedColorLB.SelectEntry(Color(nColor)); 2204 } 2205 2206 aMarkColorLB.SelectEntry(pOpt->GetMarkAlignColor()); 2207 2208 aInsertLB.SelectEntryPos(0); 2209 aDeletedLB.SelectEntryPos(0); 2210 aChangedLB.SelectEntryPos(0); |
2213 | 2211 |
2214 lcl_FillRedlineAttrListBox(aInsertLB, rInsertAttr, aInsertAttrMap, 2215 sizeof(aInsertAttrMap) / sizeof(sal_uInt16)); 2216 lcl_FillRedlineAttrListBox(aDeletedLB, rDeletedAttr, aDeletedAttrMap, 2217 sizeof(aDeletedAttrMap) / sizeof(sal_uInt16)); 2218 lcl_FillRedlineAttrListBox(aChangedLB, rChangedAttr, aChangedAttrMap, 2219 sizeof(aChangedAttrMap) / sizeof(sal_uInt16)); | 2212 lcl_FillRedlineAttrListBox(aInsertLB, rInsertAttr, aInsertAttrMap, 2213 sizeof(aInsertAttrMap) / sizeof(sal_uInt16)); 2214 lcl_FillRedlineAttrListBox(aDeletedLB, rDeletedAttr, aDeletedAttrMap, 2215 sizeof(aDeletedAttrMap) / sizeof(sal_uInt16)); 2216 lcl_FillRedlineAttrListBox(aChangedLB, rChangedAttr, aChangedAttrMap, 2217 sizeof(aChangedAttrMap) / sizeof(sal_uInt16)); |
2220 | 2218 |
2221 sal_uInt16 nPos = 0; 2222 switch (pOpt->GetMarkAlignMode()) 2223 { 2224 case text::HoriOrientation::NONE: nPos = 0; break; 2225 case text::HoriOrientation::LEFT: nPos = 1; break; 2226 case text::HoriOrientation::RIGHT: nPos = 2; break; 2227 case text::HoriOrientation::OUTSIDE: nPos = 3; break; 2228 case text::HoriOrientation::INSIDE: nPos = 4; break; --- 397 unchanged lines hidden --- | 2219 sal_uInt16 nPos = 0; 2220 switch (pOpt->GetMarkAlignMode()) 2221 { 2222 case text::HoriOrientation::NONE: nPos = 0; break; 2223 case text::HoriOrientation::LEFT: nPos = 1; break; 2224 case text::HoriOrientation::RIGHT: nPos = 2; break; 2225 case text::HoriOrientation::OUTSIDE: nPos = 3; break; 2226 case text::HoriOrientation::INSIDE: nPos = 4; break; --- 397 unchanged lines hidden --- |