ParaLineSpacingControl.cxx (564e397f) | ParaLineSpacingControl.cxx (d0c67063) |
---|---|
1/************************************************************** 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 --- 40 unchanged lines hidden (view full) --- 49 50#define DO_NOT_CUSTOM 0 51#define USE_CUSTOM 1 52 53namespace svx { namespace sidebar { 54 55 56ParaLineSpacingControl::ParaLineSpacingControl(Window* pParent, svx::sidebar::ParaPropertyPanel& rPanel) | 1/************************************************************** 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 --- 40 unchanged lines hidden (view full) --- 49 50#define DO_NOT_CUSTOM 0 51#define USE_CUSTOM 1 52 53namespace svx { namespace sidebar { 54 55 56ParaLineSpacingControl::ParaLineSpacingControl(Window* pParent, svx::sidebar::ParaPropertyPanel& rPanel) |
57: PopupControl( pParent,SVX_RES(RID_POPUPPANEL_PARAPAGE_LINESPACING)) 58, mrParaPropertyPanel(rPanel) 59, mpBindings(NULL) 60,aLineDist ( this, SVX_RES( LB_LINE_SPACING )), 61aLineDistAtPercentBox ( this, SVX_RES( ED_SBINDE_LINEDISTPERCENT ) ), 62aLineDistAtMetricBox ( this, SVX_RES( ED_SBINDE_LINEDISTPOINT ) ), 63maCustomFT ( this, SVX_RES( FT_CUSTOM ) ), 64maLSpacingFT ( this, SVX_RES( FT_LINE_SPACING ) ), 65maOfFT ( this, SVX_RES( FT_OF ) ), 66maSpacing1 (SVX_RES(IMG_SPACING1)), 67maSpacing115 (SVX_RES(IMG_SPACING115)), 68maSpacing15 (SVX_RES(IMG_SPACING15)), 69maSpacing2 (SVX_RES(IMG_SPACING2)), 70maSelSpacing1 (SVX_RES(IMG_SEL_SPACING1)), 71maSelSpacing115 (SVX_RES(IMG_SEL_SPACING115)), 72maSelSpacing15 (SVX_RES(IMG_SEL_SPACING15)), 73maSelSpacing2 (SVX_RES(IMG_SEL_SPACING2)), 74maImgCusGrey (SVX_RES(IMG_CUSTOM_GRAY)), 75maImgCus (SVX_RES(IMG_CUSTOM)), 76maStrCus (SVX_RES(STR_LCVALUE)), 77pActLineDistFld ( &aLineDistAtPercentBox ), 78nMinFixDist ( BEGIN_VALUE ), 79maValue ( 0 ), 80maPos ( 0 ), 81maLineSpacing (ValueSetWithTextControl::IMAGE_TEXT,this, SVX_RES( LINE_SPACING ) ), 82mpImg (NULL), 83mpImgSel (NULL), 84mpStr (NULL), 85mpStrTip (NULL), 86maLine (SVX_RES(STR_LSPACING)), 87maOf (SVX_RES(STR_LS_OF)) 88, mbUseLineSPCustom (0) 89, mbLineSPDisable (0) | 57: PopupControl( pParent,SVX_RES(RID_POPUPPANEL_PARAPAGE_LINESPACING)), 58 mbUseLineSPCustom (0), 59 mbLineSPDisable (0), 60 mrParaPropertyPanel (rPanel), 61 mpBindings (NULL), 62 nMinFixDist (BEGIN_VALUE), 63 pActLineDistFld (&aLineDistAtPercentBox), 64 maLineSpacing (ValueSetWithTextControl::IMAGE_TEXT,this, SVX_RES(LINE_SPACING)), 65 maCustomFT (this, SVX_RES(FT_CUSTOM)), 66 maLSpacingFT (this, SVX_RES(FT_LINE_SPACING)), 67 aLineDist (this, SVX_RES(LB_LINE_SPACING)), 68 maOfFT (this, SVX_RES(FT_OF)), 69 aLineDistAtPercentBox (this, SVX_RES(ED_SBINDE_LINEDISTPERCENT)), 70 aLineDistAtMetricBox (this, SVX_RES(ED_SBINDE_LINEDISTPOINT)), 71 maSpacing1 (SVX_RES(IMG_SPACING1)), 72 maSpacing115 (SVX_RES(IMG_SPACING115)), 73 maSpacing15 (SVX_RES(IMG_SPACING15)), 74 maSpacing2 (SVX_RES(IMG_SPACING2)), 75 maSelSpacing1 (SVX_RES(IMG_SEL_SPACING1)), 76 maSelSpacing115 (SVX_RES(IMG_SEL_SPACING115)), 77 maSelSpacing15 (SVX_RES(IMG_SEL_SPACING15)), 78 maSelSpacing2 (SVX_RES(IMG_SEL_SPACING2)), 79 maImgCus (SVX_RES(IMG_CUSTOM)), 80 maImgCusGrey (SVX_RES(IMG_CUSTOM_GRAY)), 81 maStrCus (SVX_RES(STR_LCVALUE)), 82 mpImg (NULL), 83 mpImgSel (NULL), 84 mpStr (NULL), 85 mpStrTip (NULL), 86 maLine (SVX_RES(STR_LSPACING)), 87 maOf (SVX_RES(STR_LS_OF)), 88 maValue (0), 89 maPos (0) |
90{ 91 initial(); 92 FreeResource(); 93 mpBindings = mrParaPropertyPanel.GetBindings(); 94// m_eLNSpaceUnit = mrParaPropertyPanel.maLNSpaceControl.GetCoreMetric(); 95 m_eLNSpaceUnit = SFX_MAPUNIT_100TH_MM; 96} 97ParaLineSpacingControl::~ParaLineSpacingControl() --- 688 unchanged lines hidden --- | 90{ 91 initial(); 92 FreeResource(); 93 mpBindings = mrParaPropertyPanel.GetBindings(); 94// m_eLNSpaceUnit = mrParaPropertyPanel.maLNSpaceControl.GetCoreMetric(); 95 m_eLNSpaceUnit = SFX_MAPUNIT_100TH_MM; 96} 97ParaLineSpacingControl::~ParaLineSpacingControl() --- 688 unchanged lines hidden --- |